.dd-explore-main { width:min(1320px,calc(100% - 32px)); margin:32px auto 48px; }
.dd-explore-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.dd-explore-heading h1 { margin:4px 0 12px; }
.dd-explore-heading p { max-width:720px; }
.dd-explore-heading > a { flex-shrink:0; }
#explore-filters { padding:22px; border:1px solid var(--dd-border, #39313e); border-radius:20px; background:var(--dd-panel, #19131f); }
.explore-groups,.explore-categories,.explore-actions,.dd-explore-location-actions { display:flex; flex-wrap:wrap; gap:8px; }
.explore-groups { padding-bottom:14px; border-bottom:1px solid #ffffff18; margin-bottom:14px; }
.explore-categories { margin-bottom:20px; }
.explore-groups button,.explore-categories button { min-height:44px; padding:10px 16px; border:1px solid var(--dd-border,#39313e); border-radius:10px; background:var(--dd-panel-alt,#211828); color:inherit; cursor:pointer; font:inherit; font-weight:650; }
.explore-groups button[aria-pressed=true],.explore-categories button[aria-pressed=true] { border-color:#df3d8c; background:#9e225533; }
.explore-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.explore-fields label { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:.9rem; }
.explore-fields input,.explore-fields select { width:100%; min-width:0; min-height:44px; padding:10px; border:1px solid var(--dd-border,#403447); border-radius:10px; background:var(--dd-bg,#100c14); color:inherit; font:inherit; }
.explore-dropdown { border:1px solid var(--dd-border,#403447); border-radius:12px; margin-top:14px; }
.explore-dropdown summary { padding:13px 16px; min-height:44px; cursor:pointer; font-weight:650; }
.explore-dropdown > .explore-fields,.explore-options { padding:4px 16px 16px; }
.explore-taxonomy { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:0 12px; }
.explore-options { display:grid; gap:12px; max-height:380px; overflow:auto; }
.explore-options fieldset { min-width:0; padding:8px; border:1px solid #ffffff18; border-radius:8px; }
.explore-options label { display:flex; align-items:center; gap:10px; padding:7px 0; }
.explore-options input { width:18px; height:18px; accent-color:#df3d8c; flex-shrink:0; }
.explore-actions { justify-content:flex-end; margin-top:18px; }
.explore-help,#explore-status,#explore-location-status { font-size:.85rem; line-height:1.6; }
.dd-explore-location-actions { align-items:center; margin:16px 0; }
.dd-explore-location-actions select { min-height:44px; max-width:100%; border:1px solid var(--dd-border,#403447); border-radius:10px; background:var(--dd-bg,#100c14); color:inherit; padding:10px; font:inherit; }
#explore-more { margin-top:16px; }
.dd-explore-page [hidden] { display:none!important; }
.dd-explore-page :is(button,input,select,summary):focus-visible { outline:2px solid #f56cad; outline-offset:3px; }
.dd-explore-page .dd-map-svg { height:auto; min-height:0; touch-action:none; cursor:grab; }
.dd-explore-page .dd-map-svg.is-dragging { cursor:grabbing; }
.dd-explore-page .dd-map-stage { min-height:0; }
.dd-explore-page .dd-map-popup { max-height:350px; overflow:auto; }
.dd-explore-page .dd-map-popup-cover { height:100px; }
.dd-map-own-halo { fill:#4bacff40; stroke:#9dd7ff; stroke-width:1; }
.dd-map-own-dot { fill:#2d9dff; stroke:white; stroke-width:3; }
.dd-map-controls { position:absolute; top:12px; right:12px; display:flex; gap:5px; z-index:5; }
.dd-map-controls button { min-width:42px; min-height:42px; padding:8px 12px; border:1px solid #675077; border-radius:10px; background:#1c1228; color:#fff; cursor:pointer; font-size:17px; }
.dd-map-instructions { margin:8px 4px 0; font-size:.82rem; }
html[data-theme=light] #explore-filters { background:#fff; color:#24172b; }
@media(max-width:700px) {
  .dd-explore-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .explore-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .explore-taxonomy { grid-template-columns:1fr; }
  #explore-filters { padding:14px; }
  .dd-explore-page .dd-map-svg { height:480px; }
  .dd-explore-page .dd-map-popup { width:min(280px,calc(100% - 20px)); }
}
@media(max-width:420px) { .explore-fields { grid-template-columns:1fr; } .explore-groups button { flex:1; padding:10px 8px; font-size:.82rem; } }

/* Explore sidebar: filters scroll independently from the map on wide screens. */
.dd-explore-main { width:min(1600px,calc(100% - 40px)); margin-top:24px; }
.dd-explore-heading { margin-bottom:20px; }
.dd-explore-heading .eyebrow { margin-top:0; }
.dd-explore-heading h1 { font-size:clamp(1.8rem,3vw,2.5rem); }
.dd-explore-heading p { margin-bottom:0; }
.dd-explore-layout { display:grid; grid-template-columns:310px minmax(0,1fr); gap:22px; align-items:start; }
.dd-explore-sidebar { position:sticky; top:94px; max-height:calc(100dvh - 114px); overflow:auto; overscroll-behavior:contain; border:1px solid var(--dd-border,#39313e); border-radius:18px; background:var(--dd-panel,#19131f); scrollbar-width:thin; }
.dd-explore-sidebar > summary { padding:18px; font-weight:750; cursor:pointer; list-style-position:inside; }
.dd-explore-sidebar > summary span { display:block; padding-top:5px; font-size:.78rem; font-weight:400; opacity:.7; }
#explore-filters { padding:0 16px 16px; border:0; border-radius:0; background:transparent; }
.explore-groups,.explore-categories { display:block; margin:0 0 14px; padding:0; border:0; }
.explore-groups label,.explore-categories label { display:flex; flex-direction:column; gap:7px; font-size:.88rem; font-weight:650; }
.explore-groups select,.explore-categories select { width:100%; min-width:0; min-height:44px; padding:10px; border:1px solid var(--dd-border,#403447); border-radius:10px; background:var(--dd-bg,#100c14); color:inherit; font:inherit; }
.dd-explore-sidebar .explore-fields { grid-template-columns:1fr; gap:12px; }
.dd-explore-sidebar .explore-dropdown { margin-top:10px; }
.dd-explore-sidebar .explore-dropdown summary { padding:12px; font-size:.88rem; }
.dd-explore-sidebar .explore-dropdown > .explore-fields { padding:4px 12px 14px; }
.dd-explore-sidebar .explore-taxonomy { display:block; padding:0 10px 10px; }
.dd-explore-sidebar .explore-options { padding:0 8px 10px; max-height:none; }
.dd-explore-sidebar .explore-options label { font-size:.83rem; line-height:1.4; }
.dd-explore-sidebar .explore-options fieldset { margin:0; }
.explore-actions { position:sticky; bottom:-16px; z-index:10; padding:12px 0; margin:12px 0 -12px; background:var(--dd-panel,#19131f); display:grid; grid-template-columns:1fr; }
.explore-actions > button { width:100%; }
.explore-help:empty { display:none; }
.dd-explore-map-panel { min-width:0; position:sticky; top:94px; }
.dd-explore-map-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.dd-explore-map-heading h2 { font-size:1.2rem; margin:0; }
.dd-explore-map-heading > span { font-size:.78rem; opacity:.65; }
#explore-status { margin:7px 0 14px; min-height:1.5em; }
.dd-explore-location-actions { margin:0 0 10px; align-items:end; }
.dd-explore-location-actions > label { display:flex; gap:4px; flex-direction:column; font-size:.78rem; }
#explore-location-status { flex-basis:100%; font-size:.76rem; opacity:.75; }
.dd-explore-place-toggle { display:flex; align-items:center; gap:8px; font-size:.8rem; margin:12px 0 4px; }
.dd-explore-place-toggle input { width:17px; height:17px; accent-color:#df3d8c; }
.dd-explore-place-help { font-size:.75rem; opacity:.7; margin:0 0 10px; line-height:1.5; }
.dd-explore-page .dd-map-svg { height:clamp(460px,65dvh,820px); }
.dd-map-municipalities { pointer-events:none; }
.dd-map-municipality circle { fill:#b8a8ca; opacity:.85; }
.dd-map-municipality text { fill:#e9e1f0; stroke:#191222; paint-order:stroke; stroke-linejoin:round; font-family:inherit; font-weight:500; }
html[data-theme=light] .dd-explore-sidebar,html[data-theme=light] .explore-actions { background:#fff; color:#24172b; }
@media(max-width:1100px) and (min-width:901px) { .dd-explore-layout { grid-template-columns:275px minmax(0,1fr); gap:16px; } .dd-explore-main { width:calc(100% - 28px); } }
@media(max-width:900px) {
  .dd-explore-main { width:calc(100% - 28px); }
  .dd-explore-layout { grid-template-columns:1fr; gap:18px; }
  .dd-explore-sidebar,.dd-explore-map-panel { position:static; max-height:none; }
  .dd-explore-sidebar > summary { padding:14px 16px; }
  .dd-explore-sidebar > summary span { display:inline; padding-left:10px; }
  .dd-explore-sidebar[open] { max-height:70dvh; overflow:auto; }
  .dd-explore-sidebar .explore-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .explore-actions { grid-template-columns:1fr 1fr; }
  .dd-explore-page .dd-map-svg { height:480px; }
}
@media(max-width:480px) { .dd-explore-sidebar .explore-fields { grid-template-columns:1fr; } .dd-explore-heading { gap:10px; } .dd-explore-map-heading > span { display:none; } }

/* Keep dense maps quiet and result groups fully browsable. */
#explore-map .dd-map-marker-halo { animation:none; opacity:.18; }
#explore-map .dd-map-cluster .dd-map-marker-dot { fill:#b93486;stroke:#ffc0e4;stroke-width:1.5;vector-effect:non-scaling-stroke; }
#explore-map .dd-map-popup-list { max-height:220px;overflow-y:auto;overscroll-behavior:contain; }
.dd-map-popup-more { width:100%;margin-top:10px;padding:9px;background:#35223e;color:#fff;border:1px solid #705076;border-radius:8px;cursor:pointer; }
#explore-map .dd-map-popup { transform:translateX(-50%);max-height:min(420px,calc(100% - 24px));overflow-y:auto; }
#explore-map .dd-map-cluster .dd-map-marker-count { fill:#fff; }
/* A compact toolbar keeps the map above the fold. */
.dd-explore-page .dd-explore-main{margin-top:18px}
.dd-explore-page .dd-explore-heading{margin-bottom:18px;gap:16px}
.dd-explore-page .dd-explore-heading h1{font-size:30px;margin:0 0 5px;line-height:1.2}
.dd-explore-page .dd-explore-heading p{font-size:14px;margin:0;color:var(--dd-muted-strong,#bcb0c5)}
.dd-explore-page .dd-explore-heading .eyebrow{display:none}
.dd-explore-page .dd-explore-location-actions{display:flex;gap:10px;align-items:flex-end;margin:0;flex-wrap:wrap}
.dd-explore-location-actions>label,#explore-map-view label{display:grid;gap:4px;font-size:11px;color:var(--dd-muted-strong,#bcb0c5);font-weight:600}
.dd-explore-location-actions select,#explore-map-view select{width:auto;min-height:40px;padding:8px 10px;font-size:12px;border-radius:9px;color:var(--dd-text,#fff)}
#explore-map-view .dd-street-switch{margin:0}
.dd-explore-location-actions .button{min-height:40px;padding:9px 13px;font-size:12px}
.dd-explore-map-info{font-size:12px;max-width:100%;border:1px solid var(--dd-border,#403447);border-radius:9px;background:var(--dd-surface,#19131f)}
.dd-explore-map-info>summary{padding:10px 13px;min-height:40px;cursor:pointer;font-weight:600}
.dd-explore-map-info[open]{flex-basis:100%}.dd-explore-map-info>p,.dd-explore-map-info>label{margin:0 13px 12px;line-height:1.6}
.dd-explore-page #explore-location-status:empty{display:none}
.dd-explore-page #explore-location-status{margin:8px 0;font-size:12px}
.dd-explore-page #explore-status{font-size:12px;margin:10px 0;min-height:18px;color:var(--dd-muted-strong,#bcb0c5)}
.dd-explore-page .dd-street-canvas{height:clamp(440px,calc(100dvh - 260px),850px)}
.dd-explore-page .dd-explore-layout{grid-template-columns:285px minmax(0,1fr);gap:20px}
@media(max-width:900px){.dd-explore-page .dd-explore-layout{grid-template-columns:1fr;gap:12px}.dd-explore-page .dd-explore-heading{flex-direction:row;align-items:center}.dd-explore-page .dd-explore-heading>a{font-size:12px;padding:8px 10px}.dd-explore-page .dd-explore-heading p{font-size:12px;max-width:250px}.dd-explore-page .dd-street-canvas{height:clamp(400px,60dvh,680px)}.dd-explore-sidebar>summary span{display:none}}
@media(max-width:480px){.dd-explore-location-actions{gap:8px}.dd-explore-location-actions>label,#explore-map-view{flex:1 1 42%}#explore-map-view label,.dd-explore-location-actions select,#explore-map-view select{width:100%}.dd-explore-page .dd-explore-heading h1{font-size:26px}}
.dd-explore-page .dd-explore-main{padding:0}
