@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #16202e;
  --muted: #5d6b7e;
  --line: #dde3ea;
  --accent: #1278b8;
  --accent-dark: #0d5c8f;
  --bg-soft: #f4f7fa;
  --navy: #0f2a43;
  --heading: "Outfit", var(--sans);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(15, 42, 67, .06), 0 6px 18px rgba(15, 42, 67, .07);
  --shadow-lift: 0 2px 4px rgba(15, 42, 67, .08), 0 12px 28px rgba(15, 42, 67, .14);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.45; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 22px; line-height: 1.2; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.muted { color: var(--muted); }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.brand { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -0.3px; }

.search-page { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.filters { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters input { flex: 1 1 260px; max-width: 380px; }
input, select { height: 38px; padding: 0 10px; border: 1px solid #b9c3cf; border-radius: 6px; background: #fff; font: inherit; color: inherit; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.link-button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; padding: 8px; }

.split { flex: 1; min-height: 0; position: relative; overflow: hidden; display: grid; }
.show-map { grid-template-columns: minmax(0, 1fr) minmax(420px, 46%); }
/* Off-screen rather than display:none: the map needs a real size to frame results. */
.show-list .map-pane { position: absolute; left: -200vw; top: 0; width: 100vw; height: 100%; }
.show-list .list-pane { border-left: 0; }
.map-pane { min-height: 0; position: relative; }
.map { height: 100%; width: 100%; z-index: 0; }
.list-pane { overflow-y: auto; padding: 14px 18px 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.list-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.empty { padding: 32px 0; text-align: center; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.card { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 3px 14px rgba(22, 32, 46, .18); }
.card-body { padding: 10px 12px 12px; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.price.big { font-size: 30px; }
.facts { font-size: 14px; }
.facts .type { color: var(--muted); }
.address { font-size: 13.5px; color: var(--muted); }
.attribution { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.price-marker { background: none; border: 0; }
.price-pill { display: inline-block; transform: translateY(50%); padding: 2px 7px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.map.zoomed-out .price-pill { width: 20px; height: 20px; padding: 0; font-size: 0; border: 2px solid #fff; border-radius: 50%; }
.map.zoomed-out .price-marker:hover .price-pill, .map.zoomed-out .price-marker.active .price-pill { width: auto; height: auto; padding: 2px 7px; font-size: 12px; border: 0; border-radius: 12px; }
.price-marker:hover .price-pill, .price-marker.active .price-pill { background: var(--ink); }
.map-popup, .map-popup:hover { display: flex; flex-direction: column; color: var(--ink) !important; font-family: inherit; }
.map-popup strong { font-size: 16px; }
.map-popup small { color: var(--muted); }

.site-footer { margin-top: auto; padding: 18px 0; font-size: 12.5px; color: var(--muted); }
.list-pane .site-footer { margin-top: 18px; border-top: 1px solid var(--line); }
.site-footer p + p { margin-top: 4px; }


.detail-page { width: 100%; max-width: 980px; margin: 0 auto; padding: 14px 18px; overflow-y: auto; }
.back { display: inline-block; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; margin-top: 18px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fact-grid dt { font-size: 12.5px; color: var(--muted); }
.fact-grid dd { margin: 0; font-weight: 600; }
.inquiry { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 16px; align-self: start; background: var(--bg-soft); }
.inquiry h2 { margin-top: 12px; }
.detail-map { height: 320px; border-radius: 10px; overflow: hidden; }
.detail-page .site-footer { margin-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .toolbar { padding: 8px 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; }
  .filters input { flex: 0 0 210px; }
  .filters select { flex: none; }
  .split { display: block; }
  .show-map .map-pane { height: 100%; }
  .show-map .list-pane { display: none; }
  .show-list .list-pane { height: 100%; border-left: 0; padding: 12px 12px 0; }
  .list-head { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; gap: 8px; }
}

.site-nav { display: flex; gap: 16px; font-weight: 600; font-size: 14px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.card-title { font-size: 16px; font-weight: 700; }
.card-body .price { font-size: 16px; }
.price-pill { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.source-note { margin-top: 16px; padding: 10px 12px; border-radius: 6px; background: #fff4d6; color: #5c4400; font-size: 13.5px; }
.source-note a, .prose a { text-decoration: underline; }
.button { display: block; margin-top: 12px; padding: 10px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; text-align: center; }
.button:hover { background: var(--accent-dark); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 8px; }
.home-page { width: 100%; max-width: 900px; margin: 0 auto; padding: 48px 18px 14px; overflow-y: auto; }
.home-page h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 600; letter-spacing: -0.5px; color: #44586e; }
.home-lead { margin-top: 10px; font-size: 17px; color: var(--muted); }
.home-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.home-choice { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 10px; transition: box-shadow .15s; }
.home-choice:hover { box-shadow: 0 3px 14px rgba(22, 32, 46, .18); }
.home-choice h2 { margin: 0 0 6px; color: var(--accent); }
.home-choice p { margin-bottom: 10px; }
.home-page .site-footer { margin-top: 36px; border-top: 1px solid var(--line); }

.flash, .notice { padding: 10px 14px; background: #e6f3fb; color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.notice { margin: 12px 0; border-radius: 6px; }
.form-errors { margin: 12px 0; padding: 10px 14px 10px 30px; border-radius: 6px; background: #fdecea; color: #8a1c13; font-size: 14px; }
.form-page { width: 100%; max-width: 460px; margin: 0 auto; padding: 28px 18px; overflow-y: auto; }
.form-page.wide { max-width: 720px; }
.form-page p { margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.stack input:not([type=checkbox]):not([type=file]), .stack select { width: 100%; }
textarea { width: 100%; padding: 8px 10px; border: 1px solid #b9c3cf; border-radius: 6px; font: inherit; font-weight: 400; color: inherit; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: 14px; font-weight: 700; padding: 0 4px; }
.stack label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.check input { margin-top: 3px; flex: none; }
.small { font-size: 13px; font-weight: 400; }
.muted.small { display: block; }
.text-link { color: var(--accent); text-decoration: underline; }
button.button { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button.narrow { display: inline-block; width: auto; padding: 10px 18px; align-self: flex-start; }
.link-button.danger { color: #a3261b; }
.inline-form { display: inline; }
.trap { position: absolute; left: -9999px; }
.account-listing { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.review-actions { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.flags { margin-top: 6px; padding: 6px 8px; border-radius: 4px; background: #fff4d6; color: #5c4400; font-size: 13px; font-weight: 600; }
.report { margin-top: 14px; font-size: 13.5px; }
.report summary { cursor: pointer; color: var(--muted); }
.contact-phone { margin-top: 10px; text-align: center; font-weight: 700; }
.inquiry .stack { margin-top: 14px; }
.card-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.photo-strip img { height: 280px; max-width: 90%; border-radius: 8px; object-fit: cover; flex: none; }
.photo-row img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
input[type=checkbox] { height: auto; }

.brand { display: block; line-height: 0; }
.brand img { display: block; }
.toolbar { display: flex; align-items: flex-start; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.more-button { height: 38px; padding: 0 12px; border: 1px solid #b9c3cf; border-radius: 6px; background: #fff; font: inherit; color: inherit; white-space: nowrap; cursor: pointer; flex: none; }
.more-button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.more-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; padding: 10px 18px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.more-filters[hidden] { display: none; }
.more-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.more-filters label.check { flex-direction: row; align-items: center; gap: 8px; height: 38px; font-size: 14px; font-weight: 400; }
.view-switch { display: flex; flex: none; height: 38px; border: 1px solid #b9c3cf; border-radius: 6px; overflow: hidden; }
.view-switch button { padding: 0 14px; border: 0; background: #fff; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.view-switch button + button { border-left: 1px solid #b9c3cf; }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .more-filters { padding: 10px 12px 14px; }
}

.card-media { position: relative; }
.illustration-label { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(22, 32, 46, .72); color: #fff; font-size: 11.5px; font-weight: 600; }
.hero-illustration { position: relative; margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
.hero-illustration img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

.browse-heading { margin: 30px 0 10px; }
.city-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; font-size: 14px; }
.city-links a { color: var(--accent); }
.city-links a:hover { text-decoration: underline; }

.floorplans { padding-left: 18px; }

/* ---- Refined look ---- */
body { font-family: var(--sans); font-size: 15px; color: #24384c; -webkit-font-smoothing: antialiased; }
main { overflow-y: auto; }
h1, .detail-page h2, .section h2, .cta h2 { font-family: var(--heading); font-weight: 600; color: var(--navy); letter-spacing: -.3px; }
h1 { font-size: 28px; }
.detail-page h1 { font-size: 34px; line-height: 1.15; }
.detail-page h2 { font-size: 22px; margin-top: 28px; }
.list-head h1 { font-size: 26px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.site-header { padding: 12px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.site-nav { align-items: center; gap: 22px; font-weight: 500; }
.nav-cta { padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff !important; font-weight: 600; white-space: nowrap; transition: background .15s; }
.nav-cta:hover { background: var(--accent-dark); }

input, select, .more-button, textarea { border-color: #cfd8e2; border-radius: 8px; }
input:hover, select:hover, .more-button:hover { border-color: #9fb0c1; }
.toolbar, .filters { background: #fff; }
.view-switch { border-radius: 8px; border-color: #cfd8e2; }
.split, .list-pane { background: var(--bg-soft); }
.list-pane { padding-top: 18px; }
.card { position: relative; border: 0; border-radius: 12px; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card-photo { aspect-ratio: 16 / 10; }
.card-body { padding: 13px 15px 15px; }
.card-title { font-size: 16.5px; font-weight: 650; color: var(--navy); line-height: 1.3; }
.card-body .price { font-size: 15px; font-weight: 650; color: var(--accent-dark); margin-top: 2px; }
.card-body .facts { margin-top: 3px; }
.attribution { line-height: 1.4; }
.card-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 12px; font-weight: 650; box-shadow: 0 1px 3px rgba(15, 42, 67, .2); }
.illustration-label { font-weight: 500; }

.button { border-radius: 8px; transition: background .15s; }
.inquiry { background: #fff; border: 0; border-radius: 12px; box-shadow: var(--shadow); padding: 6px 18px 18px; }
.hero-illustration { border-radius: 12px; }
.source-note { border-radius: 8px; line-height: 1.5; }
.form-page { margin-top: 28px; margin-bottom: 28px; padding: 28px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: visible; }
.form-page h1 { margin-bottom: 4px; }

/* ---- Home page ---- */
.home-page { max-width: none; padding: 0; overflow: visible; background: #fff; }
.home-page h1 { font-family: var(--heading); font-weight: 600; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.1; letter-spacing: -.8px; color: #fff; max-width: 820px; text-shadow: 0 2px 16px rgba(10, 34, 57, .35); }
.hero { background-size: cover; background-position: center 62%; }
.hero-inner { padding-top: 84px; padding-bottom: 72px; }
.hero-lead { margin-top: 14px; color: #eaf3fa; font-size: clamp(16px, 2vw, 19px); max-width: 640px; }
.hero-search { margin-top: 30px; max-width: 760px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(10, 34, 57, .32); }
.hero-tabs { display: inline-flex; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 10px; background: var(--bg-soft); }
.hero-tabs button { padding: 7px 14px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.hero-tabs button[aria-pressed="true"] { background: #fff; color: var(--accent-dark); box-shadow: 0 1px 3px rgba(15, 42, 67, .16); }
.hero-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.hero-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hero-fields label[hidden] { display: none; }
.hero-fields select { width: 100%; height: 44px; font-size: 15px; font-weight: 400; color: var(--ink); }
.hero-fields button.button { width: auto; height: 44px; margin: 0; padding: 0 28px; }
.section { padding-top: 56px; padding-bottom: 8px; }
.section h2 { font-size: 32px; line-height: 1.15; margin: 0 0 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.path-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.path-card { display: block; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.path-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.path-card img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.path-card > div { padding: 18px 22px 22px; }
.path-card h2 { margin: 0 0 6px; font-family: var(--heading); font-weight: 600; font-size: 26px; color: var(--navy); }
.path-count { display: block; margin-top: 10px; color: var(--accent); font-weight: 600; }
.home-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.band { margin-top: 56px; padding-bottom: 52px; background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps h3 { margin: 10px 0 4px; font-size: 17px; color: var(--navy); }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.city-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.city-browse h3 { margin-bottom: 10px; font-size: 16px; color: var(--navy); }
.city-links { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cta { margin-top: 56px; background: var(--navy); color: #dfeaf3; }
.cta h2 { margin: 0 0 8px; font-size: 32px; color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta p { max-width: 680px; }
.button.cta-button { flex: none; margin: 0; padding: 12px 24px; background: #fff; color: var(--navy); }
.button.cta-button:hover { background: #dcecf8; }
.footer-full { background: #0a2239; color: #b8c8d6; font-size: 14px; }
.footer-columns { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.footer-columns p { margin-top: 12px; max-width: 420px; }
.footer-columns h3 { margin-bottom: 10px; font-size: 14px; color: #fff; }
.footer-columns a { display: block; padding: 3px 0; color: #b8c8d6; }
.footer-columns a:hover { color: #fff; }
.footer-note { padding-top: 16px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; }

@media (max-width: 860px) {
  .site-header { padding: 10px 14px; gap: 10px; }
  .site-nav { gap: 12px; font-size: 13px; }
  .nav-cta { display: none; }
  .hero-inner { padding-top: 44px; padding-bottom: 40px; }
  .hero-fields { grid-template-columns: 1fr; }
  .hero-fields button.button { width: 100%; }
  .footer-columns { grid-template-columns: 1fr; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .form-page { margin: 12px; width: auto; padding: 20px; }
  .detail-page h1 { font-size: 28px; }
}

.legal h2 { font-size: 21px; margin-top: 26px; }
.legal p, .legal ul { margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--accent); }
.legal-table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-soft); }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.legal-links a { color: var(--accent); }

.no-refund-box { margin: 14px 0 18px; padding: 14px 18px; border-left: 4px solid #a3261b; border-radius: 8px; background: #fdecea; }
.legal .no-refund-box h2 { margin: 0 0 4px; font-size: 22px; color: #8a1c13; }
.no-refund-box p { margin: 0; }
.pay-confirm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; line-height: 1; }
.wordmark { font-family: var(--heading); font-size: 25px; font-weight: 500; letter-spacing: -.4px; color: #14181d; white-space: nowrap; }
.brand:hover .wordmark { color: var(--accent-dark); }
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; row-gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand { gap: 7px; }
  .wordmark { font-size: 20px; }
}

/* Highlights a listing when its card, or its marker on the map, is hovered. */
.card:hover, .card:focus-visible, .card.is-active { background: #eef7fd; box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift); transform: translateY(-2px); }
.card:hover .card-title, .card:focus-visible .card-title, .card.is-active .card-title { color: var(--accent-dark); }
.price-marker.active .price-pill { background: #f2a93b; color: #14181d; outline: 2px solid #fff; }

.no-maps .view-switch, .no-maps .map-pane { display: none; }
.no-maps .split { display: block; }
.no-maps .list-pane { height: 100%; }
