/* The photograph stays intact; light and dusk are composited beneath the map controls. */
.map-frame,.map-dialog-plan{--map-night:0;--map-sunset:0;--map-dome-light:0;--map-house-light:0;--map-near-light:0;--map-far-light:0;--map-tree-light:0}
.map-evening-layer{position:absolute;inset:0;overflow:hidden;z-index:2;pointer-events:none;contain:layout paint;isolation:isolate}
.map-evening-layer>div,.map-light-scene{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.map-last-sun{background:linear-gradient(125deg,#ffe1aaad,transparent 53%,#cc7b4d45);mix-blend-mode:soft-light;opacity:var(--map-sunset)}
.map-night-veil{background:linear-gradient(145deg,#0c182b 0%,#102630 47%,#071421 100%);opacity:calc(var(--map-night)*.77);mix-blend-mode:multiply}
.map-night-vignette{background:radial-gradient(ellipse at 50% 56%,transparent 25%,#06111d65 86%,#050e19aa);opacity:calc(var(--map-night)*.64)}
.map-moon-haze{background:radial-gradient(ellipse at 83% 3%,#a9bdca1f,transparent 58%);opacity:var(--map-night);mix-blend-mode:screen}
.map-light-scene{display:block;overflow:hidden}
.map-dome-lights{opacity:var(--map-dome-light)}
.map-house-lights{opacity:var(--map-house-light)}
.map-lamp-near{opacity:var(--map-near-light)}
.map-lamp-far{opacity:var(--map-far-light)}
.map-tree-lights{opacity:var(--map-tree-light)}
.map-frame[data-map-time] .map-gazebo,.map-dialog-plan[data-map-time] .map-gazebo{filter:drop-shadow(0 2px 3px #17382836) drop-shadow(0 0 13px rgb(255 195 101 / calc(var(--map-dome-light)*.7)))}
.map-frame[data-map-time] .map-gazebo:focus-visible,.map-dialog-plan[data-map-time] .map-gazebo:focus-visible{outline:2px solid #fff1c9;outline-offset:4px}
.map-frame[data-season=winter] .map-night-veil,.map-dialog-plan[data-season=winter] .map-night-veil{opacity:calc(var(--map-night)*.69);background:linear-gradient(145deg,#11263f,#173449 48%,#0a1e32)}
.map-frame[data-season=winter] .map-moon-haze,.map-dialog-plan[data-season=winter] .map-moon-haze{background:radial-gradient(ellipse at 83% 3%,#d4e7f536,transparent 65%)}
.map-time-switch{position:absolute;top:17px;left:17px;z-index:4;display:flex;gap:3px;padding:4px;border:1px solid #d7d9c9;border-radius:5px;background:#faf7eef5;box-shadow:0 3px 16px #1b362c25}
.map-time-switch button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border-radius:3px;font-family:var(--sans);font-size:14px;line-height:1.3;color:#3d5545;transition:background .2s,color .2s}
.map-time-switch button[aria-pressed=true]{background:#1c3c30;color:#fff8e6}
.map-time-switch button[aria-pressed=false]:hover{background:#e7eadc}
.map-time-switch button:focus-visible{outline:2px solid #a47a3b;outline-offset:2px}
.map-time-switch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.map-light-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
@media(max-width:700px){.map-time-switch{top:8px;left:8px;padding:3px;gap:2px}.map-time-switch button{min-height:32px;padding:6px 9px;gap:5px;font-size:14px}.map-time-switch svg{width:15px;height:15px}}
@media(max-width:480px){.map-time-switch{top:8px;left:8px;padding:3px;gap:2px}.map-time-switch button{width:32px;min-height:32px;padding:7px;gap:0}.map-time-switch button span{display:none}.map-time-switch svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.map-time-switch button{transition:none}}
