/* Shared exhibit palette. Warm and cool map materials still follow the light preference. */
:root { --exhibit-yellow:#e7bc48; --exhibit-black:#1b1c1c; }
body[data-map-tone] .app-nav { background:var(--exhibit-black); border-color:#353633; }
body[data-map-tone] .app-nav :is(.nav-item,.nav-about,.nav-brand) { color:#d8dad5; }
body[data-map-tone] .app-nav :is(.nav-item:not(.active),.nav-about):hover { background:#353735; color:#fff; }
body[data-map-tone] .app-nav .nav-item.active { color:#fff; background:#343531; box-shadow:inset 3px 0 var(--exhibit-yellow); }
body[data-map-tone] .app-nav .nav-item.active .icon { color:var(--exhibit-yellow); }
body[data-map-tone] .app-nav button:focus-visible { outline-color:var(--exhibit-yellow); }
#map-tools-toggle { display:none; }
body[data-map-tone] .walk-heading { background:var(--exhibit-black); color:#fff; }
body[data-map-tone] .walk-heading :is(h2,h3) { color:#fff; }
body[data-map-tone] .walk-heading :is(small,.walk-eyebrow) { color:#e4ca83; }
body[data-map-tone] .walk-heading :is(button,p) { color:#efefe9; }
body[data-map-tone] .walk-heading button { background:#333531; border-color:#62645d; }
body[data-map-tone] .timeline { background:#fbfbf8; border-color:#d1d3cb; }
.timeline-top { gap:10px; }
.time-readout { flex-wrap:wrap; column-gap:8px; row-gap:1px; }
body[data-map-tone] .time-readout strong { font-weight:650; letter-spacing:-.07em; color:var(--exhibit-black); }
.solar-altitude:not([hidden]) { display:flex; align-items:center; justify-content:center; gap:6px; margin-left:auto; white-space:nowrap; color:#52544f; font-size:11px; }
.solar-altitude b { color:#262823; font-variant-numeric:tabular-nums; }
.altitude-dial { position:relative; display:block; flex:none; width:20px; height:20px; overflow:hidden; border-radius:50%; background:linear-gradient(to bottom,#f4e4ae 48%,#81837a 48% 52%,#e6e7e1 52%); }
.altitude-dial::after { content:""; position:absolute; left:50%; top:calc(50% - 1px); width:8px; height:2px; border-radius:2px; background:#33352d; transform-origin:left center; transform:rotate(calc(-1 * var(--elevation,0deg))); }
.below-horizon .altitude-dial { background:linear-gradient(to bottom,#c4c9cc 48%,#737775 48% 52%,#e5e6e1 52%); }
body[data-map-tone] .play-button { background:var(--exhibit-black); color:var(--exhibit-yellow); }
.walk-route-card .walk-route-copy { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.walk-route-card .walk-shade-stat { flex:none; }
.walk-sketch { width:clamp(48px,5vw,68px); height:auto; flex:none; background:#efefeb; color:#555953; border-radius:8px; }
.walk-sketch polyline { fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.walk-sketch .other { color:#999d94; }
.walk-sketch .other polyline { stroke-width:1.2; stroke-dasharray:3 2; }
.walk-sketch circle { fill:#fff; stroke:currentColor; stroke-width:1.5; }
body[data-map-tone] .walk-route-card.selected { border-color:#66685e; box-shadow:inset 3px 0 var(--exhibit-yellow); background:#fffefa; }
.walk-route-card.selected .walk-sketch { color:var(--exhibit-yellow); background:#272925; }
.walk-route-card.selected .walk-sketch circle { fill:#272925; }
.walk-route-card { align-items:center; }
@media(max-width:760px) {
  body[data-map-tone] .app-nav .nav-item.active { box-shadow:inset 0 2px var(--exhibit-yellow); }
  .solar-altitude>span { display:grid; font-size:9px; line-height:1.2; }
  .solar-altitude b { font-size:13px; }
}
@media(max-width:640px) {
  .app-header { gap:4px; left:12px; right:12px; top:10px; }
  .app-header>.journey-role-switch,.app-header>.journey-switch { margin-left:0; }
  .app-header .wordmark { font-size:clamp(14px,4vw,18px); }
  .app-header .journey-switch>button,.app-header .journey-role-switch>button { min-height:36px; padding:5px 7px; }
  #map-tools-toggle { display:grid; place-items:center; flex:none; pointer-events:auto; width:40px; height:40px; padding:9px; border:1px solid #d4d5cc; border-radius:50%; background:#fff; color:#232522; }
  #map-tools-toggle svg { width:19px; fill:currentColor; }
  #map-tools-toggle[aria-expanded="true"] { color:var(--exhibit-yellow); background:var(--exhibit-black); }
  #map-header-actions { display:none; position:absolute; right:0; top:calc(100% + 6px); min-width:156px; border:1px solid #cccec5; border-radius:14px; padding:5px; box-shadow:0 8px 25px #1a201831; background:#fff; }
  #map-tools-toggle[aria-expanded="true"] + #map-header-actions { display:grid; gap:2px; }
  .app-header:has(#map-tools-toggle[aria-expanded="true"]) { z-index:32; }
  #map-header-actions :is(#sun-camera-open,#source-button,#export-button) { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:44px; padding:8px 12px; border:0; border-radius:9px; background:#f5f5f1; box-shadow:none; font-size:12px; color:#262925; }
  #map-header-actions #sun-camera-open span { display:inline; }
  #map-header-actions #source-button .status-dot { display:none; }
  #map-header-actions #source-button svg { order:-1; }
  #map-header-actions #export-button::after { content:"保存地图图片"; }
}
@media(max-width:370px) {
  .timeline-top { gap:5px; }
  .time-readout { flex-direction:column; }
}

.map-readouts { display:contents; }
#workspace .timeline { overflow:hidden; padding:0; border-radius:20px; box-shadow:0 8px 30px #171a181c; }
#workspace .timeline #shadow-map-legend {
  position:static; display:flex; align-items:center; flex-direction:row; flex-wrap:wrap; justify-content:space-between;
  max-width:none; width:auto; height:auto; margin:0; padding:11px 18px; gap:5px 12px;
  color:#f2f3ef; background:#262725; border:none; border-radius:0; box-shadow:none;
}
#workspace .timeline #shadow-legend-time { color:#fff; font-size:11px; font-weight:600; }
#workspace .timeline #shadow-legend-time::before { content:""; display:inline-block; width:12px; height:3px; background:var(--exhibit-yellow); vertical-align:middle; margin-right:7px; }
#workspace .timeline .shadow-legend-items span { color:#e3e5dc; }
#workspace .timeline #shadow-legend-note { color:#d0d2c7; font-size:10px; }
#workspace .timeline #shadow-map-legend[data-need="shade"] .shadow-legend-items span:first-child { color:#f0d5b4; }
#workspace .timeline #shadow-map-legend[data-need="sun"] .shadow-legend-items span:nth-child(2) { color:#d2e7f0; }
#workspace .timeline #shadow-map-legend[data-available="true"] #shadow-legend-note { display:none; }
.timeline .timeline-top { padding:13px 18px 0; }
.timeline .timeline-bottom { margin:8px 0 0; padding:0 18px 12px; }
#workspace .timeline #map-hint { position:static; transform:none; max-width:none; width:auto; pointer-events:none; border-radius:0; border:0; border-top:1px solid #e4e5de; margin:0; padding:6px 18px; color:#61655c; background:#f7f7f3; text-align:left; font-size:10px; line-height:1.4; }
.timeline:has(#shadow-map-legend[data-available="false"]) #map-hint { display:none; }
#workspace #point-card { background:#fff; border:1px solid #d4d6cf; padding:15px 17px 13px; border-radius:19px; }
#point-card .eyebrow { display:inline-flex; align-items:center; gap:9px; color:#484d44; }
#point-card .eyebrow::before { content:""; width:13px; height:3px; background:var(--exhibit-yellow); }
#point-time { display:inline-block; padding-left:8px; border-left:1px solid #c5c7be; font-variant-numeric:tabular-nums; }
#point-card h2 { margin:9px 0 5px; padding-right:20px; color:#232522; }
#point-card .point-bottom { margin:7px 0; padding:0; }
.point-next { display:flex; gap:6px; }
.point-next button { flex:1; padding:8px; min-height:40px; background:#eeefea; color:#252922; font-size:12px; border:1px solid #dfe0d8; border-radius:9px; }
.point-next button:first-child { background:#252724; color:#fff; border-color:#252724; }
.point-next button span { color:var(--exhibit-yellow); padding-left:4px; }
body[data-map-tone] .activity-demo { border-radius:12px; background:#f0f0e9; color:#2e3329; padding:12px; }
body[data-map-tone] .activity-demo span { color:#555b4e; }
body[data-map-tone] .walk-heading .walk-eyebrow { display:flex; align-items:center; gap:7px; margin-bottom:5px; color:#d8dbcd; letter-spacing:.05em; font-size:10px; }
.walk-heading .walk-eyebrow::before { content:""; width:12px; height:3px; background:var(--exhibit-yellow); }
body[data-map-tone] .walk-heading #activity-title { font-size:clamp(19px,2vw,24px); line-height:1.25; }
.stay-summary { display:flex; gap:12px; justify-content:space-between; align-items:center; color:#fff; background:#272925; padding:14px 15px; border-radius:13px; margin:5px 0 15px; }
.stay-summary>div { display:grid; gap:4px; }
.stay-summary>div+div { text-align:right; }
.stay-summary span { color:#d3d5cd; font-size:10px; }
.stay-summary strong { font-size:16px; }
.stay-summary b { color:var(--exhibit-yellow); font-size:22px; font-variant-numeric:tabular-nums; }
.stay-summary small { font-size:11px; font-weight:500; }
body[data-map-tone] .stay-strategy.selected { background:#fffefa; border-color:#94988d; box-shadow:inset 3px 0 var(--exhibit-yellow); }
body[data-map-tone] .stay-strategy.selected .stay-choice em { background:#262823; color:#fff; border-radius:15px; padding:4px 9px; }
body[data-map-tone] .va-score { background:#262725; color:#fff; border:1px solid #3a3d37; }
body[data-map-tone] .va-score .va-score-main strong { color:#f0cf70; }
body[data-map-tone] .app-header .wordmark { display:inline-flex; align-items:center; min-height:34px; padding:4px 11px; border-radius:9px; background:#252724; color:#fff; text-shadow:none; letter-spacing:.02em; }
body[data-map-tone] .app-header .wordmark::before { content:""; width:10px; height:3px; margin-right:6px; background:var(--exhibit-yellow); }
body[data-map-tone] .quick-cities { width:max-content; max-width:100%; overflow-x:auto; scrollbar-width:none; background:#f8f8f5; border:1px solid #c9ccc3; border-radius:13px; padding:3px; gap:2px; box-shadow:0 4px 12px #191c1715; }
.quick-cities::-webkit-scrollbar { display:none; }
body[data-map-tone] .quick-cities button { flex:none; min-height:32px; padding:5px 10px; border:0; border-radius:9px; box-shadow:none; color:#474c43; background:transparent; }
body[data-map-tone] .quick-cities .selected { background:#282a26; color:#fff; }
body[data-map-tone] .quick-cities .selected::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--exhibit-yellow); }
body[data-map-tone] .quick-cities button:hover:not(.selected) { background:#e7e9e1; }
@media(max-width:760px) {
  #workspace .map-readouts { position:absolute; left:12px; right:12px; bottom:24px; z-index:7; display:flex; flex-direction:column; gap:7px; max-height:calc(100% - 68px); pointer-events:none; }
  #workspace .map-readouts>.surface { position:static; transform:none; width:100%; min-width:0; margin:0; pointer-events:auto; }
  #workspace .map-readouts>#point-card { min-height:0; overflow:auto; }
  #workspace .map-readouts>.timeline { flex:none; }
  #workspace .timeline #shadow-map-legend { padding:8px 13px; gap:4px 8px; }
  .timeline .timeline-top { padding:10px 13px 0; }
  .timeline .timeline-bottom { margin-top:6px; padding:0 13px 9px; }
  #workspace .timeline #map-hint { padding:4px 13px; }
  .point-next button { min-height:44px; }
  body[data-map-tone] .app-header .wordmark { min-height:36px; padding:5px 8px; border-radius:8px; }
  body[data-map-tone] .app-header .wordmark::before { width:6px; margin-right:4px; }
}
@media(max-height:550px) and (max-width:760px) {
  #workspace .map-readouts { bottom:5px; }
  #workspace .map-readouts:has(#point-card:not([hidden]))>.timeline { display:none; }
}
