/* ============================================================
   AirCalendar — public site stylesheet.
   Mobile-first. Branding colours arrive via --brand-primary /
   --brand-accent set in an inline <style> block by the layout
   so each PMC's theme applies without rebuilding CSS.
   ============================================================ */

:root {
    /* Neutrals */
    --surface:      #ffffff;
    --surface-2:    #f7f8fa;
    --surface-3:    #eef1f5;
    --border:       #e4e7ec;
    --text:         #111827;
    --text-muted:   #6b7280;
    --text-soft:    #9ca3af;
    --link:         #111827;
    --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md:    0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg:    0 20px 50px rgba(15, 23, 42, 0.12);

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    /* Branding — overridden inline per-site */
    --brand-primary: #0f172a;
    --brand-accent:  #2563eb;
    --brand-ink:     #ffffff;

    /* Focus ring derived from accent */
    --focus-ring: color-mix(in srgb, var(--brand-accent) 32%, transparent);

    /* Aliases so the shared Modal + daterange + color-picker + dropzone CSS
       (originally written for admin.css) works unchanged on public pages. */
    --panel:        var(--surface);
    --line:         var(--border);
    --bg-raised:    var(--surface-2);
    --subtle:       var(--text-soft);
    --text-2:       var(--text-muted);
    --muted:        var(--text-muted);
    --radius:       var(--r-md);
    --radius-lg:    var(--r-lg);
    --shadow:       var(--shadow-lg);
    --accent:       var(--brand-accent);
    --accent-ring:  var(--focus-ring);
    --accent-soft:  color-mix(in srgb, var(--brand-accent) 12%, transparent);
    --accent-ink:   #ffffff;
    --err:          #ef4444;
}

@media (prefers-color-scheme: dark) {
    :root {
        --surface:    #0f1115;
        --surface-2:  #151921;
        --surface-3:  #1c2130;
        --border:     #262c38;
        --text:       #e6e8ef;
        --text-muted: #99a0ae;
        --text-soft:  #6b7280;
        --link:       #e6e8ef;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.public-body {
    font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--surface);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* `clip` here is better than `hidden` — it also prevents programmatic
       horizontal scrolling without creating a new scroll context, so
       position:sticky on descendants keeps working. The 50vw negative
       bleed on .property-heading::before needs this to avoid pushing
       the page into horizontal scroll. */
    overflow-x: clip;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand-accent); }

h1, h2, h3, h4 { margin: 0 0 var(--s-3); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
p  { margin: 0 0 var(--s-3); }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* --- Layout -------------------------------------------------------- */

.public-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--s-5);
}

.public-main { flex: 1 0 auto; }

.public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--brand-nav-bg);
    color: var(--brand-nav-text);
    border-bottom: 1px solid var(--border);
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.public-header .public-brand,
.public-header .public-nav a,
.public-header .public-brand-text { color: var(--brand-nav-text); transition: color .3s; }

/* Transparent nav — homepage only */
.public-header.is-transparent {
    background: transparent;
    border-bottom-color: transparent;
    position: fixed;
    left: 0; right: 0;
}
.public-header.is-transparent .public-brand,
.public-header.is-transparent .public-nav a,
.public-header.is-transparent .public-brand-text { color: #fff; }
.public-header.is-transparent .public-nav a:hover { color: rgba(255,255,255,.7); }
.public-header.is-scrolled {
    background: var(--brand-nav-bg);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.public-header.is-scrolled .public-brand,
.public-header.is-scrolled .public-nav a,
.public-header.is-scrolled .public-brand-text { color: var(--brand-nav-text); }
.nav-transparent-page .public-main { padding-top: 0; }
.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    height: 64px;
}
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--text);
    font-weight: 600;
}
.public-brand img { max-height: 28px; display: block; }
.public-brand-text { font-family: var(--font-heading); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--brand-primary); }

.public-nav {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    font-size: 14px;
}
.public-nav a { color: var(--text-muted); font-weight: 500; }
.public-nav a:hover { color: var(--brand-nav-text-hover, var(--text)); }
.public-nav-account {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text) !important;
}

.public-footer {
    margin-top: var(--s-8);
    padding: var(--s-6) 0;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 13px;
}
.public-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
}
.public-footer-nav { display: flex; gap: var(--s-4); }

.public-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
}
.public-footer-brand { font-weight: 700; color: var(--text); margin-bottom: var(--s-3); }
.public-footer-heading { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 var(--s-3); text-transform: uppercase; letter-spacing: .04em; }
.public-footer-address { font-style: normal; line-height: 1.6; margin: 0 0 var(--s-3); }
.public-footer-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.public-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.public-footer-links a { color: inherit; text-decoration: none; }
.public-footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.public-footer-socials {
    list-style: none; padding: 0; margin: var(--s-4) 0 0;
    display: flex; gap: var(--s-3); flex-wrap: wrap;
}
.public-footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    transition: color .15s, background .15s, transform .15s;
}
.public-footer-socials a:hover { color: var(--text); background: var(--border); transform: translateY(-1px); }
.public-footer-bottom {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 900px) {
    .public-footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (max-width: 560px) {
    .public-footer-grid { grid-template-columns: 1fr; }
}

/* --- Buttons ------------------------------------------------------- */

/* Public-site buttons pull their colours from the branding settings. */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    background: var(--brand-btn-primary-bg);
    color: var(--brand-btn-primary-text);
    border: 0;
    padding: 12px 20px;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: filter .15s, transform .1s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.btn-primary:hover  { filter: brightness(1.1); color: var(--brand-btn-primary-text); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary.btn-block { width: 100%; padding: 14px 20px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    background: var(--brand-btn-secondary-bg);
    color: var(--brand-btn-secondary-text);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover { filter: brightness(0.97); color: var(--brand-btn-secondary-text); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* --- Hero ---------------------------------------------------------- */

.hero {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-7) 0 var(--s-5);
    background:
        radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--brand-hero-gradient, var(--brand-accent)) 18%, transparent) 0%, transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    overflow: visible;
}
.hero-compact { min-height: auto; padding-top: var(--s-8, 80px); }
.hero-medium  { min-height: 60vh; }
.hero-full    { min-height: 100vh; }
.hero.has-hero-image {
    background-image: linear-gradient(var(--brand-hero-tint), var(--brand-hero-tint)), var(--brand-hero-image);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    color: #fff;
}
.hero.has-hero-image .hero-eyebrow { color: var(--brand-hero-eyebrow-color, rgba(255,255,255,.85)); }
.hero.has-hero-image h1 { color: var(--brand-hero-heading-color, #fff); }
.hero.has-hero-image .hero-sub { color: var(--brand-hero-sub-color, rgba(255,255,255,.75)); }
.hero-inner { text-align: center; position: relative; z-index: 50; }
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: var(--s-3);
}
.hero h1 {
    font-size: clamp(28px, 4.2vw, 44px);
    margin-bottom: var(--s-3);
    letter-spacing: -0.02em;
}
.hero-sub {
    color: var(--text-muted);
    font-size: clamp(14px, 1.6vw, 16px);
    max-width: 560px;
    margin: 0 auto var(--s-6);
}

/* --- Search widget (shared across hero + header) ------------------- */

.search-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-width: 900px;
    margin: 0 auto;
    /* Allow the daterange popover to escape the widget's rounded frame. */
    overflow: visible;
    position: relative;
}
.search-widget-field {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background .1s;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0; /* allow children to shrink inside grid cells */
}
.search-widget-field:hover { background: var(--surface-2); }
.search-widget-field label {
    display: block;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
}
.search-widget-field input,
.search-widget-field select {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    outline: none;
    width: 100%;
    min-width: 0;
}
.search-widget .btn-primary {
    align-self: stretch;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: var(--r-md);
}

@media (min-width: 760px) {
    .search-widget {
        grid-template-columns: 1.4fr 1.8fr 0.9fr auto;
        align-items: center;
        padding: var(--s-2);
    }
    .search-widget > .btn-primary { padding: 14px 24px; height: auto; }
}
/* Inside the search widget, every child component (daterange, guestpicker,
   locationpicker) should strip its own input chrome so the widget reads
   as one unified bar — the cells provide the visual boundary, not each
   component's border. Popovers drop below the widget. */
.search-widget-dates,
.search-widget-guests,
.search-widget-destination { position: static; }

.search-widget-dates    .daterange-trigger,
.search-widget-guests   .gp-trigger,
.search-widget-destination .lp-trigger {
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 14px;
    color: var(--text);
    box-shadow: none !important;
    gap: 8px;
}
.search-widget-dates    .daterange-trigger:hover,
.search-widget-dates    .daterange-trigger:focus,
.search-widget-dates    .daterange.is-open .daterange-trigger,
.search-widget-guests   .gp-trigger:hover,
.search-widget-guests   .gp-trigger:focus,
.search-widget-guests   .guestpicker.is-open .gp-trigger,
.search-widget-destination .lp-trigger:hover,
.search-widget-destination .lp-trigger:focus,
.search-widget-destination .locationpicker.is-open .lp-trigger {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.search-widget-dates .daterange-value.is-placeholder { color: var(--text-muted); }
.search-widget-dates .daterange-popover {
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 10px);
}
.search-widget-guests .gp-pop {
    right: 0;
    left: auto;
    top: calc(100% + 10px);
}
/* Trigger photo in the search widget should be small to match the height
   of the flat field chrome. */
.search-widget-destination .lp-trigger-photo { width: 24px; height: 24px; }

/* --- Section titles ------------------------------------------------ */

.section {
    padding: var(--s-5) 0;
}


.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}
.section-head-left { display: flex; align-items: baseline; gap: 10px; }
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.section-head a.section-link { color: var(--text-muted); font-weight: 500; font-size: 13px; text-decoration: none; }
.section-head a.section-link:hover { color: var(--text); text-decoration: underline; }

/* --- Property cards ----------------------------------------------- */

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
}
@media (min-width: 640px) {
    .property-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .property-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1180px) {
    .property-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Wrap lets the heart button sit outside the <a> so tapping it doesn't
   navigate. The wrap is the hover/transform anchor so the whole card
   still feels like one interactive tile. */
.property-card-wrap { position: relative; display: flex; flex-direction: column; height: 100%; transition: transform .15s; }
.property-card-wrap:hover { transform: translateY(-2px); }

.property-card-heart {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 2;
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 0;
    background: color-mix(in srgb, #000 35%, transparent);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .1s ease, transform .1s ease;
}
.property-card-heart:hover { background: color-mix(in srgb, #000 55%, transparent); transform: scale(1.06); }
.property-card-heart svg { fill: none; stroke: currentColor; stroke-width: 2; }
.property-card-heart.is-on { color: #fff; }
.property-card-heart.is-on svg { fill: #ef4444; stroke: #ef4444; }

.property-card {
    display: flex;
    flex-direction: column;
    color: var(--text);
    text-decoration: none;
    height: 100%;
}
.property-card:hover { color: var(--text); }
.property-card-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-2);
}
.property-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.property-card-photo-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 40px;
}
.property-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--brand-accent);
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}
.property-card-badge svg { color: currentColor; }

/* Featured properties: subtle accent ring + lifted corner badge so they
   stand out against regular listings without shouting. */
.property-card.is-featured .property-card-photo {
    box-shadow: 0 0 0 2px var(--brand-accent), var(--shadow-sm);
}
.property-card.is-featured .property-card-name {
    color: var(--text);
}
.property-card-body { padding: 8px 2px 0; }
.property-card-loc { font-size: 11px; color: var(--text-muted); margin-bottom: 1px; }
.property-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-card-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 0;
}
.property-card-price .amount { font-weight: 600; color: var(--text); font-size: 13px; }
.property-card-price .unit   { color: var(--text-muted); font-size: 12px; }

/* --- Location chips / breadcrumb --------------------------------- */

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--s-3);
}
.location-chip {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--surface-2);
    border-radius: var(--r-md);
    color: var(--text);
    font-weight: 500;
    border: 1px solid transparent;
    transition: border-color .12s, transform .12s;
}
.location-chip:hover {
    border-color: var(--brand-accent);
    transform: translateY(-1px);
    color: var(--text);
}
.location-chip-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep::before { content: '›'; margin: 0 6px; }

/* --- Empty states ------------------------------------------------- */

.empty-state {
    padding: var(--s-7) var(--s-4);
    text-align: center;
    color: var(--text-muted);
    background: var(--surface-2);
    border-radius: var(--r-lg);
}
.empty-state h3 { color: var(--text); margin-bottom: var(--s-2); }

/* --- Search page --------------------------------------------------- */

@media (min-width: 721px) {
    .search-widget-inline {
        position: sticky;
        top: 65px;
        z-index: 25;
        background: var(--surface);
        margin: 0 calc(-1 * var(--s-5)) var(--s-5);
        padding: var(--s-3) var(--s-5);
        border-bottom: 1px solid var(--border);
    }
}
@media (max-width: 720px) {
    .search-widget-inline { margin-bottom: var(--s-5); }
}
.search-results-head { margin-bottom: var(--s-5); }
.search-results-head h1 { margin-bottom: 2px; font-size: 22px; }

/* --- Sub-locations on a location page ----------------------------- */

.sub-locations { margin-bottom: var(--s-6); }

/* --- Property detail page ----------------------------------------- */

.property-page { padding: var(--s-6) 0 var(--s-7); }
/* Sticky heading — pins the villa name + meta line below the main
   header. A ::before pseudo-element paints an edge-to-edge background
   so content scrolling behind the heading is fully covered even when
   the heading's own box is narrower than the viewport. */
.property-heading {
    position: sticky;
    top: 64px;
    z-index: 20;
    padding: var(--s-3) 0 var(--s-4);
    margin-bottom: var(--s-4);
    isolation: isolate;
}
.property-heading::before {
    content: '';
    position: absolute;
    inset: 0 calc(-1 * 50vw) 0 calc(-1 * 50vw);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.2);
    z-index: -1;
}
.property-title { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 4px; }
.property-sub   { font-size: 14px; margin: 0; }

/* Property hero gallery — adaptive layout driven by photo count.
   Mobile: first image full-width, rest hidden. Desktop: grid layout
   adapts to 1–5 photos so there's never dead whitespace. */
.prop-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.prop-gallery-img {
    display: block;
    background: var(--surface-2);
    overflow: hidden;
}
.prop-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Mobile: only the first photo visible. */
.prop-gallery-img:first-child { aspect-ratio: 16 / 9; }
.prop-gallery-img:not(:first-child) { display: none; }
.prop-gallery-more {
    position: absolute;
    bottom: 12px; right: 12px;
    background: var(--surface);
    z-index: 2;
}

@media (min-width: 840px) {
    .prop-gallery-img:not(:first-child) { display: block; }
    .prop-gallery-img:first-child { aspect-ratio: auto; }

    /* 1 photo: full width */
    .prop-gallery[data-count="1"] {
        grid-template-columns: 1fr;
        aspect-ratio: 21 / 9;
    }

    /* 2 photos: side by side */
    .prop-gallery[data-count="2"] {
        grid-template-columns: 1fr 1fr;
        aspect-ratio: 2.5 / 1;
    }

    /* 3 photos: main left spanning 2 rows, 2 stacked right */
    .prop-gallery[data-count="3"] {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .prop-gallery[data-count="3"] .prop-gallery-img:first-child { grid-row: span 2; }

    /* 4 photos: large left, 2 stacked middle, 1 portrait right */
    .prop-gallery[data-count="4"] {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .prop-gallery[data-count="4"] .prop-gallery-img:first-child { grid-column: 1; grid-row: 1 / 3; }
    .prop-gallery[data-count="4"] .prop-gallery-img:nth-child(2) { grid-column: 2; grid-row: 1; }
    .prop-gallery[data-count="4"] .prop-gallery-img:nth-child(3) { grid-column: 2; grid-row: 2; }
    .prop-gallery[data-count="4"] .prop-gallery-img:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }

    /* 5 photos: large left spanning 2 rows, 2×2 grid right */
    .prop-gallery[data-count="5"] {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .prop-gallery[data-count="5"] .prop-gallery-img:first-child { grid-row: span 2; }

    /* Lock gallery height so columns match. */
    .prop-gallery[data-count="3"],
    .prop-gallery[data-count="4"],
    .prop-gallery[data-count="5"] {
        height: 420px;
    }
}

/* ---------- Star ratings + reviews ---------- */
.property-rating { font-size: 16px; font-weight: 500; vertical-align: middle; margin-left: 8px; }
.property-card-rating { font-size: 12px; font-weight: 500; margin-top: 2px; }
.star-on  { color: #f59e0b; }
.star-off { color: var(--border); }

.prop-reviews { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-5); }
.prop-review { padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); }
.prop-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.prop-review-stars { font-size: 16px; letter-spacing: 1px; }
.prop-review-author { font-weight: 600; font-size: 14px; }
.prop-review-title { font-weight: 600; margin-bottom: 4px; }
.prop-review-body { font-size: 14px; line-height: 1.6; }

/* Rhythm between stacked sections inside .prop-content (amenities,
   house rules, map, reviews, FAQs, availability). Scoping to the direct
   child h2 avoids bleeding into nested headings. */
.prop-content > h2 { margin-top: var(--s-7); }
.prop-content > h2:first-of-type { margin-top: var(--s-6); }

/* Property FAQs — <details> accordion that slides via a grid-template-rows
   transition (0fr → 1fr). The browser recalculates layout once per frame
   instead of interpolating `height` every frame, so it stays smooth even
   on long answers. The JS companion keeps [open] set during the close
   transition so content doesn't vanish mid-slide. */
.prop-faqs { display: flex; flex-direction: column; margin-bottom: var(--s-5); border-top: 1px solid var(--border); }
.prop-faq { border-bottom: 1px solid var(--border); }
.prop-faq > summary {
    list-style: none;
    cursor: pointer;
    padding: var(--s-4) 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
}
.prop-faq > summary::-webkit-details-marker { display: none; }
.prop-faq > summary::after {
    content: '+';
    color: var(--text-muted);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}
.prop-faq[open] > summary::after { content: '−'; }

.prop-faq-slide {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s cubic-bezier(.22, .61, .36, 1);
}
.prop-faq[open]:not(.is-closing) > .prop-faq-slide { grid-template-rows: 1fr; }
.prop-faq-slide > .prop-faq-answer {
    overflow: hidden;
    padding: 0;
    line-height: 1.6;
    color: var(--text-muted);
    white-space: pre-wrap;
}
/* Give the answer its bottom breathing space inside the hidden area so
   the slide includes the padding as part of the animated height. */
.prop-faq-slide > .prop-faq-answer::after {
    content: '';
    display: block;
    height: var(--s-4);
}

.review-page { max-width: 580px; margin: 0 auto; }
.review-card { padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.review-card h1 { margin: 0 0 8px; font-size: 24px; }
.review-property { font-weight: 600; margin: 0 0 4px; }
.review-stay { margin: 0 0 var(--s-5); }
.review-stars { display: flex; gap: 6px; margin-bottom: var(--s-4); }
.review-star { background: none; border: 0; padding: 0; cursor: pointer; color: var(--border); transition: color .1s, transform .1s; }
.review-star:hover { transform: scale(1.15); }
.review-star.is-on, .review-star.is-hover { color: #f59e0b; }
.review-star svg { fill: currentColor; stroke: currentColor; }

.review-stars-inline { font-size: 14px; letter-spacing: 1px; }

/* Property page map — read-only Mapbox embed when coordinates are set. */
.prop-map {
    width: 100%;
    height: 360px;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: var(--s-5);
    background: var(--surface-2);
}
@media (max-width: 720px) {
    .prop-map { height: 240px; }
}

/* Radar marker — shown on the property map when the admin has turned
   off "Show exact location". A solid core with three staggered rings
   pulsing outward gives a "general area" feel without exposing the pin. */
.prop-map-radar {
    position: relative;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.prop-map-radar-core {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
.prop-map-radar-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-accent, #2563eb);
    opacity: .45;
    transform: scale(1);
    animation: prop-radar-pulse 2.4s cubic-bezier(.17, .67, .45, 1) infinite;
}
.prop-map-radar-ring:nth-child(2) { animation-delay: .8s; }
.prop-map-radar-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes prop-radar-pulse {
    0%   { transform: scale(1);  opacity: .45; }
    80%  { opacity: 0; }
    100% { transform: scale(8);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .prop-map-radar-ring { animation: none; transform: scale(5); opacity: .2; }
}
.prop-map-fallback { padding: 20px; text-align: center; }

/* Two-column content + booking box, single column on mobile. */
.prop-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
}
.prop-booking { order: -1; }
@media (min-width: 960px) {
    .prop-columns {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }
    .prop-booking {
        order: 0;
        position: sticky;
        top: 0;
    }
}

.prop-share {
    display: flex;
    gap: 8px;
    margin-bottom: var(--s-4);
}
.prop-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    text-decoration: none;
}
.prop-share-btn:hover {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

.prop-tagline {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: var(--s-5);
}
.prop-description {
    color: var(--text);
    line-height: 1.65;
    margin-bottom: var(--s-6);
}

.prop-amenity-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
    margin-bottom: var(--s-6);
}
@media (min-width: 560px) {
    .prop-amenity-groups { grid-template-columns: 1fr 1fr; }
}
.prop-amenity-group h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: var(--s-2);
}
.prop-amenity-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    font-size: 14px;
}
.prop-amenity-group li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.prop-amenity-group li svg { color: var(--brand-accent); flex-shrink: 0; }

/* Booking aside */
.prop-booking {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4);
    box-shadow: var(--shadow-md);
}
.prop-booking label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin: var(--s-3) 0 var(--s-1);
}
.prop-booking label:first-of-type { margin-top: var(--s-3); }
.prop-booking input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
/* Match the daterange trigger to the number input above so the booking
   aside reads as a coherent stack. */
.prop-booking .daterange-trigger {
    padding: 10px 12px;
    font-size: 15px;
    background: var(--surface);
    border-color: var(--border);
    border-radius: var(--r-md);
}
.prop-booking .daterange-trigger:hover { border-color: var(--text-muted); }
.prop-booking .daterange-trigger:focus,
.prop-booking .daterange.is-open .daterange-trigger {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.prop-booking-price {
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--s-2);
    min-height: 48px;
}
.prop-booking-price .amount { font-size: 22px; font-weight: 700; color: var(--text); }
.prop-booking-price .unit   { color: var(--text-muted); font-size: 14px; }
.prop-booking-error {
    margin-top: var(--s-3);
    padding: 10px 12px;
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #b91c1c;
    border-radius: var(--r-md);
    font-size: 13px;
}
.prop-booking .btn-primary { margin-top: var(--s-4); }
.prop-booking-note { margin-top: var(--s-3); text-align: center; }

.enquire-summary {
    background: var(--surface-2);
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 14px;
    margin-bottom: var(--s-3);
    color: var(--text);
}

/* ---------- Location card (used in the Browse by location carousel) ---------- */
.location-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    transition: transform .12s ease;
    height: 100%;
}
.location-card:hover { transform: translateY(-2px); color: inherit; }
.location-card-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-2);
}
.location-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.location-card-photo-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); }
.location-card-body { padding: 8px 2px 0; }
.location-card-name { font-weight: 600; font-size: 14px; }
.location-card-parent { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Grid layout for the locations index — uses the same .location-card
   as the home-page carousel but wraps them into a responsive grid. */
.location-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--s-5);
    margin-top: var(--s-4);
}

/* Breadcrumb that sits below the search widget on a location page —
   needs a bit more separation from the widget above than from the
   heading below. */
.location-breadcrumb { margin-top: var(--s-5); }

/* Section heading "Browse all ›" link with chevron icon. */
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.section-link:hover { color: var(--brand-accent); }
.section-link svg { stroke: currentColor; }

/* ---------- Apple-style property carousel ---------- */
.prop-carousel {
    position: relative;
    /* Let the track bleed past the container on both sides so the edge
       cards peek — gives the strip that "there's more" cue. The arrow
       buttons sit flush to the container and cover the peek. */
}
.carousel-track {
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 4px 0 16px;
    /* Hide native scrollbars — the peek + arrows are the affordance. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Left edge aligns with the container content; right edge bleeds
       to the viewport edge so additional cards run off-canvas. Negative
       margin-right expands the flex container past the constrained
       container (1240px max) out to the viewport. */
    margin-right: calc(50% - 50vw);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: min(220px, 60vw);
}
.carousel-item > * { height: 100%; }

.carousel-arrows {
    display: flex;
    gap: 6px;
}
.carousel-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: var(--text);
    transition: background .1s, border-color .1s;
}
.carousel-arrow:hover { background: var(--surface-2); border-color: var(--text); }
.carousel-arrow[disabled] { opacity: .3; cursor: not-allowed; }
@media (max-width: 640px) {
    .carousel-arrows { display: none; }
}

/* ---------- Property page: "not available" + disabled CTA ----------
   Kept quiet to match the site's tone — a small dot + muted line
   rather than a filled red pill that reads like a Bootstrap alert. */
.prop-booking-unavail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.prop-booking-unavail::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 70%, transparent);
    flex: 0 0 auto;
}
.prop-booking .btn-primary:disabled,
.prop-booking .btn-primary.is-unavailable {
    cursor: not-allowed;
    background: var(--surface-2) !important;
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
    box-shadow: none;
}

/* ---------- Property page: payment-options callout ---------- */
.pay-options {
    margin: var(--s-3) 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}
.pay-options li { display: flex; align-items: flex-start; gap: 8px; }
.pay-options li svg { color: var(--brand-accent); flex: 0 0 auto; margin-top: 2px; }

/* ---------- Checkout wizard overlay (sheet on mobile, centred modal on desktop) ---------- */
.ck-overlay { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.ck-overlay[hidden] { display: none; }
.ck-scrim {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: auto;
}
.ck-overlay.is-open .ck-scrim { opacity: 1; }
.ck-panel {
    position: absolute;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
}
@media (min-width: 721px) {
    .ck-panel {
        top: 50%; left: 50%;
        width: min(540px, 92vw);
        max-height: min(720px, 92vh);
        transform: translate(-50%, -46%);
        opacity: 0;
        border-radius: var(--r-lg);
        transition: transform .22s ease, opacity .18s ease;
    }
    .ck-overlay.is-open .ck-panel { transform: translate(-50%, -50%); opacity: 1; }
    .ck-handle { display: none; }
}
@media (max-width: 720px) {
    .ck-panel {
        left: 0; right: 0; bottom: 0;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
        transition: transform .24s cubic-bezier(.2, .7, .2, 1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .ck-overlay.is-open .ck-panel { transform: translateY(0); }
}
.ck-handle {
    align-self: center;
    width: 42px; height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 18%, transparent);
    margin: 8px 0 4px;
    flex: 0 0 auto;
}
.ck-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    z-index: 2;
}
.ck-progress {
    display: flex; justify-content: center; gap: 6px;
    padding: 10px 0 6px; flex: 0 0 auto;
}
.ck-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 16%, transparent);
    transition: background .2s, width .2s;
}
.ck-dot.is-active { width: 18px; border-radius: 999px; background: var(--text); }

.ck-form { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin: 0; }
.ck-summary {
    padding: 6px var(--s-4) var(--s-3);
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.ck-summary-name { font-weight: 700; font-size: 16px; }

.ck-wiz { flex: 1 1 auto; overflow: hidden; min-height: 0; --ck-slides: 3; }
.ck-wiz-track {
    display: flex;
    width: calc(100% * var(--ck-slides));
    height: 100%;
    transform: translateX(calc(var(--step, 0) * -100% / var(--ck-slides)));
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.ck-slide {
    flex: 0 0 calc(100% / var(--ck-slides));
    width:   calc(100% / var(--ck-slides));
    overflow-y: auto;
    padding: var(--s-4);
    -webkit-overflow-scrolling: touch;
}
.ck-slide-title { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
/* Labels + inputs inherit from shared.css. Row labels inside the
   wizard get their top margin killed so paired fields sit level. */
.ck-slide .row label:first-child { margin-top: 0; }
.ck-slide .muted.small { margin-top: 4px; }

/* Terms slide — scrollable text with agree checkbox pinned at bottom. */
.ck-terms-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-3);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: var(--s-3);
    height: calc(100vh - 340px);
    max-height: 400px;
    min-height: 120px;
}
.ck-terms-agree {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}
.ck-terms-agree input { flex-shrink: 0; }

/* Confirmation slide styling — big green check, booked summary list. */
.ck-done {
    text-align: center;
    width: 100%;
    padding: 40px 0 var(--s-4);
}
.ck-done-check {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, #10b981 18%, transparent);
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 var(--s-3);
}
.ck-done-check svg { stroke: currentColor; stroke-width: 3; }
.ck-done-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.ck-done-lead  { margin: 0 0 var(--s-4); color: var(--text-muted); }
.ck-done-recap {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 6px;
    column-gap: var(--s-4);
    max-width: 360px;
    margin: 0 auto var(--s-4);
    text-align: left;
    font-size: 14px;
}
.ck-done-recap dt { color: var(--text-muted); }
.ck-done-recap dd { margin: 0; }
.ck-done-hint { font-size: 12px; }

.ck-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px var(--s-4) 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.ck-back {
    background: transparent; border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 10px 6px;
    display: inline-flex; align-items: center; gap: 4px;
    visibility: hidden;
}
.ck-overlay[data-step="1"] .ck-back,
.ck-overlay[data-step="2"] .ck-back { visibility: visible; }
.ck-next {
    min-width: 160px;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-left: auto;
}
body.ck-locked,
body.search-sheet-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ---------- Mobile search: FAB + iOS-style sheet ---------- */
.search-fab,
.search-sheet { display: none; }

@media (max-width: 720px) {
    /* Hide the desktop search bar; the FAB replaces it below the breakpoint. */
    .hero .search-widget,
    .search-widget-inline { display: none; }

    .search-fab {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
        transform: translateX(-50%);
        padding: 14px 28px;
        background: var(--text);
        color: var(--surface);
        border: 0;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
        cursor: pointer;
        z-index: 80;
    }
    .search-fab svg { stroke: currentColor; }

    .search-sheet { display: block; }
}

/* Sheet scaffold. Rendered in the DOM on every page; visibility is
   controlled by the media-query display rule above + the .is-open
   class which drives the slide-up transform. */
.search-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
}
.search-sheet[hidden] { display: none; }
.search-sheet-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: auto;
}
.search-sheet.is-open .search-sheet-scrim { opacity: 1; }
.search-sheet-panel {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 92vh;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .2);
    transform: translateY(100%);
    transition: transform .24s cubic-bezier(.2, .7, .2, 1);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.search-sheet.is-open .search-sheet-panel { transform: translateY(0); }
.search-sheet-handle {
    align-self: center;
    width: 42px; height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 18%, transparent);
    margin: 8px 0 4px;
    flex: 0 0 auto;
}
.search-sheet-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-sheet-form {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 6px 0 0;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.search-sheet-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px var(--s-4) 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.ss-back {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 10px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    visibility: hidden; /* slide 1 hides it via [data-step="0"] */
}
.search-sheet[data-step="0"] .ss-back { visibility: hidden; }
.search-sheet[data-step="1"] .ss-back,
.search-sheet[data-step="2"] .ss-back { visibility: visible; }
.search-sheet-footer .ss-submit {
    min-width: 140px;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
}

/* Progress dots — subtle pagination hint under the close button. */
.search-sheet-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 8px;
    flex: 0 0 auto;
}
.ss-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 16%, transparent);
    transition: background .2s, width .2s;
}
.ss-dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: var(--text);
}

/* Wizard track — three slides laid out horizontally, one visible at
   a time. Translating the track is GPU-cheap and matches the iOS
   "push" feel without hiding non-active slides from keyboard focus. */
.ss-wiz {
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}
.ss-wiz-track {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(calc(var(--step, 0) * -33.3333%));
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.ss-slide {
    flex: 0 0 33.3333%;
    width: 33.3333%;
    overflow-y: auto;
    padding: 4px var(--s-4) var(--s-4);
    -webkit-overflow-scrolling: touch;
}
.ss-slide-title {
    margin: 0 0 var(--s-3);
    font-size: 20px;
    font-weight: 700;
}
.ss-slide-body { display: block; }

.ss-section { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.ss-section:last-of-type { border-bottom: 0; }
.ss-section-title {
    margin: 0 0 var(--s-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

/* Destination — expandable location list with search */
.ss-slide-dest { display: flex; flex-direction: column; }
.ss-dest-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ss-dest-search {
    flex-shrink: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
}
.ss-dest-search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg, 12px);
    font-size: 16px;
    background: var(--surface-2);
}
.ss-dest-search-input:focus { outline: none; border-color: var(--text); background: var(--surface); }
.ss-loc-group { border-bottom: 1px solid var(--border); }
.ss-loc-group:last-child { border-bottom: 0; }
.ss-loc-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}
.ss-loc-parent.is-selected { color: var(--brand-accent, var(--text)); }
.ss-loc-arrow {
    font-size: 14px;
    color: var(--muted);
    transition: transform .15s;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.ss-loc-arrow.is-open { transform: rotate(90deg); }
.ss-loc-arrow-spacer { width: 16px; flex-shrink: 0; }
.ss-loc-parent-name { flex: 1; min-width: 0; }
.ss-loc-select-all {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ss-loc-select-all.is-selected { background: var(--brand-accent, var(--text)); color: #fff; border-color: var(--brand-accent, var(--text)); }
.ss-loc-children { padding: 0 0 8px 26px; }
.ss-loc-child {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    text-align: left;
    border-radius: var(--radius, 8px);
    transition: background .1s;
}
.ss-loc-child:hover { background: var(--surface-2); }
.ss-loc-child.is-selected { background: color-mix(in srgb, var(--brand-accent, var(--text)) 10%, transparent); }
.ss-loc-child-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-2);
}
.ss-loc-child-thumb-empty { display: block; }
.ss-loc-child-name { flex: 1; min-width: 0; }
.ss-loc-child-tick {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-accent, var(--text));
}
.ss-loc-empty { text-align: center; padding: 30px 0; }

/* Calendar nav inside search sheet — single month with arrows. */
.ss-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ss-cal-nav-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.ss-cal-nav-btn {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    padding: 4px 10px;
    border-radius: var(--radius, 8px);
}
.ss-cal-nav-btn:hover { background: var(--bg-raised, var(--surface-2, #f1f5f9)); }
.ss-cal-nav-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Night presets — row of quick-select buttons after picking check-in. */
.ss-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}
.ss-preset {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    transition: background .1s, border-color .1s;
}
.ss-preset:hover {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

/* Stay panels — consistent height across all tabs */
[data-ss-panel] { min-height: 340px; }
[data-ss-panel="flexible"] {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
[data-ss-panel="flexible"][hidden] { display: none; }

/* Single-month calendar in sheet — override the 2-col desktop layout. */
.search-sheet .sp-cal { grid-template-columns: 1fr; max-width: 320px; }
.search-sheet [data-ss-panel="dates"] { text-align: center; }
.search-sheet .sp-months-grid { grid-template-columns: repeat(3, 1fr); }

.ss-guests-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.ss-guests-row  { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ss-guests-label { font-weight: 600; font-size: 16px; }
.ss-guests-sub   { margin-top: 2px; }


/* ---------- Destination picker (search widget "Destination" field) ---------- */
.search-widget .search-widget-destination { position: static; cursor: pointer; }
.search-widget-destination[data-destpicker] .destpicker-summary {
    font-size: 14px;
    color: var(--text);
    display: block;
    min-height: 18px;
    text-align: left;
}
.search-widget.has-dp-open .search-widget-destination { background: var(--surface-2); }

.search-drawer {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 6px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.12));
    padding: var(--s-4);
    z-index: 40;
    text-align: left;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.search-drawer[hidden] { display: none; }
.search-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.dp-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--s-5);
    min-height: 340px;
}
@media (max-width: 720px) { .dp-body { grid-template-columns: 1fr; min-height: auto; } }

.dp-parents-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    padding-right: 8px;
}
.dp-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    font-size: 13px;
    margin-bottom: 8px;
    background: var(--surface-2);
    box-sizing: border-box;
}
.dp-search:focus { outline: none; border-color: var(--text); background: var(--surface); }
.dp-parents {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}
@media (max-width: 720px) {
    .dp-parents-col { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 var(--s-3); }
    .dp-parents { max-height: none; }
}
.dp-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: var(--text);
}
.dp-parent:hover { background: var(--surface-2); }
.dp-parent.is-active { background: color-mix(in srgb, var(--brand-accent) 14%, transparent); font-weight: 600; }
.dp-parent-count {
    font-size: 11px;
    font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: var(--surface);
    padding: 0 6px;
}

.dp-children {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}
.dp-whole {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 13px;
    cursor: pointer;
    width: fit-content;
}
.dp-whole input { margin: 0; }
.dp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.dp-child {
    /* Force the photo-on-top / name-below stack explicitly. Default
       button content layout varies across engines (some centre, some
       wrap), which was hiding the name when a photo was present. */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-md);
    cursor: pointer;
    overflow: hidden;
    color: var(--text);
    text-align: left;
}
.dp-child:hover { border-color: var(--text); }
.dp-child.is-selected { outline: 2px solid var(--text); outline-offset: -2px; }
.dp-child-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--surface-2);
}
.dp-child-photo-empty { background: var(--surface-2); }
.dp-child-name {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
}

.dp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px solid var(--border);
    min-height: 0;
}
.dp-chips:empty { display: none; }
.dp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text);
}
.dp-chip:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface-2)); }
.dp-chip-qualifier { color: var(--text-muted); }
.dp-chip-x {
    display: inline-flex;
    width: 18px; height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 14px;
    line-height: 1;
}

/* ---------- Guest picker inside the search widget ---------- */
.search-widget .search-widget-guests { position: static; }
.search-widget .search-widget-guests .guestpicker { position: static; }
/* 350px wide, pinned to the right edge of the search-widget so it
   sits under the Guests field rather than spanning full width. */
.search-widget .search-widget-guests .gp-pop {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 6px);
    width: 350px;
    max-width: calc(100vw - 32px);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.12));
    padding: var(--s-5) var(--s-4);
    z-index: 40;
    text-align: left;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.search-widget .search-widget-guests .guestpicker.is-open .gp-pop {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* Override native [hidden] so the CSS transition can run. The gp
   component sets hidden=true/false but within the search widget we
   drive visibility via opacity + pointer-events instead. */
.search-widget .search-widget-guests .gp-pop[hidden] {
    display: block;
}
/* Left-align text + breathing room inside the search widget. */
.search-widget .gp-row {
    text-align: left;
    padding: 12px 8px;
}

/* ---------- Stay picker (search widget "When" field) ---------- */
.search-widget-dates[data-staypicker] {
    /* The cell itself is the trigger; its own dropdown (the drawer) lives
       as a sibling of the cells under .search-widget. */
    cursor: pointer;
}
.search-widget-dates[data-staypicker] .staypicker-trigger-text {
    font-size: 14px;
    color: var(--text);
    display: block;
    min-height: 18px;
    text-align: left;
}
.search-widget.has-sp-open .search-widget-dates[data-staypicker] {
    background: var(--surface-2);
    border-color: var(--border);
}

/* .sp-drawer consolidated into .search-drawer above */
.sp-tabs {
    /* Flex + justify-content: center instead of inline-flex so the
       tabs always sit in the middle regardless of parent text-align. */
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 999px;
    margin: 0 auto var(--s-4);
    width: fit-content;
}
.sp-tab {
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}
.sp-tab:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.sp-tab.is-active { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }

.sp-panel { min-height: 180px; }
.sp-panel[hidden] { display: none; }
.sp-panel:has(.sp-flexible):not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Flexible */
.sp-flexible h3 { margin: 0 0 6px; }
.sp-flexible p  { margin: 0; }

/* Dates — two months side by side. */
.sp-cal {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
}
.sp-panel:has(.sp-cal) { text-align: center; }
.sp-cal-month { text-align: center; }
@media (max-width: 720px) { .sp-cal { grid-template-columns: 1fr; } }
.sp-cal-title { text-align: center; font-weight: 600; margin-bottom: var(--s-3); }
.sp-cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}
.sp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.sp-cal-day {
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
}
.sp-cal-day:hover:not(.is-past):not(.is-start):not(.is-end):not(.is-middle) { background: var(--surface-2); }
.sp-cal-day.is-past { color: var(--text-muted); opacity: .35; cursor: not-allowed; }
.sp-cal-day.is-start, .sp-cal-day.is-end {
    color: var(--text);
    position: relative;
    background: transparent;
    font-weight: 600;
}
.sp-cal-day.is-start::before, .sp-cal-day.is-end::before {
    content: '';
    position: absolute;
    top: 50%; width: 50%; height: 100%;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
    z-index: -1;
}
.sp-cal-day.is-start::before {
    right: 0;
    border-radius: 999px 0 0 999px;
}
.sp-cal-day.is-end::before {
    left: 0;
    border-radius: 0 999px 999px 0;
}
.sp-cal-day.is-start.is-end::before {
    left: 25%; right: auto;
    width: 50%;
    border-radius: 999px;
}
.sp-cal-day.is-middle {
    background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
    border-radius: 0;
}
.sp-dates-hint { text-align: center; margin-top: var(--s-3); }

/* Months — year strip + 4×3 grid. */
.sp-year-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-3);
}
.sp-year-step {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: none;
}
.sp-year-step:hover { background: var(--surface-2); border-color: var(--text); }
.sp-year-label { font-size: 16px; font-weight: 600; }
.sp-months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 720px) { .sp-months-grid { grid-template-columns: repeat(3, 1fr); } }
.sp-month {
    padding: 14px 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    box-shadow: none;
    transition: background .1s, border-color .1s, color .1s;
    text-align: center;
}
.sp-month:hover:not(.is-past) { background: var(--surface-2); border-color: var(--text); }
.sp-month.is-past { color: var(--text-muted); opacity: .4; cursor: not-allowed; }
.sp-month.is-start, .sp-month.is-end { background: var(--text); color: var(--surface); border-color: var(--text); font-weight: 600; }
.sp-month.is-middle { background: color-mix(in srgb, var(--brand-accent) 18%, transparent); border-color: transparent; }

.sp-nights {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
}
.sp-nights-label { font-weight: 500; }
.sp-nights-stepper { display: inline-flex; align-items: center; gap: 14px; }
.sp-nights-count {
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 16px;
    font-weight: 600;
}

/* Apply / clear row. */
.sp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--s-4);
    padding-top: var(--s-3);
    border-top: 1px solid var(--border);
}
.sp-clear {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}
.sp-clear:hover { color: var(--text); }
.sp-apply { padding: 10px 20px; }

/* Lightbox: fits a full-size photo inside the modal frame. */
.lightbox { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 80vh; display: block; border-radius: var(--r-md); }

/* ---------- Checkout (book-now) page ---------- */
.checkout-section { padding-top: var(--s-6); padding-bottom: var(--s-8); }
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
    align-items: start;
}
@media (max-width: 900px) {
    .checkout-container { grid-template-columns: 1fr; }
}
.checkout-summary {
    position: sticky;
    top: calc(var(--nav-h, 72px) + var(--s-4));
    padding: var(--s-5);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.checkout-back {
    display: inline-block;
    margin-bottom: var(--s-3);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}
.checkout-back:hover { color: var(--text); }
.checkout-summary h1 { margin: 0 0 var(--s-4); font-size: 22px; }
.checkout-stay {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 6px;
    column-gap: var(--s-4);
    margin: 0 0 var(--s-4);
    font-size: 14px;
}
.checkout-stay dt { color: var(--muted); }
.checkout-stay dd { margin: 0; }
.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}
.checkout-total-label { font-size: 14px; color: var(--muted); }
.checkout-total-amount { font-size: 24px; font-weight: 600; }
.checkout-form h2 { font-size: 16px; margin: var(--s-5) 0 var(--s-3); }
.checkout-form h2:first-of-type { margin-top: 0; }
.checkout-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-1);
    min-height: 48px;
}
.checkout-error {
    margin: var(--s-3) 0 0;
    padding: 10px 14px;
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #b91c1c;
    border-radius: var(--r-md);
    font-size: 14px;
}
.checkout-secure { text-align: center; margin-top: var(--s-3); }

/* Paymode chooser — two radio cards, full vs deposit. */
.paymode { border: 0; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 10px; }
.paymode-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-1);
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.paymode-option:hover { border-color: var(--text); }
.paymode-option:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.paymode-option.is-disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}
.paymode-unavail {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.paymode-option input { margin-top: 4px; }
.paymode-body { display: grid; gap: 2px; }
.paymode-title { font-weight: 600; font-size: 15px; }
.paymode-amount { font-size: 13px; color: var(--muted); }

/* ---------- Thanks page ---------- */
.thanks-section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.thanks-container { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}
.thanks-badge-ok { background: color-mix(in srgb, #10b981 16%, transparent); color: #047857; }
.thanks-badge-pending { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #92400e; }
.thanks-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 6px;
    column-gap: var(--s-4);
    max-width: 360px;
    margin: var(--s-5) auto;
    text-align: left;
    font-size: 14px;
}
.thanks-summary dt { color: var(--muted); }
.thanks-summary dd { margin: 0; }
