/* Shared finder classes provide the same card, column and phone layout as GE.
   Only the Herne map's native proportions and data-specific states differ. */
.herne-city-card { padding: 0; }
.herne-city-figure { margin: 0; }
.herne-map-stage { height: auto; max-height: calc(100svh - 180px); min-height: 0; aspect-ratio: 500 / 580; }
.herne-map-stage[data-viewport-fit="true"] { box-sizing: border-box; height: min(560px, var(--herne-map-visible-height)); max-height: var(--herne-map-visible-height); min-height: 0; }
.herne-city-figure svg { display: block; width: 100%; height: 100%; touch-action: pan-y; user-select: none; }
#herne-city-base { fill: #6fb39b; fill-opacity: .05; pointer-events: none; }
#herne-city-outline { fill: none; stroke: #1d765e; stroke-width: 3.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
#herne-road-base, #herne-road-labels, #herne-district-edges { pointer-events: none; }
/* Only the map's baked-in place/road labels become quieter, not the directory. */
.herne-map-labels { opacity: .62; filter: saturate(.2); pointer-events: none; }
.herne-district-edge { fill: none; stroke: #20362ee6; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.herne-map-stage[hidden], .herne-map-tooltip[hidden] { display: none; }
.herne-map-selection[hidden], [data-region-open][hidden] { display: none; }
.herne-city-figure figcaption { margin: 0; font-size: .875rem; line-height: 1.5; }
#herne-map-title:focus-visible { outline: 3px solid var(--finder-orange); outline-offset: 6px; border-radius: 3px; }
#herne-map-all { min-height: 56px; padding: 14px 20px; border: 2px solid #cbf79b; border-radius: 12px; color: #101b0a; background: linear-gradient(120deg, #d5fda4, #a3d76c); box-shadow: 0 0 0 4px #abd7791a, 0 8px 24px #0005; font-weight: 800; }
#herne-map-all:not(:disabled):hover { border-color: #eeffd8; box-shadow: 0 0 0 6px #abd77930, 0 10px 28px #0007; }
#herne-map-all:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
#herne-map-all[aria-pressed="true"] { color: #efffe3; background: #215247; border-color: #b7eb8b; }
#herne-map-all[aria-pressed="true"]::before { content: "✓"; margin-right: 10px; }
#herne-map-all:disabled { opacity: .6; cursor: wait; }
/* As on GE: each 6 px stroke is clipped to its own area, leaving 3 px on
   either side of a shared border. Neighbouring colors cannot overwrite it. */
.herne-district-area { fill: var(--herne-accent); fill-opacity: .18; stroke: var(--herne-accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill-opacity .16s ease, stroke-opacity .16s ease; }
.herne-district-area.is-selected { fill-opacity: .3; stroke-width: 8; }
.herne-district-area.is-hovered, .herne-district-area:focus-visible { fill-opacity: .38; stroke-width: 9; outline: none; }
.herne-map-stage[data-zoomed="true"] svg { touch-action: none; cursor: grab; }
.herne-map-stage[data-dragging="true"] svg, .herne-map-stage[data-dragging="true"] .herne-district-area { cursor: grabbing; }
.herne-map-north { position: absolute; bottom: 12px; left: 14px; padding: 2px 6px; border-radius: 4px; background: #fffffff0; color: #275542; font-size: .8125rem; pointer-events: none; }
.herne-road-status { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 8px 12px; background: #ffffffed; color: #213d2d; font-size: .875rem; line-height: 1.4; pointer-events: none; }
.herne-road-status:empty { display: none; }
.herne-map-attribution { margin: 0 0 18px; font-size: .75rem; line-height: 1.6; color: #b8cabb; overflow-wrap: anywhere; }
.herne-map-attribution a { color: #cde2bc; text-underline-offset: 2px; }
#herne-map-attribution { margin: 0 clamp(20px, 3vw, 30px) 24px; }
.herne-map-attribution-compact { margin: 12px 24px 20px; }
.herne-map-selection { margin: 10px clamp(20px, 3vw, 30px) 20px; padding: 16px 18px; border-left: 4px solid var(--herne-accent, #b0d957); background: #1a2a22; border-radius: 0 6px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.herne-map-selection strong { font-size: 1rem; color: #f0f4ed; }
.herne-map-selection span { font-size: .875rem; line-height: 1.6; color: #becebf; }
.herne-map-tooltip { position: fixed; z-index: 45; width: max-content; max-width: min(280px, calc(100vw - 24px)); padding: 9px 13px; border: 1px solid var(--herne-accent); border-left-width: 4px; border-radius: 6px; color: #f0f4ed; background: #0b1813e8; box-shadow: 0 8px 22px #0004; backdrop-filter: blur(3px); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.herne-map-tooltip, .herne-map-tooltip * { pointer-events: none; }
.herne-map-tooltip strong { display: block; margin-top: 3px; font-size: 1rem; }
.herne-map-note { border-top: 1px solid #3a5046; padding-top: 20px; margin: 0 clamp(20px, 3vw, 30px) 22px; font-size: .875rem; line-height: 1.6; }
.herne-map-note strong { color: #b0d957; }
.herne-map-note p { color: #c4d0c1; margin-bottom: 0; }
.herne-page .finder-result { overflow-wrap: anywhere; }
.herne-page .finder-result[data-state="warning"] { border-left-color: #ffb86c; }
.herne-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.herne-directory-heading h2 { margin: 10px 0 0; font: 700 clamp(1.8rem, 3vw, 2.6rem)/1.15 var(--heading); }
.herne-directory-heading > p { color: #b9c5b1; font-size: .875rem; margin: 0; }
.herne-directory-hint { color: var(--muted); max-width: 66ch; margin: 18px 0 26px; }
.herne-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.herne-directory-link { --herne-accent: #b0d957; display: flex; flex-direction: column; min-width: 0; border: 1px solid #40523b; border-top: 4px solid var(--herne-accent); border-radius: 8px; background: #111b10; color: var(--ink); }
.herne-directory-select { display: flex; flex-direction: column; gap: 8px; flex: 1; width: 100%; min-height: 125px; padding: 18px 18px 12px; border: 0; border-radius: 5px; background: transparent; color: inherit; text-align: left; font-family: inherit; cursor: pointer; }
.herne-directory-link small { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #c9d4c3; }
.herne-directory-link small::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--herne-accent); }
.herne-directory-link strong { font-size: 1rem; overflow-wrap: anywhere; }
.herne-directory-select > span { margin-top: auto; padding-top: 4px; font-size: .8125rem; color: #c9d4c3; }
.herne-directory-link:has(.herne-directory-select:hover:not(:disabled)), .herne-directory-link.is-selected { border-color: var(--herne-accent); background: #1b2a20; box-shadow: 0 0 0 1px var(--herne-accent); }
.herne-directory-select:focus-visible { outline: 3px solid var(--herne-accent); outline-offset: 3px; }
.herne-directory-select:disabled { cursor: default; }
.herne-directory-contact { margin: 0 18px 12px; min-height: 36px; display: flex; align-items: center; width: fit-content; font-size: .8125rem; color: #c8daa9; text-underline-offset: 3px; }
.herne-directory-contact:focus-visible { outline: 3px solid var(--herne-accent); outline-offset: 3px; }
.herne-directory-contact { max-width: calc(100% - 36px); overflow-wrap: anywhere; }
.herne-result-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.herne-page .finder-street-assignment { border-left-color: #72c9c1; }
@media (max-width: 1100px) { .herne-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .herne-directory-grid { grid-template-columns: 1fr; } .herne-directory-select { min-height: 105px; } }
@media (prefers-reduced-motion: reduce) { .herne-district-area { transition: none; } }
@media (forced-colors: active) { .herne-district-edge { stroke: CanvasText; } .herne-map-labels { opacity: 1; filter: none; } .herne-district-area { fill: Canvas; stroke: CanvasText; } .herne-district-area.is-hovered, .herne-district-area.is-selected, .herne-district-area:focus-visible { fill: Highlight; fill-opacity: 1; } .herne-map-tooltip { background: Canvas; color: CanvasText; border-color: CanvasText; } }
@media (forced-colors: active) { #herne-map-all { color: ButtonText; background: ButtonFace; border-color: ButtonText; box-shadow: none; } #herne-map-all[aria-pressed="true"] { color: HighlightText; background: Highlight; border-color: Highlight; } }
