/* Map layout overrides; preserve the theme's palette, type and category colours. */
.urb-mobile-tools, .urb-results-toggle { display:none; }
.urb-results-toggle[hidden] { display:none !important; }
.urb-map-page .row { margin-left:0; margin-right:0; }
.urb-map-page { overflow:visible !important; }
.urb-map-page .site-main { min-width:0; }
.urb-map-page .map-container, .urb-map-page .search-container, .urb-map-page .content-container { min-width:0; }
#map, #shapemap, #page-map, #urbmap-results, #urbmap-search { scroll-margin-top:calc(var(--urb-header-height,85px) + 60px); }
.urb-info-toggle .btn { position:relative; background:var(--bianco,#fff); color:var(--altro-color,#00705a); }
.urb-map-page #listings { margin:0; }
.urb-map-page #listings .title { display:block; min-height:44px; }
.urb-map-page #listings .active .title { outline:2px solid var(--altro-color,#00705a); outline-offset:2px; }
.urb-map-page .btn, .urb-map-page #reset, #filter-type-list a { min-height:44px; }
.urb-map-page .btn { min-width:44px; display:inline-flex; align-items:center; justify-content:center; }
#filter-type-list a { display:flex; align-items:center; justify-content:center; line-height:1.2; padding:0.4em 0.65em; }
.mapboxgl-ctrl-group button { width:44px !important; height:44px !important; }
#map .mapboxgl-popup-content { min-width:0 !important; max-width:100% !important; overflow-y:auto; overscroll-behavior:contain; }
#map .map-pop { font-size:14px; line-height:1.4; }
#map .map-pop .map-bio, #map .map-pop .map-bio p, #map .map-pop dl, #map .map-pop .map-footer { font-size:14px; line-height:1.4; }
#map .map-pop dd { line-height:1.4; }
#map .map-pop dt, #map .map-pop dd, #map .map-pop dd span, #map .map-pop .map-footer a { font-size:14px; line-height:1.4; }
#map .mapboxgl-popup-close-button { top:0; right:0; width:44px; height:44px; font-size:26px; }
#map .map-pop h3 { line-height:1.2; padding-right:48px; overflow-wrap:anywhere; }
#map .map-pop .map-img { width:100%; height:130px; object-fit:cover; }
#map .map-pop .map-footer a { display:flex; min-height:44px; align-items:center; }
#map .mapboxgl-popup-content:focus-within { outline:2px solid var(--nero,#111); }
.itinerary-place-marker { width:44px !important; height:44px !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
.itinerary-place-marker > span { display:flex; width:28px; height:28px; margin:auto; align-items:center; justify-content:center; border:2px solid #fff; border-radius:50%; background:var(--itinerary-color,#15cc09); box-shadow:0 2px 8px rgb(0 0 0 / 25%); }
.itinerary-place-marker.is-active > span { background:var(--itinerary-active-color,#988aff); transform:scale(1.2); }
.itinerary-place-button, .itinerary-reset-button { min-height:44px; }
.itinerary-gpx { display:inline-flex; align-items:center; min-height:44px; }
.itinerary-widget-map { min-height:340px; }
.urb-shape-map, #page-map:has(#map):not(.itinerary-widget), #page-title:has(> #map) { padding:0 !important; height:55vh; height:55dvh; min-height:340px; max-height:600px; }
.urb-map-status { padding:0.75rem; margin:0; }
@media (min-width:64em) {
    .itinerary-widget .itinerary-widget-inner { height:clamp(360px,70vh,720px); height:clamp(360px,70dvh,720px); }
    .urb-map-page .site-main { height:calc(100vh - var(--urb-header-height,85px)); height:calc(100dvh - var(--urb-header-height,85px)); }
    .urb-map-page .site-main:not(.has-search-open) .search-container, .urb-map-page .site-main:not(.has-content-open) .content-container { display:none; }
    .urb-map-page .map-container, .urb-map-page .search-container, .urb-map-page .content-container,
    .urb-map-page .site-main:not(.has-search-open) .map-container,
    .urb-map-page .site-main:not(.has-content-open) .search-container { height:100%; }
}
@media (max-width:63.99em) {
    .urb-results-toggle { display:block; width:100%; min-height:44px; margin-top:0.75rem; background:var(--bianco,#fff); color:var(--nero,#111); border:1px solid currentColor; border-radius:var(--radius-btn,5px); }
    .urb-map-page .content-container { display:block !important; height:auto; }
    .urb-map-page #listings { max-height:18rem; overflow:auto; overscroll-behavior:contain; }
    .urb-map-page .urb-results-expanded #listings { max-height:none; overflow:visible; }
    .urb-map-page .content-container h2 { margin-bottom:0.75rem; }
    .itinerary-widget-map { height:55vh; height:55dvh; max-height:600px; }
}
@media (max-width:39.99em) {
    .urb-map-page .site-main { height:auto; }
    .urb-mobile-tools { display:flex; width:100%; order:1; position:sticky; top:var(--urb-header-height,85px); z-index:20; gap:0.5rem; padding:0.4rem 0.75rem; background:var(--bianco,#fff); border-bottom:1px solid var(--nero,#111); }
    .urb-mobile-tools button { flex:1; min-height:44px; padding:0.3rem; border:1px solid var(--nero,#111); border-radius:var(--radius-btn,5px); background:var(--bianco,#fff); color:var(--nero,#111); font-size:14px; }
    .urb-mobile-tools button[aria-expanded=true] { background:var(--altro-color,#00705a); color:#fff; }
    .urb-map-page .info-container { order:0; width:100%; padding:0.75rem 1rem; }
    .urb-map-page .info-container h2 { margin:0; }
    .urb-map-page .info-container:not(.urb-info-open) .info-panel { display:none; }
    .urb-map-page .search-container { order:2; width:100%; height:auto !important; overflow:visible; padding:1rem; }
    .urb-map-page .site-main:not(.urb-filters-open) .search-container { display:none !important; }
    .urb-map-page .map-container, .urb-map-page .site-main:not(.has-search-open) .map-container { order:3; width:100%; flex-basis:100%; height:55vh; height:55dvh; min-height:340px; max-height:600px; }
    .urb-map-page .content-container { order:4; width:100%; padding:1rem; }
    .urb-map-page #btn-search, .urb-map-page #btn-content { display:none; }
    .urb-map-page .info-container .btn-close, .urb-map-page .info-container .btn-open { position:relative; }
    .home .map-widget { height:auto !important; }
    .home .map-container-home { height:55vh !important; height:55dvh !important; min-height:340px; max-height:600px; }
    .home .search-widget { position:relative; bottom:auto; padding:1rem; margin-top:-1rem; }
    #map .map-pop .map-img { height:110px; }
}
/* A50: shared explorer, compact home and uniform place cards. */
.urb-map-page { padding-top:var(--urb-header-overhang,0px); }
.urb-explorer { --urb-green:#00705a; --urb-panel-width:360px; --urb-line:#e4e0d6; --urb-shadow:0 6px 24px rgba(20,40,30,.16); position:relative; isolation:isolate; width:100%; min-width:0; height:calc(100dvh - var(--urb-header-height,85px)); min-height:500px; color:#1d2722; font:14px/1.4 var(--main-font,'DM Sans',sans-serif); }
.urb-explorer-home.map-widget { height:max(var(--urb-home-min-height,730px),clamp(730px,78vh,800px)) !important; }
.urb-explorer > #map { position:absolute; inset:0; width:100%; height:100%; min-height:0; }
.urb-explorer button, .urb-explorer input { font:inherit; }
.urb-explorer button, .urb-home-link { cursor:pointer; min-height:44px; border:1px solid var(--urb-line); background:#fff; color:inherit; border-radius:12px; padding:8px 12px; line-height:1.25; }
.urb-explorer :is(button,input,a,summary):focus-visible { outline:3px solid var(--urb-green); outline-offset:2px; }
.urb-explorer [hidden] { display:none !important; }
.urb-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.urb-panel { position:absolute; z-index:3; inset:16px auto 16px 16px; width:var(--urb-panel-width); background:#fff; border-radius:16px; box-shadow:var(--urb-shadow); display:flex; flex-direction:column; }
.urb-panel-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px; scrollbar-width:thin; scrollbar-color:#d8ddd8 transparent; border-radius:16px 16px 0 0; }
.urb-panel-scroll::-webkit-scrollbar { width:5px; } .urb-panel-scroll::-webkit-scrollbar-thumb { background:#d8ddd8; border-radius:12px; }
.urb-panel-heading { display:flex; gap:10px; align-items:flex-start; }
#urbmap .urb-panel-heading h2 { font:24px/1.15 var(--alt-font,'GT Flaire',serif); color:#1d2722; padding:0; margin:0 0 6px; border:0; text-transform:none; letter-spacing:0; }
#urbmap .urb-panel-heading p { font:14px/1.45 var(--main-font,sans-serif); margin:0 0 14px; color:#5d6862; }
#urbmap .urb-panel-heading p a { font-size:inherit; color:var(--urb-green); text-decoration:underline; }
#urbmap h3 { margin:18px 0 10px; font:15px/1.3 var(--alt-font,serif); color:#1d2722; text-transform:none; letter-spacing:0; }
.urb-search-box { display:block; margin:0; width:100%; }
.urb-search-box input { width:100%; min-width:0; height:44px; padding:10px 14px; color:#1d2722; border:1px solid var(--urb-line); border-radius:12px; background:#fbfaf7; box-sizing:border-box; }
.urb-search-box input::placeholder { color:#5d6862; opacity:1; }
.urb-explorer #filter-type-list { display:flex; flex-direction:column; gap:2px; padding:0; margin:0 -8px 16px !important; }
.urb-explorer #filter-type-list li { list-style:none; padding:0; margin:0; font-size:14px; font-weight:400; min-width:0; }
.urb-explorer [data-type] { display:flex; align-items:center; gap:7px; width:100%; text-align:left; padding:0 10px; font-size:14px; line-height:1.2; font-weight:400; }
.urb-explorer #filter-type-list [data-type] { height:36px; min-height:36px; border:0; }
.urb-explorer #filter-type-list [data-type]::after { content:''; width:12px; flex:0 0 12px; margin-left:3px; }
.urb-explorer #filter-type-list [data-type][aria-pressed=true]::after { flex-basis:6px; width:6px; height:11px; margin-right:4px; border:solid var(--urb-green); border-width:0 2px 2px 0; transform:rotate(45deg); }
.urb-explorer [data-type][aria-pressed=true] { background:#e7f2ee; color:var(--urb-green); font-weight:600; }
.urb-type-dot { display:block; flex:0 0 10px; width:10px; height:10px; background:var(--type-colour); box-shadow:inset 0 0 0 1px #0003; border-radius:50%; }
.urb-type-count { margin-left:auto; font-size:12px; color:#5d6862; }
.urb-extra-filters details { border-top:1px solid var(--urb-line); }
.urb-extra-filters details:last-child { border-bottom:1px solid var(--urb-line); }
.urb-extra-filters summary { list-style:none; display:flex; align-items:center; gap:8px; min-height:46px; cursor:pointer; font-size:15px; }
.urb-extra-filters summary::-webkit-details-marker { display:none; }
.urb-extra-filters summary::after { content:''; width:9px; height:9px; border:solid #5d6862; border-width:0 2px 2px 0; transform:rotate(45deg); margin-left:auto; margin-right:4px; }
.urb-extra-filters details[open] summary::after { transform:rotate(225deg); }
.urb-choice-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:12px; background:var(--urb-green); color:#fff; font-size:12px; }
.urb-filter-options { display:grid; grid-template-columns:1fr 1fr; gap:0 10px; padding-bottom:12px; }
.urb-filter-options label { display:flex; align-items:center; gap:9px; min-height:44px; font-weight:400; line-height:1.3; margin:0; text-transform:none; cursor:pointer; }
.urb-filter-options input { flex:0 0 18px; width:18px; height:18px; accent-color:var(--urb-green); }
.urb-active-filters { display:flex; flex-wrap:wrap; gap:6px; } .urb-active-filters:not(:empty) { margin-top:12px; }
.urb-explorer .urb-filter-chip { background:#e7f2ee; color:var(--urb-green); border:0; max-width:100%; overflow-wrap:anywhere; text-align:left; }
.urb-explorer #reset { border:0; padding:6px; color:var(--urb-green); text-decoration:underline; background:#fff; }
.urb-panel-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:0 0 auto; padding:12px 20px; min-height:72px; border-top:1px solid var(--urb-line); background:#fff; border-radius:0 0 16px 16px; }
.urb-explorer .urb-panel-action, .urb-home-link { background:var(--urb-green); color:#fff; border:0; font-weight:600; }
.urb-home-link { display:flex; align-items:center; justify-content:center; text-align:center; }
.urb-explorer .urb-panel-tab { position:absolute; left:calc(var(--urb-panel-width) + 16px); top:32px; z-index:4; width:44px; padding:0; height:56px; border:0; border-radius:0 12px 12px 0; box-shadow:var(--urb-shadow); color:var(--urb-green); font-size:24px; }
.urb-explorer[data-panel-open=false] .urb-panel-tab { left:16px; border-radius:12px; }
#urbmap .urb-list-view h3 { margin-top:16px; font-size:19px; }
#urbmap #listings { padding:0; margin:0; list-style:none; max-height:none; overflow:visible; }
#urbmap #listings .item { border:0; border-left:3px solid transparent; border-radius:12px; margin:0 -8px 2px; padding:10px 8px; background:#fff; }
#urbmap #listings .item:hover, #urbmap #listings .item.active { background:#e7f2ee; }
#urbmap #listings .item.active { border-left-color:var(--urb-green); }
#urbmap #listings .title { display:flex; flex-direction:column; gap:4px; min-height:44px; padding:0; background:transparent; color:#1d2722; font:14px/1.4 var(--main-font,sans-serif); outline-offset:2px; }
#urbmap #listings .item.active .title:not(:focus-visible) { outline:none; }
#urbmap #listings .title strong { font-size:15px; color:#1d2722; }
#urbmap #listings .title em { display:flex; align-items:center; gap:7px; font-size:13px; color:#5d6862; font-style:normal; }
#urbmap #listings .title > span { font-size:13px; color:#5d6862; text-transform:none; }
.urb-explorer .mapboxgl-ctrl-top-right { top:6px; right:6px; }
.urb-explorer .mapboxgl-ctrl-group { border-radius:12px; overflow:hidden; box-shadow:var(--urb-shadow); }
.urb-explorer .mapboxgl-ctrl-group button { border:0; border-radius:0; padding:0; }
.urb-explorer .mapboxgl-ctrl-group button + button { border-top:1px solid var(--urb-line); }
.urb-explorer .urb-area-control button { color:var(--urb-green); font-weight:600; border:0; box-shadow:var(--urb-shadow); }
.urb-explorer .mapboxgl-ctrl-attrib-button { min-height:24px; padding:0; border-radius:50%; }
.urb-explorer .mapboxgl-ctrl-attrib-button::before { content:'i'; color:#24322e; font:bold 16px Georgia,serif; }
#urbmap #map .urb-place-popup .mapboxgl-popup-content { padding:0; border:0; border-radius:16px; background:#fff; box-shadow:var(--urb-shadow); min-width:0 !important; width:100%; color:#1d2722; font:14px/1.45 var(--main-font,sans-serif); }
#urbmap #map .urb-place-popup .mapboxgl-popup-tip { display:block; border-top-color:#fff; }
#urbmap #map .urb-place-popup .mapboxgl-popup-close-button { top:8px; right:8px; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%; background:#fffffff0; color:#1d2722; z-index:1; }
.urb-place-photo { height:110px; background:var(--type-colour); border-radius:16px 16px 0 0; overflow:hidden; }
.urb-place-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.urb-place-body { padding:14px 16px 16px; }
#urbmap .urb-place-body h3 { margin:0 0 6px; padding:0; font-size:19px; line-height:1.2; overflow-wrap:anywhere; }
#urbmap #map .urb-place-type { display:flex; align-items:center; gap:7px; margin:0 0 10px; font:13.5px/1.35 var(--main-font,sans-serif); color:#5d6862; }
#urbmap #map .urb-place-description { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 12px; font:14px/1.45 var(--main-font,sans-serif); }
#urbmap .urb-place-more { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; border-radius:12px; background:var(--urb-green); color:#fff; font:600 14px/1.3 var(--main-font,sans-serif); }
.urb-mobile-bar, .urb-mobile-types, .urb-mobile-switch, .urb-sheet-close, .urb-home-mobile-link, .urb-home-reset { display:none; }
@media (min-width:701px) and (max-width:1099px) { .urb-explorer { --urb-panel-width:320px; } .urb-panel-scroll { padding:16px; } }
@media (min-width:701px) {
 .urb-explorer .mapboxgl-ctrl-bottom-left { left:auto; right:12px; bottom:48px; }
 .urb-explorer .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl { float:right; margin:0; }
 .urb-explorer-home .mapboxgl-ctrl-bottom-left { right:72px; }
 .urb-explorer-home .mapboxgl-ctrl-bottom-right { right:72px; }
 .urb-explorer-home .urb-panel { bottom:auto; }
 .urb-explorer-home .urb-panel-scroll { overflow:visible; }
 .urb-explorer-home .urb-panel-footer > [role=status] { display:none; }
 .urb-explorer-home .urb-home-link { width:100%; }
}
@media (max-width:700px) {
 .urb-explorer-home.map-widget { height:clamp(560px,85vh,760px) !important; }
 .urb-panel { inset:12px; width:auto; z-index:6; border-radius:16px; }
 .urb-panel-scroll { padding:16px; }
 .urb-explorer .urb-sheet-close { display:block; width:44px; flex:0 0 44px; padding:0; font-size:28px; }
 .urb-mobile-bar { position:absolute; top:12px; left:12px; right:12px; display:flex; align-items:center; min-height:48px; background:#fff; border-radius:12px; box-shadow:var(--urb-shadow); z-index:3; }
 .urb-mobile-bar .urb-search-slot { flex:1; min-width:0; }
 .urb-mobile-bar .urb-search-box input { height:48px; border:0; background:transparent; padding-left:14px; font-size:13px; }
 .urb-explorer .urb-filters-toggle { border:0; border-left:1px solid var(--urb-line); border-radius:0 12px 12px 0; font-weight:600; color:var(--urb-green); white-space:nowrap; }
 .urb-mobile-types { display:flex; position:absolute; top:68px; left:0; right:0; gap:6px; padding:0 12px 6px; overflow-x:auto; scrollbar-width:none; z-index:3; }
 .urb-mobile-types [data-type] { min-height:44px; width:auto; flex:0 0 auto; white-space:nowrap; border:0; border-radius:24px; box-shadow:var(--urb-shadow); }
 .urb-explorer .urb-panel-tab, .urb-explorer .mapboxgl-ctrl-group { display:none; }
 .urb-explorer .mapboxgl-ctrl-top-right { top:auto; bottom:100px; right:2px; }
 .urb-mobile-switch { position:absolute; display:flex; bottom:40px; left:50%; transform:translateX(-50%); z-index:4; border-radius:30px; background:#fff; padding:4px; box-shadow:var(--urb-shadow); white-space:nowrap; }
 .urb-explorer .urb-mobile-switch button { border:0; border-radius:24px; min-width:84px; font-weight:600; }
 .urb-explorer .urb-mobile-switch [aria-pressed=true] { background:var(--urb-green); color:#fff; }
 .urb-explorer .urb-panel-footer { padding:12px 16px; }
 .urb-explorer[data-panel-open=true][data-mode=filters] .urb-mobile-switch { display:none; }
 .urb-explorer[data-mode=list] .urb-panel { top:124px; bottom:104px; }
 .urb-explorer[data-mode=list] .urb-panel-footer > [role=status] { display:none; }
 .urb-explorer[data-mode=list] .urb-panel-action { width:100%; }
 .urb-explorer-home .urb-panel, .urb-explorer-home .urb-mobile-switch { display:none; }
 .urb-home-mobile-link { display:flex; position:absolute; bottom:40px; left:50%; transform:translateX(-50%); z-index:4; white-space:nowrap; box-shadow:var(--urb-shadow); }
 .urb-explorer .urb-home-reset { display:block; position:absolute; bottom:100px; left:12px; z-index:4; color:var(--urb-green); box-shadow:var(--urb-shadow); }
 .urb-place-photo { height:126px; }
}
/* A113: leave room to scroll past embedded maps. */
html body .urb-explorer-home.map-widget { height:65vh !important; height:65dvh !important; min-height:0; max-height:800px; }
body .urb-shape-map, body #page-map:has(#map):not(.itinerary-widget), body #page-title:has(> #map) { height:60vh; height:60dvh; min-height:0; max-height:65dvh; }
.urb-wheel-hint { position:absolute; z-index:5; left:50%; bottom:90px; transform:translateX(-50%); max-width:calc(100% - 24px); padding:10px 14px; border-radius:8px; background:#123c31ed; color:#fff; text-align:center; font:14px/1.4 sans-serif; pointer-events:none; }
.urb-wheel-hint[hidden] { display:none; }
@media (min-width:701px) {
    .urb-route-explorer.itinerary-widget-inner:not(.is-fullscreen) { height:min(65dvh,760px); }
    .urb-explorer-home .urb-panel { bottom:16px; }
    .urb-explorer-home .urb-panel-scroll { overflow-y:auto; }
}
@media (max-width:700px) {
    .urb-explorer-home > #map { left:24px; right:24px; width:auto; }
    .urb-route-explorer.itinerary-widget-inner:not(.is-fullscreen) > #map { width:calc(100% - 48px); margin:0 24px; }
    .urb-route-explorer:not(.is-fullscreen) .urb-route-toolbar { right:36px; }
    body .urb-shape-map, body #page-map:has(#map):not(.itinerary-widget), body #page-title:has(> #map) { width:calc(100% - 48px); margin-left:24px; margin-right:24px; }
}
