@font-face {
  font-display: swap;
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 400;
  src: url("../partials/fonts/proximanova-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 600;
  src: url("../partials/fonts/proximanova-semibold.woff2") format("woff2");
}

:root {
  --font-proxima: "Proxima Nova", Arial, sans-serif;
  --color-primary-50: #ff9b21;
  --color-secondary-10: #e3f3fd;
  --color-secondary-70: #00a8c9;
  --color-secondary-90: #003d1f;
  --color-secondary-70-darken-1: #00592b;
  --color-neutral-10: #fafafa;
  --color-neutral-20: #e6e6e6;
  --color-neutral-30: #ccc;
  --color-neutral-40: #999;
  --color-neutral-50: #666;
  --color-neutral-60: #4d4d4d;
  --color-neutral-80: #333;
  --color-lime-40: #acc700;
  --color-white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--color-neutral-80);
  font-family: var(--font-proxima);
  line-height: 1.5;
  background: var(--color-white);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== LAYOUT ===== */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.search-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1020px) {
  .search-body { grid-template-columns: 760px 1fr; max-width: 1020px; margin: 0 auto; width: 100%; }
}

/* ===== HEADER ===== */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-primary-50); height: 60px;
  display: flex; align-items: center; padding: 0 16px;
}
.header-inner {
  max-width: 1020px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.header-logo img { height: 36px; display: block; }
.header-logo-fallback { color: white; font-weight: 700; font-size: 1.2rem; display: none; }
.header-nav { display: none; }
@media (min-width: 768px) {
  .header-nav { display: flex; gap: 4px; flex: 1; }
  .header-nav a {
    color: white; padding: 6px 10px; border-radius: 4px; font-size: 0.95rem;
    white-space: nowrap;
  }
  .header-nav a:hover { background: rgba(0,0,0,0.15); }
}
.header-actions { display: flex; gap: 4px; margin-left: auto; }
.header-actions a, .header-actions button {
  color: white; display: flex; flex-direction: column; align-items: center;
  padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; cursor: pointer;
  border: none; background: none; gap: 2px;
}
.header-actions a:hover, .header-actions button:hover { background: rgba(0,0,0,0.15); }
.header-actions svg { width: 24px; height: 24px; }
.mobile-menu-btn { display: flex; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* ===== ZOEKBALK ===== */
.search-bar-wrapper {
  background: white; border-bottom: 1px solid var(--color-neutral-20);
  position: sticky; top: 60px; z-index: 50; padding: 12px 16px;
}
.search-bar-inner { max-width: 1020px; margin: 0 auto; }
.search-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.search-input-wrap {
  flex: 1; display: flex; align-items: center;
  border: 1px solid var(--color-neutral-30); border-radius: 4px;
  background: white; overflow: hidden;
}
.search-input-tags { display: flex; gap: 4px; padding: 4px 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.search-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-secondary-10); border-radius: 3px;
  padding: 4px 8px; font-size: 0.85rem; color: var(--color-secondary-70); white-space: nowrap;
}
.search-tag button { background: none; border: none; cursor: pointer; color: var(--color-secondary-70); padding: 0; line-height: 1; }
.search-tag button svg { width: 16px; height: 16px; }
.search-btn-kaart {
  display: none; align-items: center; gap: 6px; border: 1px solid var(--color-secondary-70);
  border-radius: 4px; padding: 0 16px; height: 44px; white-space: nowrap;
  color: var(--color-secondary-70); font-size: 0.95rem; background: white; cursor: pointer;
}
.search-btn-kaart:hover { background: var(--color-secondary-10); }
@media (min-width: 768px) { .search-btn-kaart { display: flex; } }
.search-btn-filters {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--color-secondary-70); border-radius: 4px;
  padding: 0 16px; height: 44px; color: var(--color-secondary-70); background: white; cursor: pointer;
  font-size: 0.9rem; white-space: nowrap;
}
.search-btn-filters:hover { background: var(--color-secondary-10); }

/* Filter chips — desktop */
.filter-chips { display: none; gap: 8px; flex-wrap: wrap; }
@media (min-width: 768px) { .filter-chips { display: flex; } }
.filter-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--color-neutral-30); border-radius: 4px;
  padding: 8px 12px; font-size: 0.9rem; cursor: pointer; background: white; white-space: nowrap;
  min-width: 80px;
}
.filter-chip:hover { border-color: var(--color-neutral-40); }
.filter-chip svg { width: 20px; height: 20px; color: var(--color-secondary-70); flex-shrink: 0; }
.filter-chip-active { background: var(--color-secondary-70); color: white; border-color: var(--color-secondary-70); }
.filter-chip-active svg { color: white; }

/* Mobile filter bar */
.mobile-filter-bar { display: flex; gap: 8px; }
@media (min-width: 768px) { .mobile-filter-bar { display: none; } }
.mobile-filter-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; border-radius: 4px; font-size: 0.9rem; cursor: pointer;
}
.mobile-filter-btn-primary {
  background: var(--color-secondary-70); color: white; border: none;
}
.mobile-filter-btn-primary:hover { background: var(--color-secondary-70-darken-1); }
.mobile-filter-btn-secondary {
  border: 1px solid var(--color-secondary-70); color: var(--color-secondary-70); background: white;
}
.mobile-filter-btn-secondary:hover { background: var(--color-secondary-10); }
.mobile-filter-btn svg { width: 20px; height: 20px; }

/* ===== HOOFD CONTENT ===== */
.listings-column { padding: 0 16px 40px; min-width: 0; }
@media (min-width: 1020px) { .listings-column { padding: 0 0 40px; } }

/* Resultaten header */
.results-header { display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 0 12px; border-bottom: 1px solid var(--color-neutral-20); margin-bottom: 0; }
.results-count h1 { font-size: 1.2rem; font-weight: 600; }
.results-count p { font-size: 0.95rem; color: var(--color-neutral-50); }
.sort-select-wrap { display: flex; align-items: center; gap: 6px; color: var(--color-secondary-70); font-size: 0.9rem; cursor: pointer; position: relative; }
.sort-select-wrap svg { width: 24px; height: 24px; }
.sort-select-wrap select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Toppositie strip */
.toppositie-strip { margin: 12px 0; }
.toppositie-label { font-size: 0.75rem; font-weight: 600; background: var(--color-neutral-20); color: var(--color-neutral-50); padding: 2px 8px; border-radius: 3px; display: inline-block; margin-bottom: 8px; }
.toppositie-cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.toppositie-card {
  min-width: 220px; max-width: 240px; flex-shrink: 0;
  border: 1px solid var(--color-neutral-20); border-radius: 8px; overflow: hidden;
}
.toppositie-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.toppositie-card-info { padding: 8px 10px; background: white; }
.toppositie-card-info p { font-size: 0.8rem; color: var(--color-neutral-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== LISTING KAART ===== */
.listing-list { display: flex; flex-direction: column; }
.listing-item {
  border-bottom: 1px solid var(--color-neutral-20);
  padding: 12px 0; display: flex; flex-direction: column; gap: 0;
}
@media (min-width: 640px) {
  .listing-item { flex-direction: row; gap: 16px; align-items: flex-start; }
}
.listing-item-photo { position: relative; flex-shrink: 0; }
.listing-item-photo a { display: block; }
.listing-item-photo img {
  width: 100%; height: 210px; object-fit: cover; border-radius: 6px; display: block;
}
@media (min-width: 640px) {
  .listing-item-photo img { width: 228px; height: 152px; }
}
.listing-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.badge-nieuw { background: var(--color-primary-50); color: white; }
.badge-openhuis { background: var(--color-lime-40); color: white; }
.badge-blikvanger { background: #60C5F8; color: white; }
.listing-media-icons {
  position: absolute; bottom: 6px; right: 6px; display: flex; gap: 2px;
  background: linear-gradient(to left, rgba(0,0,0,0.35), transparent); padding: 4px 6px; border-radius: 3px;
}
.listing-media-icons svg { width: 18px; height: 18px; color: white; }

.listing-item-body { flex: 1; min-width: 0; padding-top: 8px; }
@media (min-width: 640px) { .listing-item-body { padding-top: 0; } }

.listing-item-body-inner { position: relative; }
.save-btn {
  position: absolute; top: 0; right: 0; background: none; border: none;
  cursor: pointer; color: var(--color-secondary-70); padding: 0;
}
.save-btn:hover { color: var(--color-secondary-70-darken-1); }
.save-btn svg { width: 24px; height: 24px; }

.listing-address a {
  display: block; padding-right: 32px; color: var(--color-secondary-70);
}
.listing-address a:hover { color: var(--color-secondary-70-darken-1); }
.listing-street { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-city { color: var(--color-neutral-80); font-size: 0.9rem; }

.listing-price { font-weight: 600; font-size: 1rem; margin: 6px 0 4px; }
.listing-specs { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 4px 0; }
.listing-specs li { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--color-neutral-60); }
.listing-specs li svg { width: 20px; height: 20px; color: var(--color-neutral-50); flex-shrink: 0; }

.listing-agent { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.listing-agent a { font-size: 0.85rem; color: var(--color-secondary-70); }
.listing-agent a:hover { color: var(--color-secondary-90); }

/* Blikvanger (grote kaart) */
.listing-blikvanger {
  border-bottom: 1px solid var(--color-neutral-20); padding: 12px 0;
}
.blikvanger-header { background: var(--color-secondary-10); padding: 8px 12px; font-size: 0.9rem; color: var(--color-neutral-60); border-radius: 4px 4px 0 0; margin-bottom: 0; }
.blikvanger-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; border-radius: 0 0 4px 4px; overflow: hidden; }
.blikvanger-photo-main img { width: 100%; height: 210px; object-fit: cover; display: block; }
.blikvanger-photo-side { display: flex; flex-direction: column; gap: 2px; }
.blikvanger-photo-side img { width: 100%; height: 104px; object-fit: cover; display: block; }
.blikvanger-body { display: flex; gap: 12px; padding: 10px 0 0; }
.blikvanger-agent-logo { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; display: none; }
@media (min-width: 768px) { .blikvanger-agent-logo { display: block; } }
.blikvanger-content { flex: 1; min-width: 0; position: relative; }
.blikvanger-content .save-btn { top: 0; right: 0; }

/* Advertentie blok */
.advertentie-blok {
  background: var(--color-neutral-10); border-radius: 8px; display: flex;
  align-items: center; justify-content: center; min-height: 90px;
  color: var(--color-neutral-40); font-size: 0.85rem; margin: 12px 0;
}

/* Related links */
.related-links { padding: 24px 0; }
.related-links h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.related-links p { font-size: 0.9rem; color: var(--color-neutral-60); margin-bottom: 16px; }
.related-links-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .related-links-grid { grid-template-columns: 1fr 1fr; } }
.related-links-grid h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.related-links-grid li { margin-bottom: 6px; }
.related-links-grid a { color: var(--color-secondary-70); font-size: 0.9rem; }
.related-links-grid a:hover { color: var(--color-secondary-90); }

/* Sidebar */
.sidebar-column { display: none; }
@media (min-width: 1020px) { .sidebar-column { display: block; padding: 16px 0 0 20px; } }
.sidebar-sticky { position: sticky; top: 140px; }
.sidebar-ad { background: var(--color-neutral-10); border-radius: 8px; min-height: 280px; display: flex; align-items: center; justify-content: center; color: var(--color-neutral-40); font-size: 0.85rem; }

/* FOOTER */
footer.site-footer { background: #F2F2F2; border-top: 1px solid var(--color-neutral-20); border-bottom: 4px solid var(--color-primary-50); }
.footer-inner { max-width: 1020px; margin: 0 auto; padding: 32px 16px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1020px) { .footer-inner { display: flex; flex-direction: row; gap: 32px; } }
.footer-col h2 { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col li a { display: block; padding: 5px 0; color: var(--color-secondary-70); font-size: 0.85rem; }
.footer-col li a:hover { color: var(--color-secondary-90); }
.footer-bottom { border-top: 1px solid var(--color-neutral-20); padding: 16px; }
.footer-bottom-inner { max-width: 1020px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1020px) { .footer-bottom-inner { flex-direction: row; align-items: center; } }
.social-row { display: flex; gap: 6px; }
.social-row a { color: var(--color-secondary-70); }
.social-row svg { width: 28px; height: 28px; padding: 2px; }
.copyright-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.85rem; flex: 1; }
.copyright-row a, .copyright-row button { color: var(--color-secondary-70); font-size: 0.85rem; background: none; border: none; cursor: pointer; }
.copyright-row span { color: var(--color-neutral-40); }

/* HOME PAGE */
.home-page {
  background: #fff;
}

.home-shell {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-hero {
  padding: 18px 0 8px;
}

.home-hero-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.home-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-section {
  padding: 40px 0;
}

.home-section-alt {
  background: #fafafa;
}

.home-intro {
  max-width: 760px;
}

.home-kicker {
  margin: 0 0 10px;
  color: var(--color-secondary-70);
  font-size: 0.95rem;
  font-weight: 600;
}

.home-title {
  margin: 0 0 16px;
  color: var(--color-neutral-80);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 600;
}

.home-subtitle {
  margin: 0 0 14px;
  color: var(--color-neutral-80);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
}

.home-text {
  margin: 0;
  color: var(--color-neutral-60);
  font-size: 1rem;
  line-height: 1.7;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-card {
  background: #fff;
  border: 1px solid var(--color-neutral-20);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.home-card h2 {
  margin: 0 0 10px;
  color: var(--color-neutral-80);
  font-size: 1.2rem;
  font-weight: 600;
}

.home-card p {
  margin: 0 0 18px;
  color: var(--color-neutral-60);
  line-height: 1.6;
}

.home-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--color-primary-50);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.home-card-link:hover {
  background: var(--color-primary-50-darken-1);
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.home-side-box {
  background: #fff;
  border: 1px solid var(--color-neutral-20);
  border-radius: 14px;
  padding: 24px;
}

.home-side-box h3 {
  margin: 0 0 14px;
  color: var(--color-neutral-80);
  font-size: 1.1rem;
  font-weight: 600;
}

.home-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-links li + li {
  margin-top: 10px;
}

.home-links a {
  color: var(--color-secondary-70);
  text-decoration: none;
}

.home-links a:hover {
  color: var(--color-secondary-90);
}

@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-content-grid {
    grid-template-columns: 1fr;
  }

  .home-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 640px) {
  .home-section {
    padding: 28px 0;
  }

  .home-hero {
    padding: 12px 0 0;
  }

  .home-title {
    font-size: 1.45rem;
  }

  .home-subtitle {
    font-size: 1.25rem;
  }

  .home-card,
  .home-side-box {
    padding: 18px;
  }
}

.home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.home-ad-box {
  display: flex;
}

.home-ad-box-inner {
  width: 100%;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--color-neutral-20);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-ad-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-secondary-70);
  font-size: 0.9rem;
  font-weight: 600;
}

.home-ad-title {
  margin: 0 0 14px;
  color: var(--color-neutral-80);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
}

.home-ad-text {
  margin: 0 0 18px;
  color: var(--color-neutral-60);
  line-height: 1.7;
}

.home-ad-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--color-primary-50);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.home-ad-link:hover {
  background: var(--color-primary-50-darken-1);
}

@media (max-width: 900px) {
  .home-hero-split {
    grid-template-columns: 1fr;
  }
}

