/* =========================================================
   Etna Lemon Sea - home page (loaded by Views/Home/Index.cshtml only)
   S1 hero, S2 facts, S3 scene, S4 proof, S5 bento, S6 gallery, S7 day,
   S8 spaces, S9 all year, S10 stays, S11 location, S12 why book here, S13 final call to action,
   and the three dialogs (dates, all photos, photo viewer).
   Motion: transform and opacity only; everything is static under prefers-reduced-motion.
   ========================================================= */

/* The home is long: a slightly tighter rhythm than the inner pages (same proportions) */
main {
    --section-y: clamp(64px, 8.5vw, 120px);
}

/* Sections far down the page are rendered when they get close */
.cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.section-intro {
    max-width: 860px;
    margin-bottom: clamp(28px, 4vw, 56px);
}

.section-intro .lead-copy {
    margin-bottom: 0;
}

.section-intro.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* two white sections in a row share one gap */
.bento-section + .gallery-section {
    padding-top: calc(var(--section-y) * .35);
}

.section-intro--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    max-width: none;
}

.section-intro--row .section-heading {
    margin-bottom: 0;
}

.section-intro--split {
    display: grid;
    gap: 1.25rem;
    max-width: none;
}

@media (min-width: 992px) {
    .section-intro--split {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 3rem;
    }

    .section-intro--split .guest-snippet {
        max-width: 22em;
        margin-bottom: .4rem;
    }
}

/* ---------- S1 Hero ---------- */
.hero {
    position: relative;
    display: flex;
    min-height: 640px;
    height: 100vh;
    height: 100svh;
    color: #fff;
    background: #2a5f93;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

/* Slideshow: 1.8 s cross-fade, slow Ken Burns zoom on the visible photo (site.js adds the other slides after load) */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: scale(1.04);
}

/* is-leaving keeps the zoom running while the photo fades out, so it never jumps back */
.hero-slide.is-active .hero-img,
.hero-slide.is-leaving .hero-img {
    animation: kenburns 9s ease-out forwards;
}

.hero-slide:nth-child(even) .hero-img {
    --kb-x: 1%;
    transform-origin: 70% 40%;
}

@keyframes kenburns {
    from { transform: scale(1.04); }
    to { transform: scale(1.14) translate3d(var(--kb-x, -1%), -1%, 0); }
}

.hero-dots {
    position: absolute;
    right: clamp(16px, 2.5vw, 32px);
    bottom: clamp(18px, 4vh, 36px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.hero-dots button {
    position: relative;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .5);
    transition: width .35s ease, background-color .35s ease;
}

.hero-dots button[aria-current="true"] {
    width: 28px;
    background: var(--lemon);
}

/* a larger hit area without changing the dot */
.hero-dots button::after {
    content: "";
    position: absolute;
    inset: -10px -4px;
}

/* Phones: a column on the right edge, over the photo, clear of the booking button and its notes */
@media (max-width: 767.98px) {
    .hero-dots {
        right: 10px;
        top: 60%; /* below the subtitle and the monthly pill, above the prices */
        bottom: auto;
        flex-direction: column;
        transform: translateY(-50%);
    }

    .hero-dots button {
        transition: height .35s ease, background-color .35s ease;
    }

    .hero-dots button[aria-current="true"] {
        width: 9px;
        height: 28px;
    }

    .hero-dots button::after {
        inset: -4px -10px;
    }

    .hero .hero-dots .hero-pause {
        margin: .3rem 0 0;
    }
}

.hero-dots .hero-pause {
    width: 28px;
    height: 28px;
    margin-left: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 37, 48, .45);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: .7rem;
    line-height: 1;
}

/* Scrim: darker behind the headline over the sky and behind the booking module over the sea */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 37, 48, .62) 0%, rgba(11, 37, 48, .5) 36%, rgba(11, 37, 48, .22) 50%, rgba(11, 37, 48, 0) 60%),
        linear-gradient(0deg, rgba(11, 37, 48, .74) 0%, rgba(11, 37, 48, .42) 22%, rgba(11, 37, 48, 0) 44%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: calc(var(--nav-h) + clamp(14px, 4.5vh, 56px));
    padding-bottom: clamp(18px, 4vh, 44px);
}

.hero-copy {
    position: relative;
    isolation: isolate;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 24px rgba(0, 0, 0, .35);
}

/* Entrance: badge, title, subtitle and booking module rise one after the other */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-month,
.hero-book {
    animation: fadeInUp 1s var(--ease-out) both;
}

.hero-title { animation-delay: .1s; animation-duration: 1.1s; }
.hero-subtitle { animation-delay: .2s; animation-duration: 1.1s; }
.hero-month { animation-delay: .28s; }
.hero-book { animation-delay: .35s; }

/* Soft shade that follows the copy: keeps the subtitle readable when the headline wraps onto two lines
   (English, narrow screens) and the text moves down over the bright sky near the horizon */
.hero-copy::before {
    content: "";
    position: absolute;
    inset: -14% -18% -40%;
    z-index: -1;
    background: radial-gradient(closest-side at 50% 58%, rgba(11, 37, 48, .54) 0%, rgba(11, 37, 48, .42) 55%, rgba(11, 37, 48, 0) 100%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 1.1rem;
    padding: .42rem .9rem;
    border-radius: 999px;
    background: rgba(11, 37, 48, .45);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: none;
}

.hero-badge-star {
    color: var(--lemon);
}

.hero-title {
    margin: 0 0 1rem;
    font-weight: 700;
}

.hero .hero-eyebrow {
    font-size: clamp(.78rem, 1.1vw, .95rem);
    letter-spacing: .16em;
    margin-bottom: .75rem;
}

.hero-headline {
    display: block;
    font-size: var(--fs-hero);
    line-height: 1.02;
    letter-spacing: -.032em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 33em;
    margin: 0 auto;
    font-size: var(--fs-lead);
    font-weight: 500;
    line-height: 1.4;
    text-wrap: pretty;
}

.hero-book {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    text-align: center;
}

.hero-live {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .15rem .9rem;
    margin: 0;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: rgba(11, 37, 48, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.35;
}

.hero-price + .hero-next {
    padding-left: .9rem;
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.hero-live strong {
    font-weight: 700;
}

.hero-price strong {
    font-size: 1.15em;
}

.hero-cta {
    width: 100%;
    max-width: 420px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-microcopy {
    max-width: 36em;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .45);
}

.hero-microcopy a {
    color: #fff;
    font-weight: 600;
}

.hero-photos-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 .5rem;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .22em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

.hero-photos-link:hover {
    color: #fff;
}

/* Booking bar: desktop only; the phone gets the button and the date sheet */
.booking-bar {
    display: none;
}

.bb-pill {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    align-items: center;
    background: #fff;
    color: var(--ink);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .65);
    text-align: left;
}

/* invisible anchor the range picker positions itself against (above or below the bar) */
.bb-anchor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.bb-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    padding: 4px 18px;
    border-radius: 15px;
    transition: background-color .2s ease;
}

.bb-field + .bb-field::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--line);
}

.bb-field:focus-within,
.bb-field:hover {
    background: var(--sand);
}

.bb-field:focus-within::before,
.bb-field:hover::before,
.bb-field:focus-within + .bb-field::before,
.bb-field:hover + .bb-field::before {
    opacity: 0;
}

.bb-field label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.bb-date input {
    width: 100%;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.bb-date input::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.bb-guests {
    padding-right: 10px;
}

.bb-submit {
    min-height: 58px;
    margin-left: 6px;
    padding: 0 28px;
    border-radius: 16px;
    font-size: 1.0625rem;
    white-space: nowrap;
    box-shadow: none;
}

.bb-status {
    margin: 10px 0 0;
    min-height: 1.35em;
    font-size: .875rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 12px rgba(0, 0, 0, .45);
}

.bb-status.is-error {
    color: #ffe08a;
}

/* Guests stepper (bar and date sheet), 44 px targets */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(11, 37, 48, .18);
    background: #fff;
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.stepper-btn:hover:not(:disabled) {
    border-color: var(--ink);
}

.stepper-btn:disabled {
    opacity: .35;
    cursor: default;
}

.stepper input {
    width: 2.1em;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (min-width: 768px) {
    .booking-bar {
        display: block;
        width: 100%;
    }

    .hero-cta,
    .hero-photos-link {
        display: none;
    }

    .hero-microcopy {
        max-width: none;
        margin-top: -.4rem;
    }

    .hero-inner {
        padding-bottom: clamp(16px, 3vh, 32px);
    }

    .bb-status {
        margin-top: 8px;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .bb-field {
        padding: 4px 12px;
    }

    .bb-submit {
        padding: 0 18px;
    }
}

@media (max-width: 767.98px) {
    .hero-img {
        object-position: 34% 50%;
    }

    .hero-badge {
        font-size: .8125rem;
        margin-bottom: .9rem;
    }

    .hero-title {
        margin-bottom: .75rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-live {
        flex-direction: column;
        border-radius: 18px;
        padding: .55rem 1.1rem;
        font-size: .9375rem;
    }

    .hero-price + .hero-next {
        padding-left: 0;
        border-left: 0;
    }

    .hero-book {
        gap: .55rem;
    }
}

@media (max-height: 700px) and (max-width: 767.98px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        margin-bottom: .6rem;
    }
}

/* Monthly stays: a small pill under the subtitle, links to /un-mese-al-mare */
.hero-month {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 197, 52, .7);
    background: rgba(11, 37, 48, .45);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.hero-month:hover,
.hero-month:focus-visible {
    color: #fff;
    background: rgba(11, 37, 48, .7);
    border-color: var(--lemon);
}

.hero-month span {
    color: var(--lemon);
}

/* ---------- S2b A month by the sea ---------- */
.month-band {
    background: var(--ink);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) 0;
}

.month-band-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.month-band-title {
    margin: 0 0 .5rem;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.month-band-lead {
    max-width: 38em;
    margin: 0;
    font-size: var(--fs-lead);
    line-height: 1.45;
    color: rgba(255, 255, 255, .86);
}

@media (min-width: 768px) {
    .month-band-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }

    .month-band-cta {
        flex: none;
    }
}

/* ---------- S2 Facts ---------- */
.facts {
    background: #fff;
    padding: clamp(48px, 7vw, 96px) 0;
}

.facts-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.facts .stat-tile {
    background: var(--sand);
    border-radius: 20px;
    padding: 20px 18px 22px;
    min-height: 124px;
    gap: .5rem;
}

.facts .stat-tile strong {
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
    white-space: nowrap;
}

.facts .stat-tile span {
    font-size: .9375rem;
}

@media (min-width: 768px) {
    .facts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .facts .stat-tile {
        padding: 24px 22px 26px;
    }
}

@media (min-width: 1200px) {
    .facts-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .facts .stat-tile {
        min-height: 150px;
        padding: 24px 20px 26px;
    }
}

/* ---------- S3 Scene: full-bleed view, gentle zoom-out, lines appear one by one ---------- */
.scene {
    position: relative;
    background: var(--ink);
    color: #fff;
}

.scene-sticky {
    position: relative;
    height: 80vh;
    height: 80svh;
    min-height: 480px;
    overflow: hidden;
}

.scene-media {
    position: absolute;
    inset: 0;
}

.scene-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: 50% 44%;
    transform: scale(calc(1.18 - var(--p, 1) * .18));
}

.scene-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 37, 48, .82) 0%, rgba(11, 37, 48, .28) 52%, rgba(11, 37, 48, .2) 100%);
    opacity: calc(.4 + var(--p, 1) * .6);
}

.scene-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12vh;
    padding: 0 1.25rem;
    text-align: center;
}

.scene-line {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

.scene-accent {
    color: var(--lemon);
}

.scene-line.scene-small {
    margin-top: 1.4rem;
    font-size: clamp(.85rem, 1.4vw, 1.05rem);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
    .js .scene {
        height: 160vh;
    }

    .js .scene .scene-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100svh;
    }

    .js .scene .scene-img {
        will-change: transform;
    }
}

/* lines wait for their moment once site.js drives the scene */
.scene.is-ready .scene-line {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s var(--ease-out);
}

.scene.is-ready .scene-line.is-on {
    opacity: 1;
    transform: none;
}

@media (max-width: 767.98px) {
    .scene-img {
        object-position: 50% 50%;
    }

    .scene-text {
        bottom: 18vh;
    }

    .scene-line.scene-small {
        letter-spacing: .14em;
    }
}

/* ---------- S4 Proof ---------- */
.statement {
    max-width: 1000px;
    margin: 0 auto clamp(48px, 6vw, 88px);
    text-align: center;
}

.statement blockquote {
    margin: 0;
}

.statement blockquote p {
    margin: 0 0 1.25rem;
    font-family: var(--font-quote);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.12;
    letter-spacing: -.012em;
    color: var(--ink);
    text-wrap: balance;
}

.statement figcaption {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--muted);
}

.stars,
.review-stars {
    color: #9a6b00;
    letter-spacing: .08em;
}

.proof-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.rating-bars {
    list-style: none;
    max-width: 900px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.rating-bars li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px 10px;
}

.rb-label {
    grid-row: 1;
    grid-column: 1;
    font-size: .9375rem;
    color: var(--ink);
}

.rb-score {
    grid-row: 1;
    grid-column: 2;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.rb-bar {
    grid-row: 2;
    grid-column: 1 / -1;
    height: 4px;
    border-radius: 2px;
    background: rgba(11, 37, 48, .12);
    overflow: hidden;
}

.rb-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ink);
}

@media (min-width: 768px) {
    .rating-bars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 48px;
    }
}

.review-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 22px 20px;
    box-shadow: var(--shadow-sm);
}

.review-stars {
    margin: 0 0 .75rem;
    font-size: .95rem;
}

.review-text {
    margin: 0;
}

.review-clamp {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-color);
}

.review-clamp.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-more {
    display: none;
    align-self: flex-start;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sea);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.review-card.has-more .review-more {
    display: inline-flex;
    align-items: center;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 1rem;
}

.review-text + .review-more + .review-author,
.review-text + .review-author {
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.review-card:not(.has-more) .review-text {
    margin-bottom: 1rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.review-who {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.review-who strong {
    color: var(--ink);
}

.review-who span {
    font-size: .8125rem;
    color: var(--muted);
}

.review-tag {
    margin-left: auto;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--sand);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .review-row {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        scroll-snap-type: none;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .review-clamp.is-clamped {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: none;
        overflow: visible;
    }

    .review-card.has-more .review-more {
        display: none;
    }

    .review-card .review-text {
        margin-bottom: 1rem;
    }
}

.proof-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: clamp(24px, 4vw, 40px);
    text-align: center;
}

.proof-foot .fine-print {
    max-width: 46em;
    margin: 0;
}

.proof-foot .fine-print a {
    display: inline-block;
    padding: .2rem 0;
    color: var(--sea);
    font-weight: 600;
    text-decoration: none;
}

.proof-foot .fine-print a:hover {
    text-decoration: underline;
}

/* ---------- S5 Bento ---------- */
.bento {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "a a"
        "b b"
        "c d"
        "e f"
        "g g";
}

.bento-a { grid-area: a; }
.bento-b { grid-area: b; }
.bento-c { grid-area: c; }
.bento-d { grid-area: d; }
.bento-e { grid-area: e; }
.bento-f { grid-area: f; }
.bento-g { grid-area: g; }

.bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    padding: 22px 20px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
}

.bento-tile h3 {
    margin: 0 0 .3rem;
    font-size: clamp(1.2rem, 1.9vw, 1.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.bento-tile p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.4;
}

.bento-tile .guest-snippet {
    margin-top: .9rem;
}

.bento-photo {
    min-height: 300px;
    color: #fff;
    background: var(--ink);
}

.bento-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}

.bento-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(11, 37, 48, .86) 0%, rgba(11, 37, 48, .5) 42%, rgba(11, 37, 48, 0) 72%);
}

.bento-photo p {
    color: rgba(255, 255, 255, .92);
}

.bento-photo h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

.bento-tile .kicker {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 .75rem;
    padding: .32rem .75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bento-dark {
    background: var(--ink);
    color: #fff;
}

.bento-dark p {
    color: rgba(255, 255, 255, .76);
}

.bento-dark .guest-snippet p {
    color: rgba(255, 255, 255, .88);
}

.bento-icon {
    margin-bottom: auto;
    padding-bottom: 1.25rem;
    font-size: 1.6rem;
    line-height: 1;
    color: #6fd3de;
}

.bento-lemon {
    background: var(--lemon-soft);
    color: var(--ink);
}

.bento-tile .bento-label {
    margin: 0 0 .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--terracotta-ink);
}

.bento-g h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.bento-note {
    margin: 1.25rem 0 0;
    text-align: center;
}

@media (hover: hover) {
    .bento-photo:hover .bento-img {
        transform: scale(1.03);
    }
}

@media (max-width: 767.98px) {
    .bento-b {
        min-height: 290px;
    }
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: minmax(210px, auto) minmax(210px, auto) auto;
        grid-template-areas:
            "a a b b"
            "a a c d"
            "e f g g";
    }

    .bento-tile {
        padding: 26px 24px;
    }
}

@media (min-width: 1200px) {
    .bento {
        gap: 14px;
        grid-template-rows: 236px 236px auto;
        grid-template-areas:
            "a a b c"
            "a a b d"
            "e f g g";
    }

    .bento-g {
        min-height: 236px;
    }
}

/* ---------- S6 Gallery ---------- */
.mosaic {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 250px 150px 150px;
    grid-template-areas:
        "a a"
        "b c"
        "d e";
}

.mosaic-1 { grid-area: a; }
.mosaic-2 { grid-area: b; }
.mosaic-3 { grid-area: c; }
.mosaic-4 { grid-area: d; }
.mosaic-5 { grid-area: e; }

.mosaic-item {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sand);
    cursor: zoom-in;
}

.mosaic-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

@media (hover: hover) {
    .mosaic-item:hover .mosaic-img {
        transform: scale(1.03);
    }
}

@media (min-width: 768px) {
    .mosaic {
        gap: 12px;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: repeat(2, clamp(200px, 21vw, 290px));
        grid-template-areas:
            "a b c"
            "a d e";
    }

    .mosaic-item {
        border-radius: 20px;
    }
}

/* ---------- S7 A day here ---------- */
.day-card {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    isolation: isolate;
}

.day-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.day-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(11, 37, 48, .82) 0%, rgba(11, 37, 48, .35) 38%, rgba(11, 37, 48, 0) 62%);
}

.day-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 22px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.day-time {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.day-text {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.35;
}

@media (min-width: 992px) {
    .day-card {
        aspect-ratio: 1 / 1;
    }
}

/* ---------- S8 Spaces ---------- */
.space-card {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--sand);
    color: var(--ink);
    text-align: left;
    cursor: zoom-in;
}

.space-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

.space-body {
    display: block;
    padding: 16px 18px 20px;
}

.space-title {
    display: block;
    margin-bottom: .2rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
}

.space-text {
    display: block;
    font-size: .9375rem;
    line-height: 1.4;
    color: var(--muted);
}

@media (hover: hover) {
    .space-card:hover .space-img {
        transform: scale(1.03);
    }
}

.house-details {
    margin-top: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.house-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: .75rem 0;
    list-style: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}

.house-details summary::-webkit-details-marker {
    display: none;
}

.house-details summary::after {
    content: '+';
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(11, 37, 48, .07);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .3s var(--ease-out);
}

.house-details[open] summary::after {
    transform: rotate(45deg);
}

.house-details-body {
    padding: .25rem 0 2rem;
}

.hd-grid {
    display: grid;
    gap: 1.5rem 2.5rem;
}

.hd-group h3,
.hd-amenities-title {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
}

.hd-group ul,
.hd-amenities {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .9375rem;
    line-height: 1.5;
}

.hd-group li,
.hd-amenities li {
    margin: .15rem 0;
}

.hd-amenities-title {
    margin-top: 2rem;
}

.hd-amenities {
    columns: 2;
    column-gap: 2rem;
}

.hd-amenities li {
    break-inside: avoid;
}

@media (min-width: 768px) {
    .hd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hd-amenities {
        max-width: 760px;
    }
}

@media (min-width: 1200px) {
    .hd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 400px) {
    .hd-amenities {
        columns: 1;
    }
}

/* ---------- S9 All year ---------- */
.season-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.season-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.season-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 20px 22px 22px;
}

.season-body h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.season-body p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--muted);
}

.season-body .link-arrow {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- S10 Stays ---------- */
.stays {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.stay-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 28px 24px 24px;
    border-radius: 22px;
    background: var(--sand);
    color: var(--ink);
}

.stay-card h3 {
    margin: 0;
    font-size: var(--fs-h3);
    font-weight: 700;
}

.stay-meta {
    margin: 0 0 .25rem;
    font-size: .9375rem;
    color: var(--muted);
}

.stay-price {
    margin: .25rem 0 0;
    font-size: 1rem;
}

.stay-price strong {
    font-size: 1.4rem;
    letter-spacing: -.02em;
}

.stay-cta {
    align-self: flex-start;
    margin-top: auto;
}

.stay-card > :nth-last-child(2) {
    margin-bottom: 1.1rem;
}

.stay-card--month {
    background: var(--ink);
    color: #fff;
}

.stay-card--month .stay-meta {
    color: rgba(255, 255, 255, .76);
}

.stay-card--month .price-line {
    color: #fff;
}

.stays-notes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-top: 1.5rem;
    text-align: center;
}

.stays-notes .fine-print {
    margin: 0;
}

.scarce-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .stays {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .stay-card {
        min-height: 250px;
    }
}

/* ---------- S11 Location ---------- */
.where {
    display: grid;
    gap: 2rem;
}

.where-text {
    max-width: 36em;
    font-size: 1.0625rem;
    line-height: 1.55;
}

.where-links a {
    font-weight: 600;
}

.where-address {
    font-size: .9375rem;
    color: var(--muted);
}

.where-address i {
    color: var(--terracotta);
}

.distance-chips {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.distance-chips .chip {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 500;
    white-space: normal;
}

.distance-chips .chip strong {
    font-weight: 700;
    white-space: nowrap;
}

.map-card {
    position: relative;
    aspect-ratio: 5 / 6;
    max-height: 560px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #cfe8ee;
    box-shadow: var(--shadow-sm);
}

.map-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.map-sea { fill: #cfe8ee; }
.map-land { fill: #f7f0e3; stroke: #e0d3bb; stroke-width: 1.5; }
.map-road { fill: none; stroke: #dfc28d; stroke-width: 2; stroke-dasharray: 4 5; }
.map-etna path { fill: #b7a593; }
.map-etna .map-snow { fill: #fff; }
.map-places circle { fill: var(--ink); }
.map-places text { font: 600 13px var(--font-ui); fill: var(--ink); }
.map-home circle { fill: var(--terracotta); }
.map-home .map-home-halo { fill: rgba(217, 101, 63, .22); }
.map-home text { font: 700 14px var(--font-ui); fill: var(--ink); }
.map-note { font: italic 500 12px var(--font-ui); fill: var(--muted); }

.map-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .where {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: clamp(3rem, 6vw, 6rem);
        align-items: center;
    }
}

/* ---------- S12 Why book here ---------- */
.why-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.why-tile {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 24px 22px;
    border-radius: 20px;
    background: var(--sand);
}

.why-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--sea);
    margin-bottom: .5rem;
}

.why-tile h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}

.why-tile p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--muted);
}

.why-codes span {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.host-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 12px;
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--ink);
    color: #fff;
}

.host-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.host-avatar {
    width: 52px;
    height: 52px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lemon);
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.host-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.host-name strong {
    font-size: 1.125rem;
}

.host-name span {
    font-size: .9375rem;
    color: rgba(255, 255, 255, .76);
}

.host-card .guest-snippet {
    font-size: 1.0625rem;
}

.host-card .btn-whatsapp {
    align-self: flex-start;
}

@media (max-width: 575.98px) {
    .why-tile {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: .2rem;
        padding: 18px 18px 20px;
    }

    .why-icon {
        grid-row: 1 / span 2;
        margin: 0;
        padding-top: .1rem;
    }

    .stay-card {
        padding: 22px 20px 20px;
    }
}

@media (min-width: 576px) {
    .why-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Large screens: host, guest quote and WhatsApp on one row */
@media (min-width: 992px) {
    .host-card {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 28px 32px;
    }

    .host-card .guest-snippet {
        flex: 1;
        margin: 0;
    }

    .host-card .btn-whatsapp {
        align-self: center;
    }
}

@media (min-width: 1200px) {
    .why-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .host-card {
        margin-top: 14px;
    }
}

/* ---------- S13 Final call to action ---------- */
.final-cta {
    position: relative;
    display: flex;
    min-height: min(84vh, 780px);
    min-height: min(84svh, 780px);
    padding: clamp(88px, 14vh, 150px) 0 clamp(56px, 10vh, 110px);
    color: #fff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
}

.final-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.final-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 34% 50%;
}

/* Parallax: with a mouse on large screens the photo drifts slower than the page (site.js writes --py, -1 to 1) */
@media (min-width: 992px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .js [data-parallax] > img,
    .js [data-parallax] > picture > img {
        transform: translate3d(0, calc(var(--py, 0) * 9%), 0) scale(1.2);
        will-change: transform;
    }
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 37, 48, .68) 0%, rgba(11, 37, 48, .56) 50%, rgba(11, 37, 48, .2) 66%, rgba(11, 37, 48, 0) 80%),
        linear-gradient(0deg, rgba(11, 37, 48, .35) 0%, rgba(11, 37, 48, 0) 30%);
}

.final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 24px rgba(0, 0, 0, .3);
}

.final-cta h2 {
    max-width: 14em;
    margin: 0 0 .25rem;
    font-size: clamp(2.5rem, 6.2vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -.032em;
    text-wrap: balance;
}

.final-live {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .15rem .6rem;
    margin: 0 0 .5rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: rgba(11, 37, 48, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    text-shadow: none;
}

.final-microcopy {
    max-width: 36em;
    margin: .35rem 0 0;
    padding: .45rem .9rem;
    border-radius: 14px;
    background: rgba(11, 37, 48, .55);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    color: #fff;
    text-shadow: none;
}

@media (min-width: 768px) {
    .final-microcopy {
        max-width: none;
        border-radius: 999px;
    }
}

.final-microcopy a {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .final-img {
        object-position: 28% 50%;
    }

    .final-sep {
        display: none;
    }

    .final-live {
        flex-direction: column;
        border-radius: 18px;
    }
}

/* ---------- Dialogs ---------- */
html.is-dialog-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

dialog.sheet,
dialog.lightbox {
    padding: 0;
    border: 0;
    max-width: none;
    max-height: none;
}

dialog.sheet {
    width: 100%;
    margin: 0;
    color: var(--ink);
    background: #fff;
    overscroll-behavior: contain;
}

dialog.sheet::backdrop {
    background: rgba(11, 37, 48, .55);
}

.sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 20px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
}

.sheet-title {
    flex: 1;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.sheet-close {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 37, 48, .07);
    color: var(--ink);
    font-size: 1rem;
}

.sheet-close:hover {
    background: rgba(11, 37, 48, .14);
}

/* Date sheet: a bottom sheet on phones, a centred panel from 768 px */
dialog.date-sheet {
    position: fixed;
    inset: auto 0 0 0;
    max-height: 92vh;
    max-height: 92svh;
    border-radius: 24px 24px 0 0;
    overflow: auto;
}

dialog.date-sheet[open] {
    animation: sheetUp .34s var(--ease-out);
}

.ds-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ds-body {
    padding: 16px 20px 8px;
}

.ds-calendar:empty {
    display: none;
}

.ds-calendar {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.date-sheet.has-picker .ds-native {
    display: none;
}

.ds-native {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.ds-field label,
.ds-guests label {
    display: block;
    margin-bottom: 4px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--muted);
}

.ds-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 12px;
    border: 1px solid rgba(11, 37, 48, .2);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
}

.ds-guests {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
}

.ds-guests label {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
}

.ds-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
}

.ds-summary {
    align-self: center;
    white-space: normal;
    text-align: center;
}

.ds-summary.is-error {
    background: #fdecc8;
}

.ds-foot .microcopy {
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    dialog.date-sheet {
        inset: 0;
        margin: auto;
        width: min(760px, calc(100% - 48px));
        max-height: calc(100vh - 64px);
        max-height: calc(100svh - 64px);
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
    }

    dialog.date-sheet[open] {
        animation: sheetIn .28s var(--ease-out);
    }

    .ds-body {
        padding: 20px 28px 8px;
    }

    .ds-foot {
        padding: 14px 28px 20px;
    }

    .ds-submit {
        align-self: center;
        min-width: 280px;
    }
}

/* All photos */
dialog.photo-sheet {
    position: fixed;
    inset: 0;
    height: 100%;
    overflow: auto;
}

dialog.photo-sheet[open] {
    animation: sheetIn .3s var(--ease-out);
}

.photo-sheet .sheet-head {
    flex-wrap: wrap;
}

.ps-tabs {
    order: 3;
    flex-basis: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ps-tabs::-webkit-scrollbar {
    display: none;
}

.ps-tabs a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 .85rem;
    border-radius: 999px;
    background: rgba(11, 37, 48, .06);
    color: var(--ink);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.ps-tabs a:hover {
    background: rgba(11, 37, 48, .12);
}

.ps-body {
    padding: 4px 14px 40px;
}

.ps-group h3 {
    margin: 22px 4px 10px;
    font-size: 1.125rem;
    font-weight: 700;
    scroll-margin-top: 130px;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.ps-grid button {
    padding: 0;
    border: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--sand);
    cursor: zoom-in;
}

.ps-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    dialog.photo-sheet {
        inset: 24px;
        width: auto;
        height: auto;
        margin: auto;
        max-width: 1240px;
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
    }

    .photo-sheet .sheet-head {
        flex-wrap: nowrap;
        padding: 14px 16px 14px 28px;
    }

    .ps-tabs {
        order: 0;
        flex-basis: auto;
    }

    .ps-body {
        padding: 4px 28px 48px;
    }

    .ps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (min-width: 1200px) {
    .ps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Photo viewer */
dialog.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: none;
    grid-template-rows: minmax(0, 1fr) auto auto;
    background: rgba(5, 16, 21, .97);
    color: #fff;
    overscroll-behavior: contain;
}

dialog.lightbox[open] {
    display: grid;
    animation: fadeIn .25s ease;
}

dialog.lightbox::backdrop {
    background: #000;
}

.lb-stage {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 12px 8px;
}

.lb-figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-picture img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity .22s ease;
}

.lb-picture.is-changing img {
    opacity: 0;
}

.lb-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.15rem;
    transition: background-color .2s ease;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, .26);
}

.lb-close {
    top: 10px;
    right: 10px;
}

.lb-prev,
.lb-next {
    top: 50%;
    margin-top: -24px;
}

.lb-prev {
    left: 12px;
}

.lb-next {
    right: 12px;
}

.lb-caption {
    margin: 0;
    padding: 10px 16px 6px;
    font-size: .9375rem;
    text-align: center;
    color: rgba(255, 255, 255, .86);
}

.lb-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 12px calc(14px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    scroll-padding-inline: 12px;
}

.lb-thumbs::-webkit-scrollbar {
    display: none;
}

.lb-thumbs button {
    flex: none;
    width: 64px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
}

.lb-thumbs button[aria-current="true"] {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff;
}

.lb-thumbs button:hover {
    opacity: .85;
}

.lb-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .lb-stage {
        padding: 60px 0 4px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 8px;
        margin-top: 0;
        background: rgba(0, 0, 0, .45);
    }
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes sheetIn {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Reduced motion: still images, no zooms, no slides, no cross-fades ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-slide .hero-img,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-month,
    .hero-book,
    dialog.date-sheet[open],
    dialog.photo-sheet[open],
    dialog.lightbox[open] {
        animation: none;
    }

    .hero-slide,
    .scene-img,
    .bento-img,
    .mosaic-img,
    .space-img,
    .house-details summary::after,
    .lb-picture img,
    .lb-thumbs button,
    .bb-field,
    .stepper-btn {
        transition: none;
    }

    .bento-photo:hover .bento-img,
    .mosaic-item:hover .mosaic-img,
    .space-card:hover .space-img {
        transform: none;
    }

    .lb-picture.is-changing img {
        opacity: 1;
    }
}

/* ---------- One lemon button per screen ----------
   While a booking button of the page is on screen (site.js sets html.els-cta-inview), the navbar button turns into
   an outline pill (it keeps the price in sight) and the mobile booking bar steps aside; both come back when it scrolls away. */
html.els-cta-inview .site-nav .nav-cta {
    background: transparent;
    border-color: rgba(11, 37, 48, .3);
    color: var(--ink);
    box-shadow: none;
}

html.els-cta-inview .site-nav .nav-cta:hover {
    background: rgba(11, 37, 48, .06);
    transform: none;
}

html.els-cta-inview .site-nav.is-overlay:not(.is-scrolled):not(.is-open) .nav-cta {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

html.els-cta-inview .site-nav.is-overlay:not(.is-scrolled):not(.is-open) .nav-cta:hover {
    background: rgba(255, 255, 255, .12);
}

html.els-cta-inview .mobile-book-bar.is-visible {
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition: transform .45s var(--shell-ease, ease), visibility 0s linear .45s;
}

@media (prefers-reduced-motion: reduce) {
    html.els-cta-inview .mobile-book-bar.is-visible {
        transition: none;
    }
}
