:root {
  --ink: #071c36;
  --muted: #5f6f83;
  --line: #dce6f1;
  --paper: #f7fafc;
  --white: #ffffff;
  --blue: #0870d8;
  --navy: #09264a;
  --teal: #0f8b8d;
  --gold: #c9a14a;
  --shadow: 0 22px 70px rgba(7, 28, 54, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.detail-open { background: #eef5fb; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
[data-shell] { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 230, 241, .75);
}
.brand img { width: 118px; height: 52px; object-fit: contain; object-position: left center; }
.nav { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-weight: 700; font-size: 14px; }
.nav a:hover { color: var(--blue); }
.header-cta, .load-more, .detail-interest, .card-link {
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(8, 112, 216, .24);
}
.header-cta { padding: 12px 18px; font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, .8fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0 22px;
}
.hero-copy h1 {
  margin: 8px 0 14px;
  max-width: 680px;
  font-size: clamp(34px, 5.3vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}
.eyebrow, .small-label {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.intro { max-width: 650px; color: var(--muted); font-size: 17px; margin: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
}
.primary-action {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(8, 112, 216, .22);
}
.secondary-action {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-row span, .city-pills button, .active-filters span, .city-cloud button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}
.trust-row span { padding: 10px 14px; }
.compact-trust { margin-top: 14px; }
.compact-trust span { display: inline-flex; gap: 5px; align-items: baseline; }
.compact-trust strong { color: var(--blue); }

.search-console {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.console-top, .results-toolbar, .filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.console-top h2, .results-toolbar h2, .section-heading h2 {
  margin: 4px 0 0;
  line-height: 1.05;
  letter-spacing: 0;
}
.console-top strong {
  color: var(--blue);
  font-size: 32px;
  white-space: nowrap;
}
.quick-search {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
label span, .sort-label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
input, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 112, 216, .12); }
.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(8, 112, 216, .2);
}
.city-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.city-pills button, .city-cloud button { padding: 9px 12px; cursor: pointer; }
.city-pills button:hover, .city-cloud button:hover { border-color: var(--blue); color: var(--blue); }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.stats-band article { background: var(--white); padding: 16px 18px; }
.stats-band span { display: block; color: var(--navy); font-size: 22px; font-weight: 900; }
.stats-band p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }

.listing-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 34px 0;
}
.filters {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(7, 28, 54, .08);
}
.filter-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}
.free-note {
  margin-top: 8px;
  padding: 14px;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  border-radius: var(--radius);
}
.free-note p { margin: 6px 0 0; color: #64512b; font-size: 14px; }

.results-panel { min-width: 0; }
.results-toolbar {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.sort-label { min-width: 220px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; min-height: 34px; }
.active-filters span { padding: 7px 10px; font-size: 13px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.property-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(7, 28, 54, .08);
}
.property-card:hover { transform: translateY(-2px); transition: transform .18s ease; }
.card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfeaf4;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image.image-missing::before, .gallery-frame.image-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e8f1f8;
}
.card-image.image-missing::after, .gallery-frame.image-missing::after {
  content: "Huur24.nl";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .93);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.card-body { padding: 14px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.card-meta strong { color: var(--blue); white-space: nowrap; }
.card-body h3 {
  min-height: 48px;
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}
.card-body p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.specs span {
  padding: 6px 8px;
  border-radius: var(--radius);
  background: #eef5fb;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.card-link { display: block; width: 100%; padding: 13px 12px; text-align: center; }
.load-more { display: block; width: min(320px, 100%); margin: 26px auto 0; padding: 14px 18px; }

.city-section, .process-band, .faq, .seo-section { padding: 34px 0; }
.section-heading { max-width: 720px; margin-bottom: 22px; }
.section-heading p { color: var(--muted); margin: 10px 0 0; }
.city-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.city-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.city-seo-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: 0 12px 34px rgba(7, 28, 54, .07);
}
.city-seo-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}
.city-seo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.city-seo-card button {
  align-self: end;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: #eef5fb;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}
.seo-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.seo-copy article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
}
.seo-copy h3 {
  margin: 0 0 8px;
  letter-spacing: 0;
}
.seo-copy p {
  margin: 0;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps article, .faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
}
.steps span { color: var(--gold); font-size: 13px; font-weight: 900; }
.steps h3 { margin: 8px 0; }
.steps p, .faq p { margin: 0; color: var(--muted); }
.faq details { margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 900; }
.faq details p { margin-top: 10px; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}
.footer-brand img { width: 124px; height: 64px; object-fit: contain; object-position: left center; }
.site-footer p {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}
.footer-menu a:hover { color: var(--blue); }

.cookiebar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 18px;
  width: min(1040px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.cookiebar[hidden] { display: none; }
.cookiebar strong { display: block; margin-bottom: 4px; }
.cookiebar p { margin: 0; color: var(--muted); font-size: 14px; }
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.cookie-actions a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}
.cookie-actions button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.legal-page {
  padding: 34px 0 54px;
}
.legal-document {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 18px 42px rgba(7, 28, 54, .08);
}
.legal-document h1 {
  margin: 8px 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}
.legal-document h2 {
  margin: 26px 0 8px;
  font-size: 21px;
  letter-spacing: 0;
}
.legal-document p, .legal-document li { color: var(--muted); }
.legal-document ul { padding-left: 20px; }

.detail-page { padding: 34px 0 64px; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--blue); font-weight: 900; }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 26px;
  align-items: start;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfeaf4;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfeaf4;
}
.gallery-frame:first-child { grid-column: 1 / -1; }
.gallery-frame:first-child img { aspect-ratio: 16 / 9; }
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-panel h1 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: 0; }
.detail-location { margin: 0 0 16px; color: var(--muted); font-weight: 800; }
.price-line { color: var(--blue); font-size: 34px; font-weight: 950; }
.detail-interest { display: block; margin: 20px 0 12px; padding: 15px 18px; text-align: center; }
.redirect-note { margin: 0; color: var(--muted); font-size: 13px; }
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.detail-specs div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.detail-specs span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-specs strong { display: block; margin-top: 2px; }
.description-panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px;
}
.description-panel p { color: var(--muted); }
.empty-state {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .nav { display: none; }
  .hero, .listing-shell, .detail-hero { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band, .steps, .city-seo-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-copy { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  [data-shell] { width: min(100% - 20px, 1180px); }
  .site-header { min-height: 62px; gap: 10px; }
  .brand img { width: 94px; height: 42px; }
  .header-cta { padding: 9px 10px; font-size: 12px; box-shadow: none; }
  .hero { padding-top: 14px; gap: 12px; }
  .hero-copy h1 { font-size: 28px; margin-bottom: 8px; }
  .intro { display: none; }
  .hero-actions { display: none; }
  .secondary-action, .compact-trust { display: none; }
  .primary-action, .secondary-action { min-height: 44px; padding: 0 10px; font-size: 14px; text-align: center; }
  .search-console, .results-toolbar, .filters, .detail-panel, .description-panel { padding: 16px; }
  .search-console { box-shadow: 0 12px 32px rgba(7, 28, 54, .1); }
  .console-top { display: flex; align-items: center; }
  .results-toolbar { display: grid; }
  .console-top h2 { font-size: 22px; }
  .console-top strong { font-size: 24px; }
  .quick-search { gap: 10px; margin-top: 12px; }
  label span, .sort-label span { margin-bottom: 5px; font-size: 12px; }
  input, select { min-height: 46px; }
  .search-submit { min-height: 46px; margin-top: 10px; }
  .city-pills { display: none; }
  .active-filters { min-height: 0; margin: 8px 0; }
  .stats-band { display: none; }
  .listing-shell { padding-top: 20px; gap: 14px; }
  .results-panel { order: 1; }
  .filters { order: 2; }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filters .filter-head, .filters .free-note { grid-column: 1 / -1; }
  .free-note p { display: none; }
  .sort-label { min-width: 0; }
  .results-toolbar h2 { font-size: 22px; }
  .stats-band, .cards, .steps, .detail-specs, .city-seo-grid { grid-template-columns: 1fr; }
  .property-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .card-image { height: 100%; aspect-ratio: auto; min-height: 184px; }
  .badge { left: 8px; top: 8px; font-size: 10px; padding: 5px 7px; }
  .card-body { padding: 12px; }
  .card-meta { display: grid; gap: 2px; font-size: 12px; }
  .card-body h3 { min-height: 0; font-size: 15px; margin: 6px 0; }
  .card-body p { display: none; }
  .specs { gap: 5px; margin: 8px 0; }
  .specs span { font-size: 11px; padding: 5px 6px; }
  .card-link { padding: 10px 8px; font-size: 13px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-frame:first-child img { aspect-ratio: 4 / 3; }
  .site-footer, .cookiebar { grid-template-columns: 1fr; }
  .footer-menu, .cookie-actions { justify-content: flex-start; }
  .cookiebar { bottom: 10px; padding: 14px; }
  .cookiebar p { font-size: 13px; }
}
