/* xyz-page.css — property page overrides.
   Tokens live on html:has(body.page-xyz) so html + body share one surface.
   Dark mode only reassigns tokens; shared selectors pick them up. */
:root {
    --font-sans: var(--cc-font-sans);
    --font-serif: var(--cc-font-serif);
    --cc-accent: var(--cc-color-primary-muted);
    --cc-heading: var(--cc-color-primary-muted);
}

html:has(body.page-xyz) {
    --cc-dark-bg: #1f3344;
    --cc-dark-surface: #243f56;
    --cc-dark-card: #2b4358;
    --cc-dark-chip: #334d64;
    --cc-dark-text: #eef3f8;
    --hero-card-surface: #b4c3cf;
    --hero-card-border: #95a8b6;
    --hero-card-width: min(340px, 30vw);
    --site-header-band-height: 56px;

    /* Match listofall.html canvas (#faf8f4) on phone + desktop. */
    --page-surface: #faf8f4;
    /* Gallery band / mosaic gutters */
    --gallery-gutter-surface: #929675;
    --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.22 0 0 0 0 0.28 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --hero-bg: var(--page-surface);
    --hero-surface: var(--page-surface);
    --light-gray: var(--page-surface);
    --background-color: var(--page-surface);
    --xyz-content-inline-start: calc(clamp(64px, 7.5vw, 100px) + 8px);

    --xyz-text: #1F2D3A;
    --xyz-heading: #1F2D3A;
    --xyz-muted: #3a4f5e;
    --xyz-inline-details: #3a4652;
    --xyz-link: #315b78;
    --xyz-link-hover: #1F2D3A;
    --xyz-quote: #1F2D3A;
    --xyz-guest-quote: #435966;
    --xyz-nav: #1F2D3A;
    --xyz-border: rgba(36, 55, 70, 0.14);
    --xyz-border-strong: rgba(36, 55, 70, 0.22);
    --xyz-card: rgba(255, 255, 255, 0.45);
    --xyz-card-border: rgba(36, 55, 70, 0.14);
    --xyz-platform-bg: #ffffff;
    --xyz-faq-toggle: rgba(36, 55, 70, 0.62);
    --xyz-contact-label: #435966;
    --xyz-contact-link: #1F2D3A;
    --xyz-contact-hover: #0f2435;
    --xyz-contact-sub: #3a4f5e;
    --xyz-review-name: #1F2D3A;
    --xyz-review-body: #1F2D3A;
    --xyz-platform-text: #315b78;
    --text-color: var(--xyz-heading);

    background-color: var(--page-surface);
    background-image: var(--paper-grain);
    background-size: 160px 160px;
    background-repeat: repeat;
}

body.page-xyz {
    background-color: var(--page-surface);
    background-image: var(--paper-grain);
    background-size: 160px 160px;
    background-repeat: repeat;
    color: var(--xyz-heading);
}

body.page-xyz::before,
body.page-xyz::after {
    display: none;
}

body.page-xyz #main-content,
body.page-xyz .house-detail-container,
body.page-xyz .below-hero-surface,
body.page-xyz .site-footer {
    background-color: var(--page-surface);
    background-image: var(--paper-grain);
    background-size: 160px 160px;
    background-repeat: repeat;
}

body.page-xyz header.site-header .back-button,
body.page-xyz.nav-dark header.site-header .back-button {
    color: var(--xyz-nav);
}

body.page-xyz .hamburger-menu,
body.page-xyz .hamburger-menu.active,
body.page-xyz.nav-dark .hamburger-menu,
body.page-xyz.nav-dark .hamburger-menu.active {
    color: var(--xyz-nav);
}

/* ── Photo gallery — base ──────────────────────────────────────── */
/* !important: beats .gallery-widget-section background in xyz-optimized.css */
#photo-gallery {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--hero-surface) !important;
    /* Override xyz-optimized full-viewport first "page" */
    min-height: 0;
    height: auto;
    align-content: start;
}

/* Clear fixed header + a little air above the gallery. */
@media (max-width: 1199px) {
    #photo-gallery {
        align-content: start;
        padding-top: calc(
            env(safe-area-inset-top, 0px) + var(--site-header-band-height, 56px) + clamp(6px, 1.2vh, 12px)
        );
    }
}

#photo-gallery>* {
    position: relative;
    z-index: 1;
}

#photo-gallery .index-hero-frame {
    border: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
    margin-left: 0;
    margin-right: auto;
}

#photo-gallery .photo-gallery-container {
    max-width: 100%;
    width: 100%;
    margin: 0 0 14px;
}

#photo-gallery .gallery-main {
    background: var(--hero-surface);
    max-height: none;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    width: 100%;
}

#photo-gallery .gallery-main img {
    border-radius: 0;
}

/*
  Double-ID beats xyz-optimized; also functions as the mosaic's inline prev/next
  (cycles the main tile photo) — always visible since phones have no :hover.
*/
#photo-gallery #galPrev,
#photo-gallery #galNext {
    position: absolute;
    align-items: center;
    background: rgba(16, 24, 32, 0.5);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0;
    height: 34px;
    justify-content: center;
    line-height: 1;
    opacity: 0.82;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background-color 0.2s ease;
    width: 34px;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#photo-gallery #galPrev svg,
#photo-gallery #galNext svg {
    flex-shrink: 0;
    height: 16px;
    width: 16px;
}

#photo-gallery #galPrev {
    left: 16px;
    right: auto;
}

#photo-gallery #galNext {
    right: 16px;
    left: auto;
}

/* Mosaic (non-fullscreen): clip collage; arrow insets sync to main tile via JS. */
@media (min-width: 769px) {
    #photo-gallery .photo-gallery-container:not(.gallery-fullscreen) {
        overflow: hidden;
        border-radius: 16px 16px 0 0;
    }
}

#photo-gallery .photo-gallery-container:hover #galPrev,
#photo-gallery .photo-gallery-container:hover #galNext,
#photo-gallery .photo-gallery-container:focus-within #galPrev,
#photo-gallery .photo-gallery-container:focus-within #galNext {
    opacity: 1;
}

#photo-gallery #galPrev:hover,
#photo-gallery #galNext:hover,
#photo-gallery #galPrev:focus-visible,
#photo-gallery #galNext:focus-visible,
#photo-gallery #galPrev:active,
#photo-gallery #galNext:active {
    background: rgba(16, 24, 32, 0.8);
    outline: none;
}

#photo-gallery #galPrev[hidden],
#photo-gallery #galNext[hidden] {
    display: none;
}

/* Base body baseline for all breakpoints */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Small laptop overrides */
@media (min-width: 1024px) and (max-width: 1366px) {
    .hero-inline-row {
        gap: 8px;
    }
}

/* Non-phone: tuck gallery toward the left edge (with arrows). */
@media (min-width: 769px) {
    #photo-gallery {
        justify-content: start;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #photo-gallery {
        padding-left: 0;
        padding-right: 0;
    }
}

.hero-inline-row {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-inline-details {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1f2d3a;
    letter-spacing: 0.015em;
    margin: 0 0 14px;
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 16px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 16px;
    border-radius: 999px;
    background: #EABB7A;
    box-sizing: border-box;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    white-space: nowrap;
}

.hero-meta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.95;
}

.hero-meta-value {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-meta-label {
    display: none;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Desktop: icon + “Sleeps 6”, “3 Bedrooms”, “2 Bathrooms” */
@media (min-width: 769px) {
    .hero-inline-details {
        gap: 14px 20px;
        padding: 9px 18px;
    }

    .hero-meta-item {
        gap: 7px;
    }

    .hero-meta-value {
        display: none;
    }

    .hero-meta-label {
        display: inline;
    }

    /* Feature chips without a count (pool, garden…) also show their label */
    .hero-meta-item:not(:has(.hero-meta-value)) .hero-meta-label {
        display: inline;
    }
}

.description-title-meta {
    display: none;
}

/* Retired hero chrome (markup may remain). */
.hero-card-footer,
.hero-badges {
    display: none;
}

/* Name / subtitle / tags: phone uses .hero-phone-title; ≥769px uses desktop title. */
.hero-desktop-title,
.hero-desktop-subtitle,
.hero-tags,
.hero-rating-line {
    display: none;
}

/* Tablet + desktop: title sits under the header; spare height falls below. */
@media (min-width: 769px) {
    #photo-gallery {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: 0;
        height: auto;
        box-sizing: border-box;
        padding-bottom: 0;
    }

    #photo-gallery .index-hero-frame {
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #photo-gallery .photo-gallery-container {
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    #photo-gallery .hero-mosaic {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
    }

    /* Left/main collage tile stays locked to 3:2 (phones excluded). */
    #photo-gallery .hero-mosaic__item--main {
        aspect-ratio: 3 / 2;
        width: 100%;
        height: auto;
        max-height: min(72vh, 720px);
    }

    #photo-gallery .hero-mosaic-caption {
        padding: 0 0 clamp(10px, 1.4vw, 16px);
    }
}

.hero-guest-quote {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.55;
    color: var(--xyz-guest-quote);
    font-style: italic;
    max-width: 42ch;
    margin: 8px 0 0;
}

#photo-gallery .hero-title-card .hero-inline-details {
    margin: 0 0 14px;
}

#photo-gallery .hero-title-card .hero-guest-quote:not([hidden]) {
    display: block;
}

.hero-inline-row .hero-reserve-btn {
    margin-left: clamp(28px, 4.5vw, 72px);
}

#photo-gallery .hero-reserve-btn {
    display: none;
}

#photo-gallery .hero-title-card {
    margin-top: 0;
    position: relative;
    z-index: calc(var(--z-gallery-nav, 5) + 1);
}

/* Phone card title is shown only in the ≤768px block below. */
#photo-gallery .hero-title-card .hero-phone-title {
    display: none;
}

.hero-phone-title-row {
    display: none;
}

.hero-phone-title,
.hero-desktop-title {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

#photo-gallery .hero-title-card .hero-phone-title,
#photo-gallery .hero-title-card .hero-desktop-title {
    color: var(--xyz-heading);
}

.house-detail-container {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.house-detail-container h2,
.house-detail-container h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--cc-heading);
}

.house-detail-container h2 {
    font-size: clamp(1.02rem, 1.18vw, 1.2rem);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 215, 230, 0.35);
}

.house-detail-container h3 {
    font-size: 0.92rem;
}

/* About — same surface and padding rhythm as Amenities / other house sections */
#description.description-section {
    padding-top: 0;
    padding-bottom: 0;
    display: block;
    align-items: stretch;
    background-color: var(--light-gray);
}

#description.description-section .section-content {
    display: block;
    padding-top: 0;
    padding-bottom: 0;
}

#description .description-content {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    max-width: none;
    width: 100%;
}

#description .description-content > p:first-of-type {
    margin-top: 0;
}

#description .description-content > p .description-property-name {
    font-family: var(--font-serif);
    font-size: 1.14em;
    font-weight: 500;
    letter-spacing: 0;
    color: inherit;
}

/*
  Body prose = review card body (source of truth).
  Keep description / location / FAQ answers on the same size, weight, color, pacing.
*/
body.page-xyz .reviews-section .review-content p,
body.page-xyz #reviews .review-content p,
body.page-xyz #description .description-content p,
body.page-xyz .location-description,
body.page-xyz .location-description p,
body.page-xyz .faq-answer p {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--xyz-review-body);
    margin-top: 0;
}

body.page-xyz #description .description-content p,
body.page-xyz .location-description p,
body.page-xyz .faq-answer p {
    margin-bottom: 0;
}

body.page-xyz #description .description-content p + p,
body.page-xyz .location-description p + p,
body.page-xyz .faq-answer p + p {
    margin-top: 1.1em;
}

.amenities-grid,
.amenity-item,
.contact-link,
.contact-sub {
    font-family: var(--font-sans);
    color: var(--xyz-review-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-top: 0;
}

.faq-question {
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 12px 4px;
    color: var(--xyz-heading);
    font-weight: 500;
}

.faq-answer,
.faq-answer p {
    font-weight: 400;
}

/* Same specificity as xyz-optimized.css; later source order wins. */
#additional-services .faq-question {
    gap: 4px;
}

#additional-services .faq-question::before {
    color: #60a5fa;
    margin-right: 2px;
}

/* Amenity list — tighter vertical rhythm than xyz-optimized bundle */
#amenities .amenities-grid,
#amenities .amenities-grid-expanded {
    row-gap: 5px;
    column-gap: 26px;
}

#amenities .amenity-item,
#amenities .amenities-grid-expanded .amenity-item {
    padding: 0;
    line-height: 1.28;
}

/* Section spacing — tighter, consistent */
.house-section {
    padding: 28px 0;
}

#amenities-location-section {
    padding-top: 0;
    padding-bottom: 0;
}

.gallery-widget-section {
    padding: 0;
}

.page-layout {
    margin-top: 0;
    padding-top: 0;
}
.page-layout__content {
    margin-top: 0;
    padding-top: 0;
}

body.page-xyz .page-layout__content > .hero-inline-details {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 18px;
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: min(100%, 820px);
    margin: 0 0 14px;
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: clamp(0.78125rem, 0.98vw, 0.9rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.015em;
    color: #ffffff;
    background: #5a7a96;
    border-radius: 999px;
    box-sizing: border-box;
}

/* Reviews body type is defined with description prose above. */

body.page-xyz .reviews-hero-quote {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--xyz-quote);
    text-align: left;
    text-shadow: none;
    quotes: none;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
    text-wrap: pretty;
    align-self: flex-start;
    justify-self: start;
}

body.page-xyz .reviews-hero-quote.reviews-hero-quote--short {
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}

body.page-xyz .reviews-hero-quote.reviews-hero-quote--medium {
    font-size: clamp(1.35rem, 2.8vw, 1.95rem);
}

body.page-xyz .reviews-hero-quote.reviews-hero-quote--long {
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

body.page-xyz .reviews-hero-quote.reviews-hero-quote--xlong {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.4;
}

body.page-xyz .reviews-summary {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 0 8px;
    margin-bottom: 20px;
    text-align: left;
}

body.page-xyz .reviews-summary .rating-overview {
    order: 1;
}

body.page-xyz .reviews-summary .review-platforms {
    order: 2;
}

.rating-number {
    font-family: var(--font-serif);
    font-size: clamp(52px, 5.5vw, 58px);
    font-weight: 500;
    color: var(--xyz-heading);
}

.reviewer-name {
    font-size: 0.935rem;
}

.review-date {
    font-size: 12px;
}

/* Contact section — compact phone + email only (no inquiry form) */
#contact.contact-section {
    padding-top: 8px;
    padding-bottom: 48px;
    margin-bottom: 0;
}

#contact .section-content > h2 {
    margin-bottom: 18px;
}

#contact .contact-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 0;
    max-width: 560px;
}

#contact .contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#contact .contact-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4em;
}

#contact .contact-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xyz-contact-label);
}

#contact .contact-link,
#contact .contact-sub {
    font-family: var(--font-sans);
}

#contact .contact-phone-link {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Beats xyz-optimized.css .contact-link { font-size: … !important }. */
#contact .contact-link {
    color: var(--xyz-contact-link);
    font-weight: 400;
    font-size: clamp(0.8125rem, 1.05vw, 0.9375rem) !important;
    font-style: normal;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

#contact .contact-link:hover {
    color: var(--xyz-contact-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#contact .contact-sub {
    color: var(--xyz-contact-sub);
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.8125rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
    font-style: normal;
    display: inline;
}

#contact .contact-mobile-reserve {
    display: none;
}

@media (min-width: 768px) {
    #contact .contact-card {
        flex-direction: row;
        gap: 48px;
        align-items: flex-start;
    }

    #contact .contact-item {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Review platform links */
.platform-link {
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* Airbnb mark on dynamic review cards (images/logo/airbnb.png) */
.review-source-airbnb-logo {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Review show more — italic underline style, standard grey */
.reviews-section .view-all-reviews,
.reviews-section #showMoreReviews {
    background: none;
    border: none;
    color: var(--xyz-link);
    text-decoration: underline;
    font-style: italic;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px 10px;
    box-shadow: none;
    cursor: pointer;
    border-radius: 0;
}

.reviews-section .view-all-reviews:hover,
.reviews-section #showMoreReviews:hover {
    color: var(--xyz-link-hover);
    text-decoration: none;
    background: none;
}

/* Sidebar stay dates under Book — hidden; calendar selection is enough */
.sidebar-price-note,
#sidebarStayDates {
    display: none !important;
}

.sidebar-book-trust {
    margin: 8px 0 0;
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.35;
    color: #5c6b7a;
    text-align: center;
}

.mobile-book-trust {
    display: none;
}

@media (max-width: 768px) {
    .mobile-book-trust {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        z-index: 999;
        margin: 0;
        padding: 0 4px;
        font-size: 10px;
        line-height: 1.3;
        color: #5c6b7a;
        text-align: center;
        pointer-events: none;
    }
}

.hero-reserve-btn {
    background: #587b9f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 24px;
    min-height: 44px;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}

.hero-reserve-btn:hover {
    background: #6286aa;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.hero-reserve-btn:active {
    background: #587b9f;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-reserve-btn:focus-visible {
    outline: 2px solid rgba(74, 111, 138, 0.85);
    outline-offset: 2px;
    box-shadow: none;
}

@media (min-width: 769px) {
    .hero-reserve-btn {
        font-size: clamp(0.82rem, 1.05vw, 0.9rem);
        padding: 10px 20px;
        min-height: 40px;
    }
}

/* Location Show More/Less matches The house Read More style */
#locationReadMore,
#locationReadLess {
    background: none;
    color: var(--xyz-link);
    border: none;
    text-decoration: underline;
    font-style: italic;
    font-weight: 500;
    padding: 5px 10px;
    width: fit-content;
    box-shadow: none;
    cursor: pointer;
    display: block;
    margin: 15px auto 0;
    font-size: 0.9rem;
}

#locationReadMore:hover,
#locationReadLess:hover {
    color: var(--xyz-link-hover);
    text-decoration: none;
}

/* Area photos carousel — one image + arrows (above the map) */
.location-area-gallery {
    margin: 0 0 18px;
    width: 100%;
}

.location-area-gallery__frame {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 2px 12px rgba(15, 35, 55, 0.12);
    border: 0;
    background: #eef2f6;
}

.location-area-gallery__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .location-area-gallery__frame {
        aspect-ratio: 16 / 9;
    }
}

.location-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(15, 35, 55, 0.18);
    color: #1f3344;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.15s ease;
}

.location-gallery-nav:hover {
    background: #fff;
    color: #0f2435;
}

.location-gallery-nav:focus-visible {
    outline: 2px solid #4a6f8a;
    outline-offset: 2px;
}

.location-gallery-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.location-gallery-nav svg {
    width: 22px;
    height: 22px;
    display: block;
}

.location-gallery-nav--prev {
    left: max(8px, env(safe-area-inset-left, 0px));
}

.location-gallery-nav--next {
    right: max(8px, env(safe-area-inset-right, 0px));
}

.location-gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15, 30, 45, 0.55);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}

/* Map loads only after "Show More"; first block inside expanded area */
#location-more .location-map-wrap {
    margin: 0 0 18px;
}

/* Link out to the area page listing the other houses in the same village. */
.location-area-link {
    margin: 14px 0 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.location-area-link a {
    color: var(--xyz-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.location-area-link a:hover {
    color: var(--xyz-link-hover);
    text-decoration: none;
}

/*
  Fullscreen gallery — selectors MUST NOT require #photo-gallery.
  Entering fullscreen re-parents .photo-gallery-container onto document.body, so any
  #photo-gallery .gallery-fullscreen rule stops matching and the UI breaks.
*/
.photo-gallery-container.gallery-fullscreen .hero-mosaic,
html.gallery-is-fullscreen #photo-gallery .hero-mosaic-caption,
html.gallery-is-fullscreen #photo-gallery .hero-title-card {
    display: none !important;
}

.photo-gallery-container.gallery-fullscreen .gallery-main {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    border: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    flex: 1 1 auto !important;
}

/* Prefer dynamic viewport height on mobile browsers (address bar). */
.photo-gallery-container.gallery-fullscreen {
    height: 100dvh !important;
    max-height: 100dvh !important;
}

.photo-gallery-container.gallery-fullscreen > #galPrev,
.photo-gallery-container.gallery-fullscreen > #galNext,
.photo-gallery-container.gallery-fullscreen .gallery-counter,
.photo-gallery-container.gallery-fullscreen .gallery-fullscreen-btn {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    z-index: 40;
}

/*
  !important here: the base #photo-gallery #galPrev/#galNext rule (2 ID selectors)
  otherwise outranks these class-only selectors regardless of order, since ID count
  always wins over class count in CSS specificity.
*/
.photo-gallery-container.gallery-fullscreen .gallery-nav.gallery-nav--prev {
    left: max(16px, env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
}

.photo-gallery-container.gallery-fullscreen .gallery-nav.gallery-nav--next {
    right: max(16px, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
}

.photo-gallery-container.gallery-fullscreen .gallery-nav.gallery-nav--prev,
.photo-gallery-container.gallery-fullscreen .gallery-nav.gallery-nav--next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
}

/* Phones: first screen = gallery + title + persons line; scroll for the rest.
   Page surface + text tokens match desktop (#faf8f4 / #1F2D3A). */
@media (max-width: 768px) {
    body.page-xyz {
        --site-header-band-height: 52px;
        --site-header-inline-pad: 16px;
        --site-hamburger-bar-color: var(--xyz-nav);
        overflow-x: clip;
        overflow-y: auto;
        background-color: var(--page-surface);
        background-image: var(--paper-grain);
        background-size: 160px 160px;
        background-repeat: repeat;
        color: var(--xyz-heading);
    }

    body.page-xyz #main-content,
    body.page-xyz .house-detail-container,
    body.page-xyz .below-hero-surface,
    body.page-xyz .site-footer,
    body.page-xyz #photo-gallery {
        background-color: var(--page-surface);
        background-image: var(--paper-grain);
        background-size: 160px 160px;
        background-repeat: repeat;
        color: var(--xyz-heading);
    }

    body.page-xyz .hamburger-menu,
    body.page-xyz .hamburger-menu.active,
    body.page-xyz header.site-header .back-button {
        color: var(--xyz-nav) !important;
    }

    /* Soft discreet yellow CTA — dark type for contrast on cream page */
    body.page-xyz .mobile-floating-dates-btn.mobile-floating-dates-btn--home,
    body.page-xyz .mobile-floating-dates-btn--property.mobile-floating-dates-btn--home,
    body.page-xyz .mobile-floating-dates-btn--property.has-dates-selected {
        background: #e8d39a;
        border-color: rgba(160, 130, 60, 0.28);
        color: #1f3344;
        box-shadow: 0 3px 12px rgba(31, 51, 68, 0.16);
    }

    body.page-xyz .mobile-floating-dates-btn--home:hover,
    body.page-xyz .mobile-floating-dates-btn--home:focus-visible {
        background: #edd9a8;
    }

    body.page-xyz .mobile-floating-dates-btn--home:active {
        background: #dfc88a;
    }

    body.page-xyz .hero-inline-details,
    body.page-xyz .page-layout__content > .hero-inline-details {
        background: #EABB7A;
        color: #1f2d3a;
    }

    #photo-gallery {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        padding-top: calc(env(safe-area-inset-top, 0px) + var(--site-header-band-height) + 4px);
        height: auto;
        min-height: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #photo-gallery > .index-hero-frame {
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    #photo-gallery .index-hero-frame {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        border: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
    }

    #photo-gallery .photo-gallery-container {
        position: relative;
        flex: 0 0 auto;
        min-height: 0;
        max-width: none;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    #photo-gallery .gallery-main {
        position: relative;
        flex: 1 1 auto;
        aspect-ratio: unset;
        width: 100%;
        height: auto;
        min-height: 220px;
        max-height: none;
        border-radius: 0;
        overflow: hidden;
    }

    #photo-gallery .gallery-main img {
        object-position: center 35%;
        border-radius: inherit;
        transition: none;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    #photo-gallery .gallery-main::after {
        display: none;
    }

    #photo-gallery .hero-mosaic-caption {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    #photo-gallery .hero-mosaic-caption .hero-desktop-title {
        font-size: clamp(1.05rem, 4.2vw, 1.2rem);
    }

    /* Mosaic arrows off on phones — tap the collage to open fullscreen. */
    #photo-gallery .photo-gallery-container:not(.gallery-fullscreen) #galPrev,
    #photo-gallery .photo-gallery-container:not(.gallery-fullscreen) #galNext {
        display: none !important;
    }

    #photo-gallery::after {
        display: none;
    }

    /* Phone fullscreen chrome (no #photo-gallery — container is on body). */
    .photo-gallery-container.gallery-fullscreen #galPrev.gallery-nav--prev,
    .photo-gallery-container.gallery-fullscreen #galNext.gallery-nav--next {
        background: rgba(16, 24, 32, 0.28) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        display: inline-flex !important;
        height: 36px !important;
        opacity: 0.85;
        width: 36px !important;
        z-index: 40 !important;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .photo-gallery-container.gallery-fullscreen #galPrev.gallery-nav--prev {
        left: max(8px, env(safe-area-inset-left, 0px)) !important;
    }

    .photo-gallery-container.gallery-fullscreen #galNext.gallery-nav--next {
        right: max(8px, env(safe-area-inset-right, 0px)) !important;
    }

    .photo-gallery-container.gallery-fullscreen #galPrev.gallery-nav--prev svg,
    .photo-gallery-container.gallery-fullscreen #galNext.gallery-nav--next svg {
        height: 16px !important;
        opacity: 0.95;
        width: 16px !important;
    }

    .photo-gallery-container.gallery-fullscreen #galPrev:active,
    .photo-gallery-container.gallery-fullscreen #galNext:active,
    .photo-gallery-container.gallery-fullscreen #galPrev:focus-visible,
    .photo-gallery-container.gallery-fullscreen #galNext:focus-visible {
        background: rgba(16, 24, 32, 0.48) !important;
        opacity: 1;
    }

    .photo-gallery-container.gallery-fullscreen .gallery-counter {
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        left: max(10px, env(safe-area-inset-left, 0px));
        padding: 5px 10px;
        font-size: 12px;
        background: rgba(15, 30, 45, 0.62);
        z-index: 40;
        pointer-events: auto;
    }

    .photo-gallery-container.gallery-fullscreen .gallery-fullscreen-btn {
        width: 44px;
        height: 44px;
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        background: rgba(15, 30, 45, 0.48);
        border: 1px solid rgba(255, 255, 255, 0.45);
        z-index: 40;
        pointer-events: auto;
    }

    .photo-gallery-container.gallery-fullscreen .gallery-fullscreen-btn svg {
        width: 18px;
        height: 18px;
    }

    .photo-gallery-container.gallery-fullscreen .gallery-close {
        top: max(12px, env(safe-area-inset-top, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        z-index: 40;
    }

    #photo-gallery .hero-guest-quote {
        font-size: 0.92rem;
        line-height: 1.55;
        color: #1a1a1a;
        max-width: none;
    }

    #description.description-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    #description .description-content > p:first-of-type {
        scroll-margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Phone prose stays locked to review metrics (see shared rule above). */

    /* Clearance for the fixed book bar (dates + price + safe area). */
    .house-detail-container {
        scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    /* Match hero title card inset so copy lines up with the name */
    body.page-xyz .page-layout__content .section-content,
    body.page-xyz .page-layout__content .faq-two-column .section-content {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    /*
      Phone "Select Dates" — compact soft yellow pill, dark type.
    */
    body.page-xyz .mobile-floating-dates-btn.mobile-floating-dates-btn--home,
    body.page-xyz .mobile-floating-dates-btn--property.mobile-floating-dates-btn--home {
        --home-widget-control-height-sm: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: min(calc(100vw - 32px), 360px);
        min-width: min(calc(100vw - 32px), 280px);
        max-width: min(calc(100vw - 32px), 360px);
        min-height: 40px;
        height: 40px;
        padding: 0 20px;
        border-radius: 999px;
        border: 1px solid rgba(160, 130, 60, 0.28);
        background: #e8d39a;
        background-image: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: #1f3344;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-transform: none;
        box-shadow: 0 3px 12px rgba(31, 51, 68, 0.16);
        text-shadow: none;
    }

    body.page-xyz .mobile-floating-dates-btn--home .mobile-floating-dates-btn__field,
    body.page-xyz .mobile-floating-dates-btn--property .mobile-floating-dates-btn__field {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        flex: 0 1 auto;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        background-color: transparent;
        background-image: none;
        box-sizing: border-box;
    }

    body.page-xyz .mobile-floating-dates-btn--property .mobile-floating-dates-btn__dates {
        font-size: 12px;
    }

    body.page-xyz .mobile-floating-dates-btn--property .mobile-floating-dates-btn__price {
        font-size: 10px;
    }

    body.page-xyz .mobile-floating-dates-btn__dates,
    body.page-xyz .mobile-floating-dates-btn--home .mobile-floating-dates-btn__label {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: auto;
        max-width: 100%;
        color: #1f3344;
        font-family: var(--font-sans, var(--cc-font-sans, Inter, sans-serif));
        font-size: 12px !important;
        font-weight: 500;
        letter-spacing: 0.02em;
        line-height: 1.2;
        text-align: center;
        font-style: normal;
        text-decoration: none;
        text-transform: none;
    }

    body.page-xyz .mobile-floating-dates-btn--property:not(.has-dates-selected) .mobile-floating-dates-btn__field {
        align-items: center;
    }

    body.page-xyz .mobile-floating-dates-btn--property:not(.has-dates-selected) .mobile-floating-dates-btn__dates {
        color: #1f3344;
        font-style: normal;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        font-size: 12px !important;
    }

    body.page-xyz .mobile-floating-dates-btn__price {
        display: block;
        width: auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: rgba(31, 51, 68, 0.78);
        font-family: var(--font-sans, var(--cc-font-sans, Inter, sans-serif));
        font-size: 10px !important;
        font-weight: 500;
        letter-spacing: 0.01em;
        line-height: 1.2;
        text-align: center;
        text-transform: none;
    }

    body.page-xyz .mobile-floating-dates-btn__price[hidden] {
        display: none;
    }

    body.page-xyz .mobile-floating-dates-btn--home .mobile-floating-dates-btn__action,
    body.page-xyz .mobile-floating-dates-btn--home .mobile-floating-dates-btn__search {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 56px;
        height: 28px;
        padding: 0 10px;
        border: 1px solid rgba(31, 51, 68, 0.14);
        border-radius: 999px;
        background: rgba(31, 51, 68, 0.08);
        background-image: none;
        box-shadow: none;
        font-family: var(--font-sans, var(--cc-font-sans, Inter, sans-serif));
        font-size: 11px;
        font-weight: 600;
        color: #1f3344;
        letter-spacing: 0.02em;
        line-height: 1;
        text-transform: none;
    }

    body.page-xyz .mobile-floating-dates-btn--property .mobile-floating-dates-btn__action {
        min-width: 56px;
        padding: 0 10px;
        align-self: center;
        height: 28px;
        min-height: 28px;
        font-size: 11px;
    }

    body.page-xyz .mobile-floating-dates-btn--property .mobile-floating-dates-btn__action[hidden] {
        display: none;
    }

    body.page-xyz .mobile-floating-dates-btn--home:hover,
    body.page-xyz .mobile-floating-dates-btn--home:focus-visible {
        background: #edd9a8;
        background-image: none;
        border-color: rgba(160, 130, 60, 0.34);
        box-shadow: 0 4px 14px rgba(31, 51, 68, 0.18);
    }

    body.page-xyz .mobile-floating-dates-btn--home:focus-visible {
        outline: 2px solid rgba(200, 170, 90, 0.55);
        outline-offset: 2px;
    }

    body.page-xyz .mobile-floating-dates-btn--home:active {
        transform: translateX(-50%) scale(0.98);
        background: #dfc88a;
        background-image: none;
        border-color: rgba(160, 130, 60, 0.3);
        box-shadow: 0 2px 8px rgba(31, 51, 68, 0.14);
    }

    body.page-xyz .mobile-floating-dates-btn--home:active .mobile-floating-dates-btn__action,
    body.page-xyz .mobile-floating-dates-btn--home:active .mobile-floating-dates-btn__search {
        background-color: rgba(31, 51, 68, 0.12);
    }

    body.page-xyz .mobile-floating-dates-btn--home:hover .mobile-floating-dates-btn__field,
    body.page-xyz .mobile-floating-dates-btn--home:focus-visible .mobile-floating-dates-btn__field {
        border-color: transparent;
        background-color: transparent;
    }

    body.page-xyz .mobile-floating-dates-btn--property.has-dates-selected {
        height: auto;
        min-height: 40px;
        padding: 7px 14px 7px 16px;
        background: #e8d39a;
        color: #1f3344;
    }

    body.page-xyz .mobile-floating-dates-btn--property.has-dates-selected .mobile-floating-dates-btn__dates {
        font-size: 11px !important;
        letter-spacing: 0.01em;
        text-transform: none;
    }

    /* Phone calendar sheet: match floating widget (lilac pick dates / yellow checkout) */
    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px 16px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.2;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
        filter: none;
    }

    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn.sidebar-book-btn--pick-dates,
    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn.sidebar-book-btn--try-dates {
        background: #c9a0e0;
        border: 1px solid rgba(31, 51, 68, 0.08);
        color: #1f3344;
        font-style: normal;
        font-weight: 600;
        text-decoration: none;
        opacity: 1;
        cursor: pointer;
    }

    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn.sidebar-book-btn--pick-dates:hover,
    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn.sidebar-book-btn--try-dates:hover {
        background: #d1aee6;
    }

    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn.sidebar-book-btn--quote-pending:disabled {
        background: transparent;
        border: none;
        color: #737373;
        font-style: normal;
        font-weight: 500;
        text-decoration: none;
        opacity: 1;
        cursor: default;
    }

    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn[data-checkout-ready="true"] {
        background: #3d7d6a;
        border: 1px solid rgba(40, 90, 75, 0.35);
        color: #ffffff;
        font-style: normal;
        font-weight: 600;
        text-decoration: none;
        box-shadow: none;
    }

    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn[data-checkout-ready="true"]:active {
        background: #2d5a4d;
        transform: none;
        filter: none;
        box-shadow: none;
    }

    body.page-xyz .sidebar-calendar-widget .sidebar-book-btn[data-checkout-ready="true"]:hover {
        background: #356b5b;
        color: #ffffff;
        filter: none;
        transform: none;
        box-shadow: none;
    }

    /* Reserve sheet: force the booking calendar on-screen above the dimmer */
    body.page-xyz.reserve-spotlight-active .page-layout__sidebar {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2100 !important;
        background: transparent !important;
        pointer-events: auto !important;
    }

    body.page-xyz.reserve-spotlight-active .sidebar-calendar-widget {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        max-height: min(88dvh, 640px) !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        background-color: #ffffff !important;
        box-shadow: 0 -8px 32px rgba(15, 35, 55, 0.18) !important;
        padding: 14px 14px max(14px, env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 2101 !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
    }

    body.page-xyz.reserve-spotlight-active .sidebar-calendar-widget .flatpickr-calendar {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        box-shadow: none !important;
    }

    /* .house-detail-container h2/h3 sizing at this breakpoint is already set (identical
       values, higher specificity) by site-mobile-refine.css, which loads after this file. */
}

@media (min-width: 769px) and (max-width: 1024px) {
    #photo-gallery {
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    #photo-gallery .hero-mosaic-caption {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(20px, 4vw, 34px);
        padding-right: clamp(20px, 4vw, 34px);
        padding-bottom: clamp(14px, 2.2vw, 20px);
        box-sizing: border-box;
    }

    #photo-gallery .index-hero-frame {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        align-self: stretch;
    }

    /* Slightly smaller collage so title + gallery feel balanced on tablet. */
    #photo-gallery .hero-mosaic {
        max-height: min(62vh, 600px);
        aspect-ratio: 16 / 10;
        width: min(100%, 820px);
    }

    .page-layout {
        flex-direction: column;
        gap: 28px;
        padding: 0 clamp(20px, 4vw, 34px) 24px;
    }

    .page-layout__content {
        max-width: 100%;
        width: 100%;
    }

    .page-layout__sidebar {
        display: block;
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .sidebar-calendar-widget {
        position: relative;
        top: auto;
        padding: 18px 18px 16px;
    }

    .sidebar-calendar-widget .flatpickr-calendar {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-calendar-widget .flatpickr-days,
    .sidebar-calendar-widget .flatpickr-innerContainer,
    .sidebar-calendar-widget .flatpickr-rContainer {
        width: 100%;
        max-width: 100%;
    }

    .sidebar-calendar-widget .dayContainer {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-content: space-between;
    }

    .sidebar-calendar-widget .flatpickr-day {
        width: calc((100% - 12px) / 7);
        max-width: none;
        margin: 0 0 2px;
    }

    .hero-inline-row {
        flex-wrap: wrap;
        row-gap: 10px;
    }
}

/*
  Desktop: full-bleed gallery band; title + mosaic sit in the same centered column
  as .page-layout below.
*/
@media (min-width: 1024px) {
    #photo-gallery {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        max-width: none;
        min-height: 0;
        height: auto;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
        position: relative;
        /* Sit gallery higher: clear fixed header with minimal air */
        padding-top: calc(
            env(safe-area-inset-top, 0px) + var(--site-header-band-height, 56px) + 2px
        );
        padding-bottom: 0;
    }

    #photo-gallery .hero-mosaic-caption {
        width: 100%;
        max-width: 1340px;
        margin: 0 auto 12px;
        padding-left: var(--xyz-content-inline-start);
        padding-right: clamp(48px, 6vw, 88px);
        padding-bottom: 4px;
        box-sizing: border-box;
    }

    #photo-gallery .index-hero-frame {
        width: 100%;
        max-width: none;
        margin: 0;
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        align-self: stretch;
    }

    #photo-gallery .photo-gallery-container {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: 0;
        width: 100%;
        max-width: 1340px;
        /* No bottom margin inside the green band — it showed as a green strip */
        margin: 0;
        padding-left: var(--xyz-content-inline-start);
        padding-right: clamp(48px, 6vw, 88px);
        padding-bottom: 0;
        box-sizing: border-box;
        align-self: center;
    }

    #photo-gallery .hero-mosaic {
        flex: 0 0 auto;
        width: min(100%, 920px);
        height: auto;
        max-height: min(66vh, 620px);
        aspect-ratio: auto;
        margin: 0;
        border-radius: 16px 16px 0 0;
    }

    #photo-gallery .gallery-main {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: unset;
        height: auto;
        max-height: none;
        min-height: 0;
        margin: 0 0 14px;
        align-self: stretch;
    }

    #photo-gallery .gallery-main img {
        display: block;
        height: 100%;
        min-height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
    }

    #photo-gallery .hero-title-card {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        box-sizing: border-box;
    }
}
/* Gallery surface: xyz-optimized paints .gallery-widget-section with !important. */
body.page-xyz #photo-gallery.gallery-widget-section {
    background-color: var(--page-surface) !important;
    background-image: var(--paper-grain) !important;
    background-size: 160px 160px !important;
    background-repeat: repeat !important;
    box-shadow: none;
    clip-path: none;
}

body.page-xyz #photo-gallery .index-hero-frame,
body.page-xyz #photo-gallery .photo-gallery-container {
    background-color: var(--page-surface);
    background-image: var(--paper-grain);
    background-size: 160px 160px;
    background-repeat: repeat;
}

body.page-xyz #photo-gallery .gallery-main {
    background-color: var(--page-surface);
    background-image: none;
}

/* Non-phone: darker band only at mosaic height, edge-to-edge (not title/air above). */
@media (min-width: 769px) {
    body.page-xyz #photo-gallery.gallery-widget-section {
        overflow: visible;
        max-width: none !important;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page-xyz #photo-gallery .index-hero-frame {
        position: relative;
        z-index: 0;
        width: 100%;
        max-width: none;
        align-self: stretch;
        margin: 0;
        padding: 0;
        border: 0;
        background-color: var(--gallery-gutter-surface);
        background-image: none;
        box-sizing: border-box;
        line-height: 0;
    }

    body.page-xyz #photo-gallery .index-hero-frame::before {
        content: none;
    }

    body.page-xyz #photo-gallery .photo-gallery-container,
    body.page-xyz #photo-gallery .gallery-main {
        background-color: transparent;
        background-image: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    body.page-xyz #photo-gallery .hero-mosaic {
        margin-bottom: 0;
        aspect-ratio: auto;
    }
}

/* Tablet: modest side inset; band still full-bleed. */
@media (min-width: 769px) and (max-width: 1023px) {
    body.page-xyz #photo-gallery .hero-mosaic-caption {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(20px, 4vw, 34px);
        padding-right: clamp(20px, 4vw, 34px);
        box-sizing: border-box;
    }

    body.page-xyz #photo-gallery .index-hero-frame {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    body.page-xyz #photo-gallery .photo-gallery-container {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(20px, 4vw, 34px);
        padding-right: clamp(20px, 4vw, 34px);
        box-sizing: border-box;
    }

    body.page-xyz #photo-gallery .hero-mosaic {
        width: min(100%, 820px);
    }
}

body.page-xyz .sidebar-calendar-widget {
    background-color: #ffffff;
}

/* Available stay: refined Ionian jade — calm, high-end CTA (no glow) */
body.page-xyz .sidebar-calendar-widget .sidebar-book-btn[data-checkout-ready="true"],
body.page-xyz .sidebar-calendar-widget .glass-btn.primary.sidebar-book-btn[data-checkout-ready="true"] {
    background: #3d7d6a;
    background-image: none;
    border: 1px solid rgba(40, 90, 75, 0.35);
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
    filter: none;
}

body.page-xyz .sidebar-calendar-widget .sidebar-book-btn[data-checkout-ready="true"]:hover,
body.page-xyz .sidebar-calendar-widget .glass-btn.primary.sidebar-book-btn[data-checkout-ready="true"]:hover {
    background: #356b5b;
    background-image: none;
    border-color: rgba(40, 90, 75, 0.42);
    color: #ffffff;
    filter: none;
    box-shadow: none;
}

body.page-xyz .sidebar-calendar-widget .sidebar-book-btn[data-checkout-ready="true"]:active,
body.page-xyz .sidebar-calendar-widget .glass-btn.primary.sidebar-book-btn[data-checkout-ready="true"]:active {
    background: #2d5a4d;
    background-image: none;
    color: #ffffff;
    filter: none;
    transform: none;
    box-shadow: none;
}

/* Body copy: headings/nav use --xyz-text; prose uses review body color (set above). */
body.page-xyz .house-detail-container,
body.page-xyz .house-detail-container li,
body.page-xyz .house-detail-container .faq-question,
body.page-xyz .house-detail-container .amenity-item,
body.page-xyz .house-detail-container .rating-overview .rating-count,
body.page-xyz .house-detail-container .rating-overview .category-name,
body.page-xyz .house-detail-container .rating-overview .category-score {
    color: var(--xyz-text);
}

body.page-xyz .house-detail-container h2:not(.hero-desktop-title),
body.page-xyz .house-detail-container h3 {
    color: var(--xyz-heading);
    border-bottom-color: var(--xyz-border-strong);
}

body.page-xyz .page-layout a,
body.page-xyz .reviews-section .view-all-reviews,
body.page-xyz .reviews-section #showMoreReviews,
body.page-xyz #locationReadMore,
body.page-xyz #locationReadLess {
    color: var(--xyz-link);
}

body.page-xyz .reviews-section .view-all-reviews:hover,
body.page-xyz .reviews-section #showMoreReviews:hover,
body.page-xyz #locationReadMore:hover,
body.page-xyz #locationReadLess:hover {
    color: var(--xyz-link-hover);
}

/* :not(.hero-mosaic-caption) kept for legacy; mosaic caption now sits above the gallery. */
body.page-xyz #photo-gallery .hero-title-card:not(.hero-mosaic-caption) {
    background: transparent;
    color: var(--xyz-heading);
}

body.page-xyz #photo-gallery .hero-title-card .hero-phone-title,
body.page-xyz #photo-gallery .hero-title-card .hero-desktop-title,
body.page-xyz #photo-gallery .hero-rating-line,
body.page-xyz .rating-number {
    color: var(--xyz-heading);
}

body.page-xyz #photo-gallery .hero-title-card .hero-inline-details,
body.page-xyz .page-layout__content > .hero-inline-details {
    background: #EABB7A;
    color: #1f2d3a;
}

body.page-xyz #photo-gallery .hero-desktop-subtitle {
    color: var(--xyz-muted);
}

body.page-xyz #photo-gallery .hero-title-card .hero-guest-quote {
    color: var(--xyz-guest-quote);
}

body.page-xyz #photo-gallery .hero-title-card:not(.hero-mosaic-caption) .hero-desktop-title {
    border-bottom-color: rgba(36, 55, 70, 0.18);
}

body.page-xyz #photo-gallery .hero-tag--family { color: #2f8f5b; }
body.page-xyz #photo-gallery .hero-tag--work,
body.page-xyz #photo-gallery .hero-tag--winter { color: #2f80ed; }

body.page-xyz .rating-breakdown,
body.page-xyz [data-rating-categories],
body.page-xyz .after-hero-divider {
    display: none;
}

/* Cyan strip from xyz-optimized (.index-hero-frame::after) — hide under gallery */
body.page-xyz #photo-gallery .index-hero-frame::after {
    display: none !important;
    content: none !important;
}

body.page-xyz #reviews .review-card {
    background: var(--xyz-card);
    border: 1px solid var(--xyz-card-border);
}

body.page-xyz #reviews .reviewer-name {
    color: var(--xyz-review-name);
}

body.page-xyz #reviews .review-date,
body.page-xyz #reviews .review-content p {
    color: var(--xyz-review-body);
}

body.page-xyz #reviews .platform-link {
    background: var(--xyz-platform-bg);
    border-color: var(--xyz-card-border);
    color: var(--xyz-platform-text);
}

body.page-xyz .faq-item {
    border-bottom-color: var(--xyz-border);
}

body.page-xyz .faq-toggle {
    color: var(--xyz-faq-toggle);
}

body.page-xyz .below-hero-surface {
    width: 100%;
}

body.page-xyz .below-hero-surface .page-layout {
    margin-top: 0;
}

body.page-xyz .below-hero-surface .contact-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* One left edge: title, details, description, amenities */
@media (min-width: 1024px) {
    body.page-xyz .below-hero-surface .page-layout {
        max-width: 1340px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding-left: var(--xyz-content-inline-start);
    }

    body.page-xyz .below-hero-surface .page-layout__content .section-content,
    body.page-xyz .below-hero-surface .page-layout__content .faq-two-column .section-content {
        padding-left: 0;
        padding-right: 0;
    }

    body.page-xyz .below-hero-surface .description-content,
    body.page-xyz .below-hero-surface #description .description-content,
    body.page-xyz .below-hero-surface .amenities-grid,
    body.page-xyz .below-hero-surface .amenities-grid-expanded {
        margin-left: 0;
        padding-left: 0;
    }
}

@media (min-width: 1920px) {
    body.page-xyz {
        --xyz-content-inline-start: clamp(72px, 5vw, 104px);
    }
}

body.page-xyz .below-hero-surface .page-layout.page-layout--centered {
    justify-content: center;
    gap: 0;
}

body.page-xyz .below-hero-surface .page-layout.page-layout--centered .page-layout__content {
    flex: 0 1 760px;
    max-width: 760px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1920px) {
    body.page-xyz .below-hero-surface .page-layout.page-layout--centered .page-layout__content {
        flex-basis: min(820px, 48vw);
        max-width: min(820px, 48vw);
    }
}

/* Desktop: calendar below gallery, sticky beside page content */
@media (min-width: 1025px) {
    body.page-xyz {
        --xyz-sidebar-width: 360px;
        --xyz-sidebar-gap: 48px;
        --xyz-sidebar-top: calc(env(safe-area-inset-top, 0px) + var(--site-header-band-height, 80px) + 12px);
    }

    body.page-xyz .below-hero-surface .page-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--xyz-sidebar-gap);
        padding-top: 36px;
        padding-right: clamp(48px, 6vw, 88px);
        box-sizing: border-box;
    }

    body.page-xyz .page-layout__content > .hero-inline-details {
        margin-bottom: 22px;
    }

    body.page-xyz .below-hero-surface .page-layout__content {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 760px;
    }

    body.page-xyz .page-layout__sidebar {
        display: block;
        position: sticky;
        top: var(--xyz-sidebar-top);
        width: var(--xyz-sidebar-width);
        max-width: var(--xyz-sidebar-width);
        margin: 0 0 14px;
        flex: 0 0 var(--xyz-sidebar-width);
        z-index: 900;
        background: transparent;
    }

    body.page-xyz .sidebar-calendar-widget {
        position: relative;
        top: auto;
        max-height: calc(100dvh - var(--xyz-sidebar-top) - 16px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    body.page-xyz .sidebar-calendar-widget::-webkit-scrollbar {
        display: none;
    }

    /* Spotlight overlay is z-index 2000 — keep booking card above the dimmer. */
    body.page-xyz.reserve-spotlight-active .page-layout__sidebar {
        display: block;
        position: sticky;
        top: var(--xyz-sidebar-top);
        z-index: 2100;
        background: transparent;
    }

    body.page-xyz.reserve-spotlight-active .sidebar-calendar-widget {
        position: relative;
        top: auto;
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - var(--xyz-sidebar-top) - 16px);
        margin: 0 0 14px;
        border-radius: 16px;
        background-color: #ffffff;
        box-shadow: 0 16px 40px rgba(15, 35, 55, 0.22);
        z-index: 2101;
    }
}

/* Phone/tablet sheet: also stay above the dim overlay */
@media (max-width: 1024px) {
    body.page-xyz.reserve-spotlight-active .page-layout__sidebar {
        z-index: 2100;
    }

    body.page-xyz.reserve-spotlight-active .sidebar-calendar-widget {
        z-index: 2101;
        background-color: #ffffff;
    }
}

/* Dark mode: reassign tokens on html so body + descendants inherit. */
html.theme-dark:has(body.page-xyz) {
    --page-surface: #1f3344;
    --gallery-gutter-surface: #182a38;
    --paper-grain: none;
    --hero-bg: #1f3344;
    --hero-surface: #1f3344;
    --light-gray: #1f3344;
    --background-color: #1f3344;
    --cc-dark-bg: #1f3344;
    --cc-dark-card: #2b4358;
    --cc-dark-chip: #334d64;

    --xyz-text: rgba(238, 243, 248, 0.95);
    --xyz-heading: #f4f7fb;
    --xyz-muted: rgba(214, 226, 238, 0.94);
    --xyz-inline-details: rgba(238, 243, 248, 0.95);
    --xyz-link: #b8d4ec;
    --xyz-link-hover: #f4f7fb;
    --xyz-quote: #f4f7fb;
    --xyz-guest-quote: rgba(214, 226, 238, 0.94);
    --xyz-nav: rgba(255, 255, 255, 0.92);
    --xyz-border: rgba(200, 215, 230, 0.22);
    --xyz-border-strong: rgba(200, 215, 230, 0.28);
    --xyz-card: #2b4358;
    --xyz-card-border: rgba(196, 212, 228, 0.18);
    --xyz-platform-bg: #334d64;
    --xyz-faq-toggle: rgba(214, 226, 238, 0.72);
    --xyz-contact-label: rgba(214, 226, 238, 0.82);
    --xyz-contact-link: #f4f7fb;
    --xyz-contact-hover: #ffffff;
    --xyz-contact-sub: rgba(214, 226, 238, 0.86);
    --xyz-review-name: #eef3f8;
    --xyz-review-body: rgba(244, 249, 255, 0.92);
    --xyz-platform-text: #dce8f3;
    --text-color: #eef3f8;

    background-color: var(--page-surface);
    background-image: none;
}

html.theme-dark body.page-xyz {
    background-color: var(--page-surface);
    background-image: none;
    color: var(--text-color);
}

html.theme-dark body.page-xyz .hamburger-menu,
html.theme-dark body.page-xyz .hamburger-menu.active,
html.theme-dark body.page-xyz.nav-dark .hamburger-menu,
html.theme-dark body.page-xyz.nav-dark .hamburger-menu.active {
    color: #ffffff;
}

html.theme-dark body.page-xyz #photo-gallery .hero-title-card:not(.hero-mosaic-caption) .hero-desktop-title,
html.theme-dark body.page-xyz #photo-gallery .hero-title-card .hero-phone-title {
    border-bottom-color: rgba(200, 215, 230, 0.28);
}

/* Booking widget stays light on navy */
html.theme-dark body.page-xyz .sidebar-calendar-widget {
    background-color: #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* ── Collage gallery (large left + two stacked right) — phone + desktop ── */
#photo-gallery .photo-gallery-container {
    position: relative;
}

#photo-gallery .hero-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    width: 100%;
    flex: 1 1 auto;
    min-height: 280px;
    height: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: var(--gallery-gutter-surface);
}

#photo-gallery .hero-mosaic[hidden] {
    display: none;
}

#photo-gallery .hero-mosaic__item {
    position: relative;
    display: block;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: var(--gallery-gutter-surface);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#photo-gallery .hero-mosaic__item--main {
    grid-column: 1;
    grid-row: 1 / span 2;
}

#photo-gallery .hero-mosaic__item--top {
    grid-column: 2;
    grid-row: 1;
}

#photo-gallery .hero-mosaic__item--bottom {
    grid-column: 2;
    grid-row: 2;
}

/* Tablet + desktop: left locked to 3:2; right pair crops to match that height. */
@media (min-width: 769px) {
    #photo-gallery .hero-mosaic {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
        /* minmax(0,…) so portrait imgs cannot inflate row min-content */
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        height: auto;
        aspect-ratio: auto;
        max-height: none;
    }

    #photo-gallery .hero-mosaic__item {
        margin: 0;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    #photo-gallery .hero-mosaic__item--main {
        aspect-ratio: 3 / 2;
        width: 100%;
        height: auto;
        max-height: min(76vh, 780px);
        align-self: stretch;
    }

    #photo-gallery .hero-mosaic__item--top,
    #photo-gallery .hero-mosaic__item--bottom {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        align-self: stretch;
    }

    /* Detach from intrinsic image size so vertical photos crop cleanly */
    #photo-gallery .hero-mosaic__item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

#photo-gallery .hero-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--gallery-gutter-surface);
    transition: filter 0.2s ease;
}

#photo-gallery .hero-mosaic__item--top:hover img,
#photo-gallery .hero-mosaic__item--bottom:hover img {
    filter: brightness(0.84);
}

#photo-gallery .hero-mosaic__item:focus-visible {
    outline: 2px solid #21c9ee;
    outline-offset: 2px;
    z-index: 1;
}

#photo-gallery .hero-mosaic__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 30, 45, 0.48);
    color: #fff;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

#photo-gallery .hero-mosaic__more[hidden] {
    display: none;
}

/*
  Title above the gallery; persons/bedrooms line sits above the description.
*/
#photo-gallery .hero-mosaic-caption {
    display: block;
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    padding: 0 0 clamp(12px, 1.6vw, 18px);
    box-sizing: border-box;
    pointer-events: none;
    border: 0;
    background: none;
    box-shadow: none;
    text-shadow: none;
    text-align: left;
}

/* Desktop: keep title in the centered content column (after base caption reset). */
@media (min-width: 1024px) {
    body.page-xyz #photo-gallery .hero-mosaic-caption {
        width: 100%;
        max-width: 1340px;
        margin: 0 auto 12px;
        padding-left: var(--xyz-content-inline-start);
        padding-right: clamp(48px, 6vw, 88px);
        padding-bottom: 4px;
        box-sizing: border-box;
    }

    body.page-xyz .page-layout__content > .hero-inline-details {
        margin-top: -7px;
        margin-bottom: 27px;
    }

    body.page-xyz #photo-gallery .photo-gallery-container {
        width: 100%;
        max-width: 1340px;
        margin: 0 auto;
        padding-left: var(--xyz-content-inline-start);
        padding-right: clamp(48px, 6vw, 88px);
        padding-bottom: 0;
        box-sizing: border-box;
    }

    body.page-xyz #photo-gallery .hero-mosaic {
        width: min(100%, 980px);
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    body.page-xyz #photo-gallery .hero-mosaic__item--top,
    body.page-xyz #photo-gallery .hero-mosaic__item--bottom {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    body.page-xyz .after-hero-divider,
    body.page-xyz #photo-gallery .index-hero-frame::after {
        display: none !important;
    }
}

/* Wider screens: left tile grows with viewport; still 3:2. */
@media (min-width: 1280px) {
    body.page-xyz #photo-gallery .hero-mosaic {
        width: min(100%, 1080px);
        max-height: none;
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    body.page-xyz #photo-gallery .hero-mosaic__item--main {
        max-height: min(78vh, 820px);
    }
}

@media (min-width: 1600px) {
    body.page-xyz #photo-gallery .hero-mosaic {
        width: min(100%, 1180px);
        max-height: none;
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    body.page-xyz #photo-gallery .hero-mosaic__item--main {
        max-height: min(80vh, 900px);
    }
}

#photo-gallery .hero-mosaic-caption .hero-phone-title-row,
#photo-gallery .hero-mosaic-caption .hero-phone-title,
#photo-gallery .hero-mosaic-caption .hero-desktop-subtitle,
#photo-gallery .hero-mosaic-caption .hero-tags,
#photo-gallery .hero-mosaic-caption .hero-guest-quote,
#photo-gallery .hero-mosaic-caption .hero-inline-row,
#photo-gallery .hero-mosaic-caption .hero-card-footer,
#photo-gallery .hero-mosaic-caption .hero-reserve-btn {
    display: none;
}

#photo-gallery .hero-mosaic-caption .hero-desktop-title {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--xyz-heading);
    text-shadow: none;
    box-shadow: none;
}

@media (min-width: 1024px) {
    #photo-gallery .hero-mosaic-caption .hero-desktop-title {
        margin: 0;
        line-height: 1.2;
    }
}

#photo-gallery .hero-mosaic-caption .hero-inline-details {
    display: none;
}

/* Single-image carousel chrome only in fullscreen. #galPrev/#galNext stay visible —
   they double as the mosaic's inline prev/next (see initHeroMosaicArrows). These apply
   while :not(.gallery-fullscreen), i.e. before the container is re-parented, so no
   reparenting ambiguity here. */
#photo-gallery .photo-gallery-container:not(.gallery-fullscreen) .gallery-counter,
#photo-gallery .photo-gallery-container:not(.gallery-fullscreen) .gallery-fullscreen-btn {
    display: none;
}

#photo-gallery .photo-gallery-container:not(.gallery-fullscreen) .gallery-main {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    flex: none;
}

html.theme-dark body.page-xyz #photo-gallery .hero-mosaic {
    background: #1a2a38;
}

@media (max-width: 768px) {
    /* Phone matches desktop: title first, then gallery. */
    #photo-gallery > .hero-mosaic-caption {
        order: 1;
        /* Must follow the base .hero-mosaic-caption rule so horizontal inset wins */
        width: 100%;
        max-width: none;
        margin: 0 0 13px;
        padding: 10px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
    }

    #photo-gallery > .index-hero-frame {
        order: 2;
    }

    #photo-gallery .photo-gallery-container {
        margin-bottom: 0;
        margin-top: 0;
    }

    body.page-xyz .page-layout__content > .hero-inline-details {
        margin: 0 0 8px;
        padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
        font-size: clamp(0.8125rem, 3.4vw, 0.9375rem);
    }

    #photo-gallery .hero-mosaic-caption .hero-desktop-title {
        margin: 0;
        padding: 0;
        border: 0;
        border-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Keep body copy on the same inset as the title / house line */
    body.page-xyz .page-layout__content .section-content,
    body.page-xyz .page-layout__content .faq-two-column .section-content,
    body.page-xyz .below-hero-surface .description-section .section-content,
    body.page-xyz .below-hero-surface .reviews-section .section-content {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    /* Full-bleed collage; right tiles crop to match left height. */
    #photo-gallery .hero-mosaic {
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 3px;
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: min(42svh, 320px);
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
    }

    #photo-gallery .hero-mosaic__item {
        margin: 0;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        height: auto;
        align-self: stretch;
    }

    #photo-gallery .hero-mosaic__item--main {
        aspect-ratio: auto;
        width: 100%;
        height: 100%;
        max-height: none;
    }

    #photo-gallery .hero-mosaic__item--top,
    #photo-gallery .hero-mosaic__item--bottom {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    #photo-gallery .hero-mosaic__item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    #photo-gallery .hero-mosaic__more {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
}



















































