:root{--paper:#fffffff2;--ink:#18343c;--accent:#166d78}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:Almarai;background:#d4d9d7;color:var(--ink)}#scene{width:100%;height:100%;display:block}header{position:fixed;z-index:8;inset:15px 16px auto;display:flex;justify-content:space-between;pointer-events:none}.identity,header button,nav,.dock label,#categories button,#placeCard{background:var(--paper);border:1px solid #fff;box-shadow:0 13px 38px #1b3d4830;backdrop-filter:blur(18px)}.identity{padding:10px 15px;border-radius:15px}.identity strong,.identity small{display:block}.identity strong{font-size:17px}.identity small{font-size:9px;color:#71868b;margin-top:4px}header button{pointer-events:auto;width:44px;height:44px;border-radius:13px;font:20px Almarai;color:var(--accent)}nav{position:fixed;z-index:8;right:16px;top:84px;border-radius:13px;padding:5px;display:flex;gap:4px;max-width:calc(100% - 32px);overflow:auto}nav button,#categories button{border:0;background:transparent;border-radius:9px;padding:8px 10px;font:10px Almarai;white-space:nowrap;color:var(--ink)}nav button.on,#categories button.on{background:var(--accent);color:#fff}.dock{position:fixed;z-index:9;bottom:16px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 28px));display:grid;gap:7px}.dock label{height:47px;border-radius:13px;display:flex;align-items:center;gap:9px;padding:0 13px}.dock input{border:0;outline:0;background:transparent;flex:1;min-width:0;font:12px Almarai}.dock span{font-size:9px;color:#72878d}#categories{display:flex;gap:5px;overflow:auto}#categories button{flex:none;border:1px solid #fff;border-radius:99px;background:var(--paper)}#markers{position:fixed;inset:0;z-index:4;pointer-events:none}.pin{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;border:0;background:none}.pin i{width:29px;height:29px;display:grid;place-items:center;background:var(--c);color:#fff;border:2px solid #fff;border-radius:50% 50% 50% 7px;transform:rotate(-45deg);box-shadow:0 5px 13px #17333c55;font-style:normal}.pin i span{transform:rotate(45deg)}.pin em{display:none;position:absolute;right:34px;top:-3px;background:#fff;color:#253e45;font:700 9px Almarai;border-radius:8px;padding:5px 8px;white-space:nowrap;box-shadow:0 6px 15px #17333c33;font-style:normal}.pin.active em,.pin:hover em{display:block}.pin.off{display:none}#placeCard{position:fixed;z-index:11;left:16px;bottom:120px;width:310px;max-width:calc(100% - 32px);border-radius:17px;padding:10px;display:none;align-items:center;gap:10px}#placeCard.show{display:flex}#placeCard img{width:58px;height:58px;border-radius:12px;object-fit:cover;background:#cab88f}#placeCard b,#placeCard small{display:block}#placeCard b{font-size:13px}#placeCard small{font-size:9px;color:#71868b;margin-top:5px}.night{--paper:#111a2ee8;--ink:#fff;--accent:#8068dc}.night .pin em{background:#111a2e;color:#fff}@media(max-width:600px){.identity strong{font-size:14px}nav{top:76px}.pin em{display:none!important}.pin.active em{display:block!important}}

#roadTour{position:fixed;top:136px;left:16px;z-index:10;width:min(290px,calc(100% - 32px));color:var(--ink);background:var(--paper);border:1px solid #fff7;border-radius:15px;box-shadow:0 12px 30px #19343d37;font:12px system-ui;overflow:hidden}#roadTour summary{cursor:pointer;padding:.7rem 1rem;font-weight:700}#roadTour>div{display:grid;gap:.55rem;padding:.15rem .85rem .8rem}#roadTour label{display:grid;gap:.25rem}#roadTour select,#roadTour button{font:inherit;padding:.37rem .5rem;border:1px solid #7d9fa4;color:var(--ink);background:var(--paper);border-radius:.55rem}#roadTour input{width:100%;accent-color:#187884}#roadTour .road-actions{display:flex;gap:.4rem}#roadTour button[aria-pressed=true]{background:var(--accent);color:#fff}#roadTour small{font-size:.7rem}#placeCard a{display:inline-block;margin-top:.45rem;color:var(--accent);font-size:11px}#placeCard [hidden]{display:none}#closePlace{margin-inline-start:auto;background:transparent;border:0;color:var(--ink);font-size:1.4rem;cursor:pointer}@media(max-width:600px){#roadTour{top:126px}}
#searchSuggestions{background:var(--paper);border:1px solid #b5cfd4;border-radius:12px;padding:.3rem;display:grid;gap:.2rem;max-height:33vh;overflow:auto}#searchSuggestions[hidden]{display:none}#searchSuggestions button{text-align:right;border:0;padding:.5rem .6rem;border-radius:8px;color:var(--ink);background:transparent;font:inherit;cursor:pointer}#searchSuggestions button:hover,#searchSuggestions button:focus-visible{background:var(--accent);color:#fff}

.header-actions{display:flex;align-items:center;gap:.4rem;pointer-events:auto}header #centralView{width:auto;padding-inline:.85rem;font:700 11px system-ui}
.place-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.45rem}#placeCard .place-actions a{margin:0;white-space:nowrap}#placePreview,#placeModel,#landmarkTour button{border:0;border-radius:9px;padding:.4rem .55rem;cursor:pointer;color:#fff;background:#166d78;font:700 11px system-ui}
#landmarkTour{padding:0;width:min(1080px,calc(100% - 24px));height:min(820px,calc(100% - 24px));max-width:none;max-height:none;border:1px solid #ffffff40;border-radius:18px;background:#161c2a;overflow:hidden;color:#fff9ea}#landmarkTour::backdrop{background:#071019b5}#landmarkTour[open]{display:flex;flex-direction:column}#landmarkTour iframe{width:100%; flex:1;min-height:0;border:0}.landmark-bar{display:flex;justify-content:space-between;align-items:center;padding:.55rem .8rem;background:#151e2c;border-bottom:1px solid #ffffff30}.landmark-bar strong{font:700 13px system-ui}.landmark-bar form{margin:0}

#centralGuide{position:fixed;z-index:12;top:136px;right:16px;max-width:min(360px,calc(100% - 32px));padding:.7rem .8rem;background:var(--paper);color:var(--ink);border:1px solid #fff7;border-radius:14px;font:12px system-ui;box-shadow:0 12px 28px #19343d35}#centralGuide strong{display:block;padding:.15rem 0 .45rem}#centralStops{display:flex;flex-wrap:wrap;gap:.35rem}#centralGuide button{padding:.35rem .55rem;border-radius:8px;background:var(--accent);color:white;border:0;font:inherit;cursor:pointer}#closeCentralGuide{margin-top:.55rem}#centralGuide[hidden]{display:none}
header #centralView{width:max-content;max-width:min(42vw,12rem);padding-inline:.75rem;font:700 11px system-ui;white-space:normal;line-height:1.3}header .header-actions{align-items:flex-start;flex-wrap:nowrap}

.map-controls{position:fixed;z-index:3;left:12px;top:28%;display:grid;gap:6px;direction:ltr}
.map-controls button{min-height:38px;min-width:42px;border:1px solid #fff7;border-radius:12px;background:#102539e8;color:#fff;font:700 13px Almarai,system-ui;cursor:pointer}
.map-controls button[data-zoom]{font-size:22px}
.map-controls button[aria-pressed="true"]{background:#166a84}

/* The selected place and its actions share a single translucent surface. */
#placeCard{
  display:none;grid-template-columns:minmax(0,1fr) auto;gap:8px;
  width:min(380px,calc(100% - 32px));padding:11px;border-radius:25px;
  background:linear-gradient(145deg,#f6ffffbf,#c9eff18c 46%,#d7e5f4ab);
  border:1px solid #f9ffffba;
  box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #ffffff69,0 10px 30px #193f5340;
  -webkit-backdrop-filter:blur(18px) saturate(1.5);
  backdrop-filter:blur(18px) saturate(1.5);
}
#placeCard.show{display:grid}
.night #placeCard{background:linear-gradient(145deg,#38506bdd,#17293dd9 48%,#234656c9);border-color:#bfdcfc85;box-shadow:inset 0 1px 1px #dcf1fc80,0 10px 30px #0a132b88;color:#f4fbff}
#placeIdentity{display:flex;align-items:center;gap:10px;min-width:0;text-align:start;background:none;color:inherit;border:0;padding:0;cursor:pointer;font:inherit}
#placeIdentity img{flex:none;width:49px;height:49px;box-shadow:0 1px 5px #122f5460}
#placeCard small{color:#365963;font-size:10px}
.night #placeCard small{color:#c7e1ee}
#placeCard .place-actions{grid-column:1/-1;display:flex;gap:5px;margin:0}
#placeCard .place-actions[hidden]{display:none}
#placeCard .place-actions :is(button,a){flex:1 1 auto;text-align:center;min-height:36px;padding:.45rem .48rem;border-radius:14px;border:1px solid #ffffffa0;background:linear-gradient(#ffffff95,#d5f5fa65);color:#153c50;text-decoration:none;white-space:normal;font:700 11px Almarai,system-ui;cursor:pointer}
#placeCard .place-actions a{display:grid;place-items:center}
.night #placeCard .place-actions :is(button,a){color:#f3fcff;background:linear-gradient(#7594ae67,#31546960);border-color:#e5ffff58}
#placeCard .place-actions [aria-pressed=true]{background:#16778a;color:white}
#placeCard :is(button,a):focus-visible{outline:2px solid #24a7c1;outline-offset:2px}
#searchSuggestions{-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);background:#f1fcffbe}
.night #searchSuggestions{background:#192e45dc}

#topCategories{top:122px;scrollbar-width:none}
#topCategories::-webkit-scrollbar{display:none}
#roadTour,#centralGuide{top:171px}
body.map-focus :is(.identity,#centralView,#districts,#topCategories,.dock,#placeCard,#centralGuide){display:none}
body.map-focus header{justify-content:flex-end}
body.map-focus #roadTour{top:77px}
body:not(.map-focus) .map-controls{top:max(222px,28%)}
#mountainDirectory{
  position:fixed;z-index:13;top:166px;right:16px;width:min(320px,calc(100% - 32px));
  padding:10px;background:#edfaffca;color:#193c4c;backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid #fff9;border-radius:18px;box-shadow:0 10px 25px #19324755;
}
#mountainDirectory[hidden],body.map-focus #mountainDirectory{display:none}
#mountainDirectory>div:first-child{display:flex;align-items:center;justify-content:space-between}
#mountainDirectory :is(input,button){font:inherit;color:inherit;border:0;background:#ffffff45;border-radius:8px;padding:8px}
#mountainDirectory input{width:100%;margin-top:6px}
#mountainList{display:grid;gap:4px;max-height:min(37vh,360px);overflow:auto;margin-top:6px}
#mountainList button{text-align:start;cursor:pointer}
.night #mountainDirectory{
  background:#211634f5;
  color:#f6efff;
  border-color:#bba0e780;
}
.night #mountainDirectory :is(input,button){
  background:#3e285e;
  color:#f6efff;
}
.night #mountainDirectory button:is(:hover,:focus-visible,:active){
  background:#54377d;
}
#placeNature{max-height:96px;overflow:auto}
#districts{overflow:hidden}
#districtScroll{display:flex;gap:4px;min-width:0;overflow:auto;scrollbar-width:none}
#districtScroll::-webkit-scrollbar{display:none}
#districtPinned{display:flex;gap:3px;flex:none;padding-inline-start:3px;border-inline-start:1px solid #838f9a55}
#openPlaceDirectory{background:var(--accent);color:#fff}

#mountainDirectory{top:126px;left:16px;right:auto}
#topCategories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:8px;max-height:43vh;overflow:auto}
#topCategories button{text-align:start}
#topCategories[hidden],#mountainList[hidden],#mountainSearch[hidden],#backPlaceCategories[hidden]{display:none}
#roadTour,#centralGuide{top:126px}
body:not(.map-focus) .map-controls{top:max(178px,28%)}

.atlas-attribution {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0px);
  inset-inline-end: .5rem;
  max-width: calc(100vw - 1rem);
  z-index: 7;
  color: #fff;
  background: #15262eea;
  padding: .22rem .48rem;
  border-radius: .48rem .48rem 0 0;
  font: 9px/1.35 system-ui, sans-serif;
}
.atlas-credit { display: block; font-size: 10px; font-weight: 700; }
.atlas-sources summary { cursor: pointer; padding-block: .18rem; }
.atlas-sources div { display: grid; gap: .22rem; padding-block: .18rem .36rem; }
.atlas-sources a { color: inherit; }


.dock {
  --map-credit-clearance: 43px;
  bottom: max(calc(var(--map-credit-clearance) + env(safe-area-inset-bottom)), var(--map-keyboard-offset, 0px));
  width: min(1160px, calc(100% - 24px));
  grid-template-columns: minmax(278px, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: linear-gradient(170deg,#edf7ff45,#c4ddf321);
  border: 1px solid #fff9;
  border-radius: 16px;
  box-shadow: 0 12px 30px #19343d37;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
body:has(.atlas-sources[open]) .dock { --map-credit-clearance: 79px; }
.map-search-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.dock .map-search-row label {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding-inline: 6px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  backdrop-filter: none;
}
.dock label:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.dock .map-search-row input { color: var(--ink); font-size: max(16px, 1em); }
.dock .map-search-row input::placeholder { color: var(--ink); opacity: .65; }
.dock #count { flex: none; font-size: 10px; color: var(--ink); }
.dock #categories {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x;
  padding: 2px 3px;
}
.dock #categories button {
  min-height: 31px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.3;
  cursor: pointer;
}
.dock #categories.is-dragging { cursor: grabbing; user-select: none; }
.dock #categories.is-dragging button { cursor: inherit; }
.dock #categories button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dock #searchSuggestions { position: absolute; inset: auto 0 calc(100% + 6px); }
@media(max-width:680px) {
  .dock { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dock #count { max-width: 36%; padding-inline-end: 4px; }
}
#streetMotion { position: relative; font: 700 10px system-ui, sans-serif; }
#streetMotion summary {
  list-style: none; cursor: pointer; text-align:center; padding: .65rem .2rem;
  background: var(--paper); color: var(--ink); border: 1px solid #ffffff92; border-radius: 12px;
}
#streetMotion summary::-webkit-details-marker { display: none; }
#streetMotion button { display: block; width: max-content; max-width: 140px; margin-top: .25rem; padding-inline: .5rem; }
#streetMotion button[aria-pressed="false"] { opacity: .65; }
#roadTour.tour-immersive { display:none }

header .identity { display:flex; align-items:center; gap:.42rem; }
header .identity > div { min-width:0; }
.atlas-app-logo {
  width:30px; height:30px; flex:0 0 30px;
  border-radius:50%; object-fit:cover; display:block;
}
body.map-focus header .identity { display:none; }
header .identity strong { white-space:nowrap; font-size:clamp(12px,4vw,16px); }
header .identity small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:390px){
  header .identity { padding-inline:.5rem; }
  .atlas-app-logo { width:26px;height:26px;flex-basis:26px; }
}

#roadTour .tour-places{border-top:1px solid #7d9fa455;padding-top:.15rem}
#roadTour .tour-places summary{padding:.45rem 0}
#roadTour .tour-places label{margin-bottom:.4rem}
#roadTour .tour-places select{max-width:100%;min-width:0}
#roadTour .tour-places [role=status]{display:block;margin-top:.35rem}

#tour-guidance{position:fixed;z-index:9;top:clamp(138px,22vh,205px);left:50%;transform:translateX(-50%);padding:.55rem .9rem;border-radius:.7rem;background:var(--paper);border:1px solid #70d6ce;color:var(--ink);font-weight:700;pointer-events:none}

/* Keep the map toolbar in one layout so its rows never overlap. */
:root{
  --atlas-edge:clamp(10px,1.4vw,18px);
  --atlas-top:max(10px,env(safe-area-inset-top));
  --atlas-row:52px;
  --atlas-gap:8px;
  --atlas-nav-bottom:calc(var(--atlas-top) + var(--atlas-row) + var(--atlas-gap));
}
header.atlas-header{
  z-index:10;
  inset:var(--atlas-top) max(var(--atlas-edge),env(safe-area-inset-right)) auto max(var(--atlas-edge),env(safe-area-inset-left));
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  grid-template-areas:"identity districts actions";
  align-items:start;
  gap:var(--atlas-gap);
}
.atlas-header .identity{
  grid-area:identity;
  min-width:0;
  height:var(--atlas-row);
  padding:0 clamp(7px,1vw,13px);
}
.atlas-header .header-actions{
  grid-area:actions;
  justify-self:end;
  height:var(--atlas-row);
}
.atlas-header #time{height:var(--atlas-row);cursor:pointer}
.atlas-header #centralView{font-size:12px;max-width:none;white-space:nowrap}
.atlas-header #time{width:var(--atlas-row);flex:none}
.atlas-header #districts{
  grid-area:districts;
  position:static;
  width:max-content;
  max-width:100%;
  min-width:0;
  min-height:var(--atlas-row);
  justify-self:center;
  align-items:stretch;
  pointer-events:auto;
}
.atlas-header #districts button{
  width:auto;height:auto;min-height:40px;
  padding:0 clamp(7px,1.02vw,14px);
  font-size:clamp(11px,1.04vw,14px);
  box-shadow:none;
  cursor:pointer;
}
.atlas-header #districts button:focus-visible,.atlas-header summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-2px;
}
#districtScroll{overscroll-behavior-inline:contain}
.atlas-header #roadTour{
  position:static;
  width:max-content;
  max-width:100%;
  border-radius:15px;
  overflow:visible;
  pointer-events:auto;
}
.atlas-header #roadTour > summary{
  min-height:calc(var(--atlas-row) - 2px);
  line-height:1.3;
  align-content:center;
  font-size:13px;
  white-space:nowrap;
  border-radius:inherit;
  padding:.35rem .72rem;
}
.atlas-header #roadTour > .road-tour-options{
  position:fixed;
  top:var(--atlas-nav-bottom);
  inset-inline-end:max(var(--atlas-edge),env(safe-area-inset-left));
  width:min(300px,calc(100vw - 2 * var(--atlas-edge)));
  max-height:calc(100dvh - var(--atlas-nav-bottom) - 24px);
  overflow:auto;
  background:var(--paper);
  color:var(--ink);
  border:1px solid #fff7;
  border-radius:15px;
  box-shadow:0 12px 30px #19343d37;
  padding:.75rem;
}
.atlas-header #roadTour:not([open]) > .road-tour-options{display:none}
.atlas-header #roadTour button{width:auto;height:auto;min-height:36px;cursor:pointer}
#mountainDirectory,#centralGuide{top:var(--atlas-nav-bottom)}
#mountainDirectory{inset-inline-end:max(var(--atlas-edge),env(safe-area-inset-left));inset-inline-start:auto}
body:not(.map-focus) .map-controls{top:max(calc(var(--atlas-nav-bottom) + 54px),28%)}
body.map-focus header.atlas-header{grid-template-areas:"actions actions actions"}
@media(max-width:760px){
  :root{--atlas-row:46px;--atlas-nav-bottom:calc(var(--atlas-top) + var(--atlas-row) * 2 + var(--atlas-gap) * 2 + 6px)}
  header.atlas-header{
    grid-template-columns:minmax(0,1fr) minmax(0,auto);
    grid-template-areas:"identity actions" "districts districts";
  }
  .atlas-header #centralView{padding-inline:8px;font-size:11px}
  .atlas-header #districts{width:100%;padding:3px}
  .atlas-header #districts button{min-height:40px}
  body.map-focus header.atlas-header{grid-template-areas:"actions actions"}
  body.map-focus .atlas-header #roadTour > .road-tour-options{top:calc(var(--atlas-top) + var(--atlas-row) + var(--atlas-gap))}
}

body:not(.night){
  --accent:#1265a9;
  --day-button:linear-gradient(135deg,#d5e9ff,#b2e9ff);
  --day-button-active:linear-gradient(135deg,#144aa0,#116fa7);
  --day-button-navy:linear-gradient(135deg,#101c3d,#203b65);
}
body:not(.night) :is(.atlas-header .header-actions button,#districts button,#categories button,#roadTour>summary,#roadTour button,#centralGuide button,#mountainDirectory button,#placeCard .place-actions :is(button,a),#streetMotion summary){
  background:var(--day-button);
  color:#153762;
}
body:not(.night) :is(#districts button.on,#categories button.on,#openPlaceDirectory,#roadTour button[aria-pressed=true],#placeCard .place-actions [aria-pressed=true],#searchSuggestions button:is(:hover,:focus-visible)){
  background:var(--day-button-active);
  color:#fff;
}
body:not(.night) .map-controls button{
  background:var(--day-button-navy);
  color:#fff;
}
body:not(.night) .map-controls button[aria-pressed=true]{
  background:var(--day-button-active);
}
body:not(.night) #roadTour input{accent-color:var(--accent)}

body.night #districts #openPlaceDirectory[aria-expanded="true"]{
  background:#392366;
  color:#fff;
  outline:1px solid #aa92e5;
  outline-offset:-2px;
}
/* A lighter upper edge and an inset highlight give the map controls a glass lens. */
body {
  --map-glass-fill: linear-gradient(152deg,#f3faff67,#a7d6f02c 56%,#d0eaff4f);
  --map-glass-dark-fill: linear-gradient(153deg,#314e76b2,#13254b94 60%,#223b5ba9);
  --map-glass-active-fill: linear-gradient(151deg,#3e87c9c7,#144c98aa 66%,#1b659fbd);
  --map-glass-text: #17375b;
  --map-glass-rim: #f5fbffb8;
  --map-glass-depth: #214f7c27;
  --map-glass-highlight: #ffffffad;
}
body.night {
  --map-glass-fill: linear-gradient(151deg,#7487a860,#1b294478 58%,#32426582);
  --map-glass-dark-fill: linear-gradient(153deg,#40577887,#14203d9c 64%,#26375699);
  --map-glass-active-fill: linear-gradient(151deg,#8266c7bd,#503183aa 64%,#654b9eb8);
  --map-glass-text: #f7f9ff;
  --map-glass-rim: #b9cced91;
  --map-glass-depth: #030b215e;
  --map-glass-highlight: #dbe7ff80;
}
:root body :is(
  .header-actions > button, #roadTour > summary, #districts button, #categories button,
  .map-controls > button, #streetMotion summary, #streetMotion button,
  #roadTour button, #centralGuide button, #mountainDirectory button, #placeCard .place-actions :is(button,a)
) {
  background: radial-gradient(ellipse at 28% -20%,#ffffff6b,transparent 66%), var(--map-glass-fill);
  color: var(--map-glass-text);
  border: 1px solid var(--map-glass-rim);
  box-shadow: inset 0 1px 1px var(--map-glass-highlight),
    inset 0 -2px 4px var(--map-glass-depth), 0 3px 12px var(--map-glass-depth);
  -webkit-backdrop-filter: blur(13px) saturate(1.32);
  backdrop-filter: blur(13px) saturate(1.32);
}
:root body .map-controls > button {
  background: radial-gradient(ellipse at 28% -20%,#ffffff48,transparent 66%), var(--map-glass-dark-fill);
  color: #f7f9ff;
}
:root body :is(
  #districts button.on, #districts #openPlaceDirectory[aria-expanded="true"],
  #categories button.on, .map-controls > button[aria-pressed="true"],
  #roadTour button[aria-pressed="true"], #roadTour[open] > summary,
  #streetMotion [data-weather-motion][aria-pressed="true"],
  #placeCard .place-actions [aria-pressed="true"]
) {
  background: radial-gradient(ellipse at 28% -20%,#ffffff48,transparent 66%), var(--map-glass-active-fill);
  color: #fff;
}
.night .dock { background:linear-gradient(170deg,#4152765c,#1524414d); }
#time svg { width:24px; height:24px; vertical-align:middle; }
#time .map-moon { color:#335a98; }
#time .map-sun { display:none; color:#ffd36a; }
.night #time .map-moon { display:none; }
.night #time .map-sun { display:inline-block; }
#mapWeather { position:fixed; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
#mapWeather[hidden],#mapWeatherCredit[hidden],#mapWeatherStatus:empty { display:none; }
#mapWeatherStatus { display:block; width:max-content; max-width:9rem; color:var(--ink); background:var(--paper);
  border-radius:8px; padding:.28rem .42rem; margin-top:.25rem; }
#mapWeatherCredit { position:fixed; inset-inline-start:.65rem; bottom:calc(9px + env(safe-area-inset-bottom));
  color:white; background:#162740cf; border-radius:7px; padding:.24rem .46rem; z-index:8;
  font:11px/1.2 system-ui,sans-serif !important; text-decoration:none; }

/* Keep the street-tour control recognizable as a license plate at any header width. */
:root body #roadTour > .street-tour-plate {
  display:flex;
  align-items:stretch;
  list-style:none;
  overflow:hidden;
  gap:0;
  padding:0;
  border-radius:8px;
  border:2px solid #253850;
  background:linear-gradient(#fffdf6,#dce5ed);
  color:#172d42;
  box-shadow:inset 0 0 0 1px #fff,0 3px 8px #0e1c3840;
}
#roadTour > .street-tour-plate::-webkit-details-marker { display:none; }
#roadTour .street-tour-plate-edge {
  display:grid;
  place-items:center;
  flex:0 0 23px;
  color:white;
  background:linear-gradient(#2d689f,#194474);
  border-inline-end:1px solid #879bb5;
}
#roadTour .street-tour-plate-edge svg { width:13px;height:18px; }
#roadTour .street-tour-plate-title {
  display:grid;
  place-items:center;
  padding-inline:.63rem;
  font-size:clamp(10px,1.65vw,13px);
}
:root body #roadTour[open] > .street-tour-plate {
  border-color:var(--accent);
  background:linear-gradient(#e9f7ff,#abd3ec);
}
:root body.night #roadTour > .street-tour-plate {
  border-color:#99afcc;
  background:linear-gradient(#e6edf7,#a9bbd3);
  color:#132842;
}
