/* 52 South Street. Luxury listing look: black, white and soft gray, Playfair Display titles over Lato text,
   square corners, thin lines, full-screen photo hero. Fonts are self-hosted (both OFL, see fonts/OFL-*.txt). */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/playfair-display-normal-400-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('fonts/playfair-display-italic-400-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/lato-normal-300-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lato-normal-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/lato-normal-700-latin.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sunk: #f5f5f3;
  --soft: #f7f7f5;
  --ink: #000000;
  --ink-2: #2f2f2f;
  --text: #6b6b6b;      /* body copy gray */
  --ink-3: #767676;
  --gray: #999999;      /* small title words and accent lines */
  --line: #e4e4e4;
  --line-2: #cfcfcf;
  --accent: #000000;
  --accent-hover: #2f2f2f;
  --accent-soft: #f1f1ef;
  --dark: #111111;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: var(--font);
  --r: 0px;
  --r-sm: 0px;
  --gutter: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: .6s;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #000; color: #fff; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

/* small uppercase kicker */
.label {
  font-family: var(--font); font-weight: 700; font-size: 11.5px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gray);
}
.mono { font-family: var(--font); font-weight: 400; letter-spacing: .04em; }
.muted { color: var(--ink-3); }
.fine { font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.cfg-warn { margin: 0; padding: 10px var(--gutter); background: #a5382b; color: #fff; font-size: 14px; line-height: 1.45; text-align: center; position: relative; z-index: 60; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #000; color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons: square, 2px line, small bold capitals; they fill in on hover ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 0;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; white-space: nowrap; text-align: center;
  border: 2px solid var(--ink); cursor: pointer; transition: background-color var(--slow) var(--ease), border-color var(--slow) var(--ease), color var(--slow) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.btn-lg { min-height: 56px; padding: 0 34px; }
.btn-block { width: 100%; }
.btn.is-off { background: var(--sunk); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.btn-primary.is-off svg { stroke: var(--ink-3); }

/* ---------- header: clear over the hero, solid black after you scroll ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0; color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0));
  transition: padding var(--slow) var(--ease), background-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.nav.is-solid { background: #000; padding: 8px 0; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; min-height: 48px; }
.brand { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: #fff; margin-right: auto; }
.brand svg { grid-row: 1 / span 2; width: 30px; height: 30px; color: #fff; }
.brand span { font-family: var(--serif); font-size: 21px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.05; transition: font-size var(--slow) var(--ease); }
.brand-sub { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .92; line-height: 1.6; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { position: relative; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: 10px 14px; transition: opacity .4s ease; }
.nav-links a:hover { opacity: .6; }
.nav-menu-cta { display: none; }
.nav .nav-cta { background: transparent; color: #fff; border-color: #fff; }
.nav .nav-cta:hover { background: #fff; color: #000; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer;
  padding: 10px 0 10px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; position: relative; z-index: 2;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .4s var(--ease), background-color .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav .nav-cta { display: none; }

/* phones and tablets: a full-screen black menu */
@media (max-width: 1023px) {
  .nav-links {
    display: flex; position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    background: #000; padding: 90px 24px 40px;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .nav-links a { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .08em; padding: 10px 16px; transform: translateY(10px); transition: transform .5s var(--ease), opacity .4s; }
  .nav-menu-cta { display: inline-block; margin-top: 22px; border: 2px solid #fff; font-family: var(--font) !important; font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .16em !important; padding: 16px 30px !important; }
  .nav.menu-on .nav-links { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .nav.menu-on .nav-links a { transform: none; }
  .nav.menu-on { background: transparent; box-shadow: none; }
  .nav.menu-on .brand { position: relative; z-index: 2; }
}
@media (min-width: 1024px) {
  .nav { padding: 30px 0; }
  .nav.is-solid { padding: 12px 0; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .nav .nav-cta { display: inline-flex; }
  .brand span { font-size: 26px; }
  .nav.is-solid .brand span { font-size: 21px; }
}

/* ---------- hero: full-screen photo slideshow ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #111; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: 50% 40%; transform: scale(1.06); }
.hero-slide.is-on img { animation: heroZoom 9s linear both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-slides::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.58) 40%, rgba(0,0,0,.08) 74%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.78) 100%);
}
@media (max-width: 719px) {
  .hero-slides::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.52) 30%, rgba(0,0,0,.74) 55%, rgba(0,0,0,.92) 100%); }
}
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .4s; position: relative; }
.hero-dots button::before { content: ''; position: absolute; inset: -10px; }
.hero-dots button[aria-current="true"] { background: #fff; }
.hero-grid { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 36px; }
.hero-text { max-width: 900px; }
.hero-text .label { text-shadow: 0 1px 10px rgba(0,0,0,.4); color: #fff; letter-spacing: .32em; }
.hero h1 .h1-line { display: block; margin-top: .12em; padding-top: .12em; border-top: 1px solid rgba(255,255,255,.55); }
@media (min-resolution: 2dppx) { .hero h1 .h1-line { border-top-width: .5px; border-top-color: rgba(255,255,255,.8); } }
.hero h1 .h1-caret { display: inline-block; width: .04em; min-width: 2px; height: .82em; margin-left: .32em; vertical-align: -.04em; background: #fff; animation: caret-blink 1.06s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .h1-caret { animation: none; } }
.hero h1 { color: #fff; margin-top: 18px; font-size: clamp(34px, 9vw, 72px); line-height: 1.04; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.lead { margin-top: 18px; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.94); max-width: 36em; font-weight: 400; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .cta-row .btn-primary { background: #fff; color: #000; border-color: #fff; }
.hero .cta-row .btn-primary:hover { background: transparent; color: #fff; }
.hero .cta-row .btn-ghost { color: #fff; border-color: #fff; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .cta-row .btn-ghost:hover { background: #fff; color: #000; }
.hero .fine { margin-top: 14px; }
.play-link { color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-underline-offset: 5px; }

/* key facts: a thin-lined spec row under the intro */
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-text .lead { max-width: 620px; }
.hero-text > * { max-width: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 900px; margin: 26px 0 0; border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.fact { padding: 12px 12px 12px 0; min-width: 0; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.fact:nth-child(n+3):not([hidden]) { border-top: 1px solid rgba(255,255,255,.14); }
.fact dt { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.fact dd { font-variant-numeric: lining-nums; margin: 4px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.3; color: #fff; letter-spacing: .02em; }
.fact dd .ask { color: #fff; }
.fact-note { display: block; font-family: var(--font); font-size: 13px; color: rgba(255,255,255,.85); letter-spacing: 0; }
@media (max-width: 719px) {
  .cta-row .btn { flex: 1 1 100%; }
  .hero-text .cta-row { order: 1; width: 100%; }
  .hero-text .facts { order: 2; }
  .hero-text .fine { order: 3; }
  .hero-grid { padding-top: 110px; padding-bottom: 30px; }
  .hero-dots { right: 14px; top: 96px; transform: none; }
  .brand span { font-size: 17px; letter-spacing: .08em; white-space: nowrap; }
  .brand-sub { font-size: 8.5px; letter-spacing: .22em; white-space: nowrap; }
  .brand svg { width: 26px; height: 26px; }
  .hero-dots button { box-shadow: 0 0 6px rgba(0,0,0,.5); }
  .gallery .g-item:not(.g-wide) figcaption { padding: 12px 12px 11px; font-size: 13px; }
  .gallery .g-item:not(.g-wide) figcaption .label { font-size: 9px; }
}
@media (min-width: 720px) {
  .facts { background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0 4px 0 20px; }
  .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .fact { padding: 16px 20px; border-left: 1px solid rgba(255,255,255,.18); }
  .fact:nth-child(n+3):not([hidden]) { border-top: 0; }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact dd { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hero-grid { padding-bottom: 64px; }
  .hero-dots { right: 34px; }
  .lead { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide.is-on img { animation: none; transform: none; } }

/* ---------- three link tiles under the hero ---------- */
.tiles { padding: 64px 0; }
.tiles-row { display: grid; gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 120px; padding: 26px 30px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); isolation: isolate;
  transition: color var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transform: scale(1.08); transition: opacity var(--slow) var(--ease), transform 1.2s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.5); opacity: 0; transition: opacity var(--slow) var(--ease); }
.tile::before { content: ''; position: absolute; right: 30px; top: 50%; width: 34px; height: 1px; background: currentColor; transition: width var(--slow) var(--ease); }
.tile-k { font-size: 14px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.tile-t { font-family: var(--serif); font-size: 23px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; padding-top: 4px; padding-right: 54px; }
.tile:hover, .tile:focus-visible { color: #fff; border-color: #000; }
.tile:hover img, .tile:focus-visible img, .tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.tile:hover::before { width: 50px; }
@media (min-width: 900px) {
  .tiles { padding: 96px 0; }
  .tiles-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .tile { min-height: 150px; justify-content: flex-start; padding-top: 36px; }
}

/* ---------- sections and their titles ---------- */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
#tour, #photos, #location { background: var(--bg); }
#open, #plan { background: var(--soft); }

/* Title lockup: the big serif title, then a thin line that ends in the small italic word (the section label). */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; max-width: 820px; margin-bottom: 36px; }
.sec-head h2, .open-text h2, .sched-text h2 { font-size: clamp(32px, 7vw, 58px); letter-spacing: .05em; text-transform: uppercase; line-height: 1.08; }
.sec-head .label, .open-text > .label { max-width: 100%;
  order: 2; display: flex; align-items: center; gap: 20px; margin-top: 10px;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 3.4vw, 26px); letter-spacing: .04em; text-transform: none; color: var(--gray);
}
.sec-head .label::before { content: ''; flex: 1 1 auto; min-width: 40px; height: 1px; background: var(--gray); }
.sec-head .label { align-self: stretch; }
/* title with no label word: the thin line alone, a bit longer than the title block */
.sec-head .sec-line { order: 2; flex: none; width: min(884px, calc(100vw - 2 * var(--gutter))); height: 1px; margin-top: 22px; background: var(--gray); }
.sec-head h2 { order: 1; }
.sec-head p:not(.label) { order: 3; margin-top: 18px; color: var(--text); font-size: 17px; max-width: 40em; }
@media (min-width: 960px) { .sec-head { margin-bottom: 56px; } }
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 36px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.sec-cta p { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); }
.sub-title { font-size: 26px; letter-spacing: .06em; text-transform: uppercase; margin: 64px 0 20px; }

/* ---------- video ---------- */
.video-sec { background: #111; }
.video-sec .sec-head h2 { color: #fff; }
.video-sec .sec-head .label { color: var(--gray); }
.video-frame { overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-sec .fine { margin-top: 10px; }

/* ---------- 3D tour ---------- */
.tour-frame { position: relative; overflow: hidden; background: #ecebe8; height: min(76vh, 700px); min-height: 420px; box-shadow: 0 24px 50px -34px rgba(0,0,0,.4); }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tour-frame:fullscreen { height: 100%; box-shadow: none; }
.tour-frame:-webkit-full-screen { height: 100%; width: 100%; box-shadow: none; }
.tour-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.tour-cover-art { position: absolute; inset: 0; background: #ecebe8; display: flex; align-items: center; justify-content: center; }
.tour-cover-art svg.plan { width: auto; height: 72%; max-width: 84%; opacity: .3; }
.tour-cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tour-cover:hover .tour-cover-art img { transform: scale(1.03); }
.tour-cover-art.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.5)); }
.tour-cover-ui { position: relative; z-index: 1; text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tour-cover-ui .btn-primary { background: #fff; color: #000; border-color: #fff; }
.tour-cover-ui .btn-primary:hover { background: #000; color: #fff; border-color: #000; }
.tour-cover-ui .btn svg { fill: currentColor; stroke: none; }
.tour-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.tour-bar .label { color: var(--ink-2); }
.tour-exit { display: none; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 4; height: 38px; padding: 0 16px; border: 1px solid #000; background: rgba(255,255,255,.95); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tour-frame:fullscreen .tour-exit { display: block; }
.tour-frame:-webkit-full-screen .tour-exit { display: block; }
@media (max-width: 719px) {
  .tour-frame { height: 64vh; min-height: 380px; margin: 0 calc(var(--gutter) * -1); }
}
.tour-frame:not(.is-live) { height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: min(76vh, 700px); }
.tour-frame.is-soon { aspect-ratio: auto; height: 220px; }
.tour-soon {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--ink);
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}
.tour-soon::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* ---------- easily removable walls ---------- */
.open-grid { display: grid; gap: 32px; }
.open-text { display: flex; flex-direction: column; }
.open-text h2 { order: 0; }
.open-lead { margin-top: 20px; color: var(--text); font-size: 17px; max-width: 34em; }
.open-use { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--line-2); font-family: var(--serif); font-size: 19px; color: var(--ink); max-width: 32em; }
.open-use .label { font-family: var(--font); font-style: normal; font-size: 11px; color: var(--gray); }
.open-use .ask { color: var(--ink); }
.open-cta { margin-top: 28px; }
.open-text .fine { margin-top: 14px; max-width: 34em; }
.open-fig { margin: 0; min-width: 0; position: relative; }
.open-fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #ecebe8; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.open-fig::before { content: ''; position: absolute; left: -18px; top: -18px; right: 18px; bottom: 18px; border: 1px solid var(--gray); z-index: 0; pointer-events: none; }
.open-fig img { position: relative; z-index: 1; }
.open-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 719px) {
  .open-fig { order: -1; }
  .open-fig::before { left: -8px; top: -8px; right: 8px; bottom: 8px; }
  .open-cta .btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  .open-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
}

/* ---------- photo cards ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; container-type: inline-size; }
.g-item { margin: 0; min-width: 0; position: relative; overflow: hidden; background: #111; }
.g-wide { grid-column: 1 / -1; }
.g-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #111; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; }
.g-wide .g-btn { aspect-ratio: 16 / 10; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity var(--slow); }
.g-btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.82) 100%); opacity: .9; transition: opacity var(--slow) var(--ease);
}
.g-btn:hover img, .g-btn:focus-visible img { transform: scale(1.06); }
.g-btn:hover::after { opacity: 1; }
.g-item:not(:has(figcaption)) .g-btn::after { opacity: 0; }
.g-item:not(:has(figcaption)) .g-btn:hover::after { opacity: .35; }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  padding: 18px 18px 16px; color: #fff; font-family: var(--serif); font-size: 15px; line-height: 1.35; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.55); text-wrap: pretty;
}
.g-item figcaption::before { content: ''; display: block; width: 0; height: 2px; background: #fff; margin-bottom: 10px; transition: width var(--slow) var(--ease); }
.g-item:hover figcaption::before { width: 54px; }
.g-item figcaption .label { display: block; font-family: var(--font); font-size: 10px; color: rgba(255,255,255,.75); margin-bottom: 4px; letter-spacing: .2em; }
.g-cta { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 30px; background: #000; color: #fff; }
.g-cta .label { color: #b5b5b5; }
.g-cta-head { font-family: var(--serif); font-size: 26px; line-height: 1.25; letter-spacing: .03em; max-width: 14em; color: #fff; }
.g-cta .btn-primary { background: #fff; color: #000; border-color: #fff; }
.g-cta .btn-primary:hover { background: transparent; color: #fff; }
@media (min-width: 720px) {
  .gallery { gap: 16px; }
}
/* the big one-word 'Photos' title (photos helper) */
.sec-head h2.photos-title { font-size: clamp(56px, 15vw, 112px); letter-spacing: .08em; line-height: 1; }
.inside-photos { margin-top: 8px; }
.inside-photos .sub-title { margin-bottom: 8px; }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .g-wide { grid-column: span 2; }
  .g-wide .g-btn { aspect-ratio: auto; height: calc((100cqw - 40px) / 3 * 1.25); }
  .g-cta { grid-column: auto; height: calc((100cqw - 40px) / 3 * 1.25); padding: 36px; }
  .g-item figcaption { padding: 24px 24px 22px; font-size: 16px; }
}

/* ---------- floor plan ---------- */
.plan-card { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.3); }
.plan-art { position: relative; padding: 32px 12px 20px; display: flex; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); }
.plan-tag { position: absolute; top: 14px; left: 14px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }
.plan-art svg.plan { width: 100%; height: auto; }
.plan-art svg.plan-wide { display: none; }
.plan-art svg.plan-tall { max-width: 420px; }
.plan-side { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.plan-side > .label { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: .03em; text-transform: none; color: var(--ink); }
.room-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.room-list li, .room-total { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.room-list .mono, .room-total .mono { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; letter-spacing: .04em; }
.room-total { font-family: var(--serif); font-size: 18px; color: var(--ink); border-bottom: 0; padding-top: 0; }
.room-total .mono { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 18px; color: var(--ink); }
@media (min-width: 980px) {
  .plan-art { padding: 56px 40px 40px; }
  .plan-tag { top: 22px; left: 28px; }
  .plan-art svg.plan-wide { display: block; max-width: 1080px; }
  .plan-art svg.plan-tall { display: none; }
  .plan-side { padding: 32px 40px 36px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .plan-side > .label { grid-column: 1 / -1; margin-bottom: 14px; }
  .room-list { columns: 2; column-gap: 44px; border-top: 0; }
  .room-list li { break-inside: avoid; }
  .plan-foot { border-top: 1px solid var(--line); padding-top: 11px; }
}
.plan-foot { display: flex; flex-direction: column; gap: 14px; }
.plan-foot .btn { align-self: flex-start; }

/* plan drawing */
.plan .room { stroke: none; }
.plan .room.dry { fill: #fbfbfa; }
.plan .room.wet { fill: #eef1f1; }
.plan .room.landing { fill: #f3f2ef; }
.plan .stair-bg { fill: #f0efec; }
.plan .tread { stroke: #b8b6b0; stroke-width: 1; }
.plan .stair-arrow { stroke: #85837d; stroke-width: 1.2; fill: none; }
.plan .arrowhead { fill: #85837d; }
.plan .wall { fill: #1a1a1a; }
.plan .win { fill: #ffffff; stroke: #1a1a1a; stroke-width: 1; }
.plan .glass { stroke: #7d8d92; stroke-width: 1.4; }
.plan .swing { fill: none; stroke: #9c9a94; stroke-width: 1; stroke-dasharray: 3 3; }
.plan .leaf { stroke: #1a1a1a; stroke-width: 2; }
.plan .fx { fill: #ffffff; stroke: #a7a59f; stroke-width: 1; }
.plan .fx.dash, .plan line.fx.dash { fill: none; stroke-dasharray: 4 3; }
.plan .fx.thin { stroke-width: .8; }
.plan .fx.shower { fill: #f7f9f9; }
.plan .fx.fire { fill: #c8c5bf; stroke: #85837d; }
.plan .fx.hearth { fill: #ebe9e4; }
/* plan text sizes are set on each text element by tools/build_assets.py (measured to fit each room) */
.plan .lbl { font-family: var(--font); font-weight: 700; letter-spacing: .02em; fill: var(--ink); }
.plan .lbl.onstair { fill: #6a6862; }
.plan .sf { font-family: var(--font); font-weight: 400; letter-spacing: .04em; fill: var(--ink-3); }
.plan .street { font-family: var(--font); letter-spacing: .14em; fill: var(--ink); font-weight: 700; }
.plan .street-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.plan .door-mark { fill: var(--ink); }
.plan .door-note { font-family: var(--font); font-weight: 700; letter-spacing: .08em; fill: var(--ink); }
.plan .scale line { stroke: var(--ink-3); stroke-width: 1.2; }
.plan .scale text { font-family: var(--font); font-weight: 700; letter-spacing: .06em; fill: var(--ink-3); }

/* ---------- location ---------- */
.loc-grid { display: grid; gap: 28px; }
.map-wrap { min-width: 0; }
.map { position: relative; height: 380px; overflow: hidden; border: 1px solid var(--line); background: #ecebe8; z-index: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); background: #ecebe8; }
.map .maplibregl-ctrl-attrib { font-size: 10.5px; }
.map .maplibregl-ctrl-group { border-radius: 0; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
/* map pins: a round black chip on the spot, its name in a white tag beside it */
.mk { display: flex; pointer-events: none; }
.mk-chip { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #000; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); font: 700 13px/1 var(--font); }
.mk-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-chip svg .fill { fill: currentColor; stroke: none; }
.mk-t { position: absolute; top: 50%; left: calc(100% + 6px); transform: translateY(calc(-50% + var(--dy, 0px))); white-space: nowrap; font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #000; background: #fff; padding: 6px 8px; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.mk-l .mk-t { left: auto; right: calc(100% + 6px); }
.mk-home .mk-chip { width: 36px; height: 36px; border-radius: 0; }
.mk-home .mk-chip svg { width: 18px; height: 18px; }
.mk-home .mk-t { background: #000; color: #fff; }
.mk-park { pointer-events: auto; cursor: pointer; }
.mk-park .mk-chip { width: 26px; height: 26px; border-radius: 0; background: #fff; color: #000; border-color: #000; }
.mk-park .mk-t { display: none; }
.mk-park.is-active .mk-chip { background: #000; color: #fff; border-color: #fff; }
.mk-park.is-active .mk-t { display: block; }
.mk-park:focus-visible { outline: none; }
.mk-park:focus-visible .mk-chip { outline: 2px solid #000; outline-offset: 2px; }
/* phones: smaller pins, so the busy blocks around the door stay apart */
.map-sm .mk-chip { width: 24px; height: 24px; }
.map-sm .mk-chip svg { width: 13px; height: 13px; }
.map-sm .mk-home .mk-chip { width: 30px; height: 30px; }
.map-sm .mk-home .mk-chip svg { width: 15px; height: 15px; }
.map-sm .mk-park .mk-chip { width: 22px; height: 22px; font-size: 11px; }

/* parking: three short perks that light up their spot on the map */
.park { min-width: 0; }
.perks { margin-top: 14px; border-top: 1px solid var(--line); }
.perk { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 20px 14px; font: inherit; color: var(--ink); cursor: pointer; transition: background-color var(--slow), color var(--slow); }
.perk:hover { background: #f6f5f2; }
.perk.is-active { background: #000; color: #fff; }
.perk-v { font-family: var(--serif); font-size: 38px; line-height: 1; letter-spacing: .01em; font-variant-numeric: lining-nums; }
.perk-v small { display: block; margin-top: 6px; font-family: var(--font); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.perk-t b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.3; letter-spacing: .02em; }
.perk-t span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text); }
.perk.is-active .perk-t span, .perk.is-active .perk-v small { color: rgba(255, 255, 255, .72); }
.park-pass { margin-top: 22px; }
@media (max-width: 560px) {
  .perk { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 16px 6px; }
  .perk-v { font-size: 31px; }
  .perk-t b { font-size: 18px; }
  .perk-t span { font-size: 13.5px; }
}
@media (min-width: 980px) {
  .loc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .map { height: 640px; }
  .map-wrap { position: sticky; top: calc(var(--nav-h) + 24px); }
}

.near { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.near li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ni { width: 40px; height: 40px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.ni svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nt b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--ink); letter-spacing: .01em; font-variant-numeric: lining-nums; }
.nt span { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.nm { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.near + .fine { margin-top: 14px; }
@media (min-width: 980px) { .near { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* ---------- details (kept in case the section returns) ---------- */
.details { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.d-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.d-row dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); padding-top: 3px; }
.d-row dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.d-row .muted { font-size: 13.5px; }
.d-open, .d-wide { grid-column: 1 / -1; }
.ask { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(0,0,0,.3); text-underline-offset: 4px; }
.ask:hover { text-decoration-color: currentColor; }
@media (min-width: 980px) { .details { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* ---------- schedule: dark photo band, like a contact block ---------- */
.schedule { position: relative; color: rgba(255,255,255,.86); background: #111 url('img/hero-front-1280.webp') center 12% / cover no-repeat; isolation: isolate; }
.schedule::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.8)); }
@media (min-width: 1024px) { .schedule { padding: 150px 0; } }
.sched-grid { display: grid; gap: 40px; }
.sched-text { display: flex; flex-direction: column; max-width: 680px; }
.sched-text .label { order: 2; margin-top: 12px; color: rgba(255,255,255,.88); font-weight: 400; font-size: 15px; letter-spacing: .2em; }
.sched-text h2 { order: 1; color: #fff; font-size: clamp(38px, 8vw, 64px); }
.sched-text > p:not(.label) { order: 3; margin-top: 22px; color: rgba(255,255,255,.86); font-size: 17px; max-width: 32em; }
.sched-text > .contact-btns, .sched-text > .contact-line { order: 4; }
.contact-btns { display: flex; gap: 10px; margin-top: 28px; }
.contact-btns .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.schedule .btn-primary { background: #fff; color: #000; border-color: #fff; }
.schedule .btn-primary:hover { background: transparent; color: #fff; }
.schedule .btn-ghost { color: #fff; border-color: #fff; }
.schedule .btn-ghost:hover { background: #fff; color: #000; }
.schedule .btn.is-off { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.25); }
.schedule .btn-primary.is-off svg { stroke: rgba(255,255,255,.5); }
.contact-line { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.8); }
.contact-line a { color: #fff; font-weight: 700; }
.contact-line.is-pending {
  display: flex; gap: 12px; align-items: baseline; margin-top: 24px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 14.5px; line-height: 1.5;
}
.contact-line.is-pending::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translateY(-1px); }
.contact-line.is-pending + .contact-btns { margin-top: 14px; }
/* ---------- footer ---------- */
.foot { background: #fff; color: var(--text); padding: 80px 0 calc(72px + env(safe-area-inset-bottom)); font-size: 14.5px; line-height: 1.7; border-top: 1px solid var(--line); }
.foot a { color: var(--ink-2); }
.foot-grid { display: grid; gap: 40px; }
.foot-brand { font-family: var(--serif); color: var(--ink); font-size: 26px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.foot .btn { margin-top: 22px; }
.foot .btn-primary { color: #fff; }
.foot .btn-primary:hover { color: #000; }
.foot-h { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-nav a { text-decoration: none; font-weight: 400; transition: opacity .3s; }
.foot-nav a:hover { opacity: .55; }
.foot-legal { font-size: 13.5px; }
.foot-legal p + p { margin-top: 14px; }
.eho { display: flex; gap: 14px; align-items: flex-start; }
.eho svg { width: 30px; height: 30px; flex: none; color: var(--ink); }
.eho b { color: var(--ink); font-weight: 700; }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.2fr .8fr 1.2fr; gap: 72px; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 64px 16px 24px; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 56px); object-fit: contain; }
.lightbox figcaption { font-family: var(--serif); font-size: 16px; letter-spacing: .03em; color: #e5e5e5; text-align: center; max-width: 640px; }
.lightbox figcaption .label { color: var(--gray); margin-right: 8px; font-family: var(--font); }
.lightbox .lb-count { font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--gray); margin-left: 10px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .3s, color .3s; }
.lb-btn:hover { background: #fff; color: #000; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lightbox figure { padding-bottom: 76px; } }

/* ---------- reveal on scroll (only when JS is on and motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Walk the Town: Google Street View and geographic place labels. */
.town-section { background: #fff; }
.town-shell { background: #fff; color: #111; }
.town-toolbar { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.town-toolbar > * { pointer-events: auto; }
.town-shell:not(.is-live) .town-toolbar { display: none; }
.town-toolbar > span { font-weight: 700; font-size: 13px; }
.town-toolbar > div { display: flex; gap: 18px; }
.town-toolbar > div:not(.town-picker) { flex-shrink: 0; }
.town-toolbar button { min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid #ccc; cursor: pointer; color: #222; font-size: 12px; }
.town-scene { position: absolute; inset: 0; overflow: hidden; background: #eee; }
.town-scene .town-street { position: absolute; inset: 0; width: 100%; height: 100%; }
.town-street > iframe { width: 100%; height: 100%; border: 0; }
.town-section .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.town-picker { min-width: 0; flex: 1; max-width: 235px; }
.town-picker select { appearance: auto; font: 600 13px var(--font); color: #111; width: 235px; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; background: #fff; cursor: pointer; }
.town-cover { z-index: 4; }
.town-cover[hidden], .town-picker[hidden] { display: none; }
.town-cover button:disabled { opacity: .6; }
.town-building-label { position: absolute; transform: translate(-50%,-50%); padding: 8px 13px; min-width: 146px; background: #fff; color: #111; border: 1px solid #111; border-radius: 2px; box-shadow: 0 1px 3px #0002; font-family: Arial,sans-serif; cursor: pointer; line-height: 1.4; white-space: nowrap; }
.town-building-label strong { display: block; font-size: 13px; font-weight: 600; }
.town-building-label span { display: block; font-size: 10px; color: #555; }
.town-building-label:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.town-popup { font-family: var(--font); font-weight: 400; }
.town-popup h3 { font: 600 16px/1.3 var(--font); margin: 0 24px 7px 0; color: #111; }
.town-popup p { font-size: 12px; line-height: 1.5; margin: 0 0 7px; color: #555; }
.town-popup p.town-distance { color: #222; }
.town-popup a { display: inline-block; color: #111; font-size: 12px; min-height: 32px; padding-top: 5px; text-underline-offset: 3px; }
.town-details { position: absolute; z-index: 4; bottom: 32px; left: 16px; width: 304px; max-width: calc(100% - 32px); max-height: calc(100% - 70px); overflow: auto; padding: 18px 16px 6px; background: #fff; border: 1px solid #ccc; box-shadow: 0 2px 12px #0002; }
.town-details[hidden] { display: none; }
.town-details > button { position: absolute; top: 0; right: 0; min-width: 40px; min-height: 40px; background: #fff; border: 0; font-size: 23px; color: #333; cursor: pointer; }
.town-status { position: absolute; z-index: 5; bottom: 30px; left: 18px; right: 70px; width: fit-content; padding: 10px 14px; background: #fff; font-size: 13px; }
.town-status:empty { display: none; }
.town-shell:fullscreen { width: 100%; height: 100%; background: #fff; }
.town-exit { display: none; position: absolute; z-index: 5; bottom: 28px; left: 50%; transform: translateX(-50%); min-height: 40px; padding: 8px 14px; border: 1px solid #111; background: #fff; font-size: 12px; cursor: pointer; }
.town-shell:fullscreen .town-exit { display: block; }
.town-standalone { overflow: hidden; }
.town-standalone #town { position: fixed; inset: 0; }
.town-standalone .town-shell.tour-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; margin: 0; aspect-ratio: auto; }
.town-standalone .tour-bar { display: none; }
@media (max-width: 600px) {
  .town-toolbar { gap: 6px; }
  .town-toolbar > span { font-size: 11px; }
  .town-toolbar > div { gap: 12px; }
  .town-toolbar button { font-size: 11px; }
  .town-picker select { width: 100%; font-size: 12px; padding: 10px 6px; }
  .town-details { left: 12px; right: 12px; width: auto; max-width: none; }
}
