:root {
  --ink: #16202c; --ink-soft: #4b5768; --ink-faint: #8a94a3;
  --line: #e6e9ee; --line-soft: #f0f2f5;
  --surface: #ffffff; --canvas: #f6f7f9;
  --brand: #1c3f57; --brand-dark: #12293a; --brand-tint: #eaf1f5;
  --radius: 10px; --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 14px rgba(16,24,40,.08);
}
body {
  background: var(--canvas); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.seo-page { max-width: 980px; margin: 0 auto; padding: 24px 24px 80px; }
.breadcrumbs { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs span.sep { margin: 0 6px; }

.seo-page h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.01em; }
.seo-page .lede { color: var(--ink-soft); font-size: 15px; margin: 0 0 28px; max-width: 640px; }

.stat-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; min-width: 150px; box-shadow: var(--shadow-sm);
}
.stat-card .stat-num { font-size: 24px; font-weight: 800; color: var(--ink); }
.stat-card .stat-lbl { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* overflow-x auto, not hidden - a wide table inside (deals-table/era-table
   etc.) scrolls within its own section instead of being clipped (data lost)
   or forcing the whole page wider on mobile (see navbar.css's site-wide
   overflow guard docstring for the real bug this class of fix addresses). */
.section-block { margin-bottom: 36px; overflow-x: auto; }
.section-block h2 { font-size: 18px; margin: 0 0 14px; }

.trend-bars { display: flex; align-items: flex-end; gap: 10px; padding: 0 4px; }
.trend-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
/* The bar's height is a %, which needs a fixed-height ancestor to resolve
   against - trend-bar-col itself is an auto-height flex item, so the % was
   silently resolving to ~0 without this dedicated fixed-height track. */
.trend-bar-track { height: 110px; width: 100%; display: flex; align-items: flex-end; }
.trend-bar { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; }
.trend-bar-label { font-size: 11px; color: var(--ink-faint); }
.trend-bar-value { font-size: 11px; font-weight: 700; color: var(--ink); }

.apkaime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.apkaime-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
.apkaime-tile:hover { box-shadow: var(--shadow-md); border-color: var(--brand); }
.apkaime-tile .at-name { font-weight: 600; font-size: 14px; }
.apkaime-tile .at-count { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.deals-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deals-table th, .deals-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.deals-table th { background: var(--canvas); font-weight: 600; color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.deals-table tr:last-child td { border-bottom: none; }
.deals-table .kind-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--brand-tint); color: var(--brand-dark); }

.trust-label { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

/* Teaser price cell in the public "Darījumu vēsture" table (property_detail.
   html) - this is a PLACEHOLDER STRING rendered server-side, never a real
   price hidden behind CSS (see property_building_view's own docstring on
   why: this page has no auth/tier context to gate a real number against in
   the first place, so blur-only would just leak the figure to view-source).
   The blur filter is purely a visual "there's more here" cue on top of that,
   matching report.css's .blurred look for the same not-yet-unlocked idea. */
.deal-price-blur { filter: blur(3px); user-select: none; color: var(--ink-faint); }

/* Energy certificate class badge (property_detail.html) - same letters/
   colors as report.css's .fact-val.energy-class-* so it looks identical
   to the one a visitor may have already seen on a full report. */
.energy-badge { display: inline-block; padding: 3px 12px; border-radius: 6px; font-weight: 800; color: #fff; }
.energy-badge-a-plus { background: #0a7a4e; }
.energy-badge-a { background: #2f9e5c; }
.energy-badge-b { background: #7cb342; }
.energy-badge-c { background: #c8a838; }
.energy-badge-d { background: #d98a2b; }
.energy-badge-e { background: #d9642b; }
.energy-badge-f { background: #c0392b; }
.energy-badge-g { background: #8a94a3; }
/* Paywalled variant - fixed neutral grey (never a real per-class color,
   which would itself leak roughly how good/bad the class is) plus a
   blur filter on top, purely as a visual "there's more here" cue - see
   property_detail.html's own comment on why the letter is a placeholder
   string, not real data hidden behind CSS. */
.energy-badge-blur { background: #8a94a3; filter: blur(2px); user-select: none; }

.cta-band {
  background: linear-gradient(135deg, #12293a 0%, #1c3f57 100%); color: #fff; border-radius: var(--radius); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 4px; font-size: 17px; }
.cta-band p { margin: 0; opacity: .85; font-size: 13.5px; }
.cta-band .btn-white {
  background: linear-gradient(135deg, #e0ac4a, #9c7020); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; font-size: 13.5px; white-space: nowrap;
}

.empty-note { color: var(--ink-faint); font-size: 13.5px; padding: 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Long real per-unit tables (property_detail.html's "Zināmie dzīvokļi")
   collapse most rows behind this on load - direct finding via mobile
   testing: a 28-unit building meant 6+ screen-heights of scrolling before
   reaching the calculator/CTA below it. Rows use the `hidden` attribute
   (not display:none via a class), which Google has explicitly confirmed
   it treats the same as visible content for ranking - this is a UX fix,
   not a way to hide content from crawlers. */
.units-show-more-btn {
  margin-top: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-dark);
  font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; transition: border-color .15s, background .15s;
}
.units-show-more-btn:hover { border-color: var(--brand); background: var(--brand-tint); }

.invest-calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.invest-calc-inputs { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.invest-calc-inputs label {
  display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: .03em; flex: 1; min-width: 120px;
}
.invest-calc-inputs input, .invest-calc-inputs select {
  padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--canvas); font-family: inherit;
}
.invest-calc-inputs input:focus, .invest-calc-inputs select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.invest-calc-results { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.invest-calc-results .stat-num { font-size: 20px; font-weight: 800; color: var(--ink); }
.invest-calc-results .stat-lbl { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
