/* Monkbar Mews — Heritage Press house style, accessibility-first build (c04)
   Brand palette: ivory #F6F4EF · navy #17233B · gold #A8894B · slate #2C3446 · parchment #E4E0D6
   Gold is used for fills/borders only; text-on-light uses --gold-ink (6.2:1 on ivory),
   gold buttons carry navy text (4.7:1). */

/* Self-hosted fonts (from @fontsource/inter and @fontsource/libre-baskerville 5.3.0, SIL OFL 1.1, latin subset).
   Only the faces the site uses. build.py rewrites each url() to its content-hashed file under /assets/fonts/.
   Inter italic and Libre Baskerville 400/400i are not used (italic review text is synthesised, as before). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.8909904ab6.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-500-normal.f3779f1efc.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.f9a06e79cd.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-700-normal.6f56409fd3.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/libre-baskerville-latin-700-normal.96fa63376e.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ivory: #F6F4EF;
  --navy: #17233B;
  --gold: #A8894B;
  --gold-soft: #C2A56B;
  --gold-ink: #6E5829;
  --gold-on-dark: #C9A96A;
  --slate: #2C3446;
  --muted: #4A5163;
  --parchment: #E4E0D6;
  --line: #CFC9BA;
  --white: #FFFFFF;
  --error: #A3261B;
  --radius: 4px;
  --max: 1180px;
  --gutter: 16px;
  --shadow: 0 12px 32px rgba(23, 35, 59, 0.10);
  --focus: 3px solid #17233B;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bar-h: 0px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (max-width: 899.98px) { :root { --bar-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  scroll-padding-bottom: calc(var(--bar-h) + 16px); /* WCAG 2.4.11: focus never hidden behind sticky bar */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 900px) { html { scroll-padding-top: 96px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
h1, h2, h3, .brand-mark {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; margin-bottom: 1em; }
.small { font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.95rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Focus: one strong, consistent indicator (2-colour so it shows on light and dark) */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .hero :focus-visible, .mobile-bar :focus-visible, .lightbox :focus-visible {
  outline-color: var(--gold-on-dark); box-shadow: 0 0 0 6px var(--navy);
}
main:focus { outline: none; }
section[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -200px; background: var(--white); color: var(--navy);
  padding: 14px 22px; z-index: 300; border-radius: var(--radius); font-weight: 700; border: 3px solid var(--navy);
}
.skip-link:focus { top: 12px; }

/* Buttons — min 44px target */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--sans); line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: rgba(23, 35, 59, 0.35); color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.ext { font-size: 0.85em; line-height: 1; }

/* Header */
.site-header { background: var(--navy); position: relative; z-index: 100; }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; padding: 4px 0; }
.brand-mark { color: var(--white); font-size: 1.35rem; margin: 0; }
.brand-sub { color: var(--gold-on-dark); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

.main-nav { order: 2; }
.menu { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--parchment); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--white); border-bottom-color: var(--gold); }
.nav-link[aria-current] { color: var(--white); border-bottom-color: var(--gold); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { min-width: 36px; min-height: 44px; background: none; border: 0; color: var(--parchment); cursor: pointer; padding: 0 8px; border-radius: var(--radius); }
.sub-toggle:hover { color: var(--white); }
.chev { display: inline-block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.sub-toggle[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
.submenu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 280px; box-shadow: var(--shadow); border-radius: var(--radius); padding: 8px 0; z-index: 120; border: 1px solid var(--line); }
.submenu.open { display: block; }
.no-js .has-sub:hover .submenu, .no-js .has-sub:focus-within .submenu { display: block; }
.submenu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; color: var(--navy); text-decoration: none; font-weight: 600; min-height: 44px; align-items: center; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--parchment); }
.submenu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); }
.menu-meta { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

.header-cta { display: flex; align-items: center; gap: 18px; order: 3; }
.tel-link { color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.tel-link:hover { color: var(--gold-on-dark); }
.nav-toggle { display: none; }

@media (max-width: 899.98px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .header-cta { display: none; }
  .main-nav { order: 3; width: 100%; }
  .js .main-nav { width: auto; order: 2; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); border-radius: var(--radius);
    font: 600 1rem var(--sans); cursor: pointer;
  }
  .nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
  .nav-toggle-bars span { display: block; height: 2px; background: currentColor; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .js .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255,255,255,0.15); box-shadow: 0 16px 24px rgba(0,0,0,0.25); max-height: calc(100vh - 140px); overflow-y: auto; }
  .js .menu.open { display: flex; }
  .nav-link { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.12); min-height: 48px; padding: 0 4px; }
  .nav-link[aria-current] { border-bottom-color: rgba(255,255,255,0.12); box-shadow: inset 4px 0 0 var(--gold); padding-left: 14px; }
  .has-sub { flex-wrap: wrap; }
  .has-sub .nav-link { width: auto; flex: 1; }
  .sub-toggle { display: none !important; }
  .submenu, .no-js .has-sub:hover .submenu { display: block; position: static; box-shadow: none; background: transparent; border: 0; min-width: 0; width: 100%; padding: 0 0 4px 12px; }
  .submenu a { color: var(--parchment); font-weight: 500; padding: 8px 4px; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,0.08); }
  .menu-meta { color: #C9CDD6; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,35,59,0.70) 0%, rgba(23,35,59,0.86) 100%); }
.hero-inner { padding-top: 56px; padding-bottom: 56px; min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero-lead { max-width: 50ch; font-size: 1.1rem; color: var(--parchment); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.hero-facts li { border: 1px solid rgba(255,255,255,0.45); padding: 4px 12px; border-radius: 999px; font-size: 0.92rem; color: var(--white); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 599.98px) { .hero-inner { padding-top: 36px; padding-bottom: 40px; } .hero-facts { margin-bottom: 20px; } }
.hero-rating { margin: 14px 0 0; font-size: 0.95rem; font-weight: 600; color: var(--white); }
.hero-rating span[aria-hidden] { color: var(--gold-on-dark); }
.hero-rating span[aria-hidden]:not(:first-child) { color: var(--parchment); }
/* Photo failed to load: hide the broken-image box, keep the box's background (navy in the hero). */
img.img-failed[alt=""] { visibility: hidden; }
.hero-img { color: transparent; }

.eyebrow { color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.eyebrow-light { color: var(--gold-on-dark); }
.section-lead { max-width: 64ch; font-size: 1.08rem; }

/* Sections */
.section { padding: 56px 0; }
.section-tight { padding-top: 16px; }
.section-alt { background: var(--parchment); }
@media (min-width: 900px) { .section { padding: 72px 0; } }

/* Finder */
.finder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 28px 0 8px; }
.finder-title { font-size: 1.1rem; margin-bottom: 12px; }
.finder fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.finder legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 600; background: var(--white); }
.chip input:checked + span { background: var(--navy); color: var(--white); }
.chip input:checked + span::before { content: "\2713\00a0"; }
.chip .cnt, .finder-check .cnt { font-weight: 400; margin-left: 4px; }
.chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); }
.chip:hover > span { background: var(--parchment); }
.chip:hover input:checked + span { background: var(--slate); }
.finder-check { display: flex; align-items: flex-start; gap: 10px; }
.finder-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.finder-check label { font-weight: 600; color: var(--navy); }
.finder-check .hint { font-weight: 400; }
.finder-status { margin: 14px 0 0; font-weight: 600; color: var(--slate); }
.finder-empty { background: var(--white); border-left: 4px solid var(--gold); padding: 16px 20px; margin-top: 16px; }
.compare-link { margin-top: 24px; font-weight: 600; }

/* Apartment cards */
.apt-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { .apt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apt-grid { grid-template-columns: repeat(3, 1fr); } }
.apt-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid transparent; }
.apt-card[hidden] { display: none; }
.apt-card:hover { border-color: var(--gold); }
.apt-card:focus-within { border-color: var(--navy); }
.apt-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--parchment); order: -1; }
.apt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.apt-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.apt-card-title { margin: 0; font-size: 1.2rem; }
.apt-card-title a { text-decoration: none; }
.apt-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable, one link in the a11y tree */
.apt-card-title a:focus-visible { outline: none; box-shadow: none; }
.apt-card-title a:focus-visible::after { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: var(--radius); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.95rem; color: var(--slate); }
.facts li + li::before { content: "\00b7"; padding: 0 8px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--parchment); color: var(--navy); font-size: 0.85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.apt-card-highlight { font-size: 0.97rem; margin: 0; flex: 1; }
.apt-card-price { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--parchment); color: var(--slate); }
.apt-card-price strong { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; }

/* Perks */
.perks-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 600px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .perks-grid { grid-template-columns: repeat(4, 1fr); } }
.perk { background: var(--white); padding: 22px; border-radius: var(--radius); border-top: 4px solid var(--gold); }
.perk h3 { font-size: 1.05rem; }
.perk p { font-size: 0.97rem; margin: 0; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 12px; margin: 20px 0 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.plain-list { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li { margin-bottom: 6px; }
.plain-list.cols { columns: 2 200px; }
.cta-row { margin-top: 28px; }

/* Location & property galleries */
.location-gallery { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 28px 0; }
@media (min-width: 700px) { .location-gallery { grid-template-columns: repeat(3, 1fr); } }
.location-gallery figure { margin: 0; }
.location-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.location-gallery figcaption { font-size: 0.92rem; margin-top: 8px; }
.property-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 800px) { .property-gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.property-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-links { margin-top: 12px; font-size: 0.97rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card figure { background: var(--white); padding: 24px; border-radius: var(--radius); margin: 0; box-shadow: var(--shadow); height: 100%; }
.review-card blockquote { margin: 0 0 12px; }
.review-card blockquote p { font-style: italic; }
.review-card figcaption { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.review-card figcaption span { font-weight: 400; color: var(--muted); }
.stars { color: var(--gold-ink); letter-spacing: 2px; display: inline-block; margin-bottom: 10px; font-size: 1.05rem; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--parchment); margin: 0 auto 24px; }
.cta-band .cta-alt { margin: 20px auto 0; }
.cta-band a:not(.btn) { color: var(--white); }

/* Footer */
.site-footer { background: var(--navy); color: var(--parchment); padding: 48px 0 calc(var(--bar-h) + 8px); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.site-footer a { color: var(--parchment); text-decoration-color: var(--gold-on-dark); }
.site-footer a:hover { color: var(--white); }
.footer-col h2 { color: var(--white); font-size: 0.95rem; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.97rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 18px; padding-bottom: 18px; font-size: 0.9rem; }
.footer-bottom p { margin: 0; max-width: none; }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 899.98px) {
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--navy); box-shadow: 0 -6px 20px rgba(0,0,0,0.2); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--bar-h); color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
  .mobile-bar-btn:first-child { flex: 0 0 34%; border-right: 1px solid rgba(255,255,255,0.2); }
  .mobile-bar-btn-gold { background: var(--gold); color: var(--navy); }
  .mb-text { display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center; }
  .mb-sub { font-weight: 600; font-size: 0.85rem; }
  .mobile-bar :focus-visible { outline-offset: -5px; box-shadow: none; outline-color: var(--white); }
  .mobile-bar-btn-gold:focus-visible { outline-color: var(--navy); }
}

/* Breadcrumb */
.breadcrumb { padding-top: 18px; font-size: 0.95rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; padding: 0 10px; color: var(--muted); }
.breadcrumb a { color: var(--slate); display: inline-block; padding: 4px 0; }
.breadcrumb a[aria-current] { text-decoration: none; font-weight: 600; color: var(--navy); }

/* Apartment page */
.apt-hero { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 20px; align-items: start; }
@media (min-width: 900px) { .apt-hero { grid-template-columns: 1.15fr 1fr; gap: 44px; } .apt-hero-media { position: sticky; top: 96px; } }
.g-hero { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--parchment); }
.g-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.g-hero-label { position: absolute; right: 12px; bottom: 12px; background: var(--white); color: var(--navy); font-weight: 700; padding: 8px 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.g-hero:hover .g-hero-label { background: var(--navy); color: var(--white); }
.apt-summary { font-size: 1.1rem; }
.apt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.apt-facts > div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.apt-facts dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.apt-facts dd { margin: 2px 0 0; color: var(--navy); font-weight: 600; }
@media (max-width: 400px) { .apt-facts { grid-template-columns: 1fr; } }
.apt-price-block { display: flex; align-items: center; gap: 16px 24px; margin-top: 20px; flex-wrap: wrap; }
.apt-price { margin: 0; }
.apt-price strong { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); }
.price-caveat { font-size: 0.95rem; color: var(--muted); margin-top: 12px; }
.count { font-family: var(--sans); font-weight: 400; font-size: 0.7em; color: var(--muted); }

.apt-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 700px) { .apt-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .apt-gallery { grid-template-columns: repeat(4, 1fr); } }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--parchment); }
.apt-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.15s; }
.apt-gallery .g-item:hover img { opacity: 0.85; }

.apt-floorplan { max-width: 720px; margin: 20px 0 0; background: var(--white); padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.apt-floorplan img { width: 100%; height: auto; }
.apt-floorplan figcaption { font-size: 0.95rem; margin-top: 10px; }

.amenities-grid { display: grid; grid-template-columns: 1fr; gap: 10px 32px; margin-top: 20px; }
@media (min-width: 640px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
.amenities-grid li { padding-left: 28px; position: relative; }
.amenities-grid li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }

.apt-pager { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 40px; gap: 12px; flex-wrap: wrap; }
.apt-pager-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Lightbox (native <dialog>: focus trap + Esc + inert background for free) */
.lightbox { position: fixed; inset: 0; border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; background: rgba(12, 18, 31, 0.97); color: var(--white); }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(12, 18, 31, 0.9); }
.lb-inner { display: flex; flex-direction: column; height: 100%; padding: 12px var(--gutter) 16px; gap: 10px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-title { color: var(--white); font-size: 1.05rem; margin: 0; }
.lb-figure { flex: 1 1 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.lb-img { max-width: 100%; min-height: 0; flex: 0 1 auto; width: auto; height: auto; object-fit: contain; }
.lb-caption { margin-top: 10px; font-weight: 600; }
.lb-controls { display: flex; justify-content: center; gap: 12px; }
.lb-btn { min-height: 48px; min-width: 120px; padding: 10px 18px; background: var(--white); color: var(--navy); border: 2px solid var(--white); border-radius: var(--radius); font: 700 1rem var(--sans); cursor: pointer; }
.lb-btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.lb-close { min-width: 0; }

/* Compare table */
.table-wrap { overflow-x: auto; margin-top: 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.compare { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--parchment); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.9rem; }
.compare tbody th a { font-family: var(--serif); font-weight: 700; display: inline-flex; min-height: 32px; align-items: center; }
.compare tbody tr:nth-child(even) { background: #FAF9F6; }
.td-sub { display: block; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 599.98px) {
  .compare { min-width: 0; font-size: 0.95rem; }
  .compare .opt { display: none; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare .td-sub { display: none; }
}

/* Contact page */
.page-hero { padding-top: 32px; padding-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-details h2 { font-size: 1.2rem; margin-top: 28px; }
.contact-details h2:first-child { margin-top: 0; }
.contact-form { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 600px) { .contact-form { padding: 32px; } }
.form-note { font-size: 0.95rem; }
.req-text { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.req-text::before { content: "("; } .req-text::after { content: ")"; }
.field { margin: 18px 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field-hint { font-size: 0.92rem; color: var(--muted); margin: -2px 0 6px; }
.field-error { color: var(--error); font-weight: 700; margin: 0 0 6px; }
.field-error::before { content: "Error: "; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #6B7080; border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--slate); background: var(--white);
}
.contact-form [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.contact-form button { margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.error-summary { border: 4px solid var(--error); padding: 16px 20px; margin: 16px 0; border-radius: var(--radius); }
.error-summary:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
.error-summary h3 { color: var(--error); margin-bottom: 8px; }
.error-summary a { color: var(--error); font-weight: 600; }

/* "Check dates & prices" quick form (home hero + apartment booking card) */
.qf { background: var(--white); color: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; margin: 20px 0 0; max-width: 760px; box-shadow: var(--shadow); }
.qf-hero { margin-top: 22px; border-color: transparent; border-top: 4px solid var(--gold); }
.qf-title { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
/* Phones: dates share row 1 equally; row 2 gives the button more room than Guests (10-col grid). */
.qf-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.qf-grid > .qf-field { grid-column: span 5; }
.qf-grid > .qf-guests { grid-column: span 4; }
.qf-grid > .qf-submit { grid-column: span 6; }
.qf-field { min-width: 0; }
.qf-field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.qf .field-error { font-size: 0.9rem; line-height: 1.35; }
.qf input, .qf select {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 8px 10px; border: 2px solid #6B7080; border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--slate); background: var(--white);
}
.qf input::-webkit-date-and-time-value { text-align: left; }
.qf [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.qf-submit .btn { width: 100%; min-height: 48px; padding: 10px 8px; gap: 4px; white-space: nowrap; }
.qf-hint { font-size: 0.88rem; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.qf-nojs { display: none; margin: 4px 0 0; color: var(--muted); }
.no-js .qf-nojs { display: block; }
.hero .qf :focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 6px var(--white); }
@media (max-width: 359.98px) { .qf-submit .btn { white-space: normal; } } /* 320px / 400% zoom: allow wrap */
@media (min-width: 700px) {
  .qf-grid { grid-template-columns: 1fr 1fr 96px auto; }
  .qf-grid > .qf-field { grid-column: auto; }
  .qf-submit .btn { padding: 10px 18px; }
}
.apt-hero-info .qf { max-width: none; box-shadow: none; }
@media (min-width: 900px) { /* narrow info column beside the photo: keep the two-row layout */
  .apt-hero-info .qf-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .apt-hero-info .qf-grid > .qf-field { grid-column: span 5; }
  .apt-hero-info .qf-grid > .qf-guests { grid-column: span 4; }
  .apt-hero-info .qf-grid > .qf-submit { grid-column: span 6; }
}

/* Terms */
.summary-box { background: var(--white); border-left: 5px solid var(--gold); padding: 18px 22px; margin-top: 20px; border-radius: var(--radius); }
.summary-box h2 { font-size: 1.15rem; }
.terms-layout { padding-bottom: 64px; }
.toc { background: var(--parchment); padding: 18px 22px; border-radius: var(--radius); margin: 16px 0 24px; }
.toc h2 { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; }
.toc ol { list-style: decimal; padding-left: 1.4em; columns: 2 220px; }
.toc li { margin-bottom: 4px; }
.terms-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms-section:last-child { border-bottom: none; }
.terms-section h2 { font-size: 1.15rem; }
.terms-section p { margin: 0; }
.prose section { margin-bottom: 32px; }
.prose h2 { font-size: 1.35rem; }

/* Windows high contrast / forced colours */
@media (forced-colors: active) {
  .btn, .chip span, .lb-btn, .nav-toggle { border: 2px solid ButtonText; }
  .qf { border: 2px solid CanvasText; }
  .chip input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  :focus-visible { outline: 3px solid Highlight; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .finder, .qf, .lightbox, .apt-pager, .map-block { display: none !important; }
  body { background: #fff; }
}
.apt-location { max-width: 720px; margin: 16px 0 0; }
.apt-location img { width: 100%; height: auto; display: block; }
.apt-location figcaption { font-size: 0.9rem; margin-top: 6px; color: var(--muted, inherit); }

/* ---- Smooth transitions (v1.1) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mm-fade-out 0.18s ease both; }
::view-transition-new(root) { animation: mm-fade-in 0.28s ease both; }
@keyframes mm-fade-out { to { opacity: 0; } }
@keyframes mm-fade-in { from { opacity: 0; transform: translateY(6px); } }
.btn { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(23, 35, 59, 0.18); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 0.08s; }
.apt-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.apt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 35, 59, 0.14); }
.apt-card-media img { transition: transform 0.4s ease; }
.apt-card:hover .apt-card-media img { transform: scale(1.03); }
.apt-card-media { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn:hover, .btn:active, .apt-card:hover, .apt-card:hover .apt-card-media img { transform: none; }
}

/* ---- Mobile tap targets (v1.1) ---- */
@media (max-width: 899.98px) {
  .footer-links a, .breadcrumb a, .apt-pager a, .compare th a { display: inline-flex; align-items: center; min-height: 44px; }
  .compare th a { min-width: 44px; }
  .footer-links li { margin: 0; }
}
@media (max-width: 899.98px) {
  .site-footer .footer-links a { min-height: 44px; padding-top: 0; padding-bottom: 0; }
  table.compare tbody th a { min-height: 44px; }
}

.price-note { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
