/* Gold Map Plus · premium feel: smooth transitions, refined tap/hover feedback, stacked-layer chooser, active-layer legend, layer info sheet.
   All motion is disabled under prefers-reduced-motion. */
.btn,.tbtn,.lrow,.lm-top button,.colhdr button,.stk-it,.lyi{transition:transform .14s cubic-bezier(.2,.7,.3,1),background-color .18s,box-shadow .18s}
.btn:active,.tbtn:active,.stk-it:active,.lyi:active{transform:scale(.94)}
@media (hover:hover){.tbtn:hover,.btn:hover{box-shadow:0 8px 28px rgba(20,23,28,.2);transform:translateY(-1px)}.lrow:hover .sw{transform:scale(1.18)}}
.lrow .sw{transition:transform .18s}
.ox-ctl.open{animation:lmIn .26s cubic-bezier(.2,.8,.25,1) both}
@keyframes lmIn{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:none}}
#panel:not(.hide){animation:pnIn .26s cubic-bezier(.2,.8,.25,1) both}
@keyframes pnIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.leaflet-popup.pp-anim .leaflet-popup-content-wrapper,.leaflet-popup.pp-anim .leaflet-popup-tip-container,.maplibregl-popup.pp-anim .maplibregl-popup-content{animation:ppIn .22s cubic-bezier(.2,.8,.25,1) both;transform-origin:50% 100%}
@keyframes ppIn{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
.leaflet-fade-anim .leaflet-popup{transition:opacity .2s linear}
#map3d.in{animation:m3In .45s ease both}
@keyframes m3In{from{opacity:0}to{opacity:1}}
.lrow input{transition:transform .12s}.lrow input:active{transform:scale(.9)}
/* layer info button + sheet */
.lyi{flex:none;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);background:#fff;color:#5b6472;font:700 13px Georgia,serif;cursor:pointer;padding:0}
.lyi:hover{background:#fff6dd;color:#7a4f06}
#lyModal{position:fixed;inset:0;z-index:2000;background:rgba(10,12,16,0);display:flex;align-items:flex-end;justify-content:center;pointer-events:none;transition:background .25s}
#lyModal.open{background:rgba(10,12,16,.35);pointer-events:auto}
.lym{background:#fff;max-width:560px;width:100%;max-height:78vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px 18px 22px;transform:translateY(100%);transition:transform .3s cubic-bezier(.2,.8,.25,1);position:relative;font-size:15px}
#lyModal.open .lym{transform:none}
@media(min-width:721px){#lyModal{align-items:center}.lym{border-radius:18px}}
.lym-x{position:absolute;right:10px;top:10px;border:0;background:#f1f3f6;border-radius:50%;width:34px;height:34px;cursor:pointer}
.lym-h{display:flex;gap:8px;align-items:center;padding-right:40px}.lym-h i{width:16px;height:16px;border-radius:50%;flex:none}
.lym-n{color:var(--mute);font-size:14px}
.refh{font-weight:700;font-size:13px;margin-top:8px;color:#5b6472;text-transform:uppercase;letter-spacing:.04em}
.refs{margin:4px 0 0;padding-left:18px;font-size:14px}.refs .yr{color:var(--mute)}
details.lyinfo{margin-top:8px;border-top:1px solid var(--line);padding-top:6px;font-size:13.5px}
details.lyinfo summary{cursor:pointer;font-weight:600;color:#7a4f06}
details.lyinfo p{margin:6px 0}
/* stacked-feature chooser */
.pp.stk .stk-it{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 8px;margin:5px 0;cursor:pointer;font:inherit}
.pp.stk .stk-it:hover{background:#fbf5e6}
.pp.stk .stk-it i{width:14px;height:14px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.15)}
.pp.stk .stk-it span{display:flex;flex-direction:column;min-width:0}.pp.stk .stk-it small{color:var(--mute)}
/* active-layer legend */
#activeLegend{position:fixed;left:10px;bottom:max(64px,calc(env(safe-area-inset-bottom) + 64px));z-index:1100;background:rgba(255,255,255,.96);border-radius:12px;box-shadow:var(--shadow);width:min(270px,62vw);font-size:13px;overflow:hidden;transition:max-height .3s ease}
#activeLegend .al-h{display:flex;align-items:center;gap:6px;padding:7px 10px;cursor:pointer;user-select:none}
#activeLegend .al-c{margin-left:auto;transition:transform .25s}
#activeLegend.collapsed .al-c{transform:rotate(-90deg)}
#activeLegend .al-list{max-height:34vh;overflow:auto;padding:0 6px 6px;transition:max-height .3s ease,opacity .25s}
#activeLegend.collapsed .al-list{max-height:0;opacity:0;padding-bottom:0}
.al-r{display:flex;align-items:center;gap:6px;padding:3px 4px;animation:alIn .25s ease both}
.al-r i{width:11px;height:11px;border-radius:50%;flex:none}.al-r span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.al-r button{border:0;background:none;color:#8a8f98;cursor:pointer;font-size:12px;padding:2px 4px}
@keyframes alIn{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
.agt td{vertical-align:top}.agt tr.hl{background:#fff6dd}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:middle}
body.night #activeLegend,body.night .lym{background:#1b1f26;color:#e8eaed}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
