/* =====================================================================================
   TAN search bar / hero - planwithtan.com look (2026-09-23)

   Recreates Drupal's logged-in home hero search (tan_theme: components/hero.scss, base/forms.scss,
   base/btn.scss, components/datepicker.scss, components/modals.scss, components/tooltip.scss) on
   top of our existing search markup (Views/Search/_SearchBase.cshtml, _Search.cshtml,
   _SearchFiltersModal.cshtml, _SearchExcessInventoryPill.cshtml, Shared/HeaderBanner.cshtml).
   Values below are Drupal's (Drupal sets html{font-size:62.5%}, so its 1rem = 10px here).

   Plain CSS on purpose, loaded AFTER all.css (_Head-Includes.cshtml) and scoped to .tan-search /
   .tan-search-hero / .tan-search-modal so nothing outside the search area changes. Many rules
   need !important to beat legacy all.css rules (fixed widths, gradients, :before sprites).
   Deleting this file (and its <link>) reverts the look without breaking the form.

   Home page (body.page-home): big heading + photo behind heading and bar.
   Every other page: same bar in a compact light strip, no heading/photo.
   ===================================================================================== */

/* ---------- Icon font (TAN's IcoMoon set, copied from Drupal tan_theme/fonts/icomoon) ---------- */
@font-face {
    font-family: 'tan-icomoon';
    src: url('../fonts/icomoon/icomoon.eot?phtjmh');
    src: url('../fonts/icomoon/icomoon.eot?phtjmh#iefix') format('embedded-opentype'),
         url('../fonts/icomoon/icomoon.woff?phtjmh') format('woff'),
         url('../fonts/icomoon/icomoon.ttf?phtjmh') format('truetype'),
         url('../fonts/icomoon/icomoon.svg?phtjmh#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.tan-icon {
    font-family: 'tan-icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.tan-icon--filters:before  { content: "\e911"; }
.tan-icon--pin:before      { content: "\e912"; }
.tan-icon--calendar:before { content: "\e914"; }
.tan-icon--close:before    { content: "\e91a"; }
.tan-icon--checkbox:before { content: "\e91c"; }            /* unchecked */
.rg-check.checked .tan-icon--checkbox:before { content: "\e91b"; }   /* checked (main.js toggles .checked) */
.tan-icon--info:before     { content: "\e91d"; }

/* ---------- Hero container ---------- */
.home-tabs-container.tan-search-hero {
    font-family: 'Roboto', Arial, sans-serif;
    color: #343434;
}

.tan-search-hero__heading {
    display: none; /* home page only, see below */
}

body.page-home .home-tabs-container.tan-search-hero {
    position: relative;
    /* position:relative (for the photo overlay) would activate dormant legacy offsets on this
       container ("left:50% !important; top:110px !important" at <=767px) - cancel them. */
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 200px 0 56px;
    background: #1c2a33 url('../img/tan-beach-sunset.jpg') center center / cover no-repeat;
    /* 2026-09-30 (Bryan): explicit, higher than #home-featured-properties below it (all.css) -
       without this the Location suggestions dropdown (which expands past the hero's own bottom
       edge into the Featured Properties section) was getting painted over by it. */
    z-index: 10;
}

    body.page-home .home-tabs-container.tan-search-hero:before {
        content: "";
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        background: rgba(0, 0, 0, 0.3);
        pointer-events: none;
    }

    body.page-home .home-tabs-container.tan-search-hero > .container {
        position: relative;
        z-index: 1;
    }

body.page-home .tan-search-hero__heading {
    display: block;
    margin: 0 0 25px;
    font-family: 'Cabin', 'Roboto', Arial, sans-serif;
    font-size: 75px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 3px 7px rgba(0, 0, 0, 1);
    text-transform: none;
    letter-spacing: normal;
}

/* Compact strip on every non-home page */
body:not(.page-home) .home-tabs-container.tan-search-hero #home-tabs-sections {
    background: #F0F8FB;
    border-radius: 8px;
}

/* ---------- Tabs (Search Bar | Search Tiles) ---------- */
.tan-search-hero #home-tabs .grouped-tabs {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    gap: 8px;
    border: 0 !important;
    margin: 0 0 16px !important;
}

.tan-search-hero #home-tabs .grouped-tabs .tabs-header {
    display: none !important; /* "Search Vacations" label - the heading replaces it */
}

.tan-search-hero #home-tabs .grouped-tabs .home-tab {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 10px;
    background: #E7F9FF !important;
    box-shadow: none !important;
    transition: background-color .3s;
}

    .tan-search-hero #home-tabs .grouped-tabs .home-tab:before,
    .tan-search-hero #home-tabs .grouped-tabs .home-tab:after {
        display: none !important;
    }

    .tan-search-hero #home-tabs .grouped-tabs .home-tab > a {
        display: block;
        padding: 8px 20px !important;
        font-family: 'Roboto', Arial, sans-serif !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: #00467F !important;
        text-transform: none !important;
        text-decoration: none !important;
        background: none !important;
    }

    .tan-search-hero #home-tabs .grouped-tabs .home-tab.active {
        background: #00467F !important;
        border-color: #00467F !important;
    }

        .tan-search-hero #home-tabs .grouped-tabs .home-tab.active > a {
            color: #C4F0FF !important;
        }

/* The search tab's panel: no legacy beige/gray card behind the bar */
.tan-search-hero #home-tabs-sections {
    background: transparent;
}

.tan-search-hero #home-tabs-sections section.tan-search,
.tan-search-hero #home-tabs-sections .select-background section.tan-search {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body:not(.page-home) .tan-search-hero #home-tabs-sections section.tan-search {
    padding: 20px !important;
}

.tan-search .tab-section-container {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
}

/* ---------- The row ---------- */
.tan-search__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

    .tan-search__row > * {
        float: none !important;
        margin: 0 !important;
    }

.tan-search__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 2026-09-30: the Location suggestions dropdown (#search-suggestions, z-index:1001 below) was
   getting painted over by the Check-In Month field next to it - both are flex items in the same
   row with z-index:auto, so without this, stacking falls back to DOM order/other page elements
   instead of #search-suggestions's z-index actually winning. Giving the location field its own
   stacking context here guarantees its dropdown always wins against its row siblings. */
.tan-search__field--location { flex: 2 1 240px; position: relative; z-index: 2; }
.tan-search__field--month    { flex: 1 1 190px; }

.tan-search__label {
    display: block;
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #00467F !important;
    text-transform: none !important;
    white-space: nowrap;
}

body.page-home .tan-search-hero .tan-search__label {
    color: #fff !important;
    text-shadow: 0 3px 7px rgba(0, 0, 0, 1);
}

/* ---------- White rounded controls (Location, Check-In Month) ---------- */
.tan-search .tan-search__control {
    position: relative !important;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: #fff !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

    .tan-search .tan-search__control:before {
        display: none !important; /* legacy orange pin SVG on #search:before */
    }

.tan-search .tan-search__control-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 24px;
    color: #757575;
    pointer-events: none;
}

.tan-search .tan-search__control--month .tan-search__control-icon {
    color: #00467F;
    font-size: 22px;
}

/* Location text input */
.tan-search #search #txt-search,
.tan-search #search #txt-search-base {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 10px 40px 10px 44px !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #100F0F !important;
    box-sizing: border-box;
    outline: none;
}

    .tan-search #search #txt-search::placeholder,
    .tan-search #search #txt-search-base::placeholder {
        color: #757575;
        opacity: 1;
    }

.tan-search .tan-search__control:focus-within {
    border-color: #00467F !important;
    box-shadow: 0 0 0 2px rgba(0, 70, 127, 0.2) !important;
}

.tan-search #search #btn-search {
    display: none !important; /* legacy magnifier submit; the Search button does this now */
}

.tan-search #search #btn-clear-search {
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
}

/* Type-ahead suggestions dropdown (Drupal select2 dropdown look) */
.tan-search #search #search-suggestions {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    /* 2026-09-30 (Bryan): was 1001 - other page elements (modals/overlays elsewhere on the site)
       use much higher values, so bumped well above anything else on the page. Paired with the
       .tan-search__field--location stacking-context fix above. */
    z-index: 99999 !important;
    background: #fff !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.07) !important;
    font-family: 'Roboto', Arial, sans-serif;
    text-align: left;
}

/* Check-In Month (select2 4.0.1 single select) */
.tan-search .tan-search__control--month .select2-container {
    width: 100% !important;
    height: 100%;
}

.tan-search .tan-search__control--month .select2-container .select2-selection--single {
    height: 46px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

    .tan-search .tan-search__control--month .select2-container .select2-selection--single .select2-selection__rendered {
        padding: 0 30px 0 42px !important;
        line-height: 46px !important;
        font-family: 'Roboto', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        color: #100F0F !important;
        text-transform: none !important;
        text-align: left;
    }

    .tan-search .tan-search__control--month .select2-container .select2-selection--single .select2-selection__arrow {
        height: 46px !important;
        right: 8px !important;
    }

/* Legacy wrapper widths on the month control */
.tan-search .vaca-month-checkin-base {
    width: 100% !important;
    max-width: none !important;
}

/* ---------- Pills (Excess Inventory, Filters) - Drupal .btn--secondary ---------- */
.tan-search .tan-search__pill {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    height: 48px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 20px !important;
    background: #E7F9FF !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #00467F !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .3s;
    box-sizing: border-box;
}

    .tan-search .tan-search__pill:hover {
        background: #DEDEDE !important;
    }

    .tan-search .tan-search__pill:focus-visible,
    .tan-search .tan-search__pill:focus-within {
        outline: 2px solid #00467F;
        outline-offset: 2px;
    }

.tan-search .tan-search__pill .tan-icon {
    font-size: 22px;
    color: #00467F;
}

/* Excess Inventory: the label.rg-check IS the clickable pill content */
.tan-search .tan-search__pill--excess label.rg-check {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    cursor: pointer;
    background: none !important;
}

    .tan-search .tan-search__pill--excess label.rg-check:before,
    .tan-search-modal .tan-check label.rg-check:before {
        display: none !important; /* legacy 25px checkbox square */
    }

    .tan-search .tan-search__pill--excess label.rg-check input,
    .tan-search-modal .tan-check label.rg-check input {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden;
        clip: rect(0 0 0 0);
        border: 0;
        opacity: 0;
    }

.tan-search .tan-search__filter-count:not(:empty) {
    margin-left: 4px;
}

/* Info (i) + tooltip (Drupal components/tooltip.scss) */
.tan-search .tan-search__info {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    outline: none;
}

.tan-search .tan-search__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    width: 280px;
    padding: 5px 10px;
    background: #F0F0F0;
    border-radius: 8px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #100F0F;
    text-align: center;
    white-space: normal;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .tan-search .tan-search__tooltip:after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-top-color: #F0F0F0;
    }

.tan-search .tan-search__info:hover .tan-search__tooltip,
.tan-search .tan-search__info:focus .tan-search__tooltip {
    display: block;
}

/* ---------- Search button - Drupal .btn--primary ---------- */
.tan-search .tan-search__submit {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tan-search .tan-search__submit #btnVaca,
.tan-search .tan-search__submit #btnVaca.button-style {
    /* legacy ".select-client .vaca-submit #btnVaca { left:43px }" nudged it right for VIP accounts */
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 130px;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 28px !important;
    background: #00467F !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #C4F0FF !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}

    .tan-search .tan-search__submit #btnVaca:hover {
        background: #CCEAF7 !important;
        color: #00467F !important;
    }

    .tan-search .tan-search__submit #btnVaca:focus-visible {
        background: #F0F8FB !important;
        color: #00467F !important;
        outline: 2px solid #00467F;
        outline-offset: 2px;
    }

.tan-search .tan-search__note {
    margin-top: 12px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    font-style: italic;
    color: #343434;
}

body.page-home .tan-search-hero .tan-search__note {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ---------- Filters pop-up (Drupal components/modals.scss) ---------- */
.tan-search-modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', Arial, sans-serif;
    color: #343434;
    text-align: left;
}

    .tan-search-modal.is-open {
        display: flex;
    }

.tan-search-modal__overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.6);
}

.tan-search-modal__container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(100% - 32px);
    max-width: 600px;
    max-height: calc(100vh - 32px);
    background: #F0F8FB;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tan-search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: #fff;
    box-shadow: 0 5px 10px 0 rgba(155, 155, 155, 0.2);
}

.tan-search-modal__title {
    margin: 0 !important;
    font-family: 'Cabin', 'Roboto', Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #00467F !important;
    text-transform: none !important;
}

.tan-search-modal__close {
    padding: 4px;
    border: 0;
    background: none;
    font-size: 22px;
    color: #00467F;
    cursor: pointer;
}

.tan-search-modal__body {
    padding: 24px 30px;
    overflow-y: auto;
}

.tan-search-modal__group + .tan-search-modal__group,
.tan-search-modal .search-filters .tan-search-modal__group + .tan-search-modal__group {
    margin-top: 24px;
}

.tan-search-modal__group-title {
    display: block !important;
    margin: 0 0 12px !important;
    font-family: 'Cabin', 'Roboto', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #00467F !important;
    text-transform: none !important;
}

/* main.js/onveos-ajax.js still .toggle() these legacy containers - keep them visible in the pop-up */
.tan-search-modal .search-filters,
.tan-search-modal .amenities,
.tan-search-modal .activities {
    display: block !important;
    margin-top: 24px;
}

.tan-search-modal .search-filters .amenities {
    margin-top: 0;
}

.tan-search-modal .amenities-label,
.tan-search-modal .activities-label {
    display: block !important;
}

.tan-search-modal__checks {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px 24px;
}

@media (min-width: 576px) {
    .tan-search-modal__checks {
        grid-template-columns: 1fr 1fr;
    }
}

.tan-search-modal .tan-check {
    margin: 0 !important;
    padding: 0 !important;
}

    .tan-search-modal .tan-check label.rg-check {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
        font-family: 'Roboto', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        color: #343434 !important;
        cursor: pointer;
        background: none !important;
    }

        .tan-search-modal .tan-check label.rg-check .tan-icon {
            font-size: 22px;
            color: #00467F;
        }

/* Travelers (VIP) */
.tan-search-modal .travelers {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px 24px;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

    .tan-search-modal .travelers > div {
        display: flex;
        flex-direction: column;
        flex: 1 1 180px;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
    }

.tan-search-modal .travelers label,
.tan-search-modal .child-ages .age-child {
    margin: 0 0 8px !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #00467F !important;
    text-transform: none !important;
}

/* Legacy .ElderCount(-select)/.ChildCount(-select) add a people icon + arrow background, 67px left
   padding and 88% width - reset to a plain white select with the native arrow. */
.tan-search-modal .travelers select,
.tan-search-modal .child-ages select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: auto !important;
    width: 100% !important;
    max-width: 220px;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    background: #fff none !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: normal !important;
    color: #100F0F !important;
    text-indent: 0 !important;
}

.tan-search-modal .child-ages select {
    width: auto !important;
    min-width: 80px;
}

.tan-search-modal .child-ages {
    float: none !important;
    width: auto !important;
    margin: 16px 0 0 !important;
}

    .tan-search-modal .child-ages .group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .tan-search-modal .child-ages .age-msg {
        margin-top: 6px;
        font-size: 13px;
        color: #757575;
    }

.tan-search-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 30px;
    background: #fff;
    border-top: 1px solid #DEDEDE;
}

.tan-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}

.tan-search-btn--primary {
    background: #00467F;
    border: 0;
    color: #C4F0FF;
}

    .tan-search-btn--primary:hover {
        background: #CCEAF7;
        color: #00467F;
    }

.tan-search-btn--secondary {
    background: #E7F9FF;
    border: 1px solid #DEDEDE;
    color: #00467F;
}

    .tan-search-btn--secondary:hover {
        background: #DEDEDE;
    }

body.tan-search-modal-open {
    overflow: hidden;
}

/* ---------- Legacy all.css conflicts (found by rendering against the real all.css) ---------- */
/* Global "button span / [class*=btn-] span { display:block; padding:10px 15px 8px; color:#fff }" -
   made the Filters/Search/modal button text white and offset (invisible on mobile). */
.tan-search .tan-search__pill span,
.tan-search .tan-search__submit button span,
.tan-search-modal button span {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    visibility: visible !important;
    text-indent: 0 !important;
}

    .tan-search .tan-search__pill .tan-icon,
    .tan-search-modal button .tan-icon {
        display: inline-block !important;
        font-family: 'tan-icomoon' !important;
        font-size: 22px !important;
        line-height: 1 !important;
        color: #00467F !important;
    }

/* ".vaca-inventory-base { width:168px }" and friends (<=1179px) on the Excess Inventory wrapper */
.tan-search .tan-search__pill--excess {
    width: auto !important;
    vertical-align: middle;
}

    .tan-search .tan-search__pill--excess label.rg-check {
        margin-left: 0 !important;
    }

        .tan-search .tan-search__pill--excess label.rg-check:after {
            display: none !important;
        }

/* Tab icons (#home-tabs .searchbar:before / .searchtiles:before) */
.tan-search-hero #home-tabs .searchbar:before,
.tan-search-hero #home-tabs .searchtiles:before {
    display: none !important;
    content: none !important;
}

/* Orange calendar drawn on the month select2 box (.vaca-month-checkin-base ... .select2-selection--single:before) */
.tan-search .tan-search__control--month .select2-container .select2-selection--single:before,
.tan-search .tan-search__control--month .select2-container .select2-selection--single:after {
    display: none !important;
    content: none !important;
}

/* Placeholder text size (legacy placeholder rule shrank it) */
.tan-search #search #txt-search::-webkit-input-placeholder,
.tan-search #search #txt-search-base::-webkit-input-placeholder {
    font-size: 20px !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-weight: 400 !important;
}

.tan-search #search #txt-search::placeholder,
.tan-search #search #txt-search-base::placeholder {
    font-size: 20px !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Legacy underline/indent on the amenities/activities headings */
.tan-search-modal .tan-search-modal__group-title {
    text-decoration: none !important;
    padding: 0 !important;
}

/* The pill span reset above must not un-hide or restyle the tooltip / screen-reader text */
.tan-search .tan-search__pill .tan-search__tooltip {
    display: none !important;
    padding: 5px 10px !important;
    background: #F0F0F0 !important;
    color: #100F0F !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.tan-search .tan-search__pill .tan-search__info:hover .tan-search__tooltip,
.tan-search .tan-search__pill .tan-search__info:focus .tan-search__tooltip {
    display: block !important;
}

.tan-search .tan-search__pill .visuallyhidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* Legacy mobile chevrons on the tab links; Excess Inventory pill must stay on one line */
.tan-search-hero #home-tabs .grouped-tabs .home-tab > a:before,
.tan-search-hero #home-tabs .grouped-tabs .home-tab > a:after {
    display: none !important;
    content: none !important;
}

.tan-search .tan-search__pill--excess {
    flex-wrap: nowrap !important;
    flex-direction: row !important; /* legacy .vaca-inventory-base.radio-group goes column on small screens */
    align-items: center !important;
}

    .tan-search .tan-search__pill--excess label.rg-check {
        width: auto !important;
        flex: 0 0 auto !important;
    }

/* ---------- Minimized search on content pages (2026-09-23, Mike) ----------
   Full bar: Home, Search Results, Resort detail, resort-not-found. Every other page (Destinations,
   Locations, Info Center, FAQ, CMS pages, ...) shows only a "Search vacations" pill; clicking it adds
   .is-expanded (tan-search.js) and the compact bar appears in place. Decided by body class so there is
   no flash of the full bar. (Hilton Head showed the remembered Search Tiles grid pushing the page
   content ~3 screens down - the trigger for this.) */
.tan-search-hero__toggle {
    display: none;
}

body:not(.page-home):not(.page-search):not(.page-product):not(.pages-resort404) .tan-search-hero .tan-search-hero__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 10px 22px;
    background: #E7F9FF;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #00467F;
    cursor: pointer;
    transition: background-color .3s;
}

    body:not(.page-home):not(.page-search):not(.page-product):not(.pages-resort404) .tan-search-hero .tan-search-hero__toggle:hover {
        background: #DEDEDE;
    }

    body:not(.page-home):not(.page-search):not(.page-product):not(.pages-resort404) .tan-search-hero .tan-search-hero__toggle .tan-icon {
        font-size: 20px;
        color: #00467F;
    }

/* Legacy "button span {display:block; padding; color:#fff}" */
.tan-search-hero .tan-search-hero__toggle span {
    display: inline-block !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

.tan-search-hero__toggle-caret {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #00467F;
    transition: transform .2s;
}

.tan-search-hero.is-expanded .tan-search-hero__toggle-caret {
    transform: rotate(180deg);
}

body:not(.page-home):not(.page-search):not(.page-product):not(.pages-resort404) .tan-search-hero:not(.is-expanded) #home-tabs {
    display: none !important;
}

body:not(.page-home):not(.page-search):not(.page-product):not(.pages-resort404) .home-tabs-container.tan-search-hero {
    margin: 0 auto !important;
}

/* 2026-11-13: agent-only Inventory select (views/Search/_SearchAgentFilters) - reuses the month select
   styling, minus the leading icon, so its text starts at the normal left padding. */
.tan-search .tan-search__control--inventory .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 16px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .tan-search__field--location { flex: 1 1 100%; }
    .tan-search__field--month    { flex: 1 1 220px; }
}

@media (max-width: 991px) {
    body.page-home .home-tabs-container.tan-search-hero {
        padding: 84px 0 32px;
    }

    body.page-home .tan-search-hero__heading {
        font-size: 37px;
        line-height: 1;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .tan-search__row {
        gap: 16px;
    }

        .tan-search__row > *,
        .tan-search .tan-search__pill,
        .tan-search .tan-search__submit,
        .tan-search .tan-search__submit #btnVaca {
            flex: 1 1 100% !important;
            width: 100% !important;
        }

    .tan-search-hero #home-tabs .grouped-tabs {
        display: flex !important;
    }

    .tan-search-hero #home-tabs .grouped-tabs .home-tab {
        flex: 1 1 0 !important;
        text-align: center;
    }

    /* Mobile decision (2026-09-23): the form always shows; responsive.js no longer hides it */
    .tan-search #search-area {
        display: block !important;
    }
}


/* =====================================================================================
   Search Tiles tab - regions -> states/zones (2026-10-06)
   Markup/behavior: Views/Shared/_SearchTilesRegions.cshtml (inside HeaderBanner's #tilesTabContent).
   Scoped under .tan-regions; the legacy global "button" / "button span" rules in all.css
   (dark background, 10px 15px span padding, white span text) are overridden explicitly below.
   ===================================================================================== */
.tan-regions {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    font-family: 'Roboto', Arial, sans-serif;
    color: #343434;
    text-align: left;
}

    .tan-regions .tan-regions__title {
        margin: 0 0 6px;
        font-family: 'Roboto', Arial, sans-serif;
        font-size: 26px;
        font-weight: 500;
        line-height: 1.2;
        color: #00467F;
        text-transform: none;
    }

    .tan-regions .tan-regions__intro {
        margin: 0 0 20px;
        font-size: 16px;
        color: #757575;
    }

    .tan-regions .tan-regions__header {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 20px;
    }

        .tan-regions .tan-regions__header .tan-regions__title {
            margin: 0;
        }

    .tan-regions .tan-regions__back {
        display: inline-block;
        padding: 8px 16px;
        background: #E7F9FF;
        border: 1px solid #DEDEDE;
        border-radius: 10px;
        font-family: 'Roboto', Arial, sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: #00467F;
        cursor: pointer;
    }

        .tan-regions .tan-regions__back:hover {
            background: #C4F0FF;
        }

    .tan-regions .tan-regions__grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 16px;
    }

    .tan-regions .tan-region-tile {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 4px;
        min-height: 150px;
        margin: 0;
        padding: 16px 18px;
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        /* photo comes from the tile's inline style (background-image / background-position) */
        background-color: #00467F;
        background-size: cover;
        background-repeat: no-repeat;
        box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.12);
        font-family: 'Roboto', Arial, sans-serif;
        font-size: 16px;
        text-align: left;
        text-decoration: none;
        color: #fff;
        cursor: pointer;
        transition: transform .15s ease, box-shadow .15s ease;
    }

        /* dark fade up from the bottom so the white label stays readable on any photo */
        .tan-regions .tan-region-tile:before {
            content: "";
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            background: linear-gradient(to top, rgba(0, 20, 40, 0.82) 0%, rgba(0, 20, 40, 0.35) 55%, rgba(0, 20, 40, 0.05) 100%);
            transition: opacity .15s ease;
        }

        .tan-regions .tan-region-tile:hover,
        .tan-regions .tan-region-tile:focus {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.25);
            color: #fff;
            text-decoration: none;
        }

        .tan-regions .tan-region-tile span {
            position: relative; /* above the :before fade */
            display: block;
            padding: 0 !important;
            background: none;
            color: inherit;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
            transition: none;
        }

    .tan-regions .tan-region-tile__name {
        font-size: 21px;
        font-weight: 500;
        line-height: 1.2;
    }

    .tan-regions .tan-region-tile__meta {
        font-size: 14px;
        opacity: .9;
    }

    /* "View all <region> availability" - the lead tile on each region's state/zone view: same photo,
       blue-tinted with a white/blue ring so it reads as the "everything" option */
    .tan-regions .tan-region-tile--all {
        border: 3px solid #fff;
        box-shadow: 0 0 0 2px #00467F, 0 5px 10px 0 rgba(0, 0, 0, 0.12);
    }

        .tan-regions .tan-region-tile--all:before {
            background: linear-gradient(to top, rgba(0, 70, 127, 0.92) 0%, rgba(0, 70, 127, 0.6) 100%);
        }

        .tan-regions .tan-region-tile--all:hover,
        .tan-regions .tan-region-tile--all:focus {
            box-shadow: 0 0 0 2px #00467F, 0 8px 16px 0 rgba(0, 0, 0, 0.25);
        }

    /* A zone with no working search yet (_SearchTilesRegions.cshtml NotWorking): dimmed, not clickable,
       with a red "Not working" overlay on top of the photo */
    .tan-regions .tan-region-tile--disabled {
        cursor: not-allowed;
    }

        .tan-regions .tan-region-tile--disabled:before {
            background: linear-gradient(to top, rgba(20, 20, 20, 0.88) 0%, rgba(20, 20, 20, 0.7) 100%);
        }

        .tan-regions .tan-region-tile--disabled:hover,
        .tan-regions .tan-region-tile--disabled:focus {
            transform: none;
            box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.12);
        }

    .tan-regions .tan-region-tile .tan-region-tile__note {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        transform: translate(-50%, -80%);
        padding: 6px 16px !important;
        border-radius: 20px;
        background: #B3261E;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .3px;
        white-space: nowrap;
        text-shadow: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    }

@media only screen and (max-width: 640px) {
    .tan-regions {
        padding: 16px;
    }

        .tan-regions .tan-regions__grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 12px;
        }

        .tan-regions .tan-region-tile {
            min-height: 120px;
            padding: 12px 14px;
        }

        .tan-regions .tan-region-tile__name {
            font-size: 18px;
        }
}
