/* ==========================================================================
   🔍 Barra di Ricerca Frontend - Glassmorphism & Translucent Style
   ========================================================================== */

/* Il contenitore principale bianco della barra */
.search-container, 
.booking-search-form, 
.search-box-wrapper { /* Sostituisci o mantieni la classe nativa usata da Viserlab */
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    padding: 10px !important;
}

/* I singoli segmenti interni divisori (City, Check-in, Ospiti) */
.search-form-group, 
.booking-search-form .form-group,
.search-input-field {
    background: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important; /* Divisori semi-trasparenti */
}

/* Rimuove l'ultimo bordo a destra prima del tasto Search */
.search-form-group:last-of-type {
    border-right: none !important;
}

/* I testi delle etichette (es. "Check In", "Rooms & Guests") */
.booking-search-form label, 
.search-form-group span,
.booking-search-form .title {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Gli input e i valori selezionati (es. "30 Jun 2026") */
.booking-search-form input, 
.booking-search-form select,
.booking-search-form .selection {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
}

/* Il menu a tendina delle destinazioni che si apre sotto (Search destination...) */
.dropdown-menu, 
.autocomplete-suggestions, 
.select2-dropdown {
    background: rgba(10, 17, 40, 0.95) !important; /* Sfondo scuro profondo per leggibilità */
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
}

/* Elementi all'interno della tendina di ricerca */
.autocomplete-suggestion, 
.select2-results__option {
    color: #e2e8f0 !important;
    transition: background 0.2s ease;
}

.autocomplete-suggestion:hover, 
.select2-results__option--highlighted {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #036bff !important; /* Colore verde Evegram sull'hover */
}



footer .logo, footer .footer-logo, footer .navbar-brand {
    background: transparent !important;
    padding: 0 !important;
}

/* =========================================================
   1. BOTTONI DEL SITO (Uniformati al Blu Azzurrato di Search)
   ========================================================= */
.btn-primary,
.btn--primary,
#search-btn,
.price-filter-btn,
button[type="submit"],
.btn-reset,
.badge-primary,
[class*="btn-primary"] {
    background: linear-gradient(135deg, #0084FF 0%, #12B0FF 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.25) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
#search-btn:hover {
    box-shadow: 0 6px 18px rgba(0, 132, 255, 0.4) !important;
    transform: translateY(-1px);
}
/* =========================================================
   1. ISOLAMENTO FAQ (Modifica SOLO la sezione FAQ)
   ========================================================= */

/* Sfondo e bordo del singolo blocco FAQ */
.faq-section .accordion-item,
.faq-wrapper .accordion-item,
#faq .accordion-item,
section[class*="faq"] .accordion-item {
    background-color: #f4f8ff !important;
    background: #f4f8ff !important;
    border: 1px solid #d0e2ff !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

/* Testo della domanda FAQ (Chiusa) */
.faq-section .accordion-button,
.faq-wrapper .accordion-button,
#faq .accordion-button,
section[class*="faq"] .accordion-button {
    background-color: #f4f8ff !important;
    background: #f4f8ff !important;
    color: #0b2545 !important;
    -webkit-text-fill-color: #0b2545 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

/* Testo della domanda FAQ (Aperta) */
.faq-section .accordion-button:not(.collapsed),
.faq-wrapper .accordion-button:not(.collapsed),
#faq .accordion-button:not(.collapsed),
section[class*="faq"] .accordion-button:not(.collapsed) {
    background-color: #e5f0ff !important;
    background: #e5f0ff !important;
    color: #0084ff !important;
    -webkit-text-fill-color: #0084ff !important;
}

/* Contenuto della risposta FAQ */
.faq-section .accordion-body,
.faq-wrapper .accordion-body,
#faq .accordion-body,
section[class*="faq"] .accordion-body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Freccette SOLO nelle FAQ */
.faq-section .accordion-button::after,
.faq-wrapper .accordion-button::after,
#faq .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(12%) sepia(85%) saturate(3000%) hue-rotate(205deg) !important;
    opacity: 1 !important;
}

.faq-section .accordion-button:not(.collapsed)::after,
.faq-wrapper .accordion-button:not(.collapsed)::after,
#faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(2487%) hue-rotate(205deg) !important;
}


/* =========================================================
   2. PROTEZIONE SIDEBAR FILTRI (Ripristino Bianco Pulito)
   ========================================================= */

/* Disattiva qualsiasi stile accordion sulla sidebar dei filtri */
.filter-widget .accordion-item,
.filter-widget .accordion-button,
.filter-widget .accordion-collapse,
.filter-card .accordion-item,
.filter-card .accordion-button,
.sidebar .accordion-item,
.sidebar .accordion-button {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Stile del solo pulsante Price Filter nella sidebar */
.filter-widget .price-filter-btn,
.sidebar .btn-primary {
    background: linear-gradient(135deg, #0084FF 0%, #12B0FF 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 8px !important;
    border: none !important;
}





/* Rende l'immagine Hero della Homepage luminosa e chiara */
.hero-section::before,
.banner-section::before,
.hero-overlay,
[class*="hero"]::before,
[class*="banner"]::before {
    /* Riduce l'oscuramento dal 60-70% standard a solo il 20% per dare luminosità */
    background: rgba(0, 0, 0, 0.2) !important;
    opacity: 0.3 !important;
}

/* Se l'oscuramento è dato da un filtro opacità sull'immagine stessa */
.hero-bg, .banner-bg, [class*="hero"] img, [class*="banner"] img {
    filter: brightness(1.2) contrast(1.05) !important; /* Aumenta la luminosità */
    opacity: 1 !important;
}

/* Ombra morbida sui testi bianchi per farli leggere bene anche su fondo chiaro */
.hero-content h1, 
.hero-content p, 
[class*="hero"] h1, 
[class*="hero"] p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

/* 1. Rende il testo del titolo e del paragrafo scuro/blu notte con ombra di contrasto */
.hero-content h1, 
.hero-content p, 
.hero-content h2,
.hero-content span,
[class*="hero"] h1, 
[class*="hero"] p,
[class*="banner"] h1,
[class*="banner"] p {
    color: #0f172a !important; /* Blu notte molto scuro ad alto contrasto */
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.8) !important; /* Alone bianco protettivo */
}

/* 2. Titolo principale più marcato e definito */
.hero-content h1, 
[class*="hero"] h1 {
    font-weight: 800 !important;
    color: #0b192c !important;
}

/* 3. Opzionale: Aggiunge un leggero box in vetro sfumato (Glassmorphism) dietro il testo */
.hero-content, 
[class*="hero"] .content,
[class*="banner"] .content {
    background: rgba(255, 255, 255, 0.35) !important; /* Tinta trasparente elegante */
    backdrop-filter: blur(8px) !important; /* Effetto sfocato tipo vetro */
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 24px 32px !important;
    border-radius: 16px !important;
    display: inline-block !important;
    max-width: 800px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}






/* TITOLO: Bianco luminoso con ombra per farlo staccare */
.hero-content h1, 
.hero-content h2,
[class*="hero"] h1,
[class*="banner"] h1 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 12px !important;
}

/* SOTTOTITOLO: Bianco/Azzurrino nitido */
.hero-content p, 
.hero-content span,
[class*="hero"] p,
[class*="banner"] p {
    color: #F8FAFC !important;
    -webkit-text-fill-color: #F8FAFC !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.hero-content, 
.banner-content,
[class*="hero"] .content,
[class*="banner"] .content {
    /* Sfumatura ancora più concentrata e invisibile sui bordi */
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.15) 60%, transparent 100%) !important;
}

.hero-search-wrapper,
[class*="search-form"],
.hero-section form {
    margin-top: 30px !important;
}


.nav-tabs .nav-item .nav-link {
    color: #4b5563 !important; /* Grigio scuro leggibile */
    background-color: #e5e7eb !important; /* Grigio chiaro per lo sfondo */
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}


.nav-tabs .nav-item .nav-link:hover {
    background-color: #d1d5db !important;
}


.nav-tabs .nav-item .nav-link.active {
    color: #ffffff !important;
    background-color: hsl(var(--base)) !important; /* Prende il colore blu/primario del tuo sito */
}