/* =============================================================================
   HERO — Full viewport + custom search bar
   ============================================================================= */

.ac-hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    background: linear-gradient(135deg, var(--ac-primary) 0%, #252552 100%);
    /* overflow visible so search dropdowns aren't clipped */
}
.ac-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ac-hero-bg img,
.ac-hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.35); }

/* ── Search bar wrapper ─────────────────────────────────────────── */
.ac-hero-search-bar {
    position: absolute; bottom: 28px;
    left: 0; right: 0; z-index: 10;
    display: flex; justify-content: center;
    padding: 0 20px;
}
.ac-hero-search-inner {
    width: 90%; max-width: 1280px;
    display: flex; align-items: stretch;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0,0,0,.3);
    position: relative;
    min-height: 80px;
}

/* ── Individual column ──────────────────────────────────────────── */
.hs-col {
    flex: 2; position: relative;
    display: flex; flex-direction: column; justify-content: center;
    padding: 10px 20px; cursor: pointer;
    transition: background .15s;
    border-radius: 0;
}
.hs-col--sm { flex: 1.2; }
.hs-col:first-child { border-radius: 10px 0 0 10px; }
/* Keep border-radius on first col even when open — don't let bg overflow */
.hs-col:first-child.is-open,
.hs-col:first-child:hover { border-radius: 10px 0 0 10px; }
.hs-col:hover,
.hs-col.is-open { background: #f8f8f8; }

.hs-label {
    display: block; font-size: .6rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: #aaa; margin-bottom: 5px; pointer-events: none;
}
.hs-selected {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.hs-val {
    font-size: .9rem; font-weight: 600; color: #111;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-arrow {
    flex-shrink: 0; color: #aaa;
    transition: transform .2s;
}
.hs-col.is-open .hs-arrow { transform: rotate(180deg); }

/* Vertical divider between columns */
.hs-divider {
    width: 1px; background: #e8e8e8;
    align-self: stretch; margin: 12px 0; flex-shrink: 0;
}

/* ── Dropdown panel ─────────────────────────────────────────────── */
.hs-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 240px; max-width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    border: 1px solid rgba(0,0,0,.07);
    z-index: 300;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    overflow: hidden;
}
.hs-dropdown.open {
    opacity: 1; visibility: visible; pointer-events: all;
    transform: translateY(0);
}
.hs-dropdown--right { left: auto; right: 0; }

/* Search input inside dropdown */
.hs-search-wrap { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.hs-search {
    width: 100%; padding: 8px 12px;
    border: 1.5px solid #e8e8e8; border-radius: 6px;
    font-size: .85rem; color: #111; outline: none;
    transition: border-color .2s;
}
.hs-search:focus { border-color: var(--ac-accent); }

/* Dropdown list */
.hs-list {
    list-style: none; max-height: 240px; overflow-y: auto;
    padding: 6px 0;
}
.hs-list::-webkit-scrollbar { width: 4px; }
.hs-list::-webkit-scrollbar-track { background: transparent; }
.hs-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.hs-item {
    padding: 9px 16px; font-size: .88rem; color: #333; cursor: pointer;
    transition: background .12s, color .12s;
    display: flex; align-items: center; justify-content: space-between;
    user-select: none;
}
.hs-item:hover { background: #f5f5f5; color: #111; }
.hs-item.active {
    color: #111; font-weight: 600;
}
.hs-item.active::after {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ac-accent); flex-shrink: 0;
}

/* ── Submit button ──────────────────────────────────────────────── */
.hs-submit {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 0 28px;
    background: var(--ac-accent); color: #111;
    border: none; cursor: pointer;
    border-radius: 0 10px 10px 0;
    flex-shrink: 0;
    font-family: inherit; min-width: 110px; flex-shrink: 0;
    text-decoration: none;
    transition: filter .2s;
}
.hs-submit:hover { filter: brightness(1.07); color: #111; }
.hs-submit svg { margin-bottom: 2px; }
.hs-submit span {
    font-size: .72rem; font-weight: 800;
    letter-spacing: .18em; text-transform: uppercase; line-height: 1;
}
.hs-submit small {
    font-size: .6rem; font-weight: 600;
    letter-spacing: .1em; opacity: .65; line-height: 1;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ac-hero-search-inner {
        flex-wrap: wrap; border-radius: 10px;
        min-height: auto;
    }
    .hs-col, .hs-col--sm {
        flex: 1 1 calc(50% - 1px);
        border-bottom: 1px solid #eee;
        min-width: 0;
    }
    .hs-divider { display: none; }
    .hs-submit {
        flex: 1 1 100%; border-radius: 0 0 10px 10px;
        padding: 14px; flex-direction: row; gap: 10px;
        min-width: 0;
    }
    .hs-dropdown { min-width: 200px; }
}
@media (max-width: 540px) {
    .ac-hero-search-bar { bottom: 0; padding: 0; }
    .ac-hero-search-inner { width: 100%; border-radius: 0; }
    .hs-submit { border-radius: 0; }
    .hs-col:first-child { border-radius: 0; }
}