/* Welland.rent — faithful port of the live GHL site's design language (captured
   2026-08-06; tokens extracted from the page's own CSS). Cream bg, Inter, navy
   #0B2239, gold #C9A24A, floating tag chips, pill rows, deep soft shadows.
   Nathan 2026-08-10: "basically the same as what I have now" — do NOT drift this
   toward the Niagara look. */
:root {
  --bg: #f7f2e7;
  --navy: #0b2239;
  --muted: #243447;
  --gold: #c9a24a;
  --link: #188bf6;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(11, 34, 57, 0.14);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(2, 12, 23, 0.12);
  --shadow-big: 0 14px 34px rgba(2, 12, 23, 0.14);
  --tag-managed-bg: rgba(201, 162, 74, 0.92);
  --tag-managed-bd: rgba(201, 162, 74, 1);
  --tag-managed-tx: #1b1400;
  --tag-partner-bg: rgba(37, 99, 235, 0.92);
  --tag-partner-bd: rgba(37, 99, 235, 1);
  --tag-partner-tx: #ffffff;
  --tag-available-bg: rgba(16, 185, 129, 0.92);
  --tag-available-bd: rgba(16, 185, 129, 1);
  --tag-available-tx: #032a1f;
  --wrap: 910px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 950; letter-spacing: -.02em; }
h2 { font-size: 24px; font-weight: 950; }
h3 { font-weight: 900; }
/* The WHOLE site is a centered column on the cream page — the live GHL layout.
   Topbar + masthead + content all live inside .page; nothing runs full-bleed. */
.page { max-width: var(--wrap); margin: 0 auto; }
.wrap { padding: 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

/* Top strip (navy) + masthead — inside the centered column, like the live site */
.topbar { background: var(--navy); color: #fff; font-size: 13.5px; padding: 9px 0; }
.topbar-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .95; font-weight: 850; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; box-shadow: 0 6px 14px rgba(2,12,23,.08); display: flex; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 950; font-size: 1.02rem; }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav a { color: var(--navy); padding: 9px 13px; border-radius: 12px; font-weight: 850; font-size: .95rem; border: 1px solid transparent; }
.site-nav a:hover { background: rgba(11,34,57,0.06); text-decoration: none; }
.site-nav .nav-cta { background: var(--gold); color: #111; box-shadow: 0 8px 18px rgba(201,162,74,.22); }
.site-nav .nav-cta:hover { background: #d4af5c; }

/* Hero — two-column panel layout, exactly like the live site: text panel left,
   logo card + "Want full filters?" card stacked right. This is what fills the
   right side of the fold (Nathan 2026-08-11: "blank space on the right"). */
.hero { padding: 18px 0 6px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: stretch; }
.hero-side { display: grid; gap: 16px; align-content: start; }
.logo-card { display: flex; align-items: center; justify-content: center; padding: 26px 20px; }
.logo-card img { width: 100%; max-width: 340px; height: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px; background: rgba(11,34,57,0.06); color: var(--navy); font-weight: 900; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.hero h1 { margin: 12px 0 10px; }
.hero-sub { font-size: .98rem; color: var(--muted); margin: 0; font-weight: 600; }
.hero-sub strong { color: var(--navy); }
.hero-ctas { margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .hero-cols { grid-template-columns: 1fr; } }

/* Buttons — outline + gold, per the live site */
.btn { display: inline-block; font-weight: 900; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-size: .98rem; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.03); }
.btn-gold { background: var(--gold); color: #111 !important; box-shadow: 0 8px 18px rgba(201,162,74,.22); }
.btn-outline { background: #fff; color: var(--navy) !important; border: 1px solid var(--line); }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-block { display: block; width: 100%; margin-top: 6px; }

/* Note banner ("New: market snapshot…") + platform note */
.note-banner { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.92); padding: 12px 14px; font-size: 13.5px; font-weight: 650; color: var(--muted); box-shadow: var(--shadow); }
.note-banner strong { color: var(--navy); font-weight: 950; }
.platform-note { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.92); padding: 10px 12px; font-size: 12.8px; font-weight: 650; color: var(--muted); }

/* Sections — vertical padding ONLY (longhands): most sections also carry .wrap,
   whose `padding: 0 20px` supplies the side gutters; a `padding` shorthand here
   would clobber them to zero (the 2026-08-11 edge-to-edge bug). */
.section { padding-top: 26px; padding-bottom: 8px; }
.section-title { margin: 0 0 10px; font-size: 26px; color: var(--navy); font-weight: 950; }
.section-sub { color: var(--muted); font-weight: 600; margin: 0 0 14px; max-width: 70ch; }

/* Listing cards — the live site's card anatomy; 2-up in the column like live */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.listing-card { background: rgba(255,255,255,0.94); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.listing-image { position: relative; min-height: 210px; overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; color: #fff; }
.listing-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: contrast(1.03) saturate(1.02); }
.listing-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.60)); }
.listing-image h3 { position: relative; z-index: 2; color: #fff; margin: 0; padding: 14px; font-size: 1.15rem; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.tag-row { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 3; padding: 6px; }
.tag-row::before { content: ""; position: absolute; inset: -6px; background: #fff; border: 1px solid rgba(15,23,42,0.16); border-radius: 14px; box-shadow: 0 12px 26px rgba(2,12,23,0.16); z-index: 0; }
.tag { position: relative; z-index: 1; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 950; border: 1px solid rgba(0,0,0,.18); box-shadow: 0 10px 18px rgba(0,0,0,.18); white-space: nowrap; }
.tag.managed { background: var(--tag-managed-bg); border-color: var(--tag-managed-bd); color: var(--tag-managed-tx); }
.tag.partner { background: var(--tag-partner-bg); border-color: var(--tag-partner-bd); color: var(--tag-partner-tx); }
.tag.available { background: var(--tag-available-bg); border-color: var(--tag-available-bd); color: var(--tag-available-tx); }
.listing-body { padding: 14px; display: grid; gap: 10px; align-content: start; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border-radius: 999px; background: rgba(11,34,57,0.06); color: var(--navy); border: 1px solid rgba(11,34,57,0.10); padding: 6px 10px; font-size: 12px; font-weight: 850; }
.listing-body p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.meta-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.meta-box strong { color: var(--navy); font-weight: 950; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.price { color: var(--navy); font-size: 22px; font-weight: 950; letter-spacing: -.2px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 750; margin-left: 2px; }
.listing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.listing-actions .btn { padding: 10px 14px; font-size: .9rem; }
.empty { color: var(--muted); font-size: 1.05rem; font-weight: 650; }

/* Panels (white cards on cream) — landlord band, contact, about */
.panel { background: rgba(255,255,255,0.92); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-big); padding: 22px 24px; }
.band { margin: 22px 0 0; }
.band-gold { border-left: 6px solid var(--gold); }
.contact-lines { font-size: 1.1rem; font-weight: 850; }
.contact-lines a { color: var(--navy); }
.contact-lines a:hover { color: var(--link); }

/* Detail page */
.crumb { padding: 16px 20px 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
.crumb a { color: var(--muted); }
.detail { padding: 8px 20px 56px; }
.detail-head { padding: 16px 0 8px; }
.detail-sub { color: var(--muted); font-size: 1.02rem; font-weight: 600; margin: 0 0 16px; }
.facts { list-style: none; margin: 0 0 20px; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts li { display: flex; flex-direction: column; }
.facts-v { font-weight: 950; color: var(--navy); font-size: 1.15rem; }
.facts-k { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 750; }
.status { display: inline-flex; align-items: center; gap: 6px; background: var(--tag-available-bg); color: var(--tag-available-tx); border: 1px solid var(--tag-available-bd); font-weight: 950; font-size: .8rem; padding: 5px 11px; border-radius: 999px; }
.mstatus { display: inline-flex; align-items: center; font-weight: 950; font-size: .78rem; padding: 5px 11px; border-radius: 999px; }
.mstatus-managed { background: var(--tag-managed-bg); color: var(--tag-managed-tx); border: 1px solid var(--tag-managed-bd); }
.mstatus-partner { background: var(--tag-partner-bg); color: var(--tag-partner-tx); border: 1px solid var(--tag-partner-bd); }
.detail-head .mstatus { margin: 0 0 12px 8px; }
.detail-head .status { margin-bottom: 12px; }

.gallery-wrap { margin: 8px 0 32px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shot { padding: 0; border: 0; background: var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.04); }
.shot-hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.staging-note { margin: 10px 0 0; font-weight: 650; }

.detail-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.detail-main section { margin-bottom: 26px; }
.detail-main p { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(11,34,57,0.06); color: var(--navy); border: 1px solid rgba(11,34,57,0.10); padding: 7px 12px; border-radius: 999px; font-size: .9rem; font-weight: 850; }
.detail-aside { position: sticky; top: 84px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.aside-card h2 { font-size: 1.1rem; }
.essentials { margin: 0 0 16px; }
.essentials > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.essentials > div:last-child { border-bottom: 0; }
.essentials dt { color: var(--muted); font-size: .88rem; flex: none; font-weight: 650; }
.essentials dd { margin: 0; text-align: right; font-weight: 850; font-size: .88rem; color: var(--navy); }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--card); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 13px 16px; font-weight: 850; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-weight: 600; }

.trust { background: rgba(255,255,255,0.92); border: 1px solid var(--line-strong); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; margin-top: 26px; box-shadow: var(--shadow-big); }
.trust h2 { font-size: 1.1rem; }
.trust ul { margin: 0; padding-left: 20px; color: var(--muted); font-weight: 600; }
.trust li { margin-bottom: 8px; }
.trust p { margin: 0; color: var(--muted); font-weight: 600; }

/* Content pages */
.content { max-width: 860px; padding: 10px 20px 56px; }
.content > section { margin-bottom: 30px; }
.content p { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.ticks, .checklist { list-style: none; padding: 0; margin: 0; }
.ticks li, .checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--muted); font-weight: 650; }
.ticks li::before, .checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 950; }
.steps { margin: 0; padding-left: 22px; color: var(--muted); font-weight: 600; }
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--navy); font-weight: 950; }
.badge-free { display: inline-block; background: var(--gold); color: #1b1400; font-weight: 950; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-right: 8px; box-shadow: 0 8px 18px rgba(201,162,74,.22); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.market-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .93rem; min-width: 540px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.market-table caption { text-align: left; }
.market-table th, .market-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.market-table thead th { background: var(--navy); color: #fff; font-weight: 850; }
.market-table tbody th { color: var(--navy); font-weight: 850; }
.market-table td:last-child { color: var(--muted); font-size: .88rem; }
.sources { padding-left: 20px; margin: 0; color: var(--muted); font-weight: 600; }
.sources li { margin-bottom: 8px; }
.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; }

/* Trend chart (build-emitted inline SVG) */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .85rem; font-weight: 750; color: var(--muted); }
.chart-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Affordability calc */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; max-width: 480px; }
.calc-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.calc-row label { font-size: .88rem; font-weight: 850; color: var(--navy); }
.calc-row input { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--navy); font-weight: 650; }
.calc-row input:focus { outline: 3px solid var(--link); outline-offset: 1px; }
.calc-result { margin: 4px 0 0; font-size: .95rem; font-weight: 650; }
.calc-result strong { color: var(--navy); }

/* Footer — footer-card pattern from the live site */
.site-footer { padding: 22px 0 28px; color: var(--muted); font-size: 13px; font-weight: 650; }
.footer-card { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--navy); font-weight: 850; }
.footer-disclaimer { margin-top: 12px; font-size: 12.5px; max-width: 90ch; }

/* Lightbox (carried) */
.lb { position: fixed; inset: 0; background: rgba(5,14,23,.93); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lb.open { display: flex; }
.lb img { max-width: 96vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

@media (max-width: 860px) {
  .detail-cols { grid-template-columns: 1fr; gap: 8px; }
  .detail-aside { position: static; }
  .shot-hero { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .masthead-inner { justify-content: center; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brand-logo { height: 38px; }
  .facts { gap: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
