/* ═══════════════════════════════════════════════════════════
   STAYS — curated showcase
   Immersive hero · partner band · per-resort showcases
   Tokens come from styles.css (:root)
   ═══════════════════════════════════════════════════════════ */

/* ─── Immersive page hero ─────────────────────────────────── */
.stx-hero {
    position: relative;
    isolation: isolate;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: var(--gray-900);
}

.stx-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.06);
    animation: stx-hero-drift 24s ease-in-out infinite alternate;
}

@keyframes stx-hero-drift {
    from { transform: scale(1.06) translateY(0); }
    to   { transform: scale(1.12) translateY(-1.5%); }
}

.stx-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(11, 21, 31, 0.62) 0%,
            rgba(11, 21, 31, 0.30) 48%,
            rgba(11, 21, 31, 0.05) 100%),
        linear-gradient(180deg,
            rgba(11, 21, 31, 0.30) 0%,
            rgba(11, 21, 31, 0.15) 35%,
            rgba(11, 21, 31, 0.72) 100%);
}

.stx-hero__inner {
    width: 100%;
    padding: 9rem 0 4.5rem;
}

.stx-hero .breadcrumb-item,
.stx-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
}

.stx-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.55);
}

/* The "/" divider inherits Bootstrap's near-black --bs-breadcrumb-divider-color
   (rgba(33,37,41,.75)), which is unreadable ink on this dark hero photo. */
.stx-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.stx-hero__label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.stx-hero__label::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--accent-sun);
}

.stx-hero__title {
    font-family: 'LibreBodoni', serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 1rem 0 1.25rem;
    color: #fff;
    text-shadow: 0 2px 30px rgba(11, 21, 31, .35);
}

.stx-hero__title em {
    font-style: italic;
    color: var(--accent-sun);
}

.stx-hero__lead {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.stx-hero__actions .btn-light {
    border: 0;
}

/* Island jump chips */
.stx-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.25rem;
}

.stx-jump__link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .45rem 1.1rem .45rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.stx-jump__link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.stx-jump__thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.65);
}

/* ─── Value props strip ───────────────────────────────────── */
.stx-values {
    margin-top: -3.5rem;
    position: relative;
    z-index: 2;
}

.stx-values__card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px -18px rgba(11, 45, 62, .25);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.stx-values__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .10);
}

.stx-values__card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.stx-values__card p {
    font-size: .87rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ─── Resort showcase sections ────────────────────────────── */
.stx-resort {
    padding: 5.5rem 0;
    scroll-margin-top: 90px;
}

.stx-resort + .stx-resort {
    border-top: 1px solid var(--border-light);
}

.stx-resort__index {
    font-family: 'LibreBodoni', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--accent-warm);
    letter-spacing: .08em;
}

.stx-resort__name {
    font-family: 'LibreBodoni', serif;
    font-weight: 500;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: .5rem 0 .75rem;
    text-wrap: balance;
}

.stx-resort__stars {
    color: var(--accent-gold);
    font-size: .8rem;
    letter-spacing: .15em;
    white-space: nowrap;
}

.stx-resort__chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), .55);
}

.stx-resort__tagline {
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
}

/* signature USPs */
.stx-usps {
    display: grid;
    gap: .9rem;
    margin: 1.75rem 0;
    padding: 0;
    list-style: none;
}

.stx-usps li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.stx-usps__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .09);
    border: 1px solid rgba(var(--accent-rgb), .14);
}

.stx-usps li strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
}

.stx-usps li span {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* villa line-up + dining */
.stx-detail-block {
    margin-bottom: 1.4rem;
}

.stx-detail-block__label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

.stx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.stx-pills li {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: .38rem .9rem;
}

.stx-dining-line {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.stx-dining-line strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* CTA row */
.stx-resort__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.9rem;
}

.stx-resort__rate {
    font-size: .84rem;
    color: var(--text-muted);
    width: 100%;
    margin: .25rem 0 0;
}

.stx-resort__rate strong {
    color: var(--text);
    font-size: 1rem;
}

/* fact strip */
.stx-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 1.1rem;
    overflow: hidden;
    margin-top: 3rem;
}

.stx-facts__item {
    background: var(--white);
    padding: 1.1rem 1rem;
    text-align: center;
}

.stx-facts__item i {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: .4rem;
    display: block;
}

.stx-facts__value {
    display: block;
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--text);
}

.stx-facts__label {
    font-size: .76rem;
    color: var(--text-muted);
}

/* ─── Interactive gallery ─────────────────────────────────── */
.stx-gallery {
    position: relative;
}

.stx-gallery__stage {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    box-shadow: 0 30px 70px -30px rgba(11, 45, 62, .45);
    background: var(--bg-tertiary);
}

.stx-gallery__stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .5s ease, transform .9s ease;
}

.stx-gallery__stage img.is-active {
    opacity: 1;
    transform: scale(1);
}

.stx-gallery__badge {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 2;
    background: rgba(11, 21, 31, .55);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: .35rem .85rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* One column per photo, so a three-photo gallery still fills the row from
   edge to edge; the old hard repeat(5) left the trailing slots hanging once
   the sets were trimmed for the listing. */
.stx-gallery__thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: .6rem;
    margin-top: .6rem;
}

.stx-gallery__thumbs button {
    border: 0;
    padding: 0;
    border-radius: .8rem;
    overflow: hidden;
    aspect-ratio: 1 / .78;
    position: relative;
    outline: 2px solid transparent;
    outline-offset: 2px;
    opacity: .65;
    transition: opacity .25s ease, outline-color .25s ease, transform .25s ease;
}

.stx-gallery__thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stx-gallery__thumbs button:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.stx-gallery__thumbs button.is-active {
    opacity: 1;
    outline-color: var(--accent);
}

/* overlapping card on the gallery */
.stx-gallery__float {
    position: absolute;
    top: 1.4rem;
    right: -0.9rem;
    z-index: 3;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 1rem;
    box-shadow: 0 18px 40px -18px rgba(11, 45, 62, .4);
    padding: .85rem 1.15rem;
    text-align: center;
}

.stx-gallery__float strong {
    display: block;
    font-family: 'LibreBodoni', serif;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--accent-dark);
}

.stx-gallery__float span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ─── "Find your island" matcher ──────────────────────────── */
.stx-match {
    background: linear-gradient(160deg, #0b2b33 0%, #0d3d47 55%, #0f4c55 100%);
    color: #fff;
}

.stx-match__card {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1.25rem;
    padding: 1.6rem;
    text-decoration: none;
    color: #fff;
    transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.stx-match__card:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    transform: translateY(-4px);
}

.stx-match__card i {
    font-size: 1.3rem;
    color: var(--accent-sun);
    margin-bottom: .9rem;
    display: block;
}

.stx-match__card h3 {
    font-family: 'LibreBodoni', serif;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: .3rem;
    color: #fff;
}

.stx-match h2 {
    color: #fff;
}

.stx-match__card .stx-match__for {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
    margin-bottom: .9rem;
}

.stx-match__card p {
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 1rem;
}

.stx-match__go {
    font-size: .84rem;
    font-weight: 700;
    color: var(--accent-sun);
}

/* ─── Reveal on scroll (JS-gated so no-JS still shows content) ── */
.stx-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js .stx-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .stx-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .stx-hero__bg { animation: none; }
    .stx-reveal, .js .stx-reveal { opacity: 1; transform: none; transition: none; }
    .stx-gallery__stage img { transition: none; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .stx-hero { min-height: 78vh; }
    .stx-hero__inner { padding: 7rem 0 4rem; }
    .stx-resort { padding: 3.75rem 0; }
    .stx-gallery__stage { aspect-ratio: 4 / 3; }
    .stx-gallery__float { right: .8rem; top: .8rem; padding: .65rem .9rem; }
    .stx-gallery__float strong { font-size: 1.1rem; }
    .stx-facts { grid-template-columns: repeat(2, 1fr); }
    .stx-resort__content { margin-bottom: 2.25rem; }
}

@media (max-width: 575.98px) {
    .stx-gallery__thumbs { gap: .4rem; }
    .stx-hero__lead { font-size: 1rem; }
}
