#box_filtro_ricerca_home_page #box_filtro_ricerca {
    position: relative;
}




.cella_filtro {
    border: 1px solid rgba(0, 0, 55, 0.1);
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.cella_cerca {
    border: none;
    background: linear-gradient(135deg, #C5A059 0%, #a0740a 100%);
    color: white;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
    transition: all 0.3s ease;
}


#riga_btn_cerca {
    margin-top: 15px;
    height: fit-content;
}

#box_dati_filtro_crociere {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    z-index: 100001 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    animation: filterFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Block page scrolling when filter or sidebar is open */
body.filter-open {
    overflow: hidden !important;
}

/* ============================================= 
   FILTER HEADER BAR - Always visible on all sizes 
   ============================================= */
.filtro_header_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: linear-gradient(135deg, #0F172A 0%, #162032 100%);
    flex-shrink: 0;
    z-index: 100;
    gap: 20px;
    border-bottom: 2px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.filtro_header_left,
.filtro_header_right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filtro_header_title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
}

.filtro_header_btn {
    display: flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.filtro_btn_pulisci {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filtro_btn_pulisci.pulisci_clicked {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
    transition: all 0.1s ease;
}

.filtro_btn_pulisci:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.filtro_btn_annulla {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.filtro_btn_annulla:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.filtro_btn_cerca {
    background: linear-gradient(135deg, #C5A059 0%, #D8B775 100%);
    color: #0F172A;
    border: none;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
    position: relative;
    overflow: hidden;
    animation: goldPulse 2s infinite alternate;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 12px 35px rgba(197, 160, 89, 0.7);
        transform: scale(1.02);
    }
}

.filtro_btn_cerca::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.filtro_btn_cerca:hover {
    background: linear-gradient(135deg, #D8B775 0%, #E5B96F 100%);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.8);
    transform: translateY(-3px) scale(1.04);
    animation: none;
}

/* Mobile adjustments for header bar */
@media (max-width: 767px) {
    .filtro_header_bar {
        padding: 12px 25px;
        gap: 8px;
    }

    .filtro_header_btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .filtro_header_title {
        display: none;
        /* Hide title on small screens to fit buttons */
    }

    .filtro_btn_cerca.btn_conferma_filtro_trigger {
        display: none !important;
    }

    .filtro_header_left,
    .filtro_header_right {
        gap: 8px;
    }
}

.modal_filtri_body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    overscroll-behavior: contain;
}

@media (min-width: 768px) {
    .modal_filtri_body {
        padding: 40px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        overflow-y: auto;
    }
}

/* Mobile only bottom button */
.container_btn_filtro {
    display: none;
}

@media (max-width: 767px) {
    .container_btn_filtro {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 14px 20px;
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -4px 20px rgba(0, 0, 55, 0.08);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
    }
}

.btn_filtro_azzione {
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}

.btn_annulla {
    background-color: transparent;
    color: #475569;
    border: 1.5px solid #cbd5e1;
}

.btn_annulla:hover {
    background-color: #f1f5f9;
    color: #0F172A;
    border-color: #94a3b8;
}

.btn_conferma {
    background: linear-gradient(135deg, #C5A059 0%, #a0740a 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

.btn_conferma:hover {
    background: linear-gradient(135deg, #d4af63 0%, #b88a14 100%);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #box_dati_filtro_crociere {
        padding-bottom: 80px;
        /* Space for fixed bottom bar */
    }

    .container_btn_filtro {
        padding: 14px 20px;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        z-index: 1050;
        box-shadow: 0 -4px 20px rgba(0, 0, 55, 0.15);
    }

    .btn_filtro_azzione {
        width: 100%;
        padding: 14px 10px;
        font-size: 0.9rem;
    }
}

/* ########################### BARRA SELEZIONE DESTINAZIONE ####################################### */

#elenco_destinazioni_filtro {
    margin: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.celle_destinazioni_filtro {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin: 14.5px;
    /* Separazione tra i riquadri */
    display: flex;
    align-items: center;
}

.celle_destinazioni_filtro_enabled {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.celle_destinazioni_filtro_disabled {
    color: #ccc;
}

.celle_destinazioni_filtro_disabled img {
    opacity: 0.5;
}

.celle_destinazioni_filtro_enabled:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.celle_destinazioni_filtro img {
    width: 170px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 29px;
    /* Separazione orizzontale tra immagine e testo */
}

.celle_destinazioni_filtro .col-9 {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}


.celle_destinazioni_filtro_attivo {
    background: #edf3ff;
    border: 2px solid #0F172A;
    box-shadow: 0 4px 15px rgba(0, 0, 55, 0.12);
}

/* ########################### BARRA SELEZIONE porti ####################################### */

#elenco_porti_partenza_filtro {
    /*     margin: 20px;
    padding: 10px; */
    /*     background-color: #f9f9f9; */
    border-radius: 10px;
    /*     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    width: 100%;
}

.cccontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

/* Removed empty media query */

.box_celle_porto_filtro {
    display: block;
    flex: 1 1 130px;
    max-width: 180px;
    width: 100% !important;
}

.celle_porto_filtro {
    cursor: pointer;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 0;
    height: 70px;
    width: 100%;
}

.jq_nome_porto {
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


.celle_porto_filtro:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.porto_img img {
    width: 100%;
    height: auto;
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.porto_nome {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}

.celle_porto_filtro_attivo {
    background: #edf3ff;
    border: 2px solid #0F172A;
    box-shadow: 0 4px 15px rgba(0, 0, 55, 0.12);
}

/* ############################### PULSANTE CHIUDI BARRA SELEZIONE DESTINAZIONE################################### */

.box_filtro {
    position: relative;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.titolo_box_filtro {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.titolo_box_filtro::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #C5A059, transparent);
    border-radius: 2px;
}

.contenuto_box_filtro {
    background-color: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px rgba(0, 0, 55, 0.06);
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.box_celle_destinazione_filtro {
    padding-right: 0px;
}


.contenuto_box_filtro_persone {
    background-color: #fbfbfb;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;

}



/* Stile per mostrare il box_filtro se non è hidden */
.box_filtro.show {
    display: block;
}


.cella_filtro_title {
    color: #02194f;
}




/* ########################### selezione data OLD ####################################### */
.cella_filtro_box {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

@media (max-width: 768px) {
    .cella_filtro_box {
        padding: 10px;
        text-align: center;
    }

    .contenuto_box_filtro_persone {
        padding: 15px;
    }

    .contenuto_box_filtro {
        width: 100% !important;
        padding: 10px;
    }

    #box_filtro_destinazioni {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    #box_filtro_destinazioni .contenuto_box_filtro {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }
}



.date-selection-box h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.selection-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.selection-type label {
    font-size: 18px;
    color: #555;
    cursor: pointer;
}

.periodo_data_box {
    margin-bottom: 25px;
    position: relative;
}

.periodo_data_box label {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
    color: #555;
}

.large-input {
    width: 100%;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.large-input:focus {
    border-color: #007bff;
}

.date-buttons {
    margin-top: 30px;
    font-size: 16px;
    color: #007bff;
    cursor: pointer;
    text-align: center;
}

.date-buttons span {
    margin-right: 10px;
    text-decoration: underline;
}

.date-buttons span:hover {
    color: #0056b3;
}

.range_data {
    border-radius: 1px;
    border: 1px black;
}

/* ########################### Selezione data NEW ####################################### */

@media (max-width: 768px) {
    #filtro_data {
        flex-direction: column;
        padding: 10px 0 !important;
        overflow-x: hidden !important;
        /* Risolve il problema del debordamento */
        gap: 25px;
        width: 100%;
        margin: 0;
    }

    #filtro_data .mese-box {
        background: #ffffff;
        border-radius: 12px;
        padding: 20px 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #eef2f7;
        width: 100% !important;
        min-width: 0 !important;
        /* Importante per non farlo uscire dai margini */
        margin: 0;
        box-sizing: border-box;
    }

    #filtro_data .mese-titolo {
        text-align: center;
        font-size: 19px;
        color: #02194f;
        /* Blu del sito */
        font-weight: 700;
        margin-bottom: 20px;
        text-transform: capitalize;
    }

    #filtro_data .mese-tabella table {
        border: none;
    }

    #filtro_data .mese-tabella td,
    #filtro_data .mese-tabella th {
        border: none !important;
        padding: 10px 0;
        font-size: 14px;
        vertical-align: middle;
    }

    #filtro_data .mese-tabella th {
        background-color: transparent !important;
        color: #02194f;
        opacity: 0.5;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
    }

    /* Giorni disponibili (stile professionale con blu leggero) */
    #filtro_data .data_partenza {
        background-color: #f0f5ff !important;
        color: #02194f !important;
        font-weight: 600 !important;
        border-radius: 4px;
    }

    /* Giorni non disponibili */
    #filtro_data .no_giorno,
    #filtro_data .si_giorno:not(.data_partenza) {
        color: #ccc;
        font-weight: 300;
    }

    /* Selezione attiva (stile piatto MSC) */
    #filtro_data .cella_data_selezionata {
        background-color: #02194f !important;
        color: #ffffff !important;
        border-radius: 4px;
    }

    #filtro_data::before,
    #filtro_data::after {
        display: none;
    }
}

#filtro_data {
    display: flex;
    /*     background: #ffffff; */
    gap: 24px;
    overflow-x: auto;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

#filtro_data .mese-box {
    min-width: 260px;
    border-radius: 12px;
    padding: 20px;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Stessa ombra professionale per entrambi */
    border: 1px solid #eef2f7;
}

#filtro_data .mese-titolo {
    text-align: center;
    font-weight: 700;
    font-size: 19px;
    color: #02194f;
    /* Blu MSC */
    margin-bottom: 20px;
    text-transform: capitalize;
}

#filtro_data .mese-tabella table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: none !important;
}

#filtro_data .mese-tabella th,
#filtro_data .mese-tabella td {
    width: 14.28%;
    padding: 10px 0;
    text-align: center;
    border: none !important;
    /* Rimosse le griglie per uno stile più moderno */
    font-size: 14px;
    vertical-align: middle;
}

#filtro_data .mese-tabella th {
    background-color: transparent !important;
    color: #02194f;
    opacity: 0.5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

#filtro_data .mese-tabella td.vuoto,
#filtro_data .no_giorno {
    color: #ccc;
    font-weight: 300;
}

#filtro_data .si_giorno {
    color: #aaa;
}

#filtro_data .data_partenza {
    background-color: #f0f5ff !important;
    color: #02194f !important;
    font-weight: 600 !important;
    border-radius: 4px;
    cursor: pointer;
}

#filtro_data .cella_data_selezionata {
    background-color: #02194f !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 4px;
}



/* ######################## Selezione persone ########################################## */
.header_persone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {

    .header_persone {
        flex-direction: column;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .counter input {
        text-align: center !important;
    }
}

.input-group {
    text-align: center;
    flex: 1;
    display: block;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    text-align: center;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter input {
    width: 51px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    margin: 0 5px;
    font-size: 18px;
    font-weight: bold;
    pointer-events: none;
    /* Disabilita la modifica manuale */

}

.btn_decrement,
.btn_increment {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 20px;
    line-height: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
}

.btn_decrement:hover,
.btn_increment:hover {
    background-color: #e0e0e0;
}

.bambini-info {
    margin-top: 20px;
}

.bambino {
    margin-bottom: 20px;
}

.bambino_label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.bambino_box {
    margin-bottom: 15px;
}


.bambino input.input-error {
    border-color: #f00;
}

.btn_increment:disabled,
.btn_decrement:disabled {
    background-color: #d3d3d3;
    /* Grigio chiaro per indicare che è disabilitato */
    color: #aaa;
    /* Cambia il colore del testo per indicare lo stato disabilitato */
    cursor: default;
    /* Cambia il cursore per indicare che non è cliccabile */
    border-color: #d3d3d3;
    /* Assicurati che il bordo sia coerente con lo stato disabilitato */
}



/* ######################## STILI PER ORIGINE DEL BLOCCO ########################################## */

/* Homepage filter - positioning managed by home_page.css */
#box_filtro_ricerca_home_page #box_filtro_ricerca {
    position: relative;
}

/* Hide the old #img_dinamica from filter block on homepage - badge is now separate element */
#box_filtro_ricerca_home_page #img_dinamica {
    display: none !important;
}


#box_filtro_ricerca_elenco_crociere #filtro_ricerca {
    padding-top: 20px;
}

#box_filtro_ricerca_elenco_crociere .cella_filtro {
    margin-bottom: 5px;
}

.bordo_btn_data_delate {
    display: flex;
    justify-content: flex-end;
    margin: 10px 15px 0 0;
}

#btn_data_delete {
    display: inline-block;
    padding: 5px 5px;
    background-color: transparent;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    user-select: none;
}

#btn_data_delete:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #222;
}

#btn_data_delete:active {
    background-color: #e0e0e0;
    transform: scale(0.98);
}

/* =========================================================
   PREMIUM SEARCH BOX (SHARED COMPONENT)
   ========================================================= */
.wow-search-container {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 34px 40px;
    box-shadow:
        0 25px 60px rgba(0, 0, 55, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 80px rgba(197, 160, 89, 0.05) inset;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    z-index: 10;
}

/* Home Page Specific Placement */
.home-search-overlay {
    margin-top: -60px;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0);
    box-shadow: 0 30px 70px rgba(0, 0, 55, 0.45);
}

@media (max-width: 991px) {
    .home-search-overlay {
        margin-top: 20px !important;
        /* Shift down to avoid header/badge overlap */
        width: 94%;
        transform: translateY(0);
    }
}

.wow-search-container::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, rgba(255, 255, 255, 0.04) 30%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.wow-search-container:hover::before {
    opacity: 1;
}

.wow-filters-capsule {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 55, 0.04);
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 2;
}

.wow-filter-section {
    padding: 22px 32px;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: transparent;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 55, 0.06);
}

.wow-filter-section:last-child {
    border-right: none;
}

.wow-filter-section:hover {
    background-color: #f0f4f8;
}

.wow-icon i {
    font-size: 1.3rem;
    color: #0F172A;
    margin-right: 14px;
    transition: color 0.3s;
    width: 25px;
    text-align: center;
}

.wow-filter-section:hover .wow-icon i {
    color: #C5A059;
}

/* Date Selection Modal Enhancements */
.seleziona_la_tua_data_di_partenza {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #0F172A;
    margin-bottom: 25px !important;
    text-align: center;
}

.box_data_container {
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 55, 0.04);
    overflow: hidden;
    height: 100%;
}

.box_data_link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    height: 100%;
    color: inherit;
}

.box_data_data {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.box_data_valore {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #C5A059;
}

.box_data_container:hover {
    border-color: #C5A059;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 55, 0.08);
}

.box_data_container.data_selezionata {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    border-color: #0F172A;
    box-shadow: 0 8px 20px rgba(0, 0, 55, 0.2);
}

.box_data_container.data_selezionata .box_data_data {
    color: #fff;
}

.box_data_container.data_selezionata .box_data_valore {
    color: #C5A059;
}

.btnConVoloSiNo {
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e8ecf1;
    background: #fff;
    color: #64748b;
}

.btnConVoloSiNo.active {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.boxDateCrociera {
    padding: 10px 0;
}


.compact-modifica-filtri {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 20px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 55, 0.08);
}

.compact-modifica-filtri .icon-wrap i {
    font-size: 1.2rem;
    color: #0F172A;
}

.compact-modifica-filtri .compact-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.compact-modifica-filtri .compact-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.compact-modifica-filtri .edit-btn i {
    color: #C5A059;
    font-size: 1.1rem;
}

.wow-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.wow-label {
    font-size: 0.58rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.wow-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wow-cerca-btn {
    background: linear-gradient(135deg, #C5A059 0%, #a0740a 100%);
    color: #fff !important;
    border-radius: 14px;
    padding: 22px 48px;
    cursor: pointer;
    transition: all 0.35s ease;
    border: 2px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.3);
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-decoration: none !important;
}

.wow-cerca-btn i {
    color: #fff;
}

.wow-cerca-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.25), transparent);
    transition: left 0.6s ease;
}

.wow-cerca-btn:hover::before {
    left: 100%;
}

.wow-cerca-btn:hover {
    box-shadow: 0 12px 35px rgba(197, 160, 89, 0.45);
    background: linear-gradient(135deg, #d4af63 0%, #b88a14 100%);
    border-color: #0F172A;
    transform: translateY(-2px);
}

/* RESPONSIVE WOW FILTERS */
@media (max-width: 575px) {
    .wow-filters-capsule {
        flex-direction: column !important;
    }

    .wow-filter-section {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 55, 0.05);
        padding: 14px 16px !important;
    }

    .wow-cerca-btn {
        width: 100% !important;
        margin-top: 10px;
        min-width: unset !important;
        padding: 16px 20px !important;
    }

    .wow-search-container {
        padding: 14px !important;
    }

    .wow-icon i {
        font-size: 1rem !important;
        margin-right: 10px !important;
    }

    .wow-label {
        font-size: 0.7rem !important;
    }

    .wow-value {
        font-size: 1rem !important;
        white-space: normal !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .wow-search-container {
        padding: 14px 16px !important;
    }

    .wow-filters-capsule {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .wow-filter-section {
        padding: 14px 12px !important;
        border-right: 1px solid rgba(0, 0, 55, 0.06) !important;
        border-bottom: none !important;
        flex: 1 !important;
    }

    .wow-label {
        font-size: 0.7rem !important;
    }

    .wow-value {
        font-size: 1rem !important;
    }

    .wow-cerca-btn {
        min-width: 90px !important;
        padding: 14px 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .wow-search-container {
        padding: 18px 20px !important;
    }

    .wow-filter-section {
        padding: 16px 14px !important;
    }

    .wow-cerca-btn {
        padding: 16px 22px !important;
        min-width: 110px !important;
    }
}

/* =============================================================================
   MOBILE COLLAPSIBLE FILTER (LISTING PAGE)
   ============================================================================= */
@media (max-width: 767px) {
    .filter-collapsible-content {
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        display: none;
    }

    .filter-collapsible-content.mobile-expanded {
        max-height: 2000px;
        opacity: 1;
        margin-top: 15px;
        display: block !important;
    }

    .toggle-filter-visibility {
        cursor: pointer;
        padding: 16px 20px !important;
        border-radius: 16px !important;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
        min-height: 80px;
        /* Reduced min-height */
        margin-bottom: 0 !important;
        /* Remove bottom margin to touch content */
    }

    .wow-filters-capsule {
        flex-direction: column !important;
        gap: 0 !important;
        /* Remove gap for a unified look */
        background: #fff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 16px !important;
        overflow: hidden;
    }

    .wow-filter-section {
        background: #fff !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 0 !important;
        padding: 14px 18px !important;
    }

    .wow-filter-section:last-child {
        border-bottom: none !important;
    }

    .wow-cerca-btn {
        margin-top: 12px !important;
        /* Added small gap before search button */
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .filter-collapsible-content.mobile-expanded {
        margin-top: 10px !important;
        /* Smaller gap when expanded */
    }

    /* Redundant hero is removed */
    .elenco-hero {
        display: none !important;
    }

    /* The box itself becomes the Hero */
    .elenco-search-overlay {
        position: relative !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
        z-index: 100 !important;
        background-color: #0F172A !important;
        background-image: linear-gradient(rgba(47, 48, 51, 0.347), rgba(15, 23, 42, 0.75)),
            url('/assets/images/hero_premium.png') !important;
        background-size: cover !important;
        background-position: center !important;
        width: 100% !important;
        padding: 25px 20px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        overflow: hidden !important;
    }

    .search-container-elenco {
        margin-top: 0 !important;
        position: relative;
        z-index: 100;
    }
}










@media (min-width: 768px) {
    .filter-collapsible-content {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}

.toggle-filter-visibility .edit-btn i {
    transition: transform 0.4s ease;
    color: var(--gold);
}

.filter-open-state .toggle-filter-visibility .edit-btn i {
    transform: rotate(180deg);
}