/* Shared property-page styles — extracted 2026-07-02 from the per-page inline <style> blocks.
   Superset: template pages + classic pages (reviews block) + king-cabin extra. Palette lives in tokens.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body { font-family: system-ui, -apple-system, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; }

    /* Header, nav, breadcrumb, footer styles are shared — see assets/site-chrome.css */

    /* PAGE LAYOUT */
    .property-page { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 4rem; }

    /* HEADER */
    .property-header { margin-bottom: 1.25rem; }
    .property-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--ink); line-height: 1.25; }
    .property-meta { margin-top: .4rem; display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
    .property-meta .badge { background: var(--mist); color: var(--forest); border-radius: 4px; padding: .2rem .6rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

    /* PHOTO GRID */
    .photo-hero { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; height: 480px; margin-bottom: 2.5rem; }
    .photo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; border-radius: 12px; transition: opacity .2s; }
    .photo-hero img:hover { opacity: .9; }
    .photo-main-wrap { height: 100%; }
    .photo-right-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 100%; }
    /* Mobile: one tall hero image, hide the 4-up thumbnail grid. Must come AFTER
       the base .photo-right-grid rule above or its display:grid wins the cascade
       (equal specificity) and the grid stays visible, overlapping the sidebar. */
    @media (max-width: 680px) { .photo-hero { grid-template-columns: 1fr; height: 260px; } .photo-right-grid { display: none; } }
    .photo-more-wrap { position: relative; }
    .photo-more-wrap img { display: block; }
    .photo-more-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.48); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .photo-more-overlay span { color: white; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

    /* TWO-COLUMN LAYOUT */
    .property-body { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
    /* Mobile: single column. The booking widget follows the property
       description (natural DOM order — sidebar is after .property-main), so
       guests read about the place first; the fixed .mobile-book-bar gives
       instant access to the form. (Previously order:-1 forced the tall widget
       card above the description.) */
    @media (max-width: 820px) { .property-body { grid-template-columns: 1fr; } }

    /* MAIN CONTENT */
    .section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--limestone); }
    .section:last-child { border-bottom: none; }
    .section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; color: var(--ink); }
    .section h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .4rem; color: var(--ink); }
    .section p { color: var(--ink); margin-bottom: .75rem; font-size: .95rem; }
    .section p:last-child { margin-bottom: 0; }

    /* KEY FACTS BAR */
    .facts-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; }
    .facts-bar span { font-size: .9rem; color: var(--muted); }
    .facts-bar span::before { content: "· "; }
    .facts-bar span:first-child::before { content: ""; }

    /* HOUSE MANUAL */
    .house-manual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; }
    @media (max-width: 600px) { .house-manual { grid-template-columns: 1fr; } }
    .hm-item {}
    .hm-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--forest); font-weight: 700; margin-bottom: .2rem; }
    .hm-content { font-size: .9rem; color: var(--ink); line-height: 1.5; }

    /* GALLERY GRID */
    .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    @media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
    .gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; cursor: pointer; display: block; transition: opacity .2s; }
    .gallery-grid img:hover { opacity: .88; }

    /* AMENITIES */
    .amenity-2col { columns: 2; column-gap: 2rem; }
    @media (max-width: 500px) { .amenity-2col { columns: 1; } }
    .amenity-2col-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .35rem 0; break-inside: avoid; color: var(--ink); }
    .amenity-2col-item::before { content: "›"; color: var(--forest); font-size: 1rem; font-weight: 700; flex-shrink: 0; }

    /* SIDEBAR — sticky ONLY in the desktop two-column layout. On mobile the
       sidebar is full-width and stacked below the description, so a sticky
       sidebar would pin the tall booking card over the page content and float
       above everything as you scroll. Keep it static below 820px. */
    @media (min-width: 821px) { .property-sidebar { position: sticky; top: 80px; } }

    /* MOBILE BOOKING BAR — fixed bottom CTA that jumps to the booking widget.
       Only in the single-column mobile layout; on desktop the sticky sidebar is
       always visible so the bar is hidden. Injected by property-page.js. */
    .mobile-book-bar { display: none; }
    @media (max-width: 820px) {
      .mobile-book-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: var(--white); border-top: 1px solid var(--limestone);
        padding: .7rem 1.1rem; box-shadow: 0 -6px 20px rgba(15, 38, 35, .1);
        transform: translateY(0); transition: transform .25s ease;
      }
      .mobile-book-bar.hidden { transform: translateY(120%); }
      .mobile-book-bar .mbb-text { display: flex; flex-direction: column; min-width: 0; }
      .mobile-book-bar .mbb-primary { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
      .mobile-book-bar .mbb-sub { font-size: .72rem; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .mobile-book-bar button {
        flex-shrink: 0; background: var(--forest); color: #fff; border: 0; border-radius: var(--radius);
        padding: .7rem 1.15rem; font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
      }
      .mobile-book-bar button:hover { background: var(--forest-2); }
      /* keep the fixed bar from covering the footer at the bottom of the page */
      body { padding-bottom: 72px; }
    }
    .sidebar-card { background: var(--white); border: 1px solid var(--limestone); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); }
    .sidebar-price { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
    .sidebar-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
    .sb-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .5rem; }
    .sb-field { margin-bottom: .5rem; }
    .sb-field:last-of-type { margin-bottom: 0; }
    .sb-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .25rem; }
    .sb-input { width: 100%; border: 1px solid var(--limestone); border-radius: var(--radius); padding: .7rem .85rem; font-size: .9rem; color: var(--ink); background: var(--white); outline: none; transition: border-color .15s; font-family: inherit; }
    .sb-input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(19,79,70,.08); }
    .sb-input::placeholder { color: var(--muted); }
    .btn-primary { display: block; width: 100%; background: var(--forest); color: white; text-align: center; padding: .875rem; border-radius: var(--radius); font-size: 1rem; font-weight: 600; text-decoration: none; margin-top: 1rem; transition: background .2s; cursor: pointer; border: none; font-family: inherit; }
    .btn-primary:hover { background: var(--forest-2); }
    .btn-outline { display: block; width: 100%; background: transparent; color: var(--forest); border: 2px solid var(--forest); text-align: center; padding: .75rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; text-decoration: none; margin-top: .6rem; transition: all .2s; }
    .btn-outline:hover { background: var(--mist); }
    .sidebar-note { font-size: .75rem; color: var(--muted); text-align: center; margin-top: .75rem; }
    .sb-divider { border: none; border-top: 1px solid var(--limestone); margin: 1rem 0; }
    .sb-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; padding: .2rem 0; }
    .sb-row[hidden] { display: none; } /* display:flex above beats the [hidden] UA default — empty Extra-guests row showed on every quote */
    .sb-row span:last-child { font-weight: 500; }
    .sb-row-sub { border-top: 1px solid var(--limestone); margin-top: .5rem; padding-top: .5rem; color: var(--muted); font-size: .82rem; }
    .sb-row-total { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .6rem; }

    /* LIGHTBOX */
    .lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 999; flex-direction: column; }
    .lightbox.open { display: flex; }
    .lb-topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; padding: .6rem 1rem; gap: .4rem; z-index: 10; background: linear-gradient(rgba(0,0,0,.5),transparent); pointer-events: none; }
    .lb-btn { pointer-events: all; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: white; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
    .lb-btn:hover { background: rgba(255,255,255,.26); }
    .lb-btn.active { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.5); }
    .lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 60px 80px 40px; overflow: hidden; }
    .lb-img-wrap { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; }
    #lightboxImg { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 4px; transition: transform .3s ease; cursor: zoom-in; user-select: none; }
    #lightboxImg.zoomed { transform: scale(1.9); cursor: zoom-out; }
    .lb-caption { text-align: center; color: rgba(255,255,255,.65); font-size: .82rem; padding: .3rem 1rem .65rem; flex-shrink: 0; }
    .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.15); color: white; font-size: 1.5rem; padding: .65rem .95rem; cursor: pointer; border-radius: 6px; transition: background .15s; z-index: 5; }
    .lightbox-nav:hover { background: rgba(255,255,255,.28); }
    .lightbox-nav.prev { left: .75rem; }
    .lightbox-nav.next { right: .75rem; }
    .lb-thumb-panel { position: absolute; top: 56px; right: 0; bottom: 0; width: 176px; background: rgba(0,0,0,.78); overflow-y: auto; padding: .5rem; gap: 5px; display: none; flex-direction: column; }
    .lb-thumb-panel.open { display: flex; }
    .lb-thumb-item { cursor: pointer; border-radius: 5px; overflow: hidden; border: 2px solid transparent; flex-shrink: 0; }
    .lb-thumb-item:hover { border-color: rgba(255,255,255,.4); }
    .lb-thumb-item img { width: 100%; height: 88px; object-fit: cover; display: block; }
    .lb-thumb-item.active { border-color: white; }
    .lb-thumb-cap { font-size: .66rem; color: rgba(255,255,255,.55); padding: .15rem .3rem .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* Phones: the 176px side panel overlaps the photo. Make the tiles view take
       the whole screen as a scrollable 2-column grid of larger thumbnails.
       Placed after the base .lb-thumb-panel rules so it wins the cascade.
       Tapping a tile (property-page.js) or toggling the button off returns to
       the single photo. */
    @media (max-width: 620px) {
      .lb-thumb-panel { top: 52px; left: 0; right: 0; bottom: 0; width: auto;
        background: rgba(0,0,0,.94); padding: .6rem;
        grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: .6rem; align-content: start; }
      .lb-thumb-panel.open { display: grid; }
      .lb-thumb-item img { height: 128px; }
      .lb-thumb-cap { font-size: .72rem; white-space: normal; }
    }


    /* AVAILABILITY CALENDAR */
    .avail-cal-wrap { margin-top: .75rem; }
    .avail-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
    .avail-cal-nav button { background: none; border: 1px solid var(--limestone); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; color: var(--ink); display: flex; align-items: center; justify-content: center; }
    .avail-cal-nav button:hover { background: var(--stone); }
    .avail-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    @media (max-width: 620px) { .avail-cal-months { grid-template-columns: 1fr; } }
    .avail-month { }
    .avail-month-title { font-size: .95rem; font-weight: 700; color: var(--forest); margin-bottom: .6rem; }
    .avail-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .7rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; }
    .avail-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
    .avail-day { text-align: center; padding: .3rem 0; font-size: .8rem; border-radius: 4px; line-height: 1.6; }
    .avail-day.empty { }
    .avail-day.avail { background: #e8f4ee; color: var(--forest); }
    .avail-day.booked { background: #f0f0f0; color: #6b6b6b; text-decoration: line-through; }
    .avail-day.past { color: #ccc; }
    .avail-day.today { font-weight: 700; outline: 2px solid var(--forest); outline-offset: -2px; }
    .avail-legend { display: flex; gap: 1.25rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
    .avail-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
    .avail-loading { color: var(--muted); font-size: .9rem; padding: 1rem 0; }

    /* REVIEWS */
    .reviews-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .reviews-avg { align-items: center; display: inline-flex; font-size: 0.88rem; font-weight: 600; gap: 4px; }
    .reviews-avg-number { color: var(--ink); font-weight: 800; }
    .reviews-avg-count { color: var(--muted); font-weight: 600; }
    .star { flex-shrink: 0; }
    .star-filled { color: var(--gold); }
    .star-empty { color: var(--limestone); }
    .reviews-container { display: flex; flex-direction: column; gap: 16px; }
    .review-card { border: 1px solid rgba(24, 35, 34, 0.1); border-radius: 8px; padding: 16px; }
    .review-header { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
    .review-stars { align-items: center; display: inline-flex; gap: 2px; }
    .review-meta { color: var(--muted); font-size: 0.84rem; font-weight: 600; }
    .review-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 4px; }
    .reviews-more { color: var(--lake); font-size: 0.88rem; font-weight: 700; margin: 0; }
.sb-field:last-of-type { margin-bottom: 0; }

    /* Links in body content: underline so they are distinguishable by more
       than color alone (WCAG 1.4.1). Nav/button/card links stay as-is. */
    .section a:not(.btn-primary):not(.btn-outline) {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
