/* Controls are shared by the clear and dark palettes. */
.theme-trigger[data-open-theme] { display:grid; place-items:center; flex-shrink:0; }
.theme-trigger .theme-sun, [data-theme="dark"] .theme-trigger .theme-moon { display:none; }
[data-theme="dark"] .theme-trigger .theme-sun { display:inline-flex; }
.theme-options { display:grid; gap:8px; border:0; margin:0 0 18px; padding:0; }
.theme-options legend { margin-bottom:8px; font-weight:700; }
.theme-options label { display:flex; align-items:center; gap:10px; min-height:44px;
  border:1px solid var(--line); border-radius:10px; padding:8px 12px; cursor:pointer; }
.theme-options input { width:auto; margin:0; accent-color:#7A4EE0; }
.home-install { display:flex; justify-content:flex-end; margin:0 0 14px; }
.install-cta { min-height:44px; }
.install-status { font-weight:700; color:var(--p); }
.forecast-link { margin-top:18px; min-height:44px; }
.parking-section { margin-top:32px; scroll-margin-top:90px; }
.parking-section h2 { margin-bottom:8px; }
.parking-section > p { margin:0 0 16px; color:var(--muted); }
.parking-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:20px; }
#parking-map { height:clamp(270px,34vw,388px); isolation:isolate; border:1px solid var(--line); border-radius:18px; background:var(--soft); }
#parking-status:empty { display:none; }
.parking-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.parking-list li { padding:10px 14px 3px; border:1px solid var(--line); border-radius:12px; }
.parking-list h3 { margin:0 0 3px; font-size:16px; }
.parking-list p { margin:0; color:var(--muted); font-size:13px; }
.parking-actions { display:flex; flex-wrap:wrap; column-gap:16px; }
.parking-actions .link { min-height:44px; }
.parking-actions [hidden] { display:none; }
.parking-marker { display:grid; place-items:center; color:#fff; font-weight:700; font-size:15px; background:#623bc4; border:2px solid #fff; border-radius:8px; box-shadow:0 1px 5px #23133766; }
@media(max-width:760px) {
  .home-install { justify-content:flex-start; }
  .parking-layout { grid-template-columns:1fr; }
}
@media(max-width:380px) {
  .header-inner { gap:8px; }
  .header-inner > .row { gap:6px; }
}
[data-theme="dark"] {
  color-scheme:dark;
  --page:#17131f;
  --surface:#211a2c;
  --soft:#2a2038;
  --line:#493951;
  --ink:#f2ebf6;
  --muted:#c6b7d0;
  --p:#c9adff;
  --pink:#f191cd;
  --danger-surface:#351d29;
  --danger-line:#7d4958;
  --danger-ink:#ffc0ca;
}
[data-theme="dark"] :is(body,header) { background:var(--page); }
[data-theme="dark"] :is(header,#bottom) { border-bottom-color:var(--line); }
[data-theme="dark"] :is(.secondary,.circle,.skip,.hero-search,.event-card,.badge,.filter,.inline-search,
  .results select,.map-result,.map-controls .btn,.map-status,dialog,.program-card,.request-form input,
  .request-form select,.request-form textarea,.nearby-radius select,.experience-card) {
  background:var(--surface); border-color:var(--line); color:var(--ink);
}
[data-theme="dark"] :is(.community,.community-intro,.map-teaser,.footer,.history-banner,.festival-facts,.operator-heading) {
  background:var(--soft); border-color:var(--line); color:var(--ink);
}
[data-theme="dark"] .community-photo:after { background:linear-gradient(90deg,var(--soft),transparent 25%); }
[data-theme="dark"] .community-photo .pill { background:var(--surface); }
[data-theme="dark"] :is(.desktop-nav a,.community p,.footer-bottom,.detail-section p,.route-stops small,
  .experience-summary,.emergency-grid article p,#bottom a) { color:var(--muted); }
[data-theme="dark"] :is(.desktop-nav a.active,#bottom a.active,.circle.saved,.filter.active) {
  color:var(--p);
}
[data-theme="dark"] .filter.active { background:#39265a; border-color:#9876cc; }
[data-theme="dark"] :is(.primary,.brand-symbol) {
  background:linear-gradient(120deg,#4e49ca,#7844d5 60%,#9632a3); color:#fff;
}
[data-theme="dark"] .cat:hover { background:var(--soft); }
[data-theme="dark"] .cat .cat-icon { color:var(--p); background:#36264e; }
[data-theme="dark"] .cat:nth-child(2) .cat-icon,
[data-theme="dark"] .cat:nth-child(6) .cat-icon { color:var(--pink); background:#46263f; }
[data-theme="dark"] :is(.header-emergency,.emergency-panel) {
  background:var(--danger-surface); border-color:var(--danger-line); color:var(--danger-ink);
}
[data-theme="dark"] .emergency-panel .eyebrow { color:var(--danger-ink); }
[data-theme="dark"] .offline { background:#382a22; color:#ffe0b0; }
[data-theme="dark"] .no-image { background:var(--soft); color:var(--muted); }
[data-theme="dark"] :is(.card-rating,.review-stars) { color:#ffd083; }
[data-theme="dark"] :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
[data-theme="dark"] .hero-search input { background:transparent; }
[data-theme="dark"] .leaflet-container { background:var(--soft)!important; }
[data-theme="dark"] .leaflet-tile-pane { filter:brightness(.76) saturate(.78); }
[data-theme="dark"] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-bar a,
  .leaflet-control-attribution) { background:var(--surface); color:var(--ink); }
[data-theme="dark"] .leaflet-control-attribution a { color:var(--p); }
[data-theme="dark"] .operator-heading img { background:#f6f3ff; border-radius:8px; padding:5px; }
@media(max-width:760px) {
  [data-theme="dark"] #bottom { background:#211a2cf5; }
  [data-theme="dark"] #bottom a.active>span { background:#382750; }
  [data-theme="dark"] .community-photo:after { background:linear-gradient(0deg,var(--soft),transparent 35%); }
}
@media(min-width:1051px) {
  .tour-highlights { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
