/* Map page (V1-WEB B; V1-WEB-DESIGN "Concept"): iCloud Find Devices-style top
   bar, near-opaque floating panel / bottom sheet, tile pins, map controls and
   the launcher. Loaded only on the map page. Without JS (no html.js) the
   page stays a plain document with the panel content. */
:root {
  --panel-bg: var(--bg-elevated);
  --panel-tile: #F2F2F7;
  --mtile-bg: #E5E5EA;
  --bar-bg: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  --pin-bg: #1C1C1E;
  --pin-tile: #2C2C2E;
  --neutral: #8E8E93;
  --indigo: #5856D6;
  --purple: #AF52DE;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel-bg: color-mix(in srgb, #2C2C2E 96%, transparent);
    --panel-tile: #3A3A3C;
    --mtile-bg: #3A3A3C;
    --bar-bg: #1C1C1E;
  }
}
:root[data-theme="dark"] { --panel-bg: color-mix(in srgb, #2C2C2E 96%, transparent); --panel-tile: #3A3A3C; --mtile-bg: #3A3A3C; --bar-bg: #1C1C1E; }

/* Gas is blue, EV is green (tokens.css "Mode accents"): links, the selected tab and its pill, chips. */
.mapapp { --accent: var(--gas-accent); --tint: var(--gas-accent); --tint-fill: var(--gas-accent-fill); }
.mapapp[data-tab="ev"] { --accent: var(--ev-accent); --tint: var(--ev-accent); --tint-fill: var(--ev-accent-fill); }

/* Top bar: "Carga" + the section in its accent color; +, launcher, avatar. */
.mbar { position: sticky; top: 0; z-index: 30; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--bar-bg); border-bottom: .5px solid var(--separator); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.wordmark { font: 600 1.25rem/1 var(--font); color: var(--label); letter-spacing: -.01em; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
/* One wordmark again: the bar's 12 px gap plus 8 px padding read as a 20 px hole, so the button pulls in by 10 px (visual gap 6 px: 12 - 10 + 4); it is still 44 px tall and wider than 32 px. */
.wm-section { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -10px; padding: 0 8px 0 4px; border: 0; border-radius: 10px; background: none; font: 600 1.25rem/1 var(--font); color: var(--gas-accent); cursor: pointer; white-space: nowrap; }
.wm-section:hover { background: var(--fill); }
.wm-section .icon { width: 18px; height: 18px; }
body:has(.mapapp[data-tab="ev"]) .wm-section { color: var(--ev-accent); font-style: italic; }
/* Brand mark: the section's unit icon (outline, --label) before the wordmark. */
.wordmark { display: inline-flex; align-items: center; gap: 6px; }
.wm-icon { display: inline-flex; color: var(--label); }
.wm-icon .brand-icon { display: block; }
body:has(.mapapp[data-tab="ev"]) .b-gas, body:not(:has(.mapapp[data-tab="ev"])) .b-ev { display: none; }
@media (max-width: 379.98px) { .wm-carga { display: none; } }
.mbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.mbar-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--label); background: none; border: 0; cursor: pointer; }
.mbar-btn:hover { background: var(--fill); text-decoration: none; }
.mbar-avatar { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--fill); color: var(--label); font: var(--t-footnote); font-weight: 600; display: grid; place-items: center; }
.mbar-avatar:hover { text-decoration: none; filter: brightness(1.1); }

/* Launcher popover. */
.launcher { margin: 0; inset: 56px 12px auto auto; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 68px); overflow: auto; padding: 8px 20px 16px; border: .5px solid var(--separator); border-radius: 20px; background: var(--bg-elevated); color: var(--label); box-shadow: 0 16px 48px rgba(0, 0, 0, .3); }
.launcher-h { font: var(--t-headline); margin: 14px 0 10px; }
.launcher ul { list-style: none; margin: 0; padding: 0; }
.launcher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.launcher-grid a { display: grid; justify-items: center; gap: 6px; color: var(--label-2); font: var(--t-caption); text-align: center; }
.launcher-grid a:hover { text-decoration: none; color: var(--label); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15); }
.app-icon .icon { width: 28px; height: 28px; }
.c-gas { background: var(--gas-accent-fill); } .c-ev { background: var(--ev-accent-fill); } .c-tint { background: var(--tint-fill); }
.c-gray { background: #8E8E93; } .c-purple { background: var(--purple); } .c-indigo { background: var(--indigo); }
.launcher-rows a { display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--label); font: var(--t-body); }
.launcher-rows .icon { color: var(--tint); }
@media (max-width: 599.98px) { .launcher { inset: 52px 0 0 0; width: 100%; max-height: none; height: calc(100dvh - 52px); border-radius: 0; } }

/* Section menu (Gasolina / Cargadores) under the wordmark. */
.sectionmenu { inset: 52px auto auto 12px; width: min(240px, calc(100vw - 24px)); height: auto; max-height: none; padding: 8px 16px; border-radius: 16px; }
.sectionmenu a { justify-content: flex-start; }
.sectionmenu a span { flex: 1; }
.sectionmenu a:hover { text-decoration: none; }
.sectionmenu .menu-check { color: var(--tint); }
.sectionmenu a:not([aria-current]) .menu-check { visibility: hidden; }
.sectionmenu a[aria-current] { font-weight: 600; }
@media (max-width: 599.98px) { .sectionmenu { inset: 52px auto auto 12px; width: min(240px, calc(100vw - 24px)); height: auto; border-radius: 16px; } }

/* No JavaScript: a plain page. */
.map, .mctl, .mctl-bottom, .tabbar, .msegmented, .panel-grab, .panel-collapse, #results, .results-status { display: none; }
.map-nojs { display: flex; gap: 8px; align-items: center; color: var(--label-2); font: var(--t-subhead); margin: 16px; }
html:not(.js) .panel { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
.panel-title { font: var(--t-title2); letter-spacing: -.01em; }
.panel-titles { min-width: 0; }
.panel-date { margin: 0; font: var(--t-subhead); font-weight: 700; color: var(--label-2); }
.panel-date:empty { display: none; }
.section-cap { font: var(--t-footnote); font-weight: 600; color: var(--label-2); margin: 0; }
.mchips[hidden] { display: none; }
.mchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.mchips { margin: 0; }

/* With JavaScript: the full-screen app. */
html.js, html.js .map-body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.js .map-nojs { display: none; }
.js .mapapp { position: fixed; inset: 52px 0 0 0; overflow: hidden; }
.js .map { display: block; position: absolute; inset: 0; background: var(--bg); }
.map-msg { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 16px; background: var(--bg-elevated); color: var(--label-2); font: var(--t-footnote); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.map-msg strong { color: var(--label); }
.map-msg[hidden] { display: none; }

/* Map controls: style at the top trailing corner; locate + zoom capsule and
   compass at the bottom trailing corner. */
.js .mctl, .js .mctl-bottom { display: flex; }
.mctl { position: absolute; z-index: 4; background: var(--pin-bg); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); overflow: hidden; }
.mctl-style { top: 16px; right: 16px; }
.mctl-bottom { position: absolute; z-index: 4; right: 16px; bottom: 24px; gap: 10px; align-items: center; }
.mctl-bottom .mctl { position: static; border-radius: 999px; }
.mctl-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: #fff; cursor: pointer; }
.mctl-btn:hover { background: rgba(255, 255, 255, .12); }
.compass { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--pin-bg); color: #fff; font: 700 .8125rem/1 var(--font); cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.compass[hidden] { display: none; }
.compass-n { display: inline-block; transition: transform 200ms var(--ease); }
.compass-n::before { content: ""; display: block; margin: 0 auto 1px; width: 0; height: 0; border: 4px solid transparent; border-bottom: 6px solid #FF453A; border-top: 0; }
.mapapp[data-mapkit="off"] .mctl-style, .mapapp[data-mapkit="off"] #btn-zoom-in, .mapapp[data-mapkit="off"] #btn-zoom-out, .mapapp[data-mapkit="off"] .compass { display: none; }

/* Panel: floating on tablet/desktop. */
.js .panel { position: absolute; z-index: 10; top: 24px; left: 24px; bottom: 56px; width: 360px; display: flex; flex-direction: column; background: var(--panel-bg); border-radius: var(--r-panel); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); border: .5px solid color-mix(in srgb, var(--label) 8%, transparent); overflow: hidden; }
@media (min-width: 1024px) { .js .panel { width: 400px; } }
.js .panel-collapse { display: grid; }
.panel-collapse { place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--accent); border-radius: 8px; cursor: pointer; }
.panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-view[hidden] { display: none; }
.panel-head { padding: 20px 20px 8px; display: grid; gap: 8px; }
.panel-titlerow { display: flex; align-items: center; justify-content: space-between; }
.sortrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.js .msegmented { display: inline-flex; }
.msegmented { background: var(--fill); border-radius: 9px; padding: 2px; }
.msegmented button { position: relative; border: 0; background: none; color: var(--label); font: var(--t-footnote); font-weight: 600; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.msegmented button::after { content: ""; position: absolute; inset: -8px -2px; }
.msegmented button[aria-pressed="true"] { background: var(--segment); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.js .panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 96px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
/* The server-rendered national/state/footer content is the no-JS page; with JS the launcher carries those links and the rows would otherwise push it down (CLS). */
.js .fallback { display: none; }
.fallback .footer { padding: 16px 4px 0; margin: 0; }
.panel.is-collapsed { bottom: auto; }
.panel.is-collapsed .panel-scroll, .panel.is-collapsed .mchips, .panel.is-collapsed .sortrow, .panel.is-collapsed .tabbar, .panel.is-collapsed #view-detail > :not(.dhead):not(.hbar) { display: none; }
.panel.is-collapsed .panel-collapse .icon { transform: rotate(180deg); }

.js .results-status { display: block; font: var(--t-footnote); color: var(--label-2); margin: 8px 12px; }
.results-status:empty { display: none; }

/* Floating tab bar inside the panel: spans the panel's width (12 px inset). */
.js .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: absolute; z-index: 2; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg-elevated) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); border: .5px solid color-mix(in srgb, var(--label) 10%, transparent); }
.tab { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1px; padding: 6px 0 4px; color: var(--label); font: var(--t-caption2); font-weight: 600; border-radius: 999px; }
.tab:hover { text-decoration: none; }
button.tab { border: 0; background: none; cursor: pointer; }
/* Account tab: coming soon (focusable, not [disabled]). Tooltip on hover and keyboard focus. */
.tab-soon { color: var(--label-2); opacity: .55; cursor: not-allowed; }
.js .tab-soon[data-tip]::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 10px); padding: 5px 10px; border-radius: 10px; background: var(--pin-bg); color: #fff; font: var(--t-footnote); font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease); }
.js .tab-soon[data-tip]:hover::after, .js .tab-soon[data-tip]:focus-visible::after { opacity: 1; }
.soon-toast { display: none; }
.js .soon-toast { display: block; position: absolute; z-index: 3; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); transform: translateX(-50%) translateY(6px); margin: 0; padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--bg-elevated) 85%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: var(--label); font: var(--t-subhead); font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); border: .5px solid color-mix(in srgb, var(--label) 10%, transparent); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.js .soon-toast.is-on { opacity: 1; transform: translateX(-50%); }
.panel.is-collapsed .soon-toast { display: none; }
.tab[aria-current="page"] { color: var(--tint); }
.tab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: color-mix(in srgb, var(--tint) 16%, transparent); transition: transform 200ms var(--ease); }
.tabbar[data-tab="ev"] .tab-pill { transform: translateX(100%); }

/* Double-tap zoom (iOS Safari): taps on the sheet's scrolling areas, rows and
   controls would otherwise wait for a possible second tap and zoom the page when
   two land quickly (e.g. a row, then the detail that replaces it). manipulation
   keeps pan and pinch zoom and drops double-tap zoom. Inputs stay >= 16 px so
   focusing one never zooms. */
.mapapp, .mapapp :is(button, a, summary, input, select, textarea, label, .panel-scroll, #view-detail) { touch-action: manipulation; }
.mapapp :is(input, select, textarea) { font-size: 16px; }

/* Phone: bottom sheet with detents (heights set by map.js). */
@media (max-width: 599.98px) {
  .js .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: var(--sheet-h, 50%); transform: translateY(var(--sheet-y, 0)); border-radius: var(--r-panel) var(--r-panel) 0 0; transition: transform 350ms var(--ease); touch-action: pan-x; }
  .js .panel.is-dragging { transition: none; }
  .js .panel[data-detent="large"] { background: var(--bg-elevated); }
  .js .panel-grab { display: flex; justify-content: center; padding: 8px 0 0; touch-action: none; cursor: grab; }
  .js .panel-head { touch-action: none; padding-top: 8px; }
  /* The detail scrolls only at the large detent; below it a drag anywhere moves the sheet. */
  .js .panel:not([data-detent="large"]) #view-detail { overflow-y: hidden; touch-action: none; }
  .js .dhead, .js .hbar { touch-action: none; }
  .js .panel-collapse { display: none; }
  .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); }
  .panel-toggle { position: absolute; top: 4px; right: 12px; font: var(--t-footnote); color: var(--tint); background: var(--fill); border: 0; border-radius: 999px; padding: 4px 10px; min-height: 44px; clip-path: inset(50%); }
  .panel-toggle:focus-visible { clip-path: none; }
  .mctl-style { top: 12px; right: 12px; }
  .mctl-bottom { top: 64px; bottom: auto; right: 12px; flex-direction: column; }
  .mctl-bottom .mctl { flex-direction: column; border-radius: 12px; }
  #btn-zoom-in, #btn-zoom-out { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .panel, .tab-pill, .compass-n, .pin-tile, .soon-toast, .tab-soon::after { transition: none !important; } }

/* Pins. Zoomed out: dark price capsule. Zoomed in (.mapapp[data-near]) or
   selected: a 44 px tile with the price tag DOCKED under it (centered, 2 px
   into the tile's edge, same white outline and shadow, so tile + tag read as
   one marker) and the name below the tag. The selected / wide pin swaps the
   tag for a compact stack of the enabled fuels' pills. The dock is absolutely
   positioned, so the tile stays centered on the map point.
   Clusters: a dark circle with the count and a "desde" tag docked under it. */
.pin { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; font: var(--t-caption); }
.pin-dock { display: flex; flex-direction: column; align-items: center; }
.pin-cap { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 7px; border-radius: 999px; background: var(--pin-bg); color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Pin icon colors (pins are dark in both themes): gas green, EV blue, bright for contrast on the dark tile. */
.mapapp { --pin-gas: #30D158; --pin-ev: #409CFF; }
.pin-tile, .pin-name { display: none; }
.pin-tile { width: 44px; height: 44px; border-radius: 12px; place-items: center; background: var(--pin-tile); color: var(--pin-gas); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: transform 200ms var(--ease); }
.pin-tile.ev { color: var(--pin-ev); }
.pin-tile .icon { width: 22px; height: 22px; }
.pin-name { max-width: 140px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--t-caption2); font-weight: 700; color: var(--label); text-shadow: 0 0 2px var(--bg-elevated), 0 0 4px var(--bg-elevated); pointer-events: none; }
.mapapp[data-near] .pin .pin-tile, .pin.is-selected .pin-tile { display: grid; }
.mapapp[data-near] .pin .pin-name, .pin.is-selected .pin-name { display: block; }
.mapapp[data-near] .pin .pin-dock, .pin.is-selected .pin-dock { position: absolute; top: calc(100% - 2px); left: 50%; transform: translateX(-50%); }
.mapapp[data-near] .pin .pin-cap, .pin.is-selected .pin-cap { padding: 1px 7px 1px 6px; font: var(--t-caption2); font-weight: 700; border-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pin-cap:empty { display: none; }
.pin-cap:empty + .pin-name { margin-top: 6px; }
.pin.is-selected { z-index: 10; }
/* Price arrow: a filled 8 x 7 px triangle, 3 px from the price (red up, green down: a rise is bad for the driver). */
.pin-chg { display: inline-flex; align-items: center; }
.pin .pin-tri { width: 8px; height: 7px; fill: currentColor; }
.pin .pin-chg.up { color: #FF453A; }
.pin .pin-chg.down { color: #30D158; }
/* Fuel pills use the deep fill + white text pair (pins are dark in both themes), as --fuel-pill-* in dark mode. */
.pin { --pf-regular: #1F7A36; --pf-premium: #D70015; --pf-diesel: #3A3A3C; }
.pin-fp { display: none; flex-direction: column; gap: 2px; pointer-events: none; }
.pin.has-fp.is-selected .pin-fp, .pin.has-fp.is-wide .pin-fp { display: flex; }
.pin.has-fp.is-selected .pin-cap, .pin.has-fp.is-wide .pin-cap { display: none; }
.pin.has-fp.is-wide .pin-dock { position: absolute; top: calc(100% - 2px); left: 50%; transform: translateX(-50%); }
.pin.has-fp.is-wide .pin-name { display: block; }
.pin-fpill { min-width: 56px; padding: 1px 7px; border-radius: 6px; color: #fff; font: var(--t-caption2); font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; border: 1.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pf-regular { background: var(--pf-regular); }
.pf-premium { background: var(--pf-premium); }
.pf-diesel { background: var(--pf-diesel); }
.pin.is-wide { z-index: 5; }
.pin.is-selected .pin-tile { transform: scale(1.2); transform-origin: 50% 100%; }
.pin.poi .pin-tile { color: #0062CC; background: #fff; }
/* Clusters (server groups and client groups): a frosted-glass count circle (size set inline, 36 to 52 px) with a docked tag. */
.pin-cluster { display: flex; flex-direction: column; align-items: center; cursor: pointer; font: var(--t-subhead); font-weight: 700; font-variant-numeric: tabular-nums; }
.pin-cluster-n { display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; line-height: 1; }
.pin-cluster-sub { margin-top: -2px; padding: 1px 7px; border-radius: 999px; font: var(--t-caption2); font-weight: 700; white-space: nowrap; }
/* Frosted glass (replaces the colored platter ring): a smoked tint (the dark pin color at 66 %: white text stays >= 5:1 over a white or light map, and more over dark / satellite maps; EV is a deep blue tint of the same strength), blur 12 px + saturate, a thin light border, a soft shadow and a faint top highlight. White text in both map styles; the EV cluster tells itself apart by the blue tint. Blur drops while the map moves (.is-interacting), and without backdrop-filter the fill is solid. */
.pin-cluster { --glass: color-mix(in srgb, var(--pin-bg) 66%, transparent); }
.pin-cluster.ev { --glass: color-mix(in srgb, #0B2A55 66%, transparent); }
.pin-cluster-n, .pin-cluster-sub { background: var(--glass); color: #fff; border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); box-shadow: 0 4px 12px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .22); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pin-cluster-sub { box-shadow: 0 2px 8px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .22); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pin-cluster { --glass: var(--pin-tile); }
  .pin-cluster.ev { --glass: #0B2A55; }
  .pin-cluster-n, .pin-cluster-sub { border: 2px solid #fff; }
}
.user-dot { width: 18px; height: 18px; border-radius: 50%; background: #0A84FF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(10, 132, 255, .2), 0 2px 6px rgba(0, 0, 0, .3); }

/* Performance: cheap paint while the map moves (class set by map.ts), and
   isolated pin subtrees so moving annotations never re-layout the page. */
.pin, .pin-cluster { contain: layout style; }
.mapapp.is-interacting .mbar, .mapapp.is-interacting .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
.mapapp.is-interacting .mbar { background: var(--bg-elevated); }
.mapapp.is-interacting .tabbar { background: var(--bg-elevated); }
.mapapp.is-interacting .pin-cap, .mapapp.is-interacting .pin-tile, .mapapp.is-interacting .pin-cluster-n, .mapapp.is-interacting .pin-cluster-sub, .mapapp.is-interacting .pin-fpill { box-shadow: none; }
/* Glass clusters while the map moves: no blur (the costly part), a more opaque tint so the text keeps its contrast. */
.mapapp.is-interacting .pin-cluster { --glass: color-mix(in srgb, var(--pin-bg) 80%, transparent); }
.mapapp.is-interacting .pin-cluster.ev { --glass: color-mix(in srgb, #0B2A55 80%, transparent); }
.mapapp.is-interacting .pin-cluster-n, .mapapp.is-interacting .pin-cluster-sub { -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: none; }
.mapapp.is-interacting .pin-name { text-shadow: none; }

/* Historial sub-view transition (detailnav.ts): names exist only while it runs (.vt-on), set by classes so no inline styles are needed. The chart (.dchart-hero) grows / shrinks between its places; the view (#view-detail) slides and crossfades; the page itself stays still. */
.vt-on #view-detail { view-transition-name: dview; }
.vt-on .dchart-hero { view-transition-name: dchart; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(dchart) { animation-duration: 380ms; animation-timing-function: var(--ease); }
::view-transition-old(dchart), ::view-transition-new(dchart) { width: 100%; height: 100%; object-fit: fill; }
::view-transition-old(dview), ::view-transition-new(dview) { animation-duration: 320ms; animation-timing-function: var(--ease); }
[data-vt="fwd"]::view-transition-old(dview) { animation-name: vt-out-left; }
[data-vt="fwd"]::view-transition-new(dview) { animation-name: vt-in-right; }
[data-vt="back"]::view-transition-old(dview) { animation-name: vt-out-right; }
[data-vt="back"]::view-transition-new(dview) { animation-name: vt-in-left; }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-in-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes vt-out-right { to { opacity: 0; transform: translateX(28px); } }
@keyframes vt-in-left { from { opacity: 0; transform: translateX(-28px); } }
