/* Hero v2 — faithful port of explorations/hero.html */
/* Loaded after homepage.css so it wins the cascade. */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0A1A1C;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* --- Hero image with parallax + quality enhancements --- */
.hero-img-wrap {
    position: absolute; inset: -50px 0 -150px 0;
    will-change: transform;
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.08) saturate(1.18) brightness(1.02);
    transform: scale(1.04);
    animation: hero-slow-drift 40s ease-in-out infinite alternate;
}
@keyframes hero-slow-drift {
    0%   { transform: scale(1.04) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* Color-grade pass */
.hero-grade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 200, 130, 0.10), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(20, 60, 70, 0.14), transparent 60%);
    mix-blend-mode: soft-light;
    pointer-events: none;
    opacity: 0.7;
}

/* --- Bottom scrim --- */
.hero-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

/* Cursor-follow gold haze */
.hero-haze {
    position: absolute; inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: background 0.4s ease-out;
}

/* Grain texture */
.hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
    opacity: 0.06;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
}

/* --- Content --- */
.hero-content {
    position: absolute; inset: 0; z-index: 6;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 0 40px 140px;
    max-width: none; /* override homepage.css .hero-content { max-width: 900px } */
}

.hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
    color: rgba(255,255,255,0.88); margin-bottom: 32px;
}
.hero-eyebrow-dot { color: #C9A962; font-size: 7px; }
.hero-eyebrow-hairline {
    width: 64px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,98,0.6));
}
.hero-eyebrow-hairline--right {
    background: linear-gradient(90deg, rgba(201,169,98,0.6), transparent);
}

.hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.012em;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45), 0 8px 40px rgba(0,0,0,0.7);
    max-width: 920px;
    position: relative;
}
.hero-h1::before {
    content: '';
    position: absolute;
    inset: -40px -80px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}
.hero-phrase-wrap {
    position: relative; display: inline-block;
    min-width: 11ch;
    height: 1.1em; vertical-align: baseline;
}
.hero-phrase {
    position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    font-style: italic;
    font-weight: 500;
    color: #F5E4B0;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 6px 30px rgba(0,0,0,0.6);
}
.hero-phrase.is-active { opacity: 1; }

.hero-rule {
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, #C9A962, transparent);
    margin: 34px auto 22px;
}

.hero-sub {
    font-size: 15px; line-height: 1.75; font-weight: 400;
    color: #fff; max-width: 660px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 4px 24px rgba(0,0,0,0.6);
    position: relative;
}
.hero-sub::before {
    content: '';
    position: absolute;
    inset: -16px -48px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}
.hero-sub strong {
    color: #E8C77A; font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* --- Live ticker --- */
.hero-ticker {
    position: absolute; bottom: 152px; left: 50%; transform: translateX(-50%); z-index: 8;
    display: flex; align-items: center; gap: 14px;
    background: rgba(10, 26, 28, 0.55); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 9px 20px 9px 12px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
    color: rgba(255,255,255,0.92);
    min-width: 440px;
}
.hero-ticker-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 8px;
    background: rgba(127,219,164,0.12);
    border-radius: 50px;
    border: 1px solid rgba(127,219,164,0.25);
    flex-shrink: 0;
}
.hero-ticker-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7FDBA4;
    box-shadow: 0 0 0 3px rgba(127,219,164,0.3);
    animation: hero-pulse-green 2s infinite;
}
@keyframes hero-pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(127,219,164,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(127,219,164,0); }
    100% { box-shadow: 0 0 0 0 rgba(127,219,164,0); }
}
.hero-ticker-label { color: #7FDBA4; font-size: 9.5px; }
.hero-ticker-stage {
    position: relative; flex: 1; height: 16px; overflow: hidden;
}
.hero-ticker-fact {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.hero-ticker-fact.is-active { opacity: 1; }
.hero-ticker-k { color: rgba(255,255,255,0.6); }
.hero-ticker-v { color: #fff; font-weight: 500; }

/* --- Booking bar (cream pill) --- */
.hero-booking {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9;
    background: rgba(245, 238, 214, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 16px 18px 16px 28px;
    border-radius: 72px;
    border: 1px solid rgba(201,169,98,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: calc(100vw - 48px);
}
.hero-booking-inner {
    display: flex; align-items: center; gap: 24px;
}
.hero-booking-field {
    color: #2A2A2A; min-width: 0; position: relative;
    background: transparent; border: none; padding: 0; text-align: left;
    font-family: inherit; cursor: pointer;
}
.hero-booking-field--display { cursor: default; }
.hero-booking-field--primary { padding-right: 8px; }
.hero-booking-label {
    font-size: 9px; letter-spacing: 0.28em;
    color: #8A7A4A; font-weight: 600; text-transform: uppercase;
    display: block;
}
.hero-booking-value {
    font-size: 13.5px; font-weight: 500; margin-top: 3px; color: #2A2A2A;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.hero-booking-region { font-weight: 600; }
.hero-booking-caret { font-size: 10px; color: #8A7A4A; }
.hero-booking-value--empty { color: #8A8A8A; font-weight: 400; }
.hero-booking-hint {
    position: absolute; bottom: calc(100% + 2px); left: 0;
    font-size: 9px; color: #4A7A5A; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.hero-booking-hint::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: #6BAE7A; box-shadow: 0 0 6px rgba(107,174,122,0.5);
    animation: hero-pulse-soft 2s ease-in-out infinite;
}
@keyframes hero-pulse-soft {
    0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
}
.hero-booking-sep {
    width: 1px; height: 32px; background: rgba(0,0,0,0.12); flex-shrink: 0;
}
.hero-booking-cta {
    padding: 14px 28px; border-radius: 50px;
    background: #2A4B4D; color: #fff; border: none;
    font-family: inherit; font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    position: relative; white-space: nowrap;
}
.hero-booking-cta::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50px; border: 1px solid rgba(201,169,98,0.45);
    pointer-events: none;
}
.hero-booking-cta:hover { background: #1F3A3C; }

/* --- Scroll indicator --- */
.hero-scroll {
    position: absolute; bottom: 40px; left: 56px; z-index: 7;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.7);
}
.hero-scroll-line {
    width: 1px; height: 32px;
    background: linear-gradient(180deg, transparent, #C9A962);
    animation: hero-drop 2.5s ease-in-out infinite;
}
@keyframes hero-drop {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-text {
    font-size: 9.5px; letter-spacing: 0.3em; font-weight: 600;
}

/* --- Tablet/small-desktop (641-1100): compact horizontal pill, lift above mobile-cta-bar --- */
@media (max-width: 1100px) and (min-width: 641px) {
    .hero-booking { padding: 12px 14px 12px 22px; }
    .hero-booking-inner { gap: 14px; }
    .hero-booking-field { padding-right: 0; }
    .hero-booking-cta { padding: 12px 22px; font-size: 10.5px; }
    .hero-ticker { min-width: 0; width: auto; max-width: calc(100vw - 48px); padding: 8px 16px 8px 10px; }
    .hero-ticker-stage { min-width: 300px; }
}

/* The site ships a fixed .mobile-cta-bar at <=768px. Lift hero pieces above it. */
@media (max-width: 768px) {
    .hero-booking { bottom: 96px; }
    .hero-ticker { bottom: 196px; }
}

/* --- Mobile (<=640): stack pill, tighten chrome --- */
@media (max-width: 640px) {
    .hero-content { padding: 0 24px 360px; }
    .hero-eyebrow {
        gap: 8px;
        font-size: 9px;
        letter-spacing: 0.18em;
        margin-bottom: 24px;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    .hero-eyebrow > span { white-space: nowrap; }
    .hero-eyebrow-hairline,
    .hero-eyebrow-hairline--right { display: none; }
    .hero-eyebrow-dot { font-size: 6px; }
    .hero-h1 { font-size: clamp(34px, 9vw, 44px); max-width: 14ch; }
    .hero-sub { font-size: 14px; padding: 0 8px; }
    .hero-sub::before { inset: -10px -16px; }

    .hero-booking {
        bottom: 86px;
        padding: 12px;
        border-radius: 24px;
        width: calc(100vw - 24px);
    }
    .hero-booking-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
        align-items: stretch;
    }
    .hero-booking-field { padding: 8px 4px; min-width: 0; }
    .hero-booking-field--primary {
        grid-column: 1 / -1;
        padding-right: 4px;
    }
    .hero-booking-sep { display: none; }
    .hero-booking-hint { position: static; margin: 0 0 4px; }
    .hero-booking-cta {
        grid-column: 1 / -1;
        padding: 14px;
        margin-top: 2px;
        font-size: 11px;
    }

    .hero-scroll { display: none; }
    .hero-ticker {
        bottom: 392px;
        min-width: 0;
        width: calc(100vw - 32px);
        padding: 8px 14px 8px 10px;
        font-size: 9.5px;
    }
    .hero-ticker-label { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-img,
    .hero-ticker-dot,
    .hero-booking-hint::before,
    .hero-scroll-line {
        animation: none;
    }

    .hero-phrase,
    .hero-ticker-fact,
    .hero-haze,
    .hero-booking-cta {
        transition: none;
    }

    .hero-img-wrap {
        will-change: auto;
    }
}

/* Hide the legacy .hero-* selectors that homepage.css ships, so they don't conflict */
.hero-bg, .hero-overlay, .hero-badge, .hero-title > span,
.search-container, .search-box {
    /* These are the old hero's helpers — replaced by hero-v2 markup. */
    /* If they appear inside our new .hero, they're not in the new tree. */
}

/* --- Booking bar interactivity (popovers, menus, stepper) --- */
.hero-booking-popover {
    background: #FFFDF6;
    color: #2A2A2A;
    border-radius: 18px;
    border: 1px solid rgba(201,169,98,0.32);
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    padding: 12px;
    min-width: 260px;
    max-width: 320px;
    font-family: 'Poppins', sans-serif;
    animation: hero-popover-in 0.18s ease-out;
}
@keyframes hero-popover-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-booking-menu {
    display: flex; flex-direction: column;
}
.hero-booking-menu-item {
    display: flex; justify-content: space-between; align-items: center;
    background: transparent; border: 0;
    padding: 11px 14px; border-radius: 10px;
    font: inherit; cursor: pointer; text-align: left;
    color: #2A2A2A;
    transition: background 0.15s;
}
.hero-booking-menu-item:hover { background: rgba(201,169,98,0.12); }
.hero-booking-menu-item[aria-current="true"] {
    background: rgba(42, 75, 77, 0.08);
    font-weight: 600;
}
.hero-booking-menu-label { font-size: 14px; }
.hero-booking-menu-count {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: #8A7A4A; font-weight: 600;
}
.hero-booking-datewrap {
    display: flex; flex-direction: column; gap: 8px; padding: 6px 8px;
}
.hero-booking-datewrap-label {
    font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
    color: #8A7A4A; font-weight: 600;
}
.hero-booking-dateinput {
    font: inherit; font-size: 15px;
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(201,169,98,0.4);
    background: #fff; color: #2A2A2A;
}
.hero-booking-stepper {
    padding: 6px 8px;
}
.hero-booking-stepper-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
}
.hero-booking-stepper-label {
    font-size: 14px; font-weight: 600;
}
.hero-booking-stepper-controls {
    display: flex; align-items: center; gap: 12px;
}
.hero-booking-stepper-controls button {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(201,169,98,0.45);
    background: #fff; color: #2A4B4D;
    font: inherit; font-size: 16px; line-height: 1;
    cursor: pointer; transition: all 0.15s;
}
.hero-booking-stepper-controls button:hover { background: rgba(201,169,98,0.12); }
.hero-booking-stepper-count {
    min-width: 24px; text-align: center; font-weight: 600;
}
.hero-booking-stepper-hint {
    margin: 10px 0 0; font-size: 11px; color: #8A7A4A;
}

/* Disabled CTA state */
.hero-booking-cta:disabled { background: #6A7E80; }
