/* ==========================================================================
   ⚡ NOGAS SUPERBUSCADOR SEMÁNTICO - ESTILOS VISUALES & GLASSMORPHISM
   ========================================================================== */

/* 1. CONTENEDOR DE CHIPS INTERACTIVOS */
.sb-chips-wrapper {
    padding: 10px 14px 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.sb-chips-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sb-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sb-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.18s ease;
    user-select: none;
    animation: sbChipFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sbChipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(2px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sb-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.sb-chip-icon {
    font-size: 13px;
    line-height: 1;
}

.sb-chip-label {
    font-weight: 700;
    color: #0f172a;
}

.sb-chip-desc {
    font-size: 11px;
    color: #0284c7;
    font-weight: 500;
    background: rgba(2, 132, 199, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
}

.sb-chip-remove {
    background: none;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    padding: 0 0 0 4px;
    margin-left: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}

.sb-chip-remove:hover {
    color: #ef4444;
    transform: scale(1.25);
}

.sb-chip-disabled {
    opacity: 0.55;
    background: #f1f5f9 !important;
    border: 1px dashed #94a3b8 !important;
    color: #64748b !important;
}

.sb-chip-disabled .sb-chip-label {
    text-decoration: line-through;
    color: #64748b !important;
}

.sb-chip-disabled .sb-chip-desc {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.12) !important;
}

.sb-chip-disabled .sb-chip-remove {
    color: #0284c7 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.sb-chip-disabled:hover {
    opacity: 0.88;
    border-color: #0284c7 !important;
    transform: none;
}

/* 2. SUGERENCIAS RÁPIDAS (ESTADO VACÍO ON FOCUS) */
.sb-empty-state-box {
    padding: 14px 16px;
    background: #ffffff;
}

.sb-empty-header {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.sb-examples-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-example-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.sb-example-pill:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
    transform: translateX(3px);
}

.sb-ex-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.sb-ex-text {
    flex-grow: 1;
}

/* 3. HEADER DE RESULTADOS Y CONTEO */
.sb-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.sb-results-count {
    font-size: 12.5px;
    color: #334155;
    display: flex;
    align-items: center;
}

.sb-results-count strong {
    color: #0ea5e9;
    font-size: 14px;
}

.sb-view-all-link {
    font-size: 12px;
    font-weight: 700;
    color: #0ea5e9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.sb-view-all-link:hover {
    color: #0284c7;
    transform: translateX(2px);
    text-decoration: underline;
}

/* 4. TARJETAS DE COCHES SUGERIDOS */
.sb-cards-grid {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    max-height: 380px;
    overflow-y: auto;
}

.sb-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.sb-card-item:hover {
    background: #f8fafc;
}

.sb-card-thumb {
    width: 58px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-card-img-placeholder {
    color: #94a3b8;
    font-size: 18px;
}

.sb-card-details {
    flex-grow: 1;
    min-width: 0;
}

.sb-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.sb-meta-price {
    font-weight: 700;
    color: #059669;
}

.sb-meta-wltp {
    color: #0284c7;
    font-weight: 600;
}

.sb-meta-mal {
    color: #475569;
}

.sb-meta-sep {
    color: #cbd5e1;
}

.sb-card-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.sb-card-item:hover .sb-card-badge {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* 5. FOOTER DEL DROPDOWN */
.sb-dropdown-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.sb-btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
    transition: all 0.18s ease;
}

.sb-btn-view-all:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
}

/* 6. MODO RELAJACIÓN (FALLBACK CUANDO HAY 0 RESULTADOS) */
.sb-no-results-box {
    padding: 16px;
    text-align: center;
    background: #ffffff;
}

.sb-no-results-icon {
    font-size: 26px;
    color: #f59e0b;
    margin-bottom: 6px;
}

.sb-no-results-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.sb-no-results-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.sb-relax-action {
    margin-bottom: 10px;
}

.sb-btn-relax {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-btn-relax:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
    transform: translateY(-1px);
}

.sb-alternatives-header {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 8px 0;
    text-align: left;
}

/* 7. ADAPTACIONES EN NAVBAR DROPDOWN */
.global-search-dropdown {
    max-height: 520px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #cbd5e1 !important;
}

/* 8. ADAPTACIONES EN HOME HERO DROPDOWN */
.hero-suggestions-dropdown {
    max-height: 520px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

/* 9. MÓVIL SPOTLIGHT MODAL */
@media (max-width: 820px) {
    .sb-chips-wrapper {
        padding: 8px 12px;
    }
    .sb-chip {
        font-size: 11.5px;
        padding: 3px 8px 3px 6px;
    }
    .sb-card-thumb {
        width: 50px;
        height: 35px;
    }
    .sb-card-title {
        font-size: 12.5px;
    }
    .sb-card-meta {
        font-size: 11px;
    }
}
