/* Filter arrangement and map settings share one persistent set of controls. */
:root{--places-base-width:380px;--places-width:var(--places-base-width)}
body{
 --island-toolbar-top:max(var(--island-margin),env(safe-area-inset-top));
 --island-panels-top:var(--island-toolbar-top);
 --filter-base-width:clamp(220px,25vw,300px);
 --filter-panel-width:var(--filter-base-width);
 --filter-island-offset:0px;
 --places-inset:var(--filter-island-offset);
 --island-width:var(--places-width);
}
#atlas-toolbar{
 top:var(--island-toolbar-top);left:var(--island-left);
 display:flex;flex-flow:row nowrap;align-items:center;gap:8px;transition:none
}
#atlas-toolbar>.map-options{margin-inline-start:auto;width:auto;padding:0;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end}
.filter-pane{
 position:relative;display:flex;flex:0 0 var(--filter-panel-width);flex-direction:column;
 min-width:0;background:#fff;container-type:inline-size
}
#filter-island-close{
 display:inline-flex;align-items:center;gap:6px;min-height:34px;max-width:100%;
 margin:0 0 8px;padding:4px 0;border:0;background:transparent;color:#33363b;
 font-size:13px;font-weight:550;line-height:1.25;text-align:start
}
#filter-island-close>.icon{flex:none;width:14px;height:14px}
#filter-island-close:hover{text-decoration:underline;text-underline-offset:2px}
.filter-pane-inner{
 --filter-section-inset:0px;
 width:100%;padding:8px var(--filter-pane-inline-padding,18px) 20px
}
body[data-places-filters=dropdown] #filter-pane{
 position:absolute;z-index:4;inset:var(--filter-dropdown-start,0px) 10px auto;
 max-block-size:min(520px,calc(100% - var(--filter-dropdown-start,0px) - 8px));
 overflow:visible;border:1px solid var(--workspace-popover-border);border-radius:16px;box-shadow:0 8px 24px #111c2926
}
body[data-places-filters=dropdown] .filter-pane-inner{
 padding-block-start:14px;
 min-block-size:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:inherit
}
body[data-places-filters=dropdown] #filter-pane:focus { outline: none; }
body:not([data-places-filters=dropdown]) #filter-pane > .workspace-popover-pointer{display:none}
body:not([data-places-filters=dropdown]) .filter-pane-footer,
body[data-places-filters=dropdown] :is(#filter-island-close, #reset-place-filters) { display: none; }
.filter-pane-footer {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto auto;
 flex: none;
 align-items: center;
 gap: 8px;
 padding: 10px 12px;
 border-top: 1px solid var(--workspace-popover-border);
 border-radius: 0 0 15px 15px;
 background: #fff;
}
.filter-pane-footer button {
 min-height: 34px;
 padding: 6px 9px;
 border: 0;
 border-radius: 8px;
 background: transparent;
 color: #222;
 font-size: 12px;
 font-weight: 500;
 line-height: 1.2;
}
.filter-pane-footer button:hover:enabled { background: var(--workspace-control-hover); }
.filter-pane-footer button:disabled { opacity: .45; }
.filter-pane-footer button:focus-visible { outline: 2px solid var(--search-focus-ring); outline-offset: 1px; }
#filter-draft-pin {
 justify-self: start;
 max-inline-size: 100%;
 text-align: start;
 overflow-wrap: anywhere;
}
@container (max-width: 330px) {
 #filter-draft-pin { grid-column: 1 / -1; }
 #filter-draft-reset { grid-column: 2; }
}
#filter-draft-apply {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 7px;
 min-inline-size: 140px;
 background: #1d1d1f;
 color: #fff;
}
#filter-draft-apply:hover:enabled { background: #414143; }
#filter-draft-apply[aria-busy=true] { opacity: 1; cursor: progress; }
.filter-draft-spinner {
 display: none;
 flex: none;
 width: 12px;
 height: 12px;
 border: 2px solid rgb(255 255 255 / 35%);
 border-top-color: currentColor;
 border-radius: 50%;
}
#filter-draft-apply[aria-busy=true] .filter-draft-spinner { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
 #filter-draft-apply[aria-busy=true] .filter-draft-spinner { animation: filter-draft-spin .75s linear infinite; }
}
@keyframes filter-draft-spin { to { transform: rotate(1turn); } }
.filter-group{margin:0 0 24px;padding:0;border:0}
.filter-pane .toolbar-primary,.filter-pane .filter-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;width:100%;height:auto;overflow:visible;margin:0;padding:0}
.location-cloud{width:100%;min-width:0}
.location-cloud .country-filters{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0}
.location-filter-section+.location-filter-section{margin-top:14px}
.filter-cloud-title{margin:0 0 12px;color:#202025;font-size:16px;line-height:1.25}
.filter-cloud-label{margin:0 0 7px;color:#4c4e54;font-size:13px;font-weight:600}
.filter-pane .country-tab,.filter-pane .filter-chip,.filter-pane .atlas-tag{--tag-stroke:1px;display:flex;align-items:center;justify-content:center;gap:5px;width:auto;height:auto;min-width:0;max-width:100%;min-height:34px;margin:0;padding:7px 11px;border:1px solid #ddd;border-radius:999px;background:#fff;color:#292929;font-size:12px;font-weight:500;line-height:1.3;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.filter-pane .country-tab:hover,.filter-pane .filter-chip:hover,.filter-pane .atlas-tag:hover{background:#f6f6f6;transform:none}
.filter-pane .emoji{font-size:15px}
.atlas-toolbar .map-options .atlas-tag{height:var(--search-island-height);min-height:var(--search-island-height)}
.atlas-toolbar .map-options .atlas-tag>.icon{width:16px;height:16px;stroke-width:1.8}
.selected-filters{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.selected-filters[hidden]{display:none}
#split-explore-filters .explore-active-tags:not([hidden]){margin-bottom:8px}
.selected-filter-close{width:12px;height:12px;margin-left:1px;stroke-width:1.5}
.atlas-tag[aria-pressed=true],.atlas-toolbar .country-tab.active,.atlas-toolbar .filter-row .filter-chip.active{--tag-stroke:1px}
:is(#filter-pane,#selected-filters) button:is(.atlas-tag,.filter-chip,.country-tab)[aria-pressed=true]{
 border-color:#111;background:#fff;color:#111
}
#selected-filters button[aria-pressed=true]{--tag-stroke:2px}
.map-tools:has(#map-settings-panel:not([hidden])){z-index:1770}
.map-settings{--settings-button-height:38px;position:relative;flex:0 0 auto}
#settings-button{min-height:var(--settings-button-height);box-shadow:0 2px 8px #0000000a}
#settings-button>.icon{width:17px;height:17px;stroke-width:1.5}
.map-settings-panel{position:absolute;bottom:calc(100% + 10px);right:0;z-index:1;display:flex;flex-direction:column;width:284px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 170px);border:1px solid var(--workspace-popover-border);border-radius:19px;background:#fff;box-shadow:0 7px 30px #00000016;color:#111}
.map-settings-panel[hidden]{display:none}
.map-settings-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;border-radius:inherit}
.map-settings-panel h2{margin:0 0 14px;font-size:17px;font-weight:550;line-height:1.2;letter-spacing:-.2px}
.map-settings-section{display:grid;gap:12px;min-width:0}
.map-settings-section+.map-settings-section{margin-top:14px;padding-top:12px;border-top:1px solid #eee}
.map-settings-section h3{margin:0;color:#222;font-size:13px;font-weight:550;line-height:1.4}
.map-settings-panel fieldset{display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}
.map-settings-panel legend{margin:0 0 8px;padding:0;color:#777;font-size:11px}
.map-settings-panel label{display:flex;align-items:center;gap:8px;color:#222;font-size:12px;font-weight:400;line-height:1.4;cursor:pointer}
.map-settings-panel input:is([type=radio],[type=checkbox]){flex:0 0 auto;width:15px;height:15px;margin:0;accent-color:#222}
.map-settings-panel small{font-size:11px;line-height:1.4;color:#777}
.map-settings-actions{gap:7px}
.map-settings-actions .atlas-tag{justify-content:flex-start;min-width:0;font-size:12px;text-align:left;white-space:normal}
.leaflet-container .photo-marker.is-selected,.leaflet-container .photo-cluster.is-selected{z-index:3000000!important}
.leaflet-container.is-map-overview .photo-marker.is-selected>.photo-pin>.pin-label,.leaflet-container.is-map-overview .photo-cluster.is-selected>.photo-stack>.cluster-label{opacity:1;visibility:visible}
@media(min-width:1500px){:root{--places-base-width:396px}}
@media(max-width:1240px) and (min-width:761px){:root{--places-base-width:360px}.atlas-toolbar .map-options .atlas-tag{font-size:11px;padding-left:9px;padding-right:9px}.atlas-toolbar .map-options{gap:5px}}
@media(max-width:760px){
 body{
  --filter-base-width:clamp(126px,42vw,290px);
 }
 #atlas-toolbar{left:var(--island-left);gap:5px}
 body.places-island-collapsed #map-error{
  top:calc(var(--island-panels-top) + 42px);
  left:calc(var(--island-left) + var(--places-inset));right:var(--island-margin)
 }
 .filter-pane-inner{--filter-pane-inline-padding:12px;padding-block:8px 15px}
 .filter-pane .country-tab,.filter-pane .filter-chip,.filter-pane .atlas-tag{font-size:11px;min-height:32px;padding:6px 9px;gap:4px}
 .filter-pane .emoji{font-size:14px}
 .atlas-toolbar .map-options{gap:6px}
 .atlas-toolbar .map-options .atlas-tag{font-size:11px;padding-left:10px;padding-right:10px}
 body[data-mobile-view=list] .map-tools{bottom:calc(var(--mobile-dock-bottom) + 4px);z-index:1650}
 body[data-mobile-view=list] .map-navigation{display:none}
 .mobile-dock{bottom:var(--mobile-dock-bottom);left:calc(var(--island-left) + var(--filter-island-offset));right:auto;transform:none}
 body:is(.detail-open,[data-places-filters=pinned],:not(.places-island-collapsed)) .mobile-dock{display:none}
 body:is([data-places-filters=pinned],:not(.places-island-collapsed)) .map-tools{bottom:var(--island-margin)}
 body:not(.places-island-collapsed) #island-scroll-top{bottom:52px}
 body.detail-open .map-tools{display:none}
 .map-settings{position:static}
 .map-settings-panel{bottom:calc(var(--settings-button-height) + 10px);max-height:calc(100dvh - var(--toolbar-bottom) - var(--mobile-dock-bottom) - var(--settings-button-height) - 80px)}
}
@media(max-width:420px){
 .mobile-dock button{padding-inline:9px}
 .atlas-toolbar .map-options{gap:4px}
 .atlas-toolbar .map-options .atlas-tag{gap:5px;padding-inline:7px}
}
.atlas-toolbar[data-toolbar-density]:not([data-toolbar-density=full]) .map-options .atlas-tag{
 width:var(--search-island-height);padding:0;
}
.atlas-toolbar[data-toolbar-density]:not([data-toolbar-density=full]) .map-options .atlas-tag>span{display:none}
.atlas-toolbar.toolbar-size-probe{
 position:fixed;inset:0 auto auto 0;display:flex;flex-flow:row nowrap;
 width:max-content;max-width:none;visibility:hidden;pointer-events:none;transition:none;
}
.toolbar-size-probe>.map-options{flex:none;width:auto;max-width:none;padding:0;flex-wrap:nowrap}
