:root {
  --panel: rgba(8, 42, 41, 0.92);
  --ink: #f6ead2;
  --soft: #c9b998;
  --line: rgba(246, 234, 210, 0.16);
  --accent: #e6b673;
}
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #1b1712; font-family: Inter, system-ui, sans-serif; color: var(--ink); }
#map { position: absolute; inset: 0; }
#panel {
  position: absolute; top: 12px; left: 12px; width: 250px; max-height: calc(100% - 24px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); font-size: 13px;
}
#panel header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
#panel .title { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
#fold { background: none; border: 0; color: var(--soft); font-size: 18px; cursor: pointer; padding: 0 4px; }
#panel.folded #body { display: none; }
#body { padding: 8px 12px 12px; }
.note { margin: 0 0 8px; color: var(--soft); font-size: 11.5px; line-height: 1.4; }
.caps { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); margin: 10px 0 4px; }
#layers { list-style: none; margin: 0; padding: 0; }
#layers li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
#layers li:last-child { border-bottom: 0; }
#layers input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
#layers label { flex: 1; cursor: pointer; }
#layers .when { color: var(--soft); font-size: 11px; font-variant-numeric: tabular-nums; }
#sunHour { width: 100%; accent-color: var(--accent); }
.sunRow { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--soft); font-size: 11.5px; font-variant-numeric: tabular-nums; }
#sunEve, #spots button {
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer;
}
#sunEve:hover, #spots button:hover { border-color: var(--accent); }
#spots { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-pop .maplibregl-popup-content { background: var(--panel); color: var(--ink); border-radius: 8px; padding: 8px 26px 8px 10px; font-family: Inter, system-ui, sans-serif; }
.rd-pop .maplibregl-popup-tip { border-top-color: var(--panel); border-bottom-color: var(--panel); }
.rd-pop .maplibregl-popup-close-button { color: var(--soft); }
.rd-card b { font-size: 15px; font-variant-numeric: tabular-nums; }
.rd-src { color: var(--soft); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 600px) {
  #panel { width: auto; right: 12px; max-height: 45%; }
}
#carNote { position: absolute; left: 12px; bottom: 34px; z-index: 2; max-width: min(460px, calc(100% - 24px)); background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: 12px/1.35 Inter, system-ui, sans-serif; pointer-events: none; }
#carNote span { display: block; color: var(--soft); font-size: 11px; }
@media (max-width: 600px) { #carNote { bottom: 30px; font-size: 11px; } }
/* Places and borders card (places.js) */
.pl-card small { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.pl-card small i { width: 9px; height: 9px; border-radius: 2px; background: var(--zc, #8a8a82); }
.pl-card b { display: block; font-size: 14.5px; margin: 2px 0 1px; }
.pl-card .pl-up { color: var(--soft); font-size: 11.5px; }
.pl-card .pl-open { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; }
.pl-card + .rd-card { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
/* New master on map.seekingdubai.ae: the Maps link back to the dashboard (added by scripts/to-map.sh) */
#panel header .maps { font: 600 11px/1 Inter, system-ui, sans-serif; color: inherit; opacity: .75; text-decoration: none; border: 1px solid currentColor; border-radius: 6px; padding: 4px 7px; margin-right: 8px; }
#panel header .maps:hover { opacity: 1; }
#panel header .title { flex: 1; }
