/* UK regional directory: approved split view, using the existing brand and icon library. */
.rr-regional-view-page .rr-directory-heading-controls { display: flex; align-items: stretch; gap: 14px; flex: 0 0 auto; max-width: 100%; }
.rr-directory-view-nav { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; width: 132px; flex: 0 0 132px; }
.rr-directory-view-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 9px 12px; border: 1px solid var(--rr-border); border-radius: 4px; background: white; color: var(--rr-ink); font-size: 14px; font-weight: 650; line-height: 1.35; text-decoration: none !important; }
.rr-directory-view-link > i { font-size: 22px; line-height: 1; }
.rr-directory-view-link:hover { color: var(--rr-ink); border-color: var(--rr-charcoal); background: var(--rr-surface); }
.rr-directory-view-link[aria-current] { color: white; border-color: var(--rr-red); background: var(--rr-red); }
.rr-directory-view-link[aria-current]:hover { color: white; background: #b40000; }
.rr-directory-region-disclosure > summary { display: none; }
.rr-regional-view-page .rr-directory-heading-copy .rr-lead { font-size: 17px; line-height: 1.45; }

/* Keep every existing filter and form; collapse padding and helper copy in map mode. */
.rr-regional-view-page.is-map-view .rr-service-filter-form { margin-bottom: 14px; }
.rr-regional-view-page.is-map-view .rr-directory-filter { position: relative; padding: 0 12px; margin-bottom: 0; min-height: 60px; }
.rr-regional-view-page.is-map-view .rr-category-controls { min-height: 60px; margin-right: 205px; padding: 8px 0; }
.rr-regional-view-page.is-map-view .rr-use-fieldset { position: relative; min-height: 44px; margin: 0; }
.rr-regional-view-page.is-map-view .rr-use-fieldset > legend { position: absolute; top: 0; left: 0; float: none; margin: 0; line-height: 44px; font-size: 14px; }
.rr-regional-view-page.is-map-view .rr-use-fieldset > legend > span,
.rr-regional-view-page.is-map-view .rr-category-help,
.rr-regional-view-page.is-map-view .rr-service-preview-icons { display: none; }
.rr-regional-view-page.is-map-view .rr-use-choices { gap: 4px; padding-left: 86px; }
.rr-regional-view-page.is-map-view .rr-use-choice { gap: 7px; min-height: 44px; padding: 8px; border-color: transparent; background: transparent; font-size: 14px; font-weight: 500; }
.rr-regional-view-page.is-map-view .rr-use-choice:has(input:checked) { border-color: var(--rr-red); background: #fff2f2; }
.rr-regional-view-page.is-map-view .rr-service-filter-summary { position: absolute; top: 8px; right: 12px; width: 190px; min-height: 44px; padding: 8px 0 8px 14px; border-left: 1px solid var(--rr-border); gap: 6px 8px; }
.rr-regional-view-page.is-map-view .rr-service-filter-title { font-size: 14px; }
.rr-regional-view-page.is-map-view .rr-service-filter-chevron { margin-left: auto; }
.rr-regional-view-page.is-map-view .rr-service-filter-state { display: none; }
.rr-regional-view-page.is-map-view .rr-service-applied { margin-top: 0; padding: 8px 0; }
.rr-regional-view-page.is-map-view .rr-service-filter-panel { border-top: 1px solid var(--rr-border); padding-top: 16px; }

.rr-map-browser { display: grid; grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); gap: 0; height: clamp(440px, calc(100dvh - 420px), 760px); min-width: 0; }
.rr-map-result-list { min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 6px 2px 0; scroll-padding: 6px; }
.rr-map-result { min-width: 0; padding: 14px; margin: 0 0 5px; border: 1px solid var(--rr-border); border-radius: 3px; background: white; }
.rr-map-result[data-notable="true"] { border-color: #b6953e; background: #fff6d6; }
.rr-map-result.is-active { box-shadow: inset 4px 0 0 var(--rr-charcoal); border-color: var(--rr-charcoal); }
.rr-map-result[data-notable="true"].is-active { box-shadow: inset 4px 0 0 #9f7a10; border-color: #9f7a10; }
.rr-map-result-identity { display: flex; align-items: flex-start; gap: 10px; }
.rr-map-result-copy { flex: 1 1 auto; min-width: 0; }
.rr-map-result h2 { margin: 0 0 3px; font-family: 'Barlow Semi Condensed', 'Segoe UI', sans-serif; font-size: 23px; font-weight: 600; line-height: 1.14; letter-spacing: 0; overflow-wrap: anywhere; }
.rr-map-result h2 > a { color: var(--rr-charcoal); }
.rr-map-result-logo { flex: 0 0 54px; width: 54px; height: 54px; }
.rr-map-result-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rr-map-recognition { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 3px; font-size: 11px; line-height: 1.4; color: #614b0b; }
.rr-map-recognition > i { font-size: 11px; }
.rr-map-result-location { margin: 0; color: var(--rr-muted); font-size: 13px; line-height: 1.4; }
.rr-map-locate { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 44px; margin: -6px -6px 0 0; padding: 0; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--rr-red); font-size: 24px; cursor: pointer; }
.rr-map-result[data-notable="true"] .rr-map-locate { color: #927012; }
.rr-map-locate:hover, .rr-map-locate[aria-pressed="true"] { border-color: currentColor; background: #fff; }
.rr-map-result-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; }
.rr-map-result-rating > p { margin: 0; white-space: nowrap; }
.rr-map-result-rating strong { color: var(--rr-charcoal); font-size: 26px; line-height: 1.1; }
.rr-map-result-rating p > span { font-size: 13px; color: var(--rr-muted); }
.rr-map-result-rating .rr-directory-stars { width: 78px; font-size: 14px; }
.rr-map-result-rating > a { color: var(--rr-ink); font-size: 12px; text-underline-offset: 3px; }
.rr-map-result-meta { margin: 8px 0 0; color: var(--rr-muted); font-size: 12px; line-height: 1.45; }
.rr-map-result-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.rr-map-capabilities { display: flex; flex: 1 1 140px; flex-wrap: wrap; gap: 7px 10px; list-style: none; margin: 0; padding: 0; }
.rr-map-capabilities li { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.25; }
.rr-map-capabilities svg { flex: 0 0 23px; width: 23px; height: 23px; }
.rr-map-profile { flex: 0 0 auto; margin-left: auto; padding: 8px 10px; border: 1px solid var(--rr-red); border-radius: 3px; color: white !important; background: var(--rr-red); font-size: 12px; font-weight: 650; line-height: 1.4; }
.rr-map-profile:hover { background: #b40000; text-decoration: underline; }
.rr-map-no-location { margin: 8px 0 0; font-size: 11px; color: var(--rr-muted); }
.rr-map-agent { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 10px -14px -14px; padding: 7px 14px; border-top: 1px solid var(--rr-border); font-size: 11px; line-height: 1.5; }
.rr-map-panel { position: relative; min-width: 0; height: 100%; overflow: hidden; border: 1px solid var(--rr-border); border-radius: 3px; isolation: isolate; background: #aad3df; }
.rr-map-canvas { width: 100%; height: 100%; font-family: 'Segoe UI', Arial, sans-serif; }
.rr-map-legend { position: absolute; z-index: 800; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 170px); padding: 6px 9px; border: 1px solid #b9c2ca; border-radius: 3px; background: white; box-shadow: 0 1px 3px #11161b18; }
.rr-map-legend > span { display: inline-flex; align-items: center; gap: 5px; color: var(--rr-ink); font-size: 11px; line-height: 1.3; }
.rr-map-reset { position: absolute; z-index: 800; top: 10px; right: 10px; max-width: 155px; min-height: 44px; padding: 8px 10px; border: 1px solid #aab3bc; border-radius: 3px; background: white; color: var(--rr-ink); font-size: 12px; font-weight: 650; line-height: 1.3; cursor: pointer; }
.rr-map-reset:hover { background: var(--rr-surface); }
.rr-map-panel .leaflet-top.leaflet-right { top: 60px; }
.rr-map-panel .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; }
.rr-map-panel .leaflet-control-attribution { max-width: calc(100% - 12px); font-size: 10px; line-height: 1.4; }
.rr-map-panel .leaflet-control-attribution a { color: #17496a; }
.rr-map-pin-icon { position: relative; display: inline-block; width: 30px; height: 37px; color: var(--rr-red); line-height: 1; filter: drop-shadow(0 1px 1px #fff); }
.rr-map-pin-icon > .bi-geo-alt-fill { position: absolute; inset: 0; font-size: 34px; }
.rr-map-pin-icon .rr-map-pin-symbol { position: absolute; top: 9px; left: 11px; color: white; font-size: 8px; line-height: 1; }
.rr-map-pin-icon.is-notable { color: #c9a12b; }
.rr-map-pin-icon.is-notable .rr-map-pin-symbol { top: 7px; left: 8px; color: var(--rr-charcoal); font-size: 14px; }
.rr-map-shared-count { position: absolute; top: -5px; right: -7px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border: 1px solid var(--rr-charcoal); border-radius: 9px; background: white; color: var(--rr-charcoal); font-family: 'Segoe UI', sans-serif; font-size: 11px; font-weight: 700; line-height: 1; }
.rr-tuner-marker { border: 0; background: transparent; }
.rr-tuner-marker.is-selected { outline: 3px solid var(--rr-charcoal); outline-offset: 3px; border-radius: 16px; filter: drop-shadow(0 0 2px white); }
.rr-tuner-marker .rr-map-pin-icon { width: 32px; height: 40px; }
.rr-tuner-marker .rr-map-pin-icon > .bi-geo-alt-fill { font-size: 36px; }
.rr-map-legend .rr-map-pin-icon { width: 21px; height: 26px; }
.rr-map-legend .rr-map-pin-icon > .bi-geo-alt-fill { font-size: 24px; }
.rr-map-legend .rr-map-pin-symbol { top: 6px; left: 8px; font-size: 6px; }
.rr-map-legend .is-notable .rr-map-pin-symbol { top: 5px; left: 6px; font-size: 10px; }
.rr-map-cluster { display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--rr-charcoal); box-shadow: 0 0 0 1px #11161b66; color: white; font-family: 'Segoe UI', sans-serif; font-size: 14px; font-weight: 700; }
.rr-map-panel .leaflet-tooltip { padding: 6px 10px; border: 1px solid var(--rr-border); border-radius: 3px; font-family: 'Barlow Semi Condensed', 'Segoe UI', sans-serif; font-size: 17px; font-weight: 600; }
.rr-map-guidance { margin: 9px 0 0; color: var(--rr-muted); font-size: 12px; line-height: 1.5; }
.rr-map-tile-error, .rr-map-script-help { position: absolute; z-index: 800; bottom: 30px; left: 10px; right: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--rr-border); border-radius: 3px; background: white; color: var(--rr-ink); font-size: 13px; }
.rr-map-panel .rr-map-unavailable { margin: 80px 20px 20px; padding: 18px; background: white; font-size: 15px; }
@media (max-width: 1199px) {
    .rr-regional-view-page.is-map-view .rr-category-controls { margin-right: 0; }
    .rr-regional-view-page.is-map-view .rr-service-filter-summary { position: static; width: auto; padding-left: 0; border-left: 0; border-top: 1px solid var(--rr-border); }
    .rr-map-browser { grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); }
    .rr-map-legend { flex-direction: column; gap: 3px; }
}
@media (max-width: 980px) {
    .rr-regional-view-page .rr-directory-heading { flex-direction: column; align-items: stretch; gap: 20px; }
    .rr-regional-view-page .rr-directory-heading-controls { align-self: flex-end; }
    .rr-regional-view-page .rr-region-layout { grid-template-columns: 160px minmax(0,1fr); gap: 20px; }
    .rr-map-browser { grid-template-columns: minmax(230px, 44%) minmax(0, 1fr); }
    .rr-map-result { padding: 12px; }
    .rr-map-result h2 { font-size: 21px; }
    .rr-map-result-logo { flex-basis: 44px; width: 44px; height: 44px; }
    .rr-map-agent { margin: 10px -12px -12px; padding: 7px 12px; }
    .rr-map-legend { top: auto; bottom: 26px; max-width: calc(100% - 24px); }
}
@media (max-width: 767px) {
    .rr-regional-view-page .rr-directory-heading-controls { align-self: stretch; gap: 9px; }
    .rr-regional-view-page .rr-directory-vehicles { flex: 1 1 auto; width: auto; }
    .rr-regional-view-page .rr-directory-vehicle-tiles { gap: 6px; }
    .rr-regional-view-page .rr-directory-vehicle-tile { min-height: 100px; padding: 18px 4px 8px; font-size: 12px; overflow-wrap: anywhere; }
    .rr-regional-view-page .rr-directory-vehicle-tile > svg { width: 40px; height: 40px; }
    .rr-regional-view-page .rr-directory-vehicle-icons { gap: 1px; height: 40px; }
    .rr-regional-view-page .rr-directory-vehicle-icons > svg { width: calc((100% - 1px) / 2); height: 40px; }
    .rr-directory-view-nav { width: 89px; flex-basis: 89px; gap: 8px; }
    .rr-directory-view-link { gap: 5px; min-height: 46px; padding: 8px 5px; font-size: 12px; }
    .rr-directory-view-link > i { font-size: 16px; }
    .rr-regional-view-page .rr-region-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .rr-regional-view-page .rr-region-sidebar { padding: 10px 12px; }
    .rr-directory-region-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; font-size: 14px; cursor: pointer; }
    .rr-directory-region-disclosure > summary > span { color: var(--rr-muted); font-size: 13px; }
    .rr-directory-region-disclosure[open] > summary { margin-bottom: 14px; }
    .rr-regional-view-page.is-map-view .rr-use-fieldset > legend { position: static; line-height: 1.4; margin: 0 0 4px; }
    .rr-regional-view-page.is-map-view .rr-use-choices { gap: 0; padding-left: 0; }
    .rr-regional-view-page.is-map-view .rr-use-choices .rr-use-choice { flex: 0 1 auto; min-width: 0; padding: 8px 6px; font-size: 13px; }
    .rr-map-browser { grid-template-columns: minmax(0,1fr); height: auto; gap: 12px; }
    .rr-map-panel { grid-row: 1; height: min(58dvh, 480px); min-height: 340px; }
    .rr-map-result-list { grid-row: 2; height: 440px; max-height: 65dvh; padding-right: 0; }
    .rr-map-legend { top: 10px; bottom: auto; max-width: calc(100% - 155px); }
    .rr-map-result h2 { font-size: 23px; }
    .rr-map-result-logo { flex-basis: 54px; width: 54px; height: 54px; }
    .rr-map-result { padding: 14px; }
    .rr-map-agent { margin: 10px -14px -14px; padding: 7px 14px; }
}
@media (max-width: 360px) {
    .rr-regional-view-page .rr-directory-vehicle-tile { padding-inline: 2px; font-size: 11px; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) { .rr-map-panel .leaflet-zoom-animated, .rr-map-panel .leaflet-marker-icon { transition: none !important; } }
