/* ============================================
   HERO HOME — index.html only
   Link this file ONLY in index.html, after styles.css.

   In index.html <head>:
     <link rel="stylesheet" href="assets/css/styles.css">
     <link rel="stylesheet" href="assets/css/hero-home.css">

   In index.html section tag:
     <section class="hero-section hero-home" id="home">

   Search: add inside .hero-search div:
     <div class="search-dropdown" id="searchDropdown"></div>
   Then include hero-search.js before </body>
   ============================================ */

/* ---- Reset the generic hero styles ---- */
.hero-home {
    min-height: 100vh;
    background: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
}

.hero-home::before,
.hero-home::after {
    display: none !important;
}

.hero-home .hero-inner {
    display: none;
}

/* ============================================
   BACKGROUND SLIDES + KEN BURNS
   ============================================ */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.hero-bg.active {
    opacity: 1;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.10); }
}

/* ============================================
   DARK OVERLAY — gradient from top to bottom
   heavier at bottom for maximum text contrast
   ============================================ */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.10)  0%,
        rgba(0, 0, 0, 0.50) 40%,
        rgba(0, 0, 0, 0.72) 100%
    );
    z-index: 1;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   EYEBROW BADGE
   ============================================ */
.hero-home .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 0.5px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--r-pill);
    padding: 6px 16px;
    margin-bottom: 1.4rem;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* Subtle inner highlight + depth shadow */
    box-shadow:
        0 1px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
    animation: eyebrowPulse 2.4s ease-in-out infinite;
}

@keyframes eyebrowPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.30); }
    50%       { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.00); }
}

/* ============================================
   TAGLINE (small text above main title)
   ============================================ */
.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

/* ============================================
   MAIN TITLE — luxury pop treatment
   ============================================ */
.hero-home .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.02;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    /* Multi-layer shadow creates premium 3-D pop */
    text-shadow:
        0 1px 0   rgba(255, 255, 255, 0.15),
        0 2px 4px  rgba(0, 0, 0, 0.40),
        0 8px 24px rgba(0, 0, 0, 0.50),
        0 20px 60px rgba(0, 0, 0, 0.30);
}

.hero-home .hero-title em {
    font-style: italic;
    color: #FFD080; /* gold-light */
    text-shadow:
        0 0  30px rgba(255, 208, 128, 0.50),
        0 2px 4px  rgba(0, 0, 0, 0.40),
        0 8px 24px rgba(0, 0, 0, 0.50);
}

/* ============================================
   CYCLING DESTINATION LINE
   ============================================ */
.hero-dest-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    height: 3.6rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.dest-prefix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.60);
    flex-shrink: 0;
}

.dest-name-wrap {
    position: relative;
    overflow: hidden;
    height: 3.6rem;
    display: flex;
    align-items: center;
}

.dest-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    font-style: italic;
    /* Luxury gold gradient */
    background: linear-gradient(135deg, #FFD080 0%, var(--orange) 60%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    display: inline-block;
    filter: drop-shadow(0 3px 12px rgba(237, 153, 70, 0.45));
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
    padding-right: 0.18em;
}

.dest-name.exit  { transform: translateY(-110%) skewY(-3deg); opacity: 0; }
.dest-name.enter { transform: translateY( 110%) skewY( 3deg); opacity: 0; }

/* ============================================
   GLASS SEARCH BAR
   ============================================ */
.hero-home .hero-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: var(--r-pill);
    padding: 7px 7px 7px 20px;
    gap: 10px;
    margin-bottom: 1.2rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: border-color 220ms, background 220ms, box-shadow 220ms;
    position: relative; /* anchor for dropdown */
}

.hero-home .hero-search:focus-within {
    border-color: rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.search-icon-svg {
    flex-shrink: 0;
    opacity: 0.70;
}

.search-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.20);
    flex-shrink: 0;
}

.search-cat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 150ms;
    user-select: none;
}
.search-cat:hover { color: rgba(255, 255, 255, 0.95); }

.hero-home .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.90rem;
    color: #fff;
    min-width: 0;
}
.hero-home .search-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.hero-home .search-btn {
    padding: 0.62rem 1.5rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow:
        0 4px 16px rgba(201, 122, 42, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-home .search-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 28px rgba(201, 122, 42, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero-home .search-btn:active {
    transform: scale(0.97);
}

/* ============================================
   SEARCH DROPDOWN
   ============================================ */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(18, 18, 28, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    z-index: 2000;  /* ← CHANGE THIS FROM 100 TO 2000 */
    display: none;
    max-height: 420px;  /* ← INCREASE HEIGHT */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    text-align: left; 
}

/* ADD THIS NEW RULE */
.search-result-item {
    min-height: 48px;  /* Better tap target for mobile */
    display: flex;
    align-items: center;
}

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

.search-dropdown-section {
    padding: 10px 0 4px;
}

.search-dropdown-label {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    padding: 0 16px 6px;
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 150ms;
    text-decoration: none;
}
.search-result-item:hover,
.search-result-item.highlighted {
    background: rgba(255, 255, 255, 0.08);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.search-result-title {
    font-size: 0.87rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.2;
}

.search-result-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 2px;
}

.search-result-tag {
    margin-left: auto;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--orange);
    background: rgba(237, 153, 70, 0.15);
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-result-highlight {
    background: rgba(237, 153, 70, 0.22);
    color: #FFD080;
    border-radius: 2px;
    padding: 0 1px;
}

.search-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 4px 0;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.85rem;
}

/* ============================================
   DESTINATION PILLS
   ============================================ */
.hero-home .hero-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: opacity 200ms ease;
}

.dest-pill {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    padding: 6px 16px;
    border: 0.5px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.03em;
    transition: all 200ms var(--ease);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dest-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.dest-pill.active {
    background: rgba(237, 153, 70, 0.20);
    border-color: rgba(237, 153, 70, 0.50);
    color: #FFD080;
    font-weight: 600;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.hero-home .hero-scroll {
    color: rgba(255, 255, 255, 0.50);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.70rem;
}
.hero-home .scroll-dot {
    background: var(--orange);
    animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);  opacity: 1; }
    50%       { transform: translateY(8px); opacity: 0.4; }
}

/* ============================================
   STATS BAR — floats below hero
   ============================================ */
.hero-stats-bar {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    width: 90%;
    max-width: 1100px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
    border-radius: 18px;
}

.hero-stats-bar .stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.hero-stats-bar .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.5rem;
    text-align: center;
}

.hero-stats-bar .stat-icon-glyph {
    font-size: 0.60rem;
    color: var(--orange);
    margin-bottom: 4px;
    display: block;
    opacity: 0.80;
}

.hero-stats-bar .stat-num {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stats-bar .stat-num sup {
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--orange);
    font-weight: 700;
    vertical-align: super;
    line-height: 0;
}

.hero-stats-bar .stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-stats-bar .stat-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-home { min-height: 100vh; }
    .hero-content { padding: 0 1.25rem; }
    .hero-home .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
    .dest-prefix,
    .dest-name  { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
    .hero-dest-row,
    .dest-name-wrap { height: 2.8rem; }
    .search-cat { display: none; }
    .search-divider:first-of-type { display: none; }
    .hero-stats-bar .stats-inner { flex-wrap: wrap; }
    .hero-stats-bar .stat-item   { flex: 1 1 40%; }
    .hero-stats-bar .stat-sep    { display: none; }
}

@media (max-width: 480px) {
    .hero-home .hero-search { padding: 6px 6px 6px 14px; gap: 8px; }
    .hero-home .search-btn  { padding: 0.60rem 1.1rem; font-size: 0.82rem; }
    .dest-pill { font-size: 0.75rem; padding: 5px 13px; }
}
