/* ============================================================
   The Syros Penthouse — Site layer
   Static-site components built on the design-system tokens.
   Loaded AFTER css/styles.css on every page.
   ============================================================ */

/* ---------- Base page ---------- */
html { scroll-behavior: smooth; }
section[id], [id].section { scroll-margin-top: 92px; }  /* clear the sticky header on anchor jumps */
body { background: var(--surface-page); color: var(--text-primary); }
* { box-sizing: border-box; }
.u-hide { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: var(--space-5); }

/* ---------- Eyebrow / overline ---------- */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--space-3);
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--paper { color: var(--birch-300); }
/* `.section-head p` (the intro paragraph) would otherwise tint the eyebrow too — keep it on-brand. */
.section-head .eyebrow { color: var(--brand); }

/* ---------- Display type helpers ---------- */
.display { font-family: var(--font-display); font-weight: 500; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--text-primary); margin: 0; }
.display--hero { font-size: var(--text-hero); }
.display--xl { font-size: var(--text-display); }
.display--lg { font-size: var(--text-h1); }
.display--md { font-size: var(--text-h2); }
em.serif, .serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.lead { font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--text-secondary); max-width: 62ch; }
.muted { color: var(--text-muted); }
.measure { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-body); font-weight: var(--weight-semibold);
  line-height: 1; padding: 0.875rem 1.5rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.965); }
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: var(--color-accent); color: var(--text-on-accent); }
.btn--accent:hover { background: var(--accent-strong); color: var(--text-on-accent); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--surface-sunk); color: var(--brand-strong); }
.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: var(--surface-sunk); }
.btn--paper { background: var(--limestone-50); color: var(--petrol-900); }
.btn--paper:hover { background: #fff; }
.btn--lg { padding: 1.0625rem 2rem; font-size: var(--text-lead); }
.btn--sm { padding: 0.625rem 1rem; font-size: var(--text-sm); }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--limestone-50) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); height: 76px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; }
.brand img { height: 44px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.nav-link { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); padding: 0.5rem 0.875rem; border-radius: var(--radius-pill); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nav-link:hover { background: var(--surface-sunk); color: var(--text-primary); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* Toggle: visually hidden but still focusable + in the tab order */
.nav-toggle {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Desktop: wrapper is transparent — brand · nav · actions sit in the bar as before */
.header-collapse { display: contents; }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; margin-left: auto;
    border: 1px solid var(--border-default); border-radius: var(--radius-md);
    background: var(--surface-card); color: var(--text-primary); cursor: pointer;
  }
  .nav-burger svg { width: 22px; height: 22px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--petrol-500); outline-offset: 2px; }

  /* The drawer now holds BOTH the section links and the actions */
  .header-collapse {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-3);
    margin: 0; padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md); z-index: 49;
  }
  .nav-toggle:checked ~ .header-collapse { display: flex; }

  .nav { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav .nav-link { padding: 0.85rem 0.5rem; font-size: var(--text-body); border-radius: var(--radius-sm); }

  .header-actions { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .header-actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-photo { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,28,.72) 0%, rgba(20,24,28,.40) 40%, rgba(20,24,28,.26) 68%, rgba(20,24,28,.34) 100%); }
.hero-photo__inner { position: relative; z-index: 2; width: 100%; padding-bottom: var(--space-9); color: #fff; }
.hero-photo__inner .display, .hero-photo__inner .eyebrow { color: #fff; }
.hero-photo__inner .eyebrow { color: var(--birch-300); }
.hero-photo__inner .lead { color: rgba(255,255,255,.92); }
.hero-photo__inner .display,
.hero-photo__inner .lead,
.hero-photo__inner .eyebrow,
.hero-photo__inner .meta-row { text-shadow: 0 1px 2px rgba(12,15,18,.42), 0 2px 22px rgba(12,15,18,.40); }
@media (max-width: 860px) {
  .hero-photo::after { background: linear-gradient(to top, rgba(20,24,28,.74) 0%, rgba(20,24,28,.50) 55%, rgba(20,24,28,.42) 100%); }
}

/* Editorial (split) hero */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-split__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-split__badge { position: absolute; left: var(--space-4); bottom: var(--space-4); background: color-mix(in srgb, #fff 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--radius-pill); padding: 0.5rem 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); font-weight: 600; box-shadow: var(--shadow-sm); }
@media (max-width: 820px) { .hero-split { grid-template-columns: 1fr; } .hero-split__media { aspect-ratio: 3/2; order: -1; } }

/* ---------- Meta row (rating / specs) ---------- */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); color: var(--text-secondary); font-size: var(--text-sm); }
.meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--limestone-300); }
.rating-inline { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--text-primary); }
.rating-inline svg { width: 16px; height: 16px; color: var(--color-star); fill: var(--color-star); }
.specs { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Chips / tags / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--border-default); font-size: var(--text-sm); color: var(--text-secondary); }
.chip svg { width: 15px; height: 15px; color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; }
.badge--accent { background: var(--accent-soft); color: var(--accent-strong); }
.badge--brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge--olive { background: var(--olive-100); color: var(--olive-600); }

/* ---------- Cards ---------- */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card--pad { padding: var(--space-6); }
.card-hover { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.feature__icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0; }
.feature p { margin: 0; color: var(--text-secondary); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Responsive two-up splits — keep the editorial ratio on desktop, stack on phones.
   Column-only utilities; the element supplies display:grid (via .grid or inline). */
.cols-wide   { grid-template-columns: 1.2fr 1fr; }
.cols-even   { grid-template-columns: 1fr 1fr; }
.cols-rich   { grid-template-columns: 1fr 1.3fr; }
.cols-lead   { grid-template-columns: 1.5fr 1fr; }
.cols-aside  { grid-template-columns: minmax(0, 1fr) 392px; }
.cols-media  { grid-template-columns: auto 1fr; }   /* avatar/icon + text */
.cols-action { grid-template-columns: 1fr auto; }   /* text + button */
@media (max-width: 860px) {
  .cols-wide, .cols-even, .cols-rich, .cols-lead, .cols-aside { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cols-media, .cols-action { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-3); border-radius: var(--radius-lg); overflow: hidden; }
.gallery figure { margin: 0; overflow: hidden; position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; transition: transform var(--dur-slow) var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-row: span 1; grid-column: span 2; } }

.media { border-radius: var(--radius-lg); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Amenities list ---------- */
.amenity { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.amenity svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.amenity span { color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-inverse); color: var(--text-on-brand); }
.site-footer a { color: var(--birch-300); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
.site-footer h4 { font-family: var(--font-eyebrow); font-size: var(--text-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--birch-300); margin: 0 0 var(--space-4); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); }
.site-footer__brand p { color: color-mix(in srgb, var(--text-on-brand) 70%, transparent); max-width: 32ch; font-size: var(--text-sm); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: color-mix(in srgb, var(--text-on-brand) 60%, transparent); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.field .hint { font-size: var(--text-xs); color: var(--text-muted); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: var(--text-body); color: var(--text-primary);
  background: var(--surface-card); border: 1.5px solid var(--border-default); border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem; width: 100%; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--petrol-400); box-shadow: var(--shadow-focus); }
.textarea { resize: vertical; min-height: 110px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: var(--space-4); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface-card); color: var(--brand); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast); }
.stepper button:hover:not(:disabled) { border-color: var(--brand); background: var(--surface-sunk); }
.stepper button:active:not(:disabled) { transform: scale(0.92); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 1.5ch; text-align: center; font-weight: 600; }

/* ---------- Booking panel ---------- */
.booking-aside { position: sticky; top: 96px; }
@media (max-width: 860px) { .booking-aside { position: static; } }
.price-row { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); color: var(--text-secondary); }
.price-row--total { border-top: 1px solid var(--border-default); margin-top: var(--space-3); padding-top: var(--space-4); color: var(--text-primary); font-weight: 700; font-size: var(--text-lead); }
.price-row .u { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Calendar ---------- */
.cal { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.cal__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.cal__nav { display: flex; gap: var(--space-2); }
.cal__nav button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border-default); background: var(--surface-card); cursor: pointer; display: grid; place-items: center; color: var(--brand); transition: background var(--dur-fast), border-color var(--dur-fast); }
.cal__nav button:hover:not(:disabled) { background: var(--surface-sunk); border-color: var(--brand); }
.cal__nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__dow { text-align: center; font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; padding-block: var(--space-2); }
.cal__day { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-sm); font-size: var(--text-sm); font-variant-numeric: tabular-nums; cursor: pointer; border: 1px solid transparent; position: relative; transition: background var(--dur-fast), color var(--dur-fast); }
.cal__day.is-empty { cursor: default; }
.cal__day.is-available:hover { background: var(--brand-soft); }
.cal__day.is-booked { color: var(--limestone-300); text-decoration: line-through; cursor: not-allowed; }
.cal__day.is-past { color: var(--limestone-300); cursor: not-allowed; }
.cal__day.is-selected { background: var(--color-primary); color: #fff; }
.cal__day.is-inrange { background: var(--brand-soft); border-radius: 0; }
.cal__day.is-start { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.cal__day.is-end { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.cal__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal__legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 60ch; margin-bottom: var(--space-7); }
.section-head h2 { margin: 0 0 var(--space-3); }
.section-head p { margin: 0; color: var(--text-secondary); font-size: var(--text-lead); }

/* ---------- Gate (passcode) ---------- */
.gate-stage { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); background:
  linear-gradient(to bottom, rgba(35,51,51,.72), rgba(35,51,51,.82)); }
.gate-bg { position: fixed; inset: 0; z-index: -1; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; }
.gate-card { width: 100%; max-width: 440px; background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.gate-card img.mark { height: 64px; margin: 0 auto var(--space-5); }
.gate-card h1 { margin: 0 0 var(--space-2); }
.gate-card p { color: var(--text-secondary); margin: 0 0 var(--space-6); }
.gate-error { color: var(--danger); font-size: var(--text-sm); min-height: 1.2em; margin-top: var(--space-3); }
.gate-hint { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--text-muted); }
.passcode-input { text-align: center; letter-spacing: .35em; font-weight: 600; font-size: 1.15rem; text-transform: uppercase; }

/* ---------- Document (letter / manual / guide) ---------- */
.doc-hero { position: relative; overflow: hidden; }
.doc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,32,36,.6), rgba(28,32,36,.2)); }
.doc-hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 8rem); color: #fff; }
.doc-hero__inner .display, .doc-hero__inner .eyebrow { color: #fff; }
.doc-hero__inner .eyebrow { color: var(--birch-300); }
.doc { max-width: 760px; margin-inline: auto; }
.prose { font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: var(--text-h2); color: var(--text-primary); margin-top: 2em; margin-bottom: .2em; }
.prose h3 { font-size: var(--text-h3); color: var(--text-primary); margin-top: 1.6em; margin-bottom: .1em; }
.prose p { margin: 0; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose .signature { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--text-primary); }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li { margin-bottom: .5em; }
.pullquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; color: var(--brand-strong); border-left: 2px solid var(--accent); padding-left: var(--space-5); margin-block: var(--space-7); }

/* Info rows / definition pairs */
.info-list { display: grid; gap: 0; }
.info-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.info-row dt { font-weight: 600; color: var(--text-primary); }
.info-row dd { margin: 0; color: var(--text-secondary); }
@media (max-width: 560px) { .info-row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* Manual step cards */
.steps { display: grid; gap: var(--space-4); counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.step__num { counter-increment: step; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.step__num::before { content: counter(step); }
.step h3 { margin: 0 0 .2em; }
.step p { margin: 0; color: var(--text-secondary); }

/* ---------- Quick-facts band ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.fact { text-align: center; }
.fact__k { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--brand-strong); line-height: 1; }
.fact__l { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }

/* ---------- Portal hub links ---------- */
.hub-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.hub-card:hover { text-decoration: none; }
.hub-card__media { aspect-ratio: 16/10; overflow: hidden; }
.hub-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.hub-card:hover .hub-card__media img { transform: scale(1.05); }
.hub-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.hub-card__body .arrow { margin-top: auto; padding-top: var(--space-3); color: var(--brand); font-weight: 600; font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Owner dashboard ---------- */
.stat { padding: var(--space-5); }
.stat__l { font-size: var(--text-sm); color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.stat__l svg { width: 17px; height: 17px; color: var(--brand); }
.stat__v { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--text-primary); line-height: 1.1; margin-top: var(--space-3); }
.stat__d { font-size: var(--text-xs); margin-top: var(--space-2); }
.trend-up { color: var(--success); } .trend-down { color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-default); }
.table td { padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.table tr:last-child td { border-bottom: none; }
.table td.num { font-variant-numeric: tabular-nums; text-align: right; color: var(--text-primary); font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.confirmed { background: var(--olive-100); color: var(--olive-600); }
.status-pill.pending { background: var(--coral-100); color: var(--coral-700); }
.status-pill.request { background: var(--brand-soft); color: var(--brand-strong); }

/* Occupancy bar */
.occ { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.occ__bar { flex: 1; background: var(--brand-soft); border-radius: var(--radius-xs) var(--radius-xs) 0 0; position: relative; min-height: 4px; }
.occ__bar > i { position: absolute; inset: auto 0 0 0; background: var(--color-primary); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }
.occ__labels { display: flex; gap: 6px; margin-top: var(--space-2); }
.occ__labels span { flex: 1; text-align: center; font-size: var(--text-xs); color: var(--text-muted); }

/* Document download rows */
.doc-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.doc-row:last-child { border-bottom: none; }
.doc-row__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.doc-row__icon svg { width: 20px; height: 20px; }
.doc-row__meta { flex: 1; min-width: 0; }
.doc-row__meta strong { display: block; color: var(--text-primary); font-weight: 600; }
.doc-row__meta span { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- Owner sidebar layout ---------- */
.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.app-side { background: var(--surface-inverse); color: var(--text-on-brand); padding: var(--space-5); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--space-6); }
.app-side .brand img { height: 40px; filter: brightness(0) invert(1); opacity: .96; }
.app-side nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: var(--space-3); padding: 0.7rem 0.85rem; border-radius: var(--radius-md); color: color-mix(in srgb, var(--text-on-brand) 78%, transparent); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.side-link svg { width: 18px; height: 18px; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.side-link[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.app-main { padding: var(--space-7) var(--gutter); max-width: 1180px; }
@media (max-width: 820px) { .app-shell { grid-template-columns: 1fr; } .app-side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; } .app-side nav { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-default); border: 0; margin-block: var(--space-7); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.note { background: var(--brand-soft); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); color: var(--brand-strong); font-size: var(--text-sm); display: flex; gap: var(--space-3); }
.note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); }
.note--accent { background: var(--accent-soft); color: var(--accent-strong); }
.note--accent svg { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }
.back-link svg { width: 16px; height: 16px; }
