/* ==========================================================================
   Ferholix — home page (index.php) styles. Loaded via $page_css on top of the
   shared ferholix.css. Shared utilities (.wrap/.section/.eyebrow/.btn--ghost/
   .ph-* / .listing-card) now live in ferholix.css. Mobile-first; 375 / 390px.
   ========================================================================== */

/* ============================================================== HERO ===== */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--ink);
}
.hero__track { position: absolute; inset: 0; }

.hero__slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .8s var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Even, bottom-heavier darkening so centered copy + the search bar stay legible. */
.hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11,11,10,.5) 0%, rgba(11,11,10,.4) 38%, rgba(11,11,10,.78) 100%);
}

/* Centered hero copy: headline -> glass play button -> subtitle. */
.hero__content {
    position: relative; z-index: 2;
    width: min(var(--wrap), 100%); margin-inline: auto; min-width: 0;
    max-width: 860px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    padding: calc(var(--header-h) + 1rem) clamp(1rem, 4vw, 2rem) clamp(9rem, 22vw, 12rem);
}
.hero__title {
    font-size: clamp(2rem, 5.6vw, 4rem); line-height: 1.1; margin: 0;
    color: var(--cream); overflow-wrap: break-word; font-weight: 500;
}
.hero__title-accent { display: block; color: var(--gold); }
.hero__sub {
    margin: 1.5rem 0 0; color: var(--cream-dim);
    font-size: clamp(1rem, 2.2vw, 1.2rem); letter-spacing: .04em;
}

/* Glass play button (now in-flow, centered under the headline) */
.hero__play {
    margin: clamp(1.5rem, 4vw, 2rem) 0 0;
    width: 74px; height: 74px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; color: var(--cream);
    background: rgba(244, 241, 234, .12);
    border: 1px solid rgba(244, 241, 234, .35);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.hero__play:hover { background: rgba(217, 168, 74, .9); color: var(--ink); transform: scale(1.05); }
.hero__play-icon { margin-left: 3px; }

/* Booking search bar */
.hero-search {
    position: absolute; z-index: 4; left: 50%; transform: translateX(-50%);
    bottom: clamp(3.5rem, 8vw, 4.5rem); width: min(940px, 92%);
    display: grid; grid-template-columns: 1fr; gap: 1px;
    background: rgba(11, 11, 10, .82); border: 1px solid rgba(244, 241, 234, .12);
    border-radius: 12px; overflow: hidden;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-search__field { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1.1rem; text-align: left; }
.hero-search__field label {
    color: var(--gold); font-size: .72rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.hero-search__field input,
.hero-search__field select {
    font: inherit; font-size: .95rem; color: var(--cream);
    background: transparent; border: 0; border-bottom: 1px solid rgba(244,241,234,.22);
    padding: .35rem .1rem; width: 100%;
}
.hero-search__field input:focus,
.hero-search__field select:focus { outline: none; border-bottom-color: var(--gold); }
.hero-search__field select option { background: var(--ink-2); color: var(--cream); }
/* date inputs: lighten the native picker icon on dark */
.hero-search__field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.hero-search__btn {
    border: 0; cursor: pointer; background: var(--gold); color: var(--ink);
    font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    font-size: .95rem; padding: 1rem 1.5rem;
    transition: background-color .2s var(--ease);
}
.hero-search__btn:hover { background: var(--gold-dim); }

/* Arrows (hidden — reference has none; kept in DOM for keyboard/JS) */
.hero__arrow { display: none; }

.hero__dots {
    position: absolute; z-index: 4; left: 50%; transform: translateX(-50%);
    bottom: clamp(1.1rem, 3vw, 1.75rem); display: flex; gap: .55rem;
}
.hero__dot {
    width: 10px; height: 10px; border-radius: 50%; cursor: pointer; padding: 0;
    background: rgba(244,241,234,.4); border: 0;
    transition: background-color .2s var(--ease), width .2s var(--ease);
}
.hero__dot.is-active { background: var(--gold); width: 26px; border-radius: 6px; }

@media (min-width: 720px) {
    .hero-search { grid-template-columns: 1fr 1fr 1.2fr auto; gap: 0; }
    .hero-search__field + .hero-search__field,
    .hero-search__field + .hero-search__btn { border-left: 1px solid rgba(244,241,234,.12); }
}

/* Mobile: anchor copy to the top; compact 3-row search bar (dates side-by-side). */
@media (max-width: 719px) {
    .hero__slide { align-items: flex-start; }
    .hero__content {
        justify-content: flex-start;
        padding: calc(var(--header-h) + 1rem) 1rem 0;
    }
    .hero__title { font-size: clamp(1.6rem, 8vw, 2.3rem); }
    .hero__play { width: 54px; height: 54px; margin-top: 1rem; }
    .hero__play svg { width: 20px; height: 20px; }
    .hero__sub { margin-top: .85rem; font-size: .92rem; }

    .hero-search {
        bottom: 2.75rem;
        grid-template-columns: 1fr 1fr; gap: 0;
    }
    .hero-search__field { padding: .55rem .9rem; }
    .hero-search__field label { font-size: .64rem; }
    .hero-search__field:nth-child(1) { border-right: 1px solid rgba(244,241,234,.12); }
    .hero-search__field:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(244,241,234,.12); }
    .hero-search__btn { grid-column: 1 / -1; padding: .85rem 1.5rem; }
}
/* Very short viewports (below any real phone): drop the play button so the copy
   and search bar never collide. */
@media (max-width: 719px) and (max-height: 640px) {
    .hero__play { display: none; }
}

/* ============================================================ WELCOME ==== */
.welcome__inner { max-width: 60ch; margin-inline: auto; text-align: center; }
.welcome__lead { color: var(--cream-dim); font-size: 1.08rem; margin: 0; }

/* .pillars/.pillar are shared (ferholix.css). */

/* ================================================== LISTINGS (preview) ==== */
/* The card itself is shared (ferholix.css); this is only the home preview grid. */
.listings__grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
    max-width: 460px; margin-inline: auto;
}
.listings__more { text-align: center; margin-top: 2rem; }

/* ======================================================= VIDEO BANNER ==== */
.video-banner {
    position: relative; text-align: center;
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: linear-gradient(135deg, #12110f, #2a2318 60%, #4a3c20);
}
.video-banner__scrim { position: absolute; inset: 0; background: rgba(11,11,10,.5); }
.video-banner__inner { position: relative; z-index: 2; }
.video-banner__title { font-size: clamp(1.6rem, 4.5vw, 2.6rem); margin: 0 0 1.5rem; max-width: 22ch; margin-inline: auto; }
.video-banner__play {
    width: 78px; height: 78px; border-radius: 50%; cursor: pointer;
    display: inline-grid; place-items: center; color: var(--ink);
    background: var(--gold); border: 0;
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.video-banner__play:hover { transform: scale(1.06); background: var(--gold-dim); }
.video-banner__play svg { margin-left: 4px; }

/* =========================================================== FEATURES ==== */
.feature-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.feature-row + .feature-row { margin-top: clamp(2.5rem, 6vw, 4rem); }
.feature-row__media {
    aspect-ratio: 4 / 3; border-radius: var(--radius);
    background-size: cover; background-position: center;
}
.feature-row__title { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 .75rem; }
.feature-row__body p { color: var(--cream-dim); margin: 0 0 1.25rem; }

@media (min-width: 820px) {
    .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .feature-row--reverse .feature-row__media { order: 2; }
}

/* ========================================================== AMENITIES ==== */
/* .amenity / .amenity__icon are shared (ferholix.css); this is only the layout. */
.amenities__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}

@media (min-width: 620px) { .amenities__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .amenities__grid { grid-template-columns: repeat(6, 1fr); } }

/* ======================================================== TESTIMONIAL ==== */
.testimonial__inner { max-width: 56ch; margin-inline: auto; text-align: center; }
.testimonial__stars { display: inline-flex; gap: .25rem; color: var(--gold); margin-bottom: 1.25rem; }
.testimonial__star { fill: var(--gold); }
.testimonial__quote {
    font-family: var(--font-display); font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    line-height: 1.35; margin: 0 0 1.25rem; color: var(--cream);
}
.testimonial__by { color: var(--cream-dim); margin: 0; }

/* =========================================================== BLOG GRID === */
.blog__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.blog-card {
    background: var(--ink); border: 1px solid rgba(244,241,234,.08);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.section--alt .blog-card { background: var(--ink-2); }
.blog-card:hover { border-color: rgba(217,168,74,.4); transform: translateY(-3px); }
.blog-card__media { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--ink-2); }
.blog-card__body { padding: 1.25rem; }
.blog-card__cat { color: var(--gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.blog-card__title { font-size: 1.2rem; margin: .5rem 0 .9rem; }
.blog-card__title a:hover { color: var(--gold); }
.blog-card__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--cream-dim); font-size: .9rem; font-weight: 600; }

@media (min-width: 780px) { .blog__grid { grid-template-columns: repeat(3, 1fr); } }

/* .cta-band is shared (ferholix.css). */

/* ========================================================= VIDEO MODAL === */
.video-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.video-modal[hidden] { display: none; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.video-modal__box {
    position: relative; z-index: 2; width: min(900px, 92vw);
    aspect-ratio: 16 / 9; background: var(--ink-2);
    border: 1px solid rgba(217,168,74,.25); border-radius: var(--radius);
    display: grid; place-items: center; overflow: hidden;
}
.video-modal__close {
    position: absolute; top: -14px; right: -14px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold); color: var(--ink); border: 0; cursor: pointer;
    display: grid; place-items: center;
}
.video-modal__x { font-size: 1.6rem; line-height: 1; }
.video-modal__frame { width: 100%; height: 100%; display: grid; place-items: center; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__todo { color: var(--cream-dim); padding: 1rem; text-align: center; }
