
/*
 * ISV WHITE LABEL - wl-menu.css
 * Versione 1.2 - 09/11/2026
 *
 * Menu compatto, responsive,
 * tooltip wishlist e ricerca avanzata.
 */

/* ==========================================
   MENU A TENDINA
========================================== */

.wl-dropdown {
    display: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.wl-dropdown.open {
    display: block;
}

.wl-dropdown-inner {
    display: block;
    columns: 4;
    column-gap: 34px;
    padding: 22px var(--page-padding) 12px;
    max-width: 1500px;
    margin: 0 auto;
}

.wl-menu-group {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 21px;
    vertical-align: top;
}

.wl-menu-group h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.wl-menu-group a {
    display: block;
    padding: 4px 0;
    color: var(--navy-soft);
    font-size: 12px;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.wl-menu-group a:hover {
    color: var(--gold);
}

/* ==========================================
   OUR FAVOURITES
========================================== */

.wl-menu-categories {
    display: block;
    width: 100%;
    column-span: all;
    columns: 4;
    column-gap: 34px;
}

.wl-menu-categories h3 {
    column-span: all;
    margin-bottom: 12px;
}

.wl-menu-categories a {
    break-inside: avoid;
}

/* ==========================================
   RICERCA AVANZATA
========================================== */

.wl-advanced-search {
    padding: 0;
    background: #fafbfc;
}

.wl-search-form {
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px var(--page-padding) 25px;
}

.wl-search-heading {
    margin-bottom: 23px;
}

.wl-search-heading h2 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.wl-search-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.wl-search-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 20px;
}

.wl-search-field {
    min-width: 0;
}

.wl-search-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wl-search-field input,
.wl-search-field select {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #d9dde5;
    border-radius: 0;
    background: #ffffff;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    box-sizing: border-box;
}

.wl-search-field input:focus,
.wl-search-field select:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

.wl-search-field input::placeholder {
    color: #929aaa;
}

.wl-search-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.wl-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 16px;
    color: var(--navy-soft);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.wl-search-reset:hover {
    color: var(--gold);
}

.wl-search-submit {
    min-height: 43px;
    padding: 0 30px;
    border: 1px solid var(--gold);
    border-radius: 0;
    background: var(--navy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.wl-search-submit:hover {
    background: var(--gold);
    color: #ffffff;
}

.wl-search-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

/* ==========================================
   TOOLTIP WISHLIST
========================================== */

.villa-photo .wish-btn {
    cursor: pointer;
}

.villa-photo .wish-btn::after {
    content: "Add to Wish List";
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    max-width: 180px;
    padding: 8px 11px;
    background: rgba(16, 29, 64, 0.94);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.villa-photo .wish-btn.active::after {
    content: "Remove from Wish List";
}

.villa-photo .wish-btn:hover::after,
.villa-photo .wish-btn:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .wl-search-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    .wl-dropdown-inner {
        columns: 2;
        column-gap: 28px;
        padding-top: 22px;
    }

    .wl-menu-categories {
        columns: 2;
    }

    .wl-search-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wl-search-form {
        padding-top: 24px;
        padding-bottom: 24px;
    }

}

/* ==========================================
   SMARTPHONE
========================================== */

@media (max-width: 620px) {

    .wl-dropdown-inner {
        columns: 1;
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .wl-menu-group {
        margin-bottom: 18px;
    }

    .wl-menu-categories {
        columns: 1;
    }

    .wl-menu-group h3 {
        font-size: 12px;
    }

    .wl-menu-group a {
        padding: 6px 0;
        font-size: 13px;
    }

    .wl-search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wl-search-form {
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .wl-search-heading h2 {
        font-size: 17px;
    }

    .wl-search-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .wl-search-submit,
    .wl-search-reset {
        width: 100%;
    }

}
