/* Homepage v2, /parkeren-in-de-buurt/ and /steden/ (2026-10-02; the legacy pk-home template keeps home.css). Mobile first, on top of prijsbord.css.
   Full-width bands (light blue hero, then white and light grey) around a 1240 px container; running text stays
   at about 70 characters, cards, grids and the map use the full width. System fonts only; no layout shift:
   the map has a fixed aspect ratio and every reserved area has its size before the script runs. */

.hb-main { display: block; }
.hb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; position: relative; }
/* Narrow content keeps the left edge of the 1240 px container (aligned with header and other bands). */
.hb-narrow > * { max-width: 860px; }
.hb-narrow > .hb-nearby-card { max-width: 560px; margin: 0; }
.hb-band { padding: 32px 0; }
.hb-band--blue { background: #e8f0fb; }
.hb-band--white { background: #fff; }
.hb-band--grey { background: var(--pb-soft); }
.hb-band h2 { font-size: 23px; line-height: 1.25; margin: 0 0 16px; }
.hb-intro { margin: 0 0 16px; color: var(--pb-ink); max-width: 70ch; font-size: 17px; }
.hb-page-head h1 { font-size: 30px; line-height: 1.15; margin: 4px 0 10px; }
.hb-page-head .pb-crumbs { margin-top: 0; }

/* Buttons */
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--pb-blue); border-radius: 6px; background: var(--pb-blue); color: #fff; font: 600 17px/1.2 var(--pb-font); text-decoration: none; cursor: pointer; }
.hb-btn:hover { background: var(--pb-blue-dark); border-color: var(--pb-blue-dark); color: #fff; }
.hb-btn--ghost { background: #fff; color: var(--pb-blue); }
.hb-btn--ghost:hover { background: #e8f0fb; color: var(--pb-blue-dark); }
/* prijsbord.css colours links inside main; buttons keep their own colours */
.pk-prijsbord .hb-main a.hb-btn { color: #fff; }
.pk-prijsbord .hb-main a.hb-btn--ghost { color: var(--pb-blue); }
.hb-btn:focus-visible, .hb-search input:focus-visible { outline: 3px solid var(--pb-yellow); outline-offset: 2px; }

/* ---------- 1. Hero: map behind a centred search card ---------- */
.hb-hero { position: relative; overflow: hidden; padding: 24px 0 32px; }
.hb-map { position: absolute; inset: 0; pointer-events: none; }
.hb-map-art { position: absolute; height: 640px; top: -40px; left: 50%; transform: translateX(-50%); opacity: .55; }
.hb-map-svg { display: block; width: 100%; height: 100%; }
.hb-map-svg path { fill: #c9daf3; stroke: #9db8e3; stroke-width: 3; stroke-linejoin: round; }
/* A dot per live city, decoration only (Jurre, 2026-11-02: no name, no count, no link). Centred on its point, the same
   18 px dot and ring as before; no pointer events, so nothing on the map takes a click (a search box may lie over it). */
.hb-dot { position: absolute; width: 18px; height: 18px; transform: translate(-9px, -9px); border-radius: 50%; background: var(--pb-blue); box-shadow: 0 0 0 4px rgba(11, 61, 145, .25); pointer-events: none; }
.hb-hero-inner { z-index: 1; }
.hb-hero-card { background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(11, 30, 70, .14); padding: 20px 16px; max-width: 560px; margin: 0 auto; }
.hb-hero-card h1 { font-size: 23px; line-height: 1.15; margin: 0 0 10px; }
.hb-hero-card .hb-intro { font-size: 17px; }

/* Search */
.hb-search { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 12px; }
.hb-search input { min-height: 48px; width: 100%; padding: 0 14px; border: 2px solid var(--pb-outline); border-radius: 6px; font: 17px var(--pb-font); color: var(--pb-ink); background: #fff; }
.hb-results { grid-column: 1 / -1; list-style: none; margin: 0; padding: 4px 0; border: 1px solid var(--pb-line); border-radius: 6px; background: #fff; max-height: 320px; overflow-y: auto; }
.hb-results li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 44px; color: var(--pb-ink); text-decoration: none; }
.hb-results li a:hover, .hb-results li a:focus-visible, .hb-results li a[aria-selected="true"] { background: #e8f0fb; outline: none; }
.hb-results .hb-r-type { color: var(--pb-muted); font-size: 13px; white-space: nowrap; }
.hb-results .hb-r-empty { padding: 10px 14px; color: var(--pb-muted); }

/* Nearby */
.hb-nearby { margin: 0 0 12px; }
.hb-nearby .hb-btn { width: 100%; }
.hb-nearby-out:empty { display: none; }
.hb-nearby-out { margin-top: 12px; }
.hb-nearby-out ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pb-line); }
.hb-nearby-out li { border-bottom: 1px solid var(--pb-line); }
.hb-nearby-out li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; color: var(--pb-ink); text-decoration: none; }
.hb-nearby-out .hb-n-name { font-weight: 600; color: var(--pb-blue); text-decoration: underline; }
.hb-nearby-out .hb-n-dist { color: var(--pb-muted); font-size: 15px; grid-column: 1; }
.hb-nearby-out .hb-n-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 600; }
.hb-nearby-out .hb-n-note { margin: 8px 0 0; font-size: 13px; color: var(--pb-muted); }
.hb-nearby-out .hb-n-msg { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--pb-soft); }

/* Quick links */

/* ---------- 3 and 5. Cards ---------- */
.hb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.hb-card { position: relative; background: #fff; border: 1px solid var(--pb-line); border-radius: 8px; padding: 16px; }
.hb-band--white .hb-card { background: var(--pb-soft); border-color: transparent; }
.hb-card h3 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.hb-card h3 a { color: var(--pb-blue); }
.hb-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.hb-card:hover { box-shadow: 0 2px 10px rgba(11, 30, 70, .12); }
.hb-card:focus-within { outline: 3px solid var(--pb-yellow); outline-offset: 2px; }
.hb-card-meta { margin: 0; color: var(--pb-muted); font-size: 15px; }
.hb-card-city { margin: 0 0 4px; color: var(--pb-muted); font-size: 15px; font-weight: 600; }
.hb-national { margin-top: -4px; font-weight: 600; }
.hb-card-more { margin: 10px 0 0; font-weight: 600; color: var(--pb-blue); }
.hb-card .pb-placeholder-label { position: relative; z-index: 1; }
/* The one facts style (city cards and type blocks, pk_home_facts_html): figure in bold, yellow marker. */
.hb-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; line-height: 1.4; color: var(--pb-ink); }
.hb-facts li { position: relative; padding-left: 18px; }
.hb-facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--pb-yellow); }
.hb-facts strong { font-size: 19px; font-weight: 600; }

/* Featured city card: the first city, full width, with its own button and type links (no whole-card link). */
.hb-city-card--featured { grid-column: 1 / -1; border-top: 4px solid var(--pb-blue); display: grid; gap: 16px; }
.hb-band--white .hb-city-card--featured { border-top-color: var(--pb-blue); }
.hb-city-card--featured h3 { font-size: 23px; color: var(--pb-ink); margin-bottom: 12px; }
.hb-feat-actions .hb-btn { width: 100%; }
.hb-feat-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; }
.hb-feat-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--pb-blue); }

/* ---------- 4. Type blocks: heading, facts, text (facts first on phones) ---------- */
.hb-type-grid { display: grid; gap: 16px; }
.hb-band .hb-type-title { margin: 0; }
.hb-type-text p { font-size: 17px; line-height: 1.6; }
.hb-type-text > :first-child { margin-top: 0; }
.hb-type-facts { align-self: start; background: #fff; border-radius: 8px; padding: 18px; border: 1px solid var(--pb-line); }
.hb-band--white .hb-type-facts { background: var(--pb-soft); border-color: transparent; }
.hb-type-facts .hb-facts + .hb-btn, .hb-type-facts .hb-facts + .pb-placeholder-label { margin-top: 16px; }

/* ---------- 6. How it works, 7. FAQ ---------- */
.hb-how { display: grid; gap: 16px; }
.hb-how h3 { font-size: 19px; margin: 0 0 6px; }
.hb-how p { margin: 0; max-width: 70ch; }
.hb-more { margin: 16px 0 0; }
.hb-faq .pb-faq { margin: 0; max-width: 860px; }

@media (max-width: 759px) {
	/* The map stays behind the card, cropped. */
	.hb-map-art { height: 520px; top: -10px; left: 58%; }
}

@media (min-width: 760px) {
	.hb-band { padding: 48px 0; }
	.hb-band h2 { font-size: 30px; }
	.hb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.hb-how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.hb-hero { padding: 56px 0 64px; }
	.hb-hero-card { padding: 28px; }
	.hb-hero-card h1 { font-size: 30px; }
	.hb-nearby .hb-btn { width: auto; }
	.hb-map-art { height: 760px; top: -60px; opacity: .8; }
	.hb-page-head h1 { font-size: 38px; }
}

@media (min-width: 1024px) {
	.hb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hb-city-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
	.hb-type-grid { grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); grid-template-areas: "title facts" "text facts"; gap: 16px 48px; align-items: start; }
	.hb-type-title { grid-area: title; }
	.hb-type-text { grid-area: text; }
	.hb-type-facts { grid-area: facts; }
	.hb-city-card--featured { grid-template-columns: minmax(0, 1fr) minmax(300px, auto); align-items: center; gap: 24px 48px; padding: 24px; }
	.hb-city-card--featured .hb-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; }
	.hb-feat-actions .hb-btn { width: auto; }
	/* The card sits centred; the map is large and shifted right so the city dots stay visible beside the card. */
	.hb-hero { min-height: 560px; }
	.hb-map-art { height: 820px; top: -80px; left: calc(50% - 18px); transform: none; opacity: 1; }
	.hb-hero-card { margin: 0 auto; }
}

/* ---------- Hero with the static OpenStreetMap image (2026-10-03) ----------
   Image from our own server (hero-nl-*.avif/webp, Web Mercator, built by tools/map/build_hero_map.js in the data repo).
   The image is toned down when it is built (calmer colours) and the map area takes its sea colour (--sea), so wide
   screens never show an edge. Phones and tablets: a band of the map above the card, centred on the first city (--fx,
   --fy: its position on the image), the card overlapping the band. Desktop: the hero is as tall as the image, the image
   right-aligned (the whole country visible on the right), the card on the left. */
.hb-map--osm { background: var(--sea); }
.hb-map .hb-map-art--osm { opacity: 1; }
.hb-map-img { display: block; width: 100%; height: 100%; }
@media (max-width: 1023px) {
	.hb-hero:has(.hb-map--osm) { padding-top: 0; }
	.hb-map.hb-map--osm { position: relative; inset: auto; height: 190px; overflow: hidden; }
	.hb-map .hb-map-art--osm { top: 50%; left: 50%; height: 340px; transform: translate(calc(var(--fx) * -100%), calc(var(--fy) * -100%)); }
	.hb-map--osm + .hb-hero-inner { margin-top: -28px; }
	.hb-map--osm .hb-map-credit { top: auto; bottom: 0; left: 0; right: auto; }   /* bottom left: clear of the city labels (Groningen sits top right; 2026-10-11) */
}
@media (min-width: 760px) and (max-width: 1023px) {
	.hb-map.hb-map--osm { height: 240px; }
	.hb-map .hb-map-art--osm { height: 440px; }
}
.hb-map-credit { position: absolute; right: 0; bottom: 0; z-index: 2; pointer-events: auto; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; background: rgba(255, 255, 255, .8); color: #333; font-size: 13px; line-height: 1.4; text-decoration: none; }   /* 24 px touch target (Lighthouse target-size, 2026-10-11) */
.hb-map-credit:hover, .hb-map-credit:focus-visible { text-decoration: underline; }

@media (min-width: 1024px) {
	.hb-hero:has(.hb-map--osm) { min-height: clamp(560px, 45.4vw, 900px); display: flex; align-items: center; padding: 40px 0; }
	.hb-hero:has(.hb-map--osm) .hb-hero-inner { width: 100%; }
	.hb-hero:has(.hb-map--osm) .hb-hero-card { margin: 0; }
	.hb-map .hb-map-art--osm { top: 0; height: 100%; left: auto; right: 0; transform: none; -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 6%, rgba(0, 0, 0, .35) 26%, #000 46%); mask-image: linear-gradient(to right, transparent 0, transparent 6%, rgba(0, 0, 0, .35) 26%, #000 46%); }
}
.hb-city-links { margin: 12px 0 0; font-size: 15px; }
.hb-city-links a { display: inline-flex; min-height: 44px; align-items: center; }
/* Nearby and address results: the price in two lines (2026-10-03), as on the hub pages. */
.hb-nearby-out .hb-n-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 400; }
.hb-nearby-out .hb-n-main { font-weight: 600; white-space: nowrap; }
.hb-nearby-out .hb-n-second { font-size: 13px; line-height: 1.3; color: var(--pb-muted); white-space: nowrap; }
.hb-nearby-out .hb-n-head { margin: 0 0 6px; font-weight: 600; }
.hb-results .hb-r-address .hb-r-name::before { content: "\2302\00a0"; color: var(--pb-muted); }
/* /fotoverantwoording/ (2026-10-03) */
.pb-credits { list-style: none; margin: 0 0 24px; padding: 0; }
.pb-credit { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--pb-line); }
.pb-credit-thumb { display: block; width: 160px; height: 107px; object-fit: cover; border-radius: 6px; }
.pb-credit-title { margin: 0 0 6px; font-weight: 600; }
.pb-credit-facts { display: grid; gap: 2px; margin: 0; font-size: 15px; }
.pb-credit-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.pb-credit-facts dt { color: var(--pb-muted); }
.pb-credit-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 760px) { .pb-credit { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; } }

/* "Parkeren in de buurt" as a button (2026-10-04): it waits hidden until home-v2.js knows the browser can give a
   location. It keeps its space while hidden, so showing it moves nothing (homepage CLS was 0.028). */
.hb-nearby button[data-hb-nearby-btn][hidden] { display: inline-flex !important; visibility: hidden; }   /* beats .pk-kind-home [hidden] in home.css */

/* Mobile polish round (owner, 2026-10-05): type blocks on phones show the first paragraph and "Lees meer"; the rest stays
   in the HTML. Desktop and no-JS show everything. */
.hb-type-more h3 { margin: 20px 0 8px; font-size: 19px; line-height: 1.3; }
.hb-more-btn { display: none; }
@media (max-width: 759.98px) {
	.pk-js .hb-type-more:not(.is-open) { display: none; }
	.pk-js .hb-more-btn:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 4px 0 0; border: 1px solid var(--pb-line, #d5dae2); border-radius: 999px; background: #fff; color: var(--pb-blue, #0b3d91); font: inherit; font-weight: 600; cursor: pointer; }
	.hb-more-btn:focus-visible { outline: 3px solid var(--pb-yellow, #ffd400); outline-offset: 2px; }
}
.hb-notes { padding-bottom: 24px; }

/* One city card for every city (homepage, /steden/, national pages; owner 2026-10-09): name, facts, button, type links */
.hb-city-card { border-top: 4px solid var(--pb-blue); display: flex; flex-direction: column; gap: 12px; }
.hb-band--white .hb-city-card { border-top-color: var(--pb-blue); }
.hb-city-card h3 { font-size: 23px; color: var(--pb-ink); margin: 0; }
.hb-city-card .hb-btn { align-self: stretch; text-align: center; margin-top: 4px; }
.hb-city-card .hb-feat-links { margin-top: 0; }
@media (min-width: 1024px) {
	.hb-city-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
	.hb-city-card .hb-btn { align-self: flex-start; }
}

/* One row of 3 and "Meer steden" / "Meer bestemmingen" (Jurre, 2026-10-11): a native <details>, no JS */
.hb-more { margin-top: 12px; }
.hb-more > .hb-cards { margin-top: 12px; }
.hb-more-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--pb-blue); border-radius: 8px; color: var(--pb-blue); font-weight: 600; cursor: pointer; list-style: none; }
.hb-more-toggle::-webkit-details-marker { display: none; }
.hb-more-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.hb-more[open] > .hb-more-toggle::after { transform: rotate(-135deg) translateY(-2px); }
.hb-more-toggle:focus-visible { outline: 3px solid var(--pb-blue); outline-offset: 2px; }
.hb-more-opened, .hb-more[open] .hb-more-closed { display: none; }
.hb-more[open] .hb-more-opened { display: inline; }
@media (min-width: 1024px) {
	.hb-cards--three, .hb-cards--three.hb-city-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

