:root {
  --brand: #1f6f5b;
  --brand-dark: #174f41;
  --accent: #d99a2b;
  --accent-soft: #fff1dc;
  --text: #1f2933;
  --muted: #667085;
  --line: #d8ddd6;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --soft: #eef5f1;
  --shadow: 0 1px 2px rgba(31, 41, 51, .10), 0 8px 24px rgba(31, 41, 51, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 70px; display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(246,247,245,.96); backdrop-filter: blur(10px); z-index: 5; }
.brand { display: flex; align-items: center; font-size: 24px; font-weight: 750; letter-spacing: -.5px; color: var(--brand-dark); }
.brand:hover { text-decoration: none; }
.brand-mark { color: white; background: var(--brand); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; margin-right: 8px; box-shadow: 0 4px 14px rgba(31,111,91,.22); }
.brand-text { color: var(--brand-dark); }
.top-search { flex: 1; max-width: 760px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 0 6px 0 18px; height: 46px; }
.top-search:focus-within { border-color: var(--brand); box-shadow: var(--shadow); }
.top-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.top-search button, .searchbox button { background: var(--brand); color: white; border: 0; border-radius: 20px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.top-search button:hover, .searchbox button:hover { background: var(--brand-dark); }
.hero { min-height: calc(100vh - 130px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px 100px; }
.hero-logo { font-size: clamp(58px, 12vw, 108px); font-weight: 800; letter-spacing: -5px; color: var(--brand-dark); line-height: 1; }
.hero-logo::after { content: ".nl"; color: var(--accent); font-size: .42em; letter-spacing: -2px; margin-left: 4px; }
.hero-subtitle { margin: 14px 0 28px; color: var(--muted); font-size: 18px; }
.searchbox { width: min(720px, 92vw); min-height: 58px; border: 1px solid var(--line); border-radius: 30px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 20px; box-shadow: var(--shadow); background: var(--surface); }
.searchbox:hover, .searchbox:focus-within { border-color: var(--brand); box-shadow: 0 2px 8px rgba(31,111,91,.18), 0 14px 34px rgba(31, 41, 51, .10); }
.searchbox input { flex: 1; border: 0; outline: 0; font-size: 18px; background: transparent; color: var(--text); }
.magnifier { color: var(--accent); font-size: 28px; transform: rotate(-20deg); }
.results-page { max-width: 980px; margin: 24px auto 80px; padding: 0 20px; }
.results-meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.result-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.result-body { min-width: 0; flex: 1; }
.result-title { font-size: 20px; line-height: 1.3; }
.result-url { margin-top: 3px; color: var(--brand-dark); font-size: 14px; }
.result-snippet { margin-top: 8px; color: #475467; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.result-thumb { width: 112px; height: 84px; flex: 0 0 112px; display: block; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s ease; }
.result-thumb:hover img { transform: scale(1.04); }
.price { color: var(--text); font-weight: 800; }
.status-pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-active { background: #e8f3ee; color: #175644; }
.status-sold { background: #f7e5e2; color: #9f2f22; }
.status-reserved { background: #fff1dc; color: #8a5500; }
.status-option { background: #e7eef4; color: #244b67; }
.pagination { display: flex; gap: 20px; align-items: center; justify-content: center; margin: 32px 0; color: var(--muted); }
.pagination a { border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px; background: var(--surface); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.detail-page { max-width: 1180px; margin: 24px auto 80px; padding: 0 20px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); }
.detail-header { padding: 28px; display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.detail-header-with-photo { align-items: stretch; }
.detail-main { flex: 1; min-width: 0; }
.detail-header h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.8px; }
.detail-photo-wrap { margin: 0; width: min(360px, 34vw); min-width: 260px; border-radius: 20px; overflow: hidden; background: var(--soft); align-self: stretch; }
.detail-photo { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.muted { color: var(--muted); }
.headline-price { font-size: 30px; font-weight: 800; margin: 18px 0 10px; color: var(--brand-dark); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; min-width: 360px; }
.facts div { background: var(--soft); border-radius: 16px; padding: 14px; }
.facts span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.facts strong { font-size: 15px; }
.chart-card { margin-top: 22px; padding: 24px; overflow: hidden; }
.data-warning {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid #e0b76a;
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  background: #fff8ed;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.data-warning h2 { margin: 0 0 8px; font-size: 20px; }
.data-warning p { margin: 0 0 14px; color: #594427; max-width: 920px; line-height: 1.45; }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 12px; }
.section-title h2, .card h2 { margin: 0 0 8px; }
.section-title p { margin: 0; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 16px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.legend-active { background: #cfe9dd; } .legend-reserved { background: #f6dfaf; } .legend-option { background: #dce6f0; } .legend-sold { background: #f3d7d2; }
.price-chart { width: 100%; height: auto; display: block; }
.price-chart .grid { stroke: #e4e7e2; stroke-width: 1; }
.price-chart .axis { stroke: #b8c0b6; stroke-width: 1.5; }
.price-chart .axis-label { fill: var(--muted); font-size: 13px; }
.price-chart .axis-label-small { font-size: 12px; font-weight: 700; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 22px; margin-top: 22px; }
.grid-two .card { padding: 22px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.data-table td { border-bottom: 1px solid #eef1ec; padding: 12px 8px; vertical-align: top; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-item { border-radius: 14px; padding: 12px 14px; }
.timeline-item strong, .timeline-item span, .timeline-item small { display: block; }
.timeline-item span { color: #344054; margin-top: 4px; }
.timeline-item small { color: var(--muted); margin-top: 4px; }
.empty-state { max-width: 760px; margin: 80px auto; padding: 0 20px; text-align: center; }
.empty-chart { padding: 80px 20px; background: var(--soft); color: var(--muted); text-align: center; border-radius: 18px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 18px 24px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; background: var(--surface); }
@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; }
  .brand { width: 100%; }
  .top-search { order: 3; width: 100%; max-width: none; }
  .detail-header { flex-direction: column; }
  .facts { min-width: 0; width: 100%; grid-template-columns: 1fr; }
  .grid-two { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .result-card { gap: 12px; }
  .result-thumb { width: 92px; height: 72px; flex-basis: 92px; border-radius: 10px; }
  .detail-photo-wrap { width: 100%; min-width: 0; }
  .detail-photo { max-height: 320px; }
}
.status-woz { background: #eef1f4; color: #485467; }
.legend-woz { background: #e6ebf0; }
.headline-price small { font-size: .48em; color: var(--muted); font-weight: 700; }
.chart-wrap { position: relative; width: 100%; }
.chart-point { cursor: pointer; outline: none; }
.sale-segment-line {
  fill: none;
  stroke: #1f6f5b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.woz-points .chart-dot {
  fill: #667085;
  stroke: #667085;
}
.chart-point .chart-hit { fill: transparent; stroke: transparent; pointer-events: all; }
.chart-point .chart-dot-shadow { fill: rgba(255,255,255,.96); stroke: rgba(31,41,51,.12); stroke-width: 1; }
.chart-point .chart-dot { stroke-width: 3; }
.chart-point.status-active .chart-dot { fill: #1f6f5b; stroke: #1f6f5b; }
.chart-point.status-sold .chart-dot { fill: #b54736; stroke: #b54736; }
.chart-point.status-reserved .chart-dot { fill: #b7791f; stroke: #b7791f; }
.chart-point.status-option .chart-dot { fill: #3f6b93; stroke: #3f6b93; }
.chart-point.status-woz .chart-dot { fill: #667085; stroke: #667085; }
.chart-point:focus-visible .chart-dot-shadow,
.chart-point:hover .chart-dot-shadow { stroke: rgba(31,41,51,.28); }
.chart-status-band rect { shape-rendering: geometricPrecision; }
.chart-tooltip { position: fixed; z-index: 1000; min-width: 210px; max-width: 280px; padding: 12px 14px; border-radius: 14px; background: rgba(31,41,51,.97); color: #fff; font-size: 13px; line-height: 1.35; box-shadow: 0 14px 34px rgba(31, 41, 51, .26); pointer-events: none; white-space: normal; border: 1px solid rgba(255,255,255,.08); }
.chart-tooltip::after { content: ''; position: absolute; left: 18px; bottom: -7px; width: 14px; height: 14px; background: rgba(31,41,51,.97); transform: rotate(45deg); border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip .tt-line + .tt-line { margin-top: 4px; }
.chart-tooltip .tt-label { color: rgba(255,255,255,.72); font-weight: 600; margin-right: 6px; }
.listing-line { stroke: #1f6f5b; }
.woz-line {
  fill: none;
  stroke: #667085;
  stroke-width: 3;
  stroke-dasharray: 6 6;
  opacity: 0.9;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.chart-reset-btn {
  border: 1px solid #d7ded7;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}

.chart-reset-btn:hover {
  background: #eef7f2;
}

.chart-help {
  color: var(--muted);
}

.zoomable-chart {
  cursor: grab;
  touch-action: none;
}

.zoomable-chart.is-dragging {
  cursor: grabbing;
}
.chart-brush-capture {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.chart-brush-selection {
  fill: rgba(31, 111, 91, 0.16);
  stroke: rgba(31, 111, 91, 0.55);
  stroke-width: 1.5;
  pointer-events: none;
}

.brush-chart.is-brushing {
  cursor: crosshair;
}

.brush-chart {
  touch-action: none;
}

.chart-zoom-layer {
  transform-box: fill-box;
  transform-origin: 0 0;
}

.chart-clip-layer {
  pointer-events: none;
}

.axis-tick {
  stroke: #b8c2bb;
  stroke-width: 1;
}

.chart-range-mid {
  fill: var(--muted);
  font-size: 14px;
}
