/* Visible one-tap frequency choices; native radios keep touch and keyboard behavior. */
.frequency-options{border:0;padding:0;margin:0;min-width:0}
.frequency-options legend{padding:0;margin-bottom:10px;font-size:14px;line-height:20px}
.frequency-segments{display:flex;flex-wrap:wrap;gap:8px;max-height:176px;overflow:auto;padding:3px;margin:-3px}
.frequency-option{position:relative;flex:1 0 80px;max-width:160px;cursor:pointer}
.frequency-option input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.frequency-option>span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:16px;font-weight:600;transition:background .16s,color .16s,border-color .16s}
.frequency-option input:checked+span{background:var(--brand);border-color:var(--brand);color:#fff}
.frequency-option input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.frequency-option:hover>span{border-color:var(--brand)}

.selection-tray{position:absolute;left:18px;top:80px;width:294px;max-width:calc(100% - 82px);z-index:450;isolation:isolate}
.selection-summary{display:flex;align-items:center;gap:12px;min-width:0}
.selection-summary>.selection-stack{flex:1;min-width:0;width:auto}
.selection-clear.selection-icon-button{width:44px;height:44px;flex:0 0 44px;background:#fff;border:1px solid #dae5f5;border-radius:12px;color:var(--brand-dark);box-shadow:0 2px 8px #183a6614;cursor:pointer;touch-action:manipulation}
.selection-clear.selection-icon-button:hover{background:var(--brand-soft);border-color:var(--brand)}
.selection-clear:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.selection-stack{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:70px;padding:10px 12px;border:1px solid #dae5f5;border-radius:12px;background:#fff;text-align:left;box-shadow:0 4px 18px #183a6620;touch-action:manipulation}
.selection-stack::before,.selection-stack::after{content:'';position:absolute;inset:0;z-index:-1;background:#edf4ff;border:1px solid #cfdef2;border-radius:12px;pointer-events:none;opacity:0;transition:transform .2s,opacity .2s}
.selection-tray[data-layers="2"] .selection-stack::before,.selection-tray[data-layers="3"] .selection-stack::before{opacity:1;transform:translate(4px,4px)}
.selection-tray[data-layers="3"] .selection-stack::after{opacity:1;transform:translate(8px,8px);z-index:-2;background:#e1ecfa}
.selection-stack-art{display:block;width:44px;height:46px;border-radius:7px;overflow:hidden;flex:none;background:var(--brand-soft)}
.selection-stack-art>img{width:100%;height:100%;object-fit:cover}
.selection-stack-art>.media-placeholder-tile,.selection-stack-art>.no-photo{width:100%;height:100%;min-height:0;border-radius:0;display:grid;place-items:center}
.selection-stack-art .icon{width:22px;height:22px}
.selection-stack-copy{display:block;min-width:0;flex:1}
.selection-stack-copy strong{display:block;font-size:14px;line-height:20px;color:var(--brand-dark)}
.selection-stack-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:18px;color:var(--muted);margin-top:4px}
.selection-stack>.icon{width:18px;height:18px;color:var(--brand);flex:none}
.selection-tray.expanded{width:340px}
.selection-panel{display:flex;flex-direction:column;margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #173e6a24;max-height:min(480px,calc(var(--selection-map-height,720px) - var(--selection-top,80px) - 112px));overflow:hidden}
.selection-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);flex:none}
.selection-panel-heading>div{min-width:0}.selection-panel-heading strong{font-size:15px;line-height:20px;display:block}.selection-panel-heading small{display:block;font-size:12px;line-height:18px;color:var(--muted);margin-top:4px}
.selection-icon-button{display:grid;place-items:center;width:40px;height:40px;padding:8px;background:transparent;border:0;border-radius:8px;flex:none;color:var(--muted)}
.selection-icon-button:hover{background:var(--brand-soft);color:var(--brand)}
.selection-icon-button .icon{width:18px;height:18px}
.selection-items{list-style:none;padding:0;margin:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.selection-items>li{display:flex;align-items:center;gap:4px;padding:8px;border-bottom:1px solid var(--line)}
.selection-items>li:last-child{border-bottom:0}
.selection-item-open{display:flex;align-items:flex-start;gap:10px;min-width:0;flex:1;padding:6px;border:0;border-radius:8px;background:#fff;text-align:left}
.selection-item-open:hover{background:var(--brand-soft)}
.selection-item-open>span:last-child{min-width:0}.selection-item-open strong{display:block;font-size:14px;line-height:20px}.selection-item-open small{display:block;margin-top:4px;font-size:12px;line-height:18px;color:var(--muted);overflow-wrap:anywhere}
.selection-item-icon{display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);width:28px;height:28px;border-radius:6px;flex:none;margin-top:2px}.selection-item-icon .icon{width:16px;height:16px}
.selection-item-open .selection-item-meta{font-size:11px;line-height:16px}
.selection-coordinate-note{padding:10px 14px;border-top:1px solid var(--line);font-size:12px;line-height:18px;flex:none}
.selection-panel-footer{display:grid;gap:8px;padding:12px;border-top:1px solid var(--line);flex:none}
.selection-panel-footer .button{min-height:40px;padding:8px 10px;font-size:13px;gap:8px}
.selection-flight{position:absolute;z-index:1100;pointer-events:none;user-select:none;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 12px 44px #1b1b1b26;transform-origin:0 0}
.selection-flight .gallery-track{scroll-behavior:auto}
.map-workspace.list-view .selection-tray{position:relative;inset:auto;width:auto;max-width:none;margin:12px 16px 16px;flex:none}
.map-workspace.list-view .selection-summary{max-width:376px}
.map-workspace.list-view .selection-panel{position:absolute;top:70px;left:0;margin-top:14px;width:min(360px,100%);max-height:min(480px,max(180px,calc(var(--selection-viewport-height,720px) - 190px)))}
@media(max-width:680px){.selection-tray{left:12px;width:262px;max-width:calc(100% - 70px)}.selection-stack{gap:8px;padding:8px 10px;min-height:64px}.selection-stack-art{width:36px;height:40px}.selection-stack-copy strong{font-size:13px}.selection-stack-copy small{font-size:12px}.selection-tray.expanded{width:310px}.selection-panel-heading{padding:10px}.selection-item-icon{display:none}.selection-item-open{padding:4px}.selection-items>li{padding:8px 6px}.selection-panel-footer{padding:10px}.selection-panel-footer .button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.frequency-option>span,.selection-stack::before,.selection-stack::after{transition:none}}
