/* Bossche Atlas: compact discovery variants of the active DDB component family. */
.ddb-atlas-active main { padding-bottom:var(--ui-space-xl); }
.ddb-atlas-active main .elementor>.e-con { max-width:var(--ui-container-xl); margin-inline:auto; }
.ddb-atlas-active main .elementor-widget-heading h1 { font-size:var(--ui-text-3xl); line-height:var(--ui-leading-tight); margin:0; }
.ddb-atlas-active main .elementor-widget-text-editor p { margin:var(--ui-space-xs) 0 var(--ui-space-sm); }
.ddb-atlas-active .ddb-royal-nav-host { display:none; }
.ddb-atlas { min-width:0; padding-bottom:calc(5rem + env(safe-area-inset-bottom)); }
.ddb-atlas *, .ddb-atlas-dialog * { box-sizing:border-box; }
.ddb-atlas-toolbar { display:flex; gap:var(--ui-space-xs); align-items:center; flex-wrap:wrap; margin-bottom:var(--ui-space-sm); }
.ddb-atlas-search { flex:1 1 16rem; min-width:0; }
.ddb-atlas-search input { width:100%; min-height:48px; }
.ddb-atlas-toolbar .ui-btn { display:inline-flex; gap:var(--ui-space-xs); align-items:center; min-height:44px; }
.ddb-atlas-switch { display:none; gap:var(--ui-space-2xs); }
.ddb-atlas-switch button[aria-pressed=true],.ddb-atlas-chips button[aria-pressed=true] { border-color:var(--ui-color-primary); color:var(--ui-color-text); background:var(--ui-color-surface-3); }
.ddb-atlas-chips { display:flex; gap:var(--ui-space-xs); overflow-x:auto; padding:var(--ui-space-2xs) var(--ui-space-2xs) var(--ui-space-sm); margin-bottom:var(--ui-space-xs); scrollbar-width:thin; }
.ddb-atlas-chips button { flex:0 0 auto; min-height:44px; padding:var(--ui-space-xs) var(--ui-space-sm); border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-pill); color:var(--ui-color-text-muted); background:var(--ui-color-surface); font:inherit; cursor:pointer; }
.ddb-atlas-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--ui-space-md); height:min(60dvh,calc(100dvh - 400px)); min-height:22rem; }
.ddb-atlas-map-column { position:relative; min-width:0; min-height:0; }
.ddb-atlas-map { height:100%; position:relative; isolation:isolate; overflow:hidden; border-radius:var(--ui-radius-md); background:var(--ui-color-surface-2); border:1px solid var(--ui-color-border); }
.ddb-atlas-map__canvas { height:100%; width:100%; min-height:100%; background:var(--ui-color-surface-2); }
html[data-theme=dark] .ddb-atlas-map .leaflet-tile-pane,
html[data-ddb-theme=dark] .ddb-atlas-map .leaflet-tile-pane { filter:invert(1) hue-rotate(180deg) brightness(.8) saturate(.7) contrast(.95); }
.ddb-atlas-map .leaflet-control-attribution { font-size:12px; background:var(--ui-color-surface); color:var(--ui-color-text); padding:var(--ui-space-2xs); }
.ddb-atlas-map .leaflet-control-attribution a { color:var(--ui-color-text); }
.ddb-atlas-map .leaflet-control-zoom a { background:var(--ui-color-surface); color:var(--ui-color-text); min-width:40px; min-height:40px; line-height:40px; border-color:var(--ui-color-border); }
.ddb-atlas-map__tools { position:absolute; z-index:500; right:var(--ui-space-sm); top:var(--ui-space-sm); display:flex; flex-wrap:wrap; justify-content:end; gap:var(--ui-space-2xs); max-width:calc(100% - 76px); }
.ddb-atlas-map__tools .ui-btn { background:var(--ui-color-surface); min-height:44px; padding:var(--ui-space-xs); font-size:var(--ui-text-sm); }
.ddb-atlas-map__search { position:absolute; z-index:500; top:7.5rem; left:50%; transform:translateX(-50%); white-space:nowrap; min-height:44px; }
.ddb-atlas-map__error { position:absolute; z-index:501; top:var(--ui-space-3xl); left:var(--ui-space-sm); right:var(--ui-space-sm); background:var(--ui-color-surface); padding:var(--ui-space-sm); border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-sm); }
.ddb-atlas-map__error button { display:block; margin-top:var(--ui-space-xs); }
.ddb-atlas-pin { background:var(--ui-color-surface); color:var(--ui-color-text); border:1px solid var(--ui-color-border); border-radius:50%; display:grid; place-items:center; box-shadow:var(--ui-shadow-sm); cursor:pointer; }
.ddb-atlas-pin svg { width:23px; height:23px; }
.ddb-atlas-pin:hover { border-color:var(--ui-color-primary); }
.ddb-atlas-pin.is-selected { color:var(--ui-color-primary-contrast); background:var(--ui-color-primary); outline:3px solid var(--ui-color-surface); }
.ddb-atlas-pin--cluster { font:var(--ui-weight-bold) var(--ui-text-md)/1 var(--ui-font-sans); border:2px solid var(--ui-color-primary); }
.ddb-atlas-pin__check { position:absolute; right:-3px; top:-5px; border-radius:50%; background:var(--ui-color-primary); color:var(--ui-color-primary-contrast); padding:1px 4px; font-size:12px; border:1px solid var(--ui-color-surface); }
.ddb-atlas-preview { position:absolute; z-index:510; bottom:44px; left:var(--ui-space-sm); width:min(380px,calc(100% - 24px)); }
.ddb-atlas-preview__close { position:absolute; z-index:3; right:var(--ui-space-2xs); top:var(--ui-space-2xs); width:44px; height:44px; display:grid; place-items:center; background:var(--ui-color-surface); color:var(--ui-color-text); border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-pill); }
.ddb-atlas-results { min-height:0; min-width:0; display:flex; flex-direction:column; }
.ddb-atlas-results>header { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-xs); margin-bottom:var(--ui-space-sm); flex-wrap:wrap; }
.ddb-atlas-results>header h2 { font:var(--ui-weight-semibold) var(--ui-text-md)/var(--ui-leading-tight) var(--ui-font-sans); margin:0; }
.ddb-atlas-results>header select { max-width:10rem; min-height:44px; font-size:var(--ui-text-sm); }
.ddb-atlas-results__list { min-height:0; overflow:auto; overscroll-behavior:contain; padding:3px; scrollbar-width:thin; }
.ddb-atlas-results__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ui-space-sm); align-content:start; }
.ddb-atlas-card { display:grid; grid-template-columns:64px minmax(0,1fr); gap:var(--ui-space-xs); padding:var(--ui-space-sm); min-width:0; min-height:0; background:var(--ui-color-surface-2); color:var(--ui-color-text); border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-sm); box-shadow:var(--ui-shadow-sm); }
.ddb-atlas-card::after { display:none; }
.ddb-atlas-card.is-selected { outline:2px solid var(--ui-color-primary); outline-offset:0; }
.ddb-atlas-card__photo { align-self:start; min-width:0; }
.ddb-atlas-card__photo>img { width:100%; height:72px; object-fit:cover; display:block; border-radius:var(--ui-radius-sm); }
.ddb-atlas-card__no-photo { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--ui-space-xs); min-height:96px; background:var(--ui-color-surface-2); padding:var(--ui-space-xs); font-size:var(--ui-text-sm); text-align:center; }
.ddb-atlas-card__body { min-width:0; }
.ddb-atlas-card h3 { font:var(--ui-weight-regular) var(--ui-text-lg)/1.25 var(--ui-font-display); margin:var(--ui-space-2xs) 0; }
.ddb-atlas-card h3 button,.ddb-atlas-card h3 button:hover,.ddb-atlas-card h3 button:focus { display:block; width:100%; white-space:normal; overflow-wrap:anywhere; background:transparent; color:inherit; border:0; padding:0; text-align:start; font:inherit; cursor:pointer; min-height:44px; box-shadow:none; }
.ddb-atlas-card__meta { font-size:var(--ui-text-sm); color:var(--ui-color-text-muted); line-height:1.35; margin:0; }
.ddb-atlas-card__intro { font-size:var(--ui-text-sm); line-height:1.4; margin:var(--ui-space-2xs) 0; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ddb-atlas-card__actions { display:flex; gap:var(--ui-space-xs); flex-wrap:wrap; align-items:center; margin-top:var(--ui-space-xs); }
.ddb-atlas-card__actions .ui-btn { font-size:var(--ui-text-sm); min-height:44px; padding:var(--ui-space-xs); display:inline-flex; align-items:center; gap:var(--ui-space-2xs); }
.ddb-atlas-pagination { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-xs); padding-top:var(--ui-space-xs); font-size:var(--ui-text-sm); }
.ddb-atlas-pagination .ui-btn { min-height:44px; }
.ddb-atlas-card--preview { padding-right:var(--ui-space-2xl); }
.ddb-atlas-card--preview .ddb-atlas-card__intro { display:none; }
.ddb-atlas-empty { padding:var(--ui-space-lg); background:var(--ui-color-surface); border-radius:var(--ui-radius-md); }
.ddb-atlas-status { min-height:1.5rem; font-size:var(--ui-text-sm); margin:var(--ui-space-sm) 0; }
.ddb-atlas-launcher.ui-btn { position:fixed; z-index:900; right:max(var(--ui-space-lg),env(safe-area-inset-right)); bottom:calc(var(--ui-space-lg) + env(safe-area-inset-bottom)); display:inline-flex; gap:var(--ui-space-sm); align-items:center; min-height:52px; max-width:calc(100vw - 32px); }
.ddb-atlas-active:has(dialog[open]) .ddb-atlas-launcher { visibility:hidden; }
.ddb-atlas.is-expanded .ddb-atlas-workspace { grid-template-columns:minmax(0,1fr); }
.ddb-atlas.is-expanded .ddb-atlas-results { display:none; }
.ddb-atlas-dialog.ddb-planner-dialog { width:min(450px,calc(100vw - 32px)); max-width:none; height:calc(100dvh - 32px); max-height:calc(100dvh - 32px); margin:16px 16px 16px auto; padding:var(--ui-space-lg); overflow:auto; border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-md); background:var(--ui-color-surface); color:var(--ui-color-text); }
.ddb-atlas-dialog::backdrop { background:var(--ui-color-bg); opacity:.25; }
.ddb-atlas-dialog .ddb-planner-dialog__header { display:flex; justify-content:space-between; align-items:center; gap:var(--ui-space-sm); position:sticky; z-index:3; top:calc(-1 * var(--ui-space-lg)); background:var(--ui-color-surface); padding-block:var(--ui-space-sm); }
.ddb-atlas-dialog .ddb-planner-dialog__header h2 { margin:0; font-size:var(--ui-text-2xl); }
.ddb-atlas-dialog .ddb-planner-dialog__header button { min-width:44px; min-height:44px; flex-shrink:0; }
.ddb-atlas-dialog h3 { font-size:var(--ui-text-xl); margin:var(--ui-space-lg) 0 var(--ui-space-xs); }
.ddb-atlas-dialog p { line-height:var(--ui-leading-body); }
.ddb-atlas-sheet-handle { display:none; }
.ddb-atlas-detail>figure { margin:0; }
.ddb-atlas-detail>figure>img { display:block; width:100%; height:auto; max-height:280px; object-fit:cover; border-radius:var(--ui-radius-sm); }
.ddb-atlas-detail figcaption { font-size:var(--ui-text-sm); padding-block:var(--ui-space-2xs); }
.ddb-atlas-detail__photos { display:flex; gap:var(--ui-space-xs); overflow:auto; padding-block:var(--ui-space-xs); }
.ddb-atlas-detail__photos button { border:2px solid transparent; background:transparent; padding:2px; flex:0 0 auto; min-width:48px; min-height:48px; }
.ddb-atlas-detail__photos button[aria-pressed=true] { border-color:var(--ui-color-primary); }
.ddb-atlas-detail__photos img { width:60px; height:48px; object-fit:cover; display:block; }
.ddb-atlas-detail__meta,.ddb-atlas-muted { color:var(--ui-color-text-muted); font-size:var(--ui-text-sm); }
.ddb-atlas-detail__intro { overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.ddb-atlas-detail__address { font-size:var(--ui-text-sm); }
.ddb-atlas-detail__summary { border-top:1px solid var(--ui-color-border); }
.ddb-atlas-detail__summary p { margin:var(--ui-space-2xs) 0; }
.ddb-atlas-offers .ddb-atlas-detail__offer h3 { margin:0; }
.ddb-atlas-card__offers { font-size:var(--ui-text-sm); line-height:1.4; margin:var(--ui-space-2xs) 0; }
.ddb-atlas-card__offers button { max-width:100%; white-space:normal; overflow-wrap:anywhere; background:none; color:inherit; border:0; padding:0; text-align:start; font:inherit; cursor:pointer; }
.ddb-atlas-results__grid .ddb-atlas-card { grid-template-columns:64px minmax(0,1fr); grid-template-rows:auto auto 1fr auto auto; column-gap:var(--ui-space-sm); row-gap:var(--ui-space-2xs); background:var(--ui-color-surface); border-color:color-mix(in srgb,var(--ui-color-primary) 25%,var(--ui-color-surface)); border-radius:var(--ui-radius-md); }
.ddb-atlas-results__grid .ddb-atlas-card__body { display:contents; }
.ddb-atlas-results__grid .ddb-atlas-card__photo { grid-column:1; grid-row:1 / span 2; }
.ddb-atlas-results__grid .ddb-atlas-card__photo>img { height:72px; }
.ddb-atlas-results__grid .ddb-atlas-card__meta,.ddb-atlas-results__grid .ddb-atlas-card h3 { grid-column:2; }
.ddb-atlas-results__grid .ddb-atlas-card__meta { color:color-mix(in srgb,var(--ui-color-text) 75%,var(--ui-color-primary)); }
.ddb-atlas-results__grid .ddb-atlas-card h3 { margin:0; }
.ddb-atlas-results__grid .ddb-atlas-card h3 button { min-height:44px; }
.ddb-atlas-results__grid .ddb-atlas-card__intro,.ddb-atlas-results__grid .ddb-atlas-card__offers,.ddb-atlas-results__grid .ddb-atlas-card__actions,.ddb-atlas-results__grid .ddb-atlas-card small { grid-column:1 / -1; }
.ddb-atlas-results__grid .ddb-atlas-card__intro { margin:var(--ui-space-xs) 0 0; -webkit-line-clamp:2; }
.ddb-atlas-results__grid .ddb-atlas-card__offers { margin:var(--ui-space-xs) 0 0; padding-top:var(--ui-space-xs); border-top:1px solid var(--ui-color-border-subtle); }
.ddb-atlas-results__grid .ddb-atlas-card__actions { margin-top:var(--ui-space-2xs); }
html body.ddb-atlas-active .ddb-atlas-results__grid .ddb-atlas-card__actions .ui-btn { padding-inline:0; color:var(--ui-color-primary); }
.ddb-atlas-detail__copy h2 { font-size:var(--ui-text-xl); }
.ddb-atlas-detail__links { display:flex; flex-wrap:wrap; gap:var(--ui-space-sm); }
.ddb-atlas-detail details { border-block:1px solid var(--ui-color-border); padding-block:var(--ui-space-xs); margin-block:var(--ui-space-md); }
.ddb-atlas-detail summary { min-height:44px; align-content:center; cursor:pointer; }
.ddb-atlas-detail__offer,.ddb-atlas-detail__review { border-top:1px solid var(--ui-color-border); padding-block:var(--ui-space-sm); }
.ddb-atlas-detail__offer h4 { font-size:var(--ui-text-lg); margin:0; }
.ddb-atlas-detail__offer p { margin:var(--ui-space-2xs) 0; }
.ddb-atlas-detail__footer { position:sticky; z-index:2; bottom:calc(-1 * var(--ui-space-lg)); background:var(--ui-color-surface); padding-block:var(--ui-space-sm); display:grid; gap:var(--ui-space-xs); border-top:1px solid var(--ui-color-border); margin-top:var(--ui-space-lg); }
.ddb-atlas-filter-panel { display:grid; gap:var(--ui-space-md); }
.ddb-atlas-filter-panel label { display:grid; gap:var(--ui-space-xs); }
.ddb-atlas-day ol { list-style:none; margin:0; padding:0; }
.ddb-atlas-day li { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-sm); padding-block:var(--ui-space-sm); border-top:1px solid var(--ui-color-border); }
.ddb-atlas-day li>div { min-width:0; }
.ddb-atlas-day li p { margin:var(--ui-space-2xs) 0; color:var(--ui-color-text-muted); font-size:var(--ui-text-sm); }
.ddb-atlas-day li button { min-width:44px; min-height:44px; }
.ddb-atlas-cluster-list { display:grid; gap:var(--ui-space-xs); }
.ddb-atlas button:focus-visible,.ddb-atlas a:focus-visible,.ddb-atlas-dialog button:focus-visible,.ddb-atlas-dialog a:focus-visible { outline:2px solid var(--ui-color-focus); outline-offset:3px; }
.ddb-atlas .ui-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; }
@media(max-width:1023px) {
  .ddb-atlas-workspace { display:block; height:auto; min-height:0; }
  .ddb-atlas-map-column { height:65dvh; min-height:380px; }
  .ddb-atlas-results__list { overflow:visible; }
  .ddb-atlas-results>header { padding:var(--ui-space-xs) 0; }
  .ddb-atlas.is-expanded .ddb-atlas-map-column { height:80dvh; }
  .ddb-atlas-launcher.ui-btn { left:var(--ui-space-md); right:var(--ui-space-md); bottom:calc(var(--ui-space-sm) + env(safe-area-inset-bottom)); max-width:none; justify-content:space-between; }
  .ddb-atlas-active #ddb-agent-widget-v3 .ddb-launcher { bottom:calc(5.5rem + env(safe-area-inset-bottom)); }
  .ddb-atlas-dialog.ddb-planner-dialog { width:100%; height:auto; max-height:90dvh; margin:auto 0 0; padding:var(--ui-space-md) var(--ui-space-md) calc(var(--ui-space-lg) + env(safe-area-inset-bottom)); border-radius:var(--ui-radius-lg) var(--ui-radius-lg) 0 0; }
  .ddb-atlas-sheet-handle { display:block; height:24px; margin-top:calc(-1 * var(--ui-space-md)); touch-action:pan-x; }
  .ddb-atlas-sheet-handle::after { content:''; display:block; width:44px; height:4px; border-radius:var(--ui-radius-pill); background:var(--ui-color-border); margin:auto; }
  .ddb-atlas-dialog .ddb-planner-dialog__header { top:calc(-1 * var(--ui-space-md)); }
}
@media(max-width:430px) {
  .ddb-atlas-search { flex-basis:100%; }
  .ddb-atlas-toolbar { gap:var(--ui-space-2xs); }
  .ddb-atlas-switch { margin-left:auto; }
  .ddb-atlas-toolbar .ui-btn { padding-inline:var(--ui-space-xs); font-size:var(--ui-text-sm); }
  .ddb-atlas-card { grid-template-columns:72px minmax(0,1fr); gap:var(--ui-space-xs); }
  .ddb-atlas-card__actions { column-gap:var(--ui-space-2xs); }
}
@media(prefers-reduced-motion:reduce) { .ddb-atlas *,.ddb-atlas-dialog * { scroll-behavior:auto; transition:none; animation:none; } }

.ddb-atlas-card h3 button { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* Atlas is a geographic tile surface; do not filter markers and controls with the legacy whole-map filter. */
.ddb-atlas-active .ddb-atlas .ddb-atlas-map .leaflet-container { filter:none; }
.ddb-atlas-active .ddb-atlas-launcher.ui-btn.ui-btn--primary { position:fixed; min-height:52px; }
.ddb-atlas-card h3,.ddb-atlas-card h3 button { text-transform:none; letter-spacing:normal; }

.ddb-atlas-active main .elementor .e-con { gap:var(--ui-space-xs); }
.ddb-atlas-active main .elementor .elementor-widget-text-editor p { margin:0; }
.ddb-atlas-card__intro { -webkit-line-clamp:1; }

.ddb-atlas-active main .elementor .elementor-widget-heading .elementor-heading-title { font-size:var(--ui-text-3xl); line-height:var(--ui-leading-tight); }
.ddb-atlas-chips { scrollbar-width:none; }
.ddb-atlas-chips::-webkit-scrollbar { display:none; }
.ddb-atlas-results__list { scrollbar-color:var(--ui-color-border) transparent; }
@media(max-width:1023px) { .ddb-atlas-active main .elementor .elementor-widget-heading .elementor-heading-title { font-size:var(--ui-text-2xl); } }

/* Density variants: keep the desktop surface and native planner contracts intact. */
.ddb-atlas-mobile-preview,.ddb-atlas-launcher__mobile,.ddb-atlas-map__tool-icon,.ddb-atlas-filter-fit { display:none; }
@media(max-width:767px) {
  html body.ddb-atlas-active.ddb-premium-runtime.ddb-family-overview { padding-bottom:0; }
  body.ddb-atlas-active:has(.ddb-atlas[data-view=map]) .ddb-mega-nav { position:relative; top:0; }
  body.ddb-atlas-active:has(.ddb-atlas[data-view=map]) #wpadminbar { position:fixed; top:0; }
  body.ddb-atlas-active .ddb-mega-nav { height:57px; min-height:0; }
  body.ddb-atlas-active .ddb-mega-nav__bar { height:56px; min-height:0; padding:0 12px; gap:8px; }
  body.ddb-atlas-active .ddb-mega-nav__logo { display:grid; place-items:center; width:44px; height:44px; }
  body.ddb-atlas-active .ddb-mega-nav__logo img { width:36px; height:36px; max-height:36px; }
  body.ddb-atlas-active .ddb-mega-nav__burger,body.ddb-atlas-active .ddb-mega-nav__theme-toggle { width:44px; height:44px; min-width:44px; min-height:44px; padding:8px; }
  .ddb-atlas-active main { padding-bottom:0; }
  .ddb-atlas-active main .elementor-section>.elementor-container { width:100%; max-width:none; }
  .ddb-atlas-active main .elementor-widget-wrap.elementor-element-populated { padding:0 12px; }
  .ddb-atlas-active main .elementor .elementor-widget-heading { margin:8px 0; }
  .ddb-atlas-active main .elementor .elementor-widget-heading .elementor-heading-title { font-size:26px; line-height:1.15; }
  .ddb-atlas-active main .elementor-widget-text-editor { display:none; }
  .ddb-atlas-active main .elementor-widget-shortcode { margin:0; }
  .ddb-atlas { display:flex; flex-direction:column; min-height:0; padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
  .ddb-atlas-toolbar { display:grid; grid-template-columns:auto 1fr auto; gap:8px; margin-bottom:4px; flex-shrink:0; }
  .ddb-atlas-search { grid-column:1/-1; }
  .ddb-atlas-search input { height:44px; min-height:44px; font-size:16px; padding:8px 12px; }
  .ddb-atlas-toolbar .ui-btn { height:44px; min-height:44px; padding:8px; font-size:var(--ui-text-sm); }
  .ddb-atlas-switch { grid-column:3; justify-self:end; margin:0; gap:0; }
  .ddb-atlas-toolbar>button:not(:first-of-type) { justify-self:start; }
  .ddb-atlas-chips { flex-shrink:0; gap:8px; padding:0; margin:0 0 8px; min-height:44px; }
  .ddb-atlas-chips button { min-height:44px; height:44px; border:0; background:transparent; padding:5px 0; }
  .ddb-atlas-chips button span { display:flex; align-items:center; height:34px; padding:0 12px; border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-pill); background:var(--ui-color-surface); }
  .ddb-atlas-chips button[aria-pressed=true] { background:transparent; }
  .ddb-atlas-chips button[aria-pressed=true] span { border-color:var(--ui-color-primary); color:var(--ui-color-text); background:var(--ui-color-surface-3); }
  .ddb-atlas-workspace { flex:1; min-height:240px; }
  .ddb-atlas[data-view=map] .ddb-atlas-workspace { display:block; }
  .ddb-atlas-map-column { display:flex; flex-direction:column; height:42dvh; min-height:260px; margin-inline:-12px; }
  .ddb-atlas-map { flex:1; height:auto; min-height:240px; border:0; border-radius:0; }
  .ddb-atlas-map .leaflet-control-zoom { display:none; }
  .ddb-atlas-map__tools { top:8px; right:8px; gap:8px; max-width:none; }
  .ddb-atlas-map__tools .ui-btn { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:var(--ui-radius-sm); }
  .ddb-atlas-map__tools .ddb-atlas-map__fit,.ddb-atlas-map__tool-label { display:none; }
  .ddb-atlas-map__tool-icon { display:flex; }
  .ddb-atlas-filter-fit { display:inline-flex; }
  .ddb-atlas-map__search { top:60px; }
  .ddb-atlas-map__error { top:112px; }
  .ddb-atlas-map .leaflet-control-attribution { font-size:11px; padding:2px 4px; }
  .ddb-atlas-pin { position:relative; background:transparent; border:0; box-shadow:none; color:var(--ui-color-text); }
  .ddb-atlas-pin::before { content:''; position:absolute; inset:6px; border-radius:50%; background:var(--ui-color-surface); border:1px solid var(--ui-color-border); }
  .ddb-atlas-pin--cluster::before { inset:4px; border-color:var(--ui-color-primary); }
  .ddb-atlas-pin svg,.ddb-atlas-pin>span { position:relative; z-index:1; }
  .ddb-atlas-pin svg { width:18px; height:18px; }
  .ddb-atlas-pin.is-selected { background:transparent; color:var(--ui-color-primary); outline:none; }
  .ddb-atlas-pin.is-selected::before { border-color:var(--ui-color-primary); box-shadow:0 0 0 1px var(--ui-color-primary); }
  .ddb-atlas-pin__check { top:0; right:0; }
  .ddb-atlas-preview { bottom:24px; left:12px; right:12px; width:auto; }
  .ddb-atlas-preview>.ddb-atlas-preview__close,.ddb-atlas-preview>.ddb-atlas-card { display:none; }
  .ddb-atlas .ddb-atlas-mobile-preview.ddb-heritage-card { display:grid; min-height:0; box-shadow:none; grid-template-columns:52px minmax(0,1fr) 44px 44px; align-items:center; gap:4px; padding:8px; border:1px solid var(--ddb-card-border); border-radius:var(--ui-radius-sm); background:var(--ddb-card-paper); color:var(--ddb-card-ink); }
  .ddb-atlas-mobile-preview__photo img { width:52px; height:56px; display:block; object-fit:cover; border-radius:var(--ui-radius-sm); }
  .ddb-atlas-mobile-preview__body { min-width:0; }
  .ddb-atlas-mobile-preview__title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; width:100%; min-height:44px; text-align:start; font:var(--ui-weight-regular) var(--ui-text-md)/1.2 var(--ui-font-display); padding:0 4px; background:none; border:0; color:inherit; }
  .ddb-atlas-mobile-preview__body p { font-size:var(--ui-text-sm); color:var(--ddb-card-muted); margin:0 4px; }
  .ddb-atlas .ddb-atlas-mobile-preview.ddb-heritage-card .ui-btn { min-width:44px; color:var(--ddb-card-ink); display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; }
  .ddb-atlas-launcher__desktop,.ddb-atlas-launcher>svg:first-child { display:none; }
  .ddb-atlas-launcher__mobile { display:inline; }
  html body.ddb-atlas-active.ddb-premium-runtime .ddb-atlas .ddb-atlas-launcher.ui-btn.ui-btn--primary { width:max-content; height:44px; min-height:44px; max-width:calc(100vw - 32px); left:50%; right:auto; bottom:calc(12px + env(safe-area-inset-bottom)); transform:translateX(-50%); padding:8px 16px; border:1px solid var(--ui-color-primary); border-radius:var(--ui-radius-pill); background:var(--ui-color-surface); color:var(--ui-color-text); box-shadow:var(--ui-shadow-sm); gap:8px; font:var(--ui-weight-semibold) var(--ui-text-md)/1 var(--ui-font-sans); white-space:nowrap; }
  html body.ddb-atlas-active.ddb-premium-runtime .ddb-atlas .ddb-atlas-launcher.ui-btn.ui-btn--primary::before,html body.ddb-atlas-active.ddb-premium-runtime .ddb-atlas .ddb-atlas-launcher.ui-btn.ui-btn--primary::after { display:none; }
  .ddb-atlas-status:empty { display:none; }
  .ddb-atlas-status:not(:empty) { font-size:var(--ui-text-sm); margin:8px 0 0; }
  body.ddb-atlas-active:has(.ddb-atlas-search input:focus) .ddb-atlas-launcher,body.ddb-atlas-active:has(.ddb-atlas-search input:focus) .ddb-atlas-preview { visibility:hidden; }
  body.ddb-atlas-active:has(.ddb-atlas.is-expanded) { overflow:hidden; }
  .ddb-atlas.is-expanded .ddb-atlas-map-column { position:fixed; inset:var(--wp-admin--admin-bar--height,0px) 0 0; z-index:1100; height:auto; min-height:0; margin:0; }
  .ddb-atlas.is-expanded .ddb-atlas-preview { position:fixed; z-index:1110; bottom:calc(72px + env(safe-area-inset-bottom)); }
  html body.ddb-atlas-active.ddb-premium-runtime .ddb-atlas.is-expanded .ddb-atlas-launcher.ui-btn.ui-btn--primary { z-index:1120; }
  .ddb-atlas-dialog.ddb-planner-dialog { height:fit-content; padding:12px 12px calc(16px + env(safe-area-inset-bottom)); max-height:90dvh; }
  .ddb-atlas-dialog .ddb-planner-dialog__header { padding-block:8px; top:-12px; }
  .ddb-atlas-dialog .ddb-planner-dialog__header h2 { font-size:var(--ui-text-xl); }
  .ddb-atlas-dialog .ddb-atlas-detail__footer { bottom:calc(-16px - env(safe-area-inset-bottom)); }
}

.ddb-atlas-mobile-preview::after { display:none; }

@media(max-width:767px) and (max-height:639px) {
  .ddb-atlas[data-view=map] .ddb-atlas-map-column,.ddb-atlas[data-view=map] .ddb-atlas-map { min-height:160px; }
}
@media(max-width:767px) {
  .ddb-atlas-results__grid { grid-template-columns:minmax(0,1fr); }
}

@media(max-width:767px) { .ddb-atlas-mobile-preview .ui-btn svg { width:19px; min-width:19px; height:19px; flex-shrink:0; } }
@media(max-width:767px) {
  body.ddb-atlas-active .ddb-mega-nav .ddb-mega-nav__bar .ddb-mega-nav__theme-toggle { width:44px; min-width:44px; flex:0 0 44px; }
  html[data-theme=dark] .ddb-atlas-map .leaflet-tile-pane,html[data-ddb-theme=dark] .ddb-atlas-map .leaflet-tile-pane { filter:invert(1) hue-rotate(180deg) brightness(.92) saturate(.5) contrast(.92); }
}