/* ==========================================================================
   Fresh Makelaars – City & neighborhood pages (design 1b, "split editorial")
   --------------------------------------------------------------------------
   One stylesheet for both themes. It lives in css/ root rather than per theme
   because get_css_url() falls back here, and the layout is identical in both —
   only the palette differs, which the tokens below absorb: theme 2 supplies
   --fm2-* variables, theme 1 has none and takes the fallbacks.

   Layout values come from the 1b design; colours deliberately do not — those
   stay on the existing house style so the pages do not read as a second brand.
   ========================================================================== */

#fresh-makelaars .cn-page {
  --cn-accent:   var(--fm2-blue, #0073aa);
  --cn-ink:      var(--fm2-text, #14181b);
  --cn-muted:    var(--fm2-text-muted, #6c7278);
  --cn-line:     var(--fm2-border, #e4e0d9);
  --cn-line-soft: var(--fm2-border, #e6e2db);
  --cn-radius:   var(--fm2-radius, 6px);
  color: var(--cn-ink);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
#fresh-makelaars .cn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--cn-muted);
  list-style: none;
}

#fresh-makelaars .cn-breadcrumb a { color: inherit; text-decoration: none; }
#fresh-makelaars .cn-breadcrumb a:hover { text-decoration: underline; }

#fresh-makelaars .cn-breadcrumb [aria-current="page"] {
  color: var(--cn-ink);
  font-weight: 700;
}

/* ── Split hero: text left, portrait right ──────────────── */
#fresh-makelaars .cn-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0 52px;
}

#fresh-makelaars .cn-hero-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#fresh-makelaars .cn-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

#fresh-makelaars .cn-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
}

#fresh-makelaars .cn-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cn-muted);
  text-wrap: pretty;
}

#fresh-makelaars .cn-hero-media {
  position: relative;
  height: 520px;
  border-radius: var(--cn-radius);
  overflow: hidden;
  background: var(--cn-line);
}

#fresh-makelaars .cn-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Stats bar ──────────────────────────────────────────── */
#fresh-makelaars .cn-stats {
  display: flex;
  margin: 0;
  border-top: 1px solid var(--cn-line);
  border-bottom: 1px solid var(--cn-line);
}

#fresh-makelaars .cn-stat {
  flex: 1;
  padding: 18px 24px;
  border-right: 1px solid var(--cn-line-soft);
}

#fresh-makelaars .cn-stat:first-child { padding-left: 0; }
#fresh-makelaars .cn-stat:last-child  { padding-right: 0; border-right: 0; }

#fresh-makelaars .cn-stat-label {
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--cn-muted);
}

#fresh-makelaars .cn-stat-value {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

/* ── Hero CTA ───────────────────────────────────────────── */
#fresh-makelaars .cn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

#fresh-makelaars .cn-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--cn-accent);
  color: #fff;
  border: 1px solid var(--cn-accent);
}

#fresh-makelaars .cn-btn:hover { filter: brightness(.92); color: #fff; }

/* ── Section shell ──────────────────────────────────────── */
#fresh-makelaars .cn-section {
  padding: 52px 0 64px;
  border-top: 1px solid var(--cn-line);
}

#fresh-makelaars .cn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

#fresh-makelaars .cn-section-title {
  margin: 0;
  font-size: 32px;
  letter-spacing: -.025em;
  font-weight: 700;
}

#fresh-makelaars .cn-section-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--cn-accent);
  text-decoration: none;
  white-space: nowrap;
}

#fresh-makelaars .cn-section-link:hover { text-decoration: underline; }

/* ── Neighborhood row cards (the 1b "brede rij-kaarten") ── */
#fresh-makelaars .cn-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#fresh-makelaars .cn-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--cn-line);
  border-radius: var(--cn-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, background .2s ease;
}

#fresh-makelaars .cn-row:hover {
  border-color: var(--cn-accent);
  background: #fbfaf8;
}

#fresh-makelaars .cn-row-media {
  flex: 0 0 auto;
  width: 180px;
  height: 130px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cn-line);
}

#fresh-makelaars .cn-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#fresh-makelaars .cn-row-body { flex: 1 1 auto; }

#fresh-makelaars .cn-row-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

#fresh-makelaars .cn-row-meta {
  margin: 0;
  font-size: 15px;
  color: var(--cn-muted);
}

#fresh-makelaars .cn-row-arrow {
  flex: 0 0 auto;
  padding-right: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cn-accent);
}

/* ── Prose with read-more ───────────────────────────────── */
#fresh-makelaars .cn-prose-section { padding: 56px 0 64px; }

#fresh-makelaars .cn-prose-inner { max-width: 820px; }

#fresh-makelaars .cn-prose-title {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.02em;
  font-weight: 700;
}

#fresh-makelaars .cn-prose {
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cn-muted);
  overflow: hidden;
}

/* Collapsed by default so the fade is correct before JS runs; the toggle
   button is hidden until JS decides the text is actually long enough. */
#fresh-makelaars .cn-prose.is-clamped { max-height: 220px; }

#fresh-makelaars .cn-prose.is-clamped::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

#fresh-makelaars .cn-prose p { margin: 0 0 1em; }
#fresh-makelaars .cn-prose > :last-child { margin-bottom: 0; }

#fresh-makelaars .cn-prose-toggle {
  display: none;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--cn-accent);
  cursor: pointer;
}

#fresh-makelaars .cn-prose-toggle.is-needed { display: inline-block; }
#fresh-makelaars .cn-prose-toggle:hover { text-decoration: underline; }

/* ── Listing grid (reuses the theme's own house card) ───── */
#fresh-makelaars .cn-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  #fresh-makelaars .cn-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 0 36px;
  }

  #fresh-makelaars .cn-hero-media { height: 320px; order: -1; }

  #fresh-makelaars .cn-rows { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #fresh-makelaars .cn-section { padding: 36px 0 44px; }
  #fresh-makelaars .cn-section-title { font-size: 24px; }

  #fresh-makelaars .cn-stats { flex-wrap: wrap; }
  #fresh-makelaars .cn-stat {
    flex: 1 0 50%;
    padding: 14px 16px;
    border-right: 0;
  }
  #fresh-makelaars .cn-stat:first-child { padding-left: 0; }

  #fresh-makelaars .cn-row { flex-wrap: wrap; }
  #fresh-makelaars .cn-row-media { width: 100%; height: 180px; }
  #fresh-makelaars .cn-row-arrow { display: none; }
}
