/* Layout: city-flag bands frame each page; photo-led sections on a cool limestone ground, a Brown Line strip map ties the two homes together. */
:root {
  --paper: #F1F4F6;
  --surface: #FFFFFF;
  --ink: #14202B;
  --muted: #56636F;
  --line: #D3DAE0;
  --sky: #1E7CB0;
  --sky-soft: #D6EBF6;
  --star: #D2283E;
  --brown: #6E3F25;
  --brown-soft: #EFE3DA;
  --ph-a: #CFE3EF;
  --ph-b: #E9EEF2;
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E151C; --surface: #15202A; --ink: #E7EDF2; --muted: #9AA9B6; --line: #26343F;
    --sky: #62BEEA; --sky-soft: #173447; --star: #F2475D; --brown: #CE9873; --brown-soft: #2E2119;
    --ph-a: #1B3445; --ph-b: #18232D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E151C; --surface: #15202A; --ink: #E7EDF2; --muted: #9AA9B6; --line: #26343F;
  --sky: #62BEEA; --sky-soft: #173447; --star: #F2475D; --brown: #CE9873; --brown-soft: #2E2119;
  --ph-a: #1B3445; --ph-b: #18232D; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance; margin: 0; text-transform: uppercase; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Flag band: two sky stripes, used as the page's top edge */
.flag { height: 10px; background: linear-gradient(var(--sky) 0 35%, var(--surface) 35% 65%, var(--sky) 65%); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img.logo-img { height: 44px; width: auto; }
.brand .wordmark { display: inline-flex; align-items: center; gap: 10px; }
.brand .wordmark svg { width: 26px; height: 26px; fill: var(--star); }
.brand .wordmark span { font: 800 26px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--sky); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--body); padding: 14px 20px; border-radius: var(--radius); border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--star); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--star) 88%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.nav .btn { padding: 11px 16px; }
@media (max-width: 720px) { .nav a.navlink { display: none; } }

/* Photo with designed fallback */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ph-a), var(--ph-b)); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ph.missing img { display: none; }
.ph.missing::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; right: 14px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { padding-block: 56px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(56px, 9vw, 128px); }
.hero h1 em { font-style: normal; color: var(--brown); }
.hero h1 .star { display: inline-block; width: .5em; height: .5em; fill: var(--star); vertical-align: 0.2em; margin-left: .06em; }
.hero-lede { font-size: 18px; color: var(--muted); max-width: 46ch; margin-top: 22px; }
.hero-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 460px; }
.hero-photos .ph { border-radius: var(--radius); }
.hero-photos .ph:first-child { grid-row: span 2; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-photos { height: 340px; } }

/* Search */
.search { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; gap: 8px; box-shadow: 0 14px 40px -24px rgba(10, 30, 50, .35); }
.field { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: var(--radius); min-width: 0; }
.field:hover { background: var(--paper); }
.field label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { font: 500 15px/1.3 var(--body); color: var(--ink); background: transparent; border: 0; padding: 2px 0; width: 100%; min-width: 0; }
.search .btn { height: 100%; min-height: 52px; }
.search-msg { grid-column: 1 / -1; font-size: 14px; color: var(--star); padding: 0 12px 4px; }
@media (max-width: 900px) { .search { grid-template-columns: 1fr 1fr; } .search .field:first-child { grid-column: 1 / -1; } .search .btn { grid-column: 1 / -1; } }

/* Sections */
.section { padding-block: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); max-width: 44ch; }

/* Property cards */
.homes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .homes { grid-template-columns: 1fr; } }
.home { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; }
.home .ph { aspect-ratio: 4 / 3; }
.home:hover .ph img { transform: scale(1.03); }
.home-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stop { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.stop::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--brown); background: var(--surface); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rating svg { width: 15px; height: 15px; fill: var(--star); }
.home h3 { font-size: 40px; }
.home p { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.facts b { font-variant-numeric: tabular-nums; }
.home-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky); }

/* Brown Line strip map */
.line-band { background: var(--surface); border-block: 1px solid var(--line); }
.line-map { overflow-x: auto; padding-block: 8px 4px; }
.line-track { position: relative; display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 780px; padding-top: 34px; }
.line-track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 42px; height: 8px; border-radius: 4px; background: var(--brown); }
.station { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.station .dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 5px solid var(--brown); }
.station.home-stop .dot { width: 34px; height: 34px; margin-top: -6px; border-color: var(--star); background: var(--star); box-shadow: 0 0 0 5px var(--surface); }
.station .name { font: 600 14px/1.2 var(--body); }
.station .sub { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.station.home-stop .name { color: var(--star); font-family: var(--display); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.line-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.line-notes > div { min-width: 0; }
.line-notes .big { font: 800 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.line-notes .big small { font-size: 22px; margin-left: 4px; }
.line-notes p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 760px) { .line-notes { grid-template-columns: 1fr; gap: 20px; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }
.review { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 3px solid var(--ink); }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.review footer { margin-top: auto; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stars { display: flex; gap: 3px; }
.stars svg { width: 14px; height: 14px; fill: var(--star); }

/* Hosts + direct booking */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split h2 { font-size: clamp(40px, 5.5vw, 64px); }
.prose { display: flex; flex-direction: column; gap: 14px; color: var(--muted); max-width: 60ch; font-size: 17px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.perks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.perks li:first-child { border-top: 1px solid var(--line); }
.perks svg { width: 22px; height: 22px; fill: var(--star); margin-top: 3px; }
.perks b { display: block; font-size: 17px; }
.perks span { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 0; }
.site-footer .wrap { padding-block: 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer .wordmark-lg { font: 800 64px/0.9 var(--display); text-transform: uppercase; }
.site-footer .wordmark-lg svg { width: 40px; height: 40px; fill: var(--star); vertical-align: .15em; }
.site-footer h4 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 60%, transparent); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { font-size: 13px; color: color-mix(in srgb, var(--paper) 60%, transparent); margin-top: 14px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--paper); border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent); border-radius: 4px; padding: 6px 8px; cursor: pointer; }

/* Property page */
.crumbs { padding-block: 22px 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.p-head { padding-block: 18px 26px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.p-head h1 { font-size: clamp(48px, 7.5vw, 104px); max-width: 14ch; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; }
.gallery .ph { border-radius: var(--radius); }
.gallery .ph:first-child { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 150px 150px; } .gallery .ph:first-child { grid-column: span 2; grid-row: auto; } }
.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding-block: 48px 80px; align-items: start; }
@media (max-width: 960px) { .p-layout { grid-template-columns: 1fr; gap: 36px; } }
.p-main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.p-main h2 { font-size: 36px; margin-bottom: 16px; }
.amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.amen li { display: flex; gap: 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.amen li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--sky); transform: rotate(45deg) translateY(-2px); }
@media (max-width: 520px) { .amen { grid-template-columns: 1fr; } }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.rule .eyebrow { display: block; margin-bottom: 8px; }
.rule b { font: 800 30px/1 var(--display); text-transform: uppercase; }
.note { background: var(--brown-soft); border-left: 4px solid var(--brown); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; }
.book-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 50px -30px rgba(10, 30, 50, .4); }
.book-card h3 { font-size: 30px; }
.book-card .small { font-size: 13px; color: var(--muted); }
#hostaway-calendar-widget { min-height: 10px; }
.cal-fallback { display: flex; flex-direction: column; gap: 12px; }
.cal-fallback .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-fallback .field { border: 1px solid var(--line); }
