/* ─────────────────────────────────────────────────────────────────────────────
   Painel mode — Google Maps colors in Apple's current design language (Liquid Glass,
   iOS 26 / macOS Tahoe): a floating glass sidebar with specular edge highlights over a
   softly tinted canvas, capsule controls, concentric corner radii, widget-style stat
   cards, tinted (not solid) selection. Glass stays in the control layer; content
   (cards, tables) uses solid materials, per the HIG.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --blue: #1a73e8;
  --blue-2: #4285f4;
  --blue-press: #1765cc;
  --blue-tint: rgba(26, 115, 232, .12);
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --green-ink: #188038;
  --amber-ink: #b06000;
  --red-ink: #d93025;
  --label: #1d1d1f;
  --label-2: rgba(60, 60, 67, .72);
  --label-3: rgba(60, 60, 67, .45);
  --separator: rgba(60, 60, 67, .13);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .07);
  --surface: rgba(255, 255, 255, .92);
  /* Liquid Glass recipe: translucent tint + heavy blur/saturation + specular rim + soft float shadow */
  --glass-tint: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  --glass-blur: blur(28px) saturate(210%);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .45);
  --glass-float: 0 12px 40px rgba(30, 40, 80, .12), 0 2px 6px rgba(30, 40, 80, .06);
  --card-shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 6px 20px rgba(30, 40, 80, .06);
  --r-sidebar: 30px;
  --r-card: 24px;
  --r-inner: 14px;
  --sidebar-w: 240px;
  --gap: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0; color: var(--label); position: relative;
  background: #f2f2f7;   /* systemGroupedBackground — the neutral canvas of Apple's own apps */
  font: 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
/* Top glow, like Music/Fitness: a soft Google Maps blue at the top that fades into the neutral
   canvas and scrolls away with the page. The glass sidebar picks it up near the top. */
body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(138, 180, 248, .55) 0%, rgba(138, 180, 248, 0) 70%),
    radial-gradient(50% 80% at 85% 0%, rgba(168, 218, 181, .32) 0%, rgba(168, 218, 181, 0) 70%),
    linear-gradient(180deg, rgba(232, 240, 254, .9) 0%, rgba(242, 242, 247, 0) 100%);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
svg { fill: currentColor; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(26, 115, 232, .4); outline-offset: 2px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.glass {
  background: var(--glass-tint); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), var(--glass-float);
}

/* ── sidebar (floating Liquid Glass) ── */
.sidebar {
  position: fixed; top: var(--gap); left: var(--gap); bottom: var(--gap); width: var(--sidebar-w); z-index: 20;
  display: flex; flex-direction: column; border-radius: var(--r-sidebar); padding: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 8px 12px 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .12)); }
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: -.25px; }
.brand-sub { font-size: 11.5px; color: var(--label-2); }

/* capsule segmented control with a glass thumb */
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; margin: 0 4px 10px; padding: 3px; border-radius: 999px;
  background: rgba(118, 118, 128, .14); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}
.mode-switch a {
  display: grid; place-items: center; min-height: 28px; border-radius: 999px; font-weight: 500; font-size: 12.5px;
  color: var(--label-2); text-decoration: none; transition: color .2s, background .25s var(--ease), box-shadow .25s var(--ease);
}
.mode-switch a:hover { color: var(--label); }
.mode-switch a.on { color: var(--label); font-weight: 600; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12), inset 0 1px 0 #fff; }

.nav { display: flex; flex-direction: column; gap: 2px; padding: 2px 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 999px;
  color: var(--label); font-weight: 500; font-size: 13.5px; text-decoration: none !important; transition: background .2s var(--ease), color .2s;
}
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: var(--label-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.nav-item:hover { background: rgba(255, 255, 255, .5); }
/* tinted selection (macOS Tahoe / iOS 26), not a solid block */
.nav-item.active { background: rgba(26, 115, 232, .14); color: var(--blue-press); font-weight: 600; box-shadow: inset 0 0 0 .5px rgba(26, 115, 232, .18); }
.nav-item.active svg { stroke: var(--blue); }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; padding: 10px 8px 6px; display: flex; flex-direction: column; gap: 7px; }
.health { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--label-2); }
.health i { width: 7px; height: 7px; border-radius: 50%; background: var(--label-3); flex: none; }
.health.ok i { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 168, 83, .2); }
.health.down { color: var(--red-ink); }
.health.down i { background: var(--red); }
.link-muted { font-size: 11.5px; color: var(--label-3); }

/* ── page ── */
.page { margin-left: calc(var(--sidebar-w) + var(--gap)); padding: 26px 30px 44px; max-width: calc(1400px + var(--sidebar-w)); }
.page-head { margin: 4px 4px 16px; }
.page-head h1 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; }
.page-head p { margin-top: 4px; color: var(--label-2); font-size: 13.5px; }
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; margin: 12px; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav-item { flex: none; }
  .sidebar-foot { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .page { margin-left: 0; padding: 12px 16px 40px; }
}

/* ── KPI tiles — Apple Health–style: tinted line symbol + colored label, number below ── */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, .85); box-shadow: var(--card-shadow); }
.kpi-label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: -.05px; }
.kpi-label svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kpi.blue .kpi-label { color: var(--blue); }
.kpi.red .kpi-label { color: var(--red-ink); }
.kpi.green .kpi-label { color: var(--green-ink); }
.kpi.yellow .kpi-label { color: #c27c00; }
.kpi-value { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: 11.5px; color: var(--label-3); }

/* ── cards (content layer: solid) ── */
.grid { display: grid; grid-template-columns: minmax(360px, 5fr) 6fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } }
.card { background: rgba(255, 255, 255, .88); border-radius: 20px; box-shadow: var(--card-shadow); padding: 16px 18px 18px; scroll-margin-top: 20px; }
.card-head { margin-bottom: 14px; }
.card-head.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.4px; }
.card-head p { margin-top: 2px; color: var(--label-2); font-size: 12.5px; }
.head-actions { display: flex; gap: 6px; }
.pill { font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-tint); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill:empty { display: none; }

/* ── form ── */
#search-form { display: flex; flex-direction: column; }
.step { display: flex; gap: 12px; padding: 11px 0; position: relative; }
.step + .step::before { content: ""; position: absolute; top: 0; left: 36px; right: 0; height: 1px; background: var(--separator); }
.step:first-child { padding-top: 0; }
.step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.step-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-title { font-size: 13.5px; font-weight: 600; color: var(--label); }
.help { font-size: 12px; line-height: 1.4; color: var(--label-2); display: block; }
.help.inline { display: inline; }

.input {
  width: 100%; height: 34px; padding: 0 13px; font-size: 13.5px; color: var(--label);
  background: rgba(118, 118, 128, .1); border: 0; border-radius: 12px; outline: none;
  transition: background .2s, box-shadow .2s var(--ease);
}
select.input { appearance: none; padding-right: 32px; cursor: pointer;
  background: rgba(118, 118, 128, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a73e8' d='M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E") no-repeat right 11px center / 15px; }
select.input.menu { width: auto; height: 32px; border-radius: 999px; background-color: var(--blue-tint); color: var(--blue); font-weight: 600; padding-left: 14px; }
select.input.menu:hover { background-color: rgba(26, 115, 232, .18); }
.input:hover { background-color: rgba(118, 118, 128, .15); }
.input:focus { background-color: #fff; box-shadow: 0 0 0 4px rgba(26, 115, 232, .22), inset 0 0 0 1px rgba(26, 115, 232, .5); }
.input::placeholder { color: var(--label-3); }

.geo-status { font-size: 12px; color: var(--label-3); }
.geo-status:empty { display: none; }
.geo-status.ok { color: var(--green-ink); }
.geo-status.warn { color: var(--amber-ink); }
/* isolate: Leaflet panes use z-index 400+, keep them from painting over the sidebar/toasts */
#map, .geo-map { isolation: isolate; position: relative; z-index: 0; }
.geo-map { height: 170px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--separator), 0 2px 8px rgba(0, 0, 0, .05); }
.radius-box { margin-top: 2px; }
.radius-line { display: flex; align-items: baseline; gap: 8px; }
.radius-line .help { flex: 1; }
.adv-title { font-weight: 600; font-size: 13px; }
.value { font-size: 14px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue-2), var(--blue)) 0 / var(--fill-pct, 21%) 100% no-repeat, rgba(120, 120, 128, .18); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(120, 120, 128, .18); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
/* glass-looking capsule thumb */
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 20px; margin-top: -7px; border-radius: 999px; background: linear-gradient(180deg, #fff, #f3f4f7); box-shadow: 0 2px 8px rgba(0, 0, 0, .18), inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .08); transition: transform .2s var(--spring); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-thumb { width: 30px; height: 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }

/* capsule segmented control; the glass thumb slides via --idx (set in painel.js) */
.seg {
  --n: 4; --idx: 1; position: relative; display: inline-grid; grid-template-columns: repeat(var(--n), minmax(44px, auto));
  padding: 3px; border-radius: 999px; background: rgba(118, 118, 128, .14); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); flex: none;
}
.seg::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 999px;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14), inset 0 1px 0 #fff;
  transform: translateX(calc(var(--idx) * 100%)); transition: transform .35s var(--spring);
}
.seg button { position: relative; z-index: 1; min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--label-2); font-variant-numeric: tabular-nums; transition: color .2s; }
.seg button:hover { color: var(--label); }
.seg button.on { color: var(--label); font-weight: 600; }

.switch-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; cursor: pointer; }
.switch-row > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; width: 50px; height: 28px; border-radius: 999px; background: rgba(120, 120, 128, .18); position: relative; transition: background .3s var(--ease); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 30px; height: 24px; border-radius: 999px; background: linear-gradient(180deg, #fff, #f3f4f7); box-shadow: 0 2px 6px rgba(0, 0, 0, .18), inset 0 1px 0 #fff; transition: transform .35s var(--spring); }
.switch-row input:checked ~ .switch { background: var(--green); }
.switch-row input:checked ~ .switch::after { transform: translateX(16px); }
.switch-row input:focus-visible ~ .switch { box-shadow: 0 0 0 3px rgba(26, 115, 232, .4); }

.advanced { margin: 2px 0 14px; border-radius: 16px; background: rgba(118, 118, 128, .07); }
.advanced summary { cursor: pointer; font-weight: 600; font-size: 13.5px; min-height: 40px; display: flex; align-items: center; padding: 0 14px; list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: "›"; margin-left: auto; font-size: 18px; color: var(--label-3); transition: transform .3s var(--spring); }
.advanced[open] summary::after { transform: rotate(90deg); }
.advanced summary span { color: var(--label-3); font-weight: 400; margin-left: 5px; }
.adv { padding: 0 14px 14px; }
.adv-field { display: flex; flex-direction: column; gap: 6px; }
.adv .input { background: #fff; }

.alert { font-size: 12.5px; color: var(--red-ink); background: rgba(234, 67, 53, .1); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.fineprint { font-size: 11px; line-height: 1.45; color: var(--label-3); margin-top: 10px; text-align: center; }

/* ── buttons (capsules) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 15px;
  font-weight: 600; font-size: 13px; color: var(--blue); background: var(--blue-tint);
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .2s, transform .25s var(--spring);
}
.btn:hover { background: rgba(26, 115, 232, .18); }
.btn:active { transform: scale(.95); }
.btn.filled, .btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(26, 115, 232, .35);
}
.btn.filled:hover, .btn-primary:hover { background: linear-gradient(180deg, #5591f5, var(--blue-press)); }
.btn-primary { width: 100%; height: 42px; border-radius: 999px; font-size: 15px; letter-spacing: -.1px; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--label-2); }
.btn-ghost:hover { background: var(--fill); }

/* ── jobs ── */
.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.job { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 16px; position: relative; transition: background .2s var(--ease), transform .25s var(--spring); }
.job.ok { cursor: pointer; }
.job.ok:hover { background: rgba(118, 118, 128, .07); }
.job.ok:active { transform: scale(.99); }
.job.active { background: rgba(26, 115, 232, .1); box-shadow: inset 0 0 0 .5px rgba(26, 115, 232, .2); }
.job-title { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.job-meta { font-size: 12px; color: var(--label-2); display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 1px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--green); } .dot.working { background: var(--blue); } .dot.pending { background: var(--yellow); } .dot.failed { background: var(--red); }
.status { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.status.ok { color: var(--green-ink); } .status.working { color: var(--blue); } .status.pending { color: var(--amber-ink); } .status.failed { color: var(--red-ink); }
.job-count { text-align: right; font-variant-numeric: tabular-nums; }
.job-count b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.4px; line-height: 1.1; }
.job-count span { font-size: 11px; color: var(--label-3); }
.job-actions { display: flex; gap: 0; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--label-3); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .25s var(--spring); }
.icon-btn:hover { background: rgba(118, 118, 128, .12); color: var(--label); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.danger:hover { color: var(--red); background: rgba(234, 67, 53, .1); }
.icon-btn svg { width: 18px; height: 18px; }
.progress { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--blue-tint); overflow: hidden; margin-top: 6px; }
.progress::after { content: ""; display: block; height: 100%; width: 30%; border-radius: 2px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); animation: slide 1.3s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.empty { color: var(--label-3); text-align: center; padding: 24px 12px; list-style: none; }
@media (max-width: 520px) { .job { grid-template-columns: 1fr auto; } .job-count { display: none; } }

/* ── results ── */
.results { margin-top: 18px; }
.mini-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mini { flex: 1 1 110px; padding: 10px 14px; border-radius: 16px; background: rgba(118, 118, 128, .07); }
.mini b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; }
.mini span { font-size: 11.5px; color: var(--label-2); }
.filters { display: grid; grid-template-columns: 2fr 1.3fr 1.2fr auto; gap: 10px; align-items: end; padding: 12px; background: rgba(118, 118, 128, .07); border-radius: 20px; margin-bottom: 12px; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } }
.filters .input { background-color: #fff; height: 34px; font-size: 13px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.filter { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-title { font-size: 11.5px; font-weight: 600; color: var(--label-2); padding-left: 4px; }
.filter.checks { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.filter.checks .filter-title { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; min-height: 24px; }
.check input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; }
.export { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.export-buttons { display: flex; flex-wrap: wrap; gap: 6px; }

.results-body { display: grid; grid-template-columns: 1fr 380px; gap: 14px; align-items: start; }
@media (max-width: 1300px) { .results-body { grid-template-columns: 1fr; } .map-box { order: -1; } }
.map-box { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 6px; }
#map { height: 520px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--separator), 0 4px 16px rgba(30, 40, 80, .08); background: #e8eaed; overflow: hidden; }
@media (max-width: 1300px) { #map { height: 280px; } .map-box { position: static; } }
.map-tiles { filter: saturate(.7) brightness(1.03) contrast(.96); }
.leaflet-control-zoom { border: 0 !important; border-radius: 999px !important; overflow: hidden; box-shadow: var(--glass-rim), 0 4px 14px rgba(0, 0, 0, .12) !important; }
.leaflet-control-zoom a { background: rgba(255, 255, 255, .75) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--label) !important; border-bottom-color: var(--separator) !important; }

.table-wrap { overflow-x: auto; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--separator); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { text-align: left; padding: 10px 14px; vertical-align: top; }
td { border-top: 1px solid var(--separator); }
th { background: rgba(248, 248, 250, .9); color: var(--label-2); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: rgba(118, 118, 128, .05); }
tbody tr.hl { background: rgba(26, 115, 232, .09); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-name { font-weight: 600; overflow-wrap: anywhere; min-width: 160px; }
.co-cat { font-size: 12px; color: var(--label-2); }
.contact { display: flex; flex-direction: column; gap: 1px; min-width: 170px; }
.contact a { overflow-wrap: anywhere; }
.contact .wa { display: inline-flex; width: max-content; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: rgba(52, 168, 83, .12); color: var(--green-ink); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.contact .none { color: var(--label-3); }
.stars { color: var(--yellow); }
.reviews { display: block; font-size: 11.5px; color: var(--label-3); }
.addr { min-width: 200px; color: var(--label-2); }
.row-actions a { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--blue-tint); font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }

/* ── credits ── */
.credits { font-size: 11.5px; line-height: 1.45; color: var(--label-2); }
.credits p { margin: 0 0 8px; }
.credits a { color: var(--blue); }
.credits-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.credit-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--label) !important; font-size: 11.5px; font-weight: 600; text-decoration: none !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0, 0, 0, .08); transition: transform .25s var(--spring);
}
.credit-btn:active { transform: scale(.94); }
.credit-btn svg { width: 13px; height: 13px; }
.credit-btn:first-child svg { fill: var(--yellow); }
.credit-btn:last-child svg { fill: var(--red); }
.credits.compact { padding: 10px; margin-bottom: 2px; border-radius: 18px; background: rgba(255, 255, 255, .35); }
.page-foot { margin-top: 24px; padding: 14px 18px; border-radius: var(--r-card); background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .8); }
.page-foot .credits p { margin: 0; }

/* ── map pins ── */
.pin-icon { background: none; border: 0; }
.pin-icon svg { width: 25px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); transition: transform .25s var(--spring); transform-origin: 50% 100%; }
.pin-icon.hl svg { transform: scale(1.3); }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .15); }
.leaflet-popup-content { font: 12.5px/1.45 Inter, -apple-system, sans-serif; margin: 11px 15px; }
.leaflet-container { font-family: Inter, -apple-system, sans-serif; }

/* ── toast (glass capsule) ── */
.toast {
  position: fixed; bottom: 24px; left: calc(50% + (var(--sidebar-w) + var(--gap)) / 2); transform: translateX(-50%); z-index: 1000;
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--label);
  background: var(--glass-tint); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), 0 12px 32px rgba(0, 0, 0, .16); max-width: calc(100% - var(--sidebar-w) - 48px); animation: pop .45s var(--spring);
}
@keyframes pop { from { transform: translate(-50%, 16px) scale(.96); opacity: 0; } }
@media (max-width: 900px) { .toast { left: 50%; max-width: calc(100% - 32px); } }

/* ─────────────────────────────────────────────────────────────────────────────
   Liquid Glass — only on the sidebar (control layer), per the HIG. Clear tint + blur +
   specular rim (gradient border) + inner glow + top sheen + soft float shadow.
   ───────────────────────────────────────────────────────────────────────────── */
.liquid {
  isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .5),
    inset 1.5px 1.5px 1px -.5px rgba(255, 255, 255, .95),
    inset -1px -1px 1px -.5px rgba(255, 255, 255, .6),
    0 10px 36px rgba(20, 30, 60, .12), 0 2px 6px rgba(20, 30, 60, .06);
}
.liquid::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 35%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.liquid .mode-switch { background: rgba(118, 118, 128, .14); }
.liquid .nav-item:hover { background: rgba(255, 255, 255, .55); }
.liquid .nav-item.active { background: rgba(255, 255, 255, .85); color: var(--blue-press); box-shadow: 0 2px 8px rgba(0, 0, 0, .08), inset 0 1px 0 #fff; }
.liquid .credits.compact { background: rgba(255, 255, 255, .45); }
