
:root {
  color-scheme: light dark;
  --bg: #f2f5f6;
  --surface: #ffffff;
  --surface-2: #eaf0f1;
  --surface-3: #f8fafb;
  --text: #122128;
  --muted: #60727b;
  --line: #d3dde1;
  --accent: #0f766e;
  --accent-strong: #095a54;
  --accent-soft: #d9f1ee;
  --danger: #a13434;
  --danger-soft: #fde7e7;
  --warning: #9a630e;
  --warning-soft: #fff0cf;
  --shadow: 0 16px 42px rgba(18,33,40,.12);
  --radius: 18px;
  --focus: 0 0 0 3px rgba(15,118,110,.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1418;
    --surface: #162126;
    --surface-2: #1f2d33;
    --surface-3: #111b20;
    --text: #eef5f6;
    --muted: #a6b7be;
    --line: #34464d;
    --accent: #62cfc6;
    --accent-strong: #9ae3dd;
    --accent-soft: #173b39;
    --danger: #ff9a9a;
    --danger-soft: #492626;
    --warning: #f1c66f;
    --warning-soft: #493718;
    --shadow: 0 20px 55px rgba(0,0,0,.34);
    --focus: 0 0 0 3px rgba(98,207,198,.3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
body.modal-open { overflow: hidden; }
button, select, input, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
button:focus-visible, select:focus, textarea:focus, input:focus { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }

.app-shell { width: min(1200px, 100%); margin: 0 auto; padding: 22px clamp(14px, 3vw, 34px) 54px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: radial-gradient(circle at 93% 7%, rgba(15,118,110,.23), transparent 35%), linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}
.hero-mark { position: absolute; right: clamp(20px,4vw,48px); top: 50%; width: clamp(76px,12vw,128px); transform: translateY(-50%); opacity: .13; }
.eyebrow { margin: 0 0 8px; color: var(--accent-strong); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(1.9rem,5vw,3.55rem); line-height: 1.03; letter-spacing: -.047em; }
.hero-copy { max-width: 790px; margin: 14px 0 0; color: var(--muted); font-size: clamp(.98rem,2vw,1.08rem); }
.meta-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta-pill { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--muted); border-radius: 999px; padding: 7px 11px; font-size: .84rem; }
.header-actions { position: absolute; right: 16px; top: 16px; z-index: 2; display: flex; gap: 8px; }
.secondary-button, .primary-button, .danger-button, .toggle-button, .icon-button {
  border: 1px solid var(--line); border-radius: 12px; min-height: 42px; padding: 0 14px; cursor: pointer; background: var(--surface); color: var(--text); font-weight: 800;
}
.primary-button { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button:hover, .toggle-button:hover, .icon-button:hover { background: var(--surface-2); }
.danger-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.danger-button:hover { background: var(--danger-soft); }
button:disabled { opacity: .55; cursor: not-allowed; }
.icon-button { width: 42px; padding: 0; border-radius: 50%; font-size: 1.25rem; }

.controls-wrap {
  position: sticky; top: 0; z-index: 20; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); box-shadow: 0 8px 24px rgba(18,33,40,.08);
}
.controls { display: grid; grid-template-columns: minmax(210px,1.25fr) minmax(145px,.76fr) minmax(190px,1fr) auto; gap: 10px; align-items: end; }
.field { display: grid; gap: 5px; }
.field label { color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
select, input[type="text"], input[type="password"] { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 0 12px; }
.toggle-button { width: auto; white-space: nowrap; min-height: 46px; }
.toggle-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.view-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 26px 2px 12px; }
.view-head h2 { margin: 0; font-size: clamp(1.4rem,3vw,2rem); letter-spacing: -.025em; }
.region-note { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.count { color: var(--muted); font-size: .9rem; white-space: nowrap; }

.timeline { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.time-slot { display: grid; grid-template-columns: 112px 1fr; min-height: 88px; border-top: 1px solid var(--line); }
.time-slot:first-child { border-top: 0; }
.time-label { padding: 19px 16px; color: var(--muted); font-weight: 900; font-variant-numeric: tabular-nums; border-right: 1px solid var(--line); background: var(--surface-2); }
.meeting-stack { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 10px; padding: 10px; align-items: stretch; }
.meeting-card { --kind: var(--accent); position: relative; display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-left: 5px solid var(--kind); border-radius: 14px; background: var(--surface); overflow: hidden; transition: transform .14s ease, box-shadow .14s ease; }
.meeting-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(18,33,40,.11); }
.card-open { min-width: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; padding: 13px 10px 13px 14px; }
.card-open strong { display: block; font-size: .98rem; line-height: 1.25; }
.card-place { display: block; margin-top: 5px; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.badge { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); border-radius: 999px; padding: 3px 7px; font-size: .69rem; font-weight: 900; letter-spacing: .015em; background: color-mix(in srgb, currentColor 11%, transparent); }
.badge-note { color: var(--warning); }
.badge-monthly { color: var(--accent-strong); }

.settings-add-button { margin-top: 10px; }
.badge.kind-aa { color: #2463a7; }
.badge.kind-na { color: #7b4aa3; }
.badge.kind-ca { color: #a4512f; }
.badge.kind-cma { color: #a12f48; }
.badge.kind-celebrate-recovery { color: #a66a00; }
.badge.kind-smart-recovery { color: #007a8a; }
.badge.kind-recovery-dharma { color: #0f766e; }
.badge.kind-al-anon { color: #35834a; }
.badge.kind-alateen { color: #4e8b5c; }
.badge.kind-aca { color: #4a5fb0; }
.badge.kind-coda { color: #a03c73; }
.badge.kind-oa { color: #bd573d; }
.badge.kind-ga { color: #755530; }
.badge.kind-saa { color: #586b75; }
.meeting-card.kind-aa { --kind: #2463a7; }
.meeting-card.kind-na { --kind: #7b4aa3; }
.meeting-card.kind-ca { --kind: #a4512f; }
.meeting-card.kind-cma { --kind: #a12f48; }
.meeting-card.kind-celebrate-recovery { --kind: #a66a00; }
.meeting-card.kind-smart-recovery { --kind: #007a8a; }
.meeting-card.kind-recovery-dharma { --kind: #0f766e; }
.meeting-card.kind-al-anon { --kind: #35834a; }
.meeting-card.kind-alateen { --kind: #4e8b5c; }
.meeting-card.kind-aca { --kind: #4a5fb0; }
.meeting-card.kind-coda { --kind: #a03c73; }
.meeting-card.kind-oa { --kind: #bd573d; }
.meeting-card.kind-ga { --kind: #755530; }
.meeting-card.kind-saa { --kind: #586b75; }
.star-button { align-self: start; margin: 7px 7px 0 0; width: 39px; height: 39px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.48rem; line-height: 1; }
.star-button:hover { background: var(--surface-2); }
.star-button.is-favorite { color: #d89a00; }

.empty-state { padding: 58px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 1.15rem; }
.contact-section { margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 12px; }
.contact-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 16px; }
.contact-card h3 { margin: 0; font-size: 1rem; }
.contact-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.contact-card button { margin-top: 12px; }

.notes { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.notes summary { cursor: pointer; padding: 15px 17px; font-weight: 850; }
.notes-body { padding: 0 17px 17px; color: var(--muted); font-size: .9rem; }
.notes-body p { margin: 8px 0; }
.footer { padding: 22px 4px 0; color: var(--muted); font-size: .84rem; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 12px; background: rgba(6,12,15,.7); backdrop-filter: blur(3px); }
.modal-panel { width: min(720px,100%); max-height: min(92vh,900px); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.modal-scroll { max-height: min(92vh,900px); overflow-y: auto; }
.modal-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 20px 20px 15px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter: blur(16px); }
.modal-head h3 { margin: 8px 0 0; font-size: clamp(1.35rem,4vw,2rem); line-height: 1.08; letter-spacing: -.025em; }
.modal-actions { display: flex; gap: 7px; }
.modal-body { padding: 20px; }
.occurrence-callout { padding: 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 18px; }
.occurrence-callout strong { display: block; font-size: 1.07rem; }
.detail-grid { display: grid; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.detail-row { display: grid; grid-template-columns: 155px 1fr; border-top: 1px solid var(--line); }
.detail-row:first-child { border-top: 0; }
.detail-label { padding: 12px 13px; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.detail-value { padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.link-list { display: grid; gap: 7px; }
.caveat { margin-top: 16px; padding: 13px 14px; border: 1px solid color-mix(in srgb,var(--warning) 45%,var(--line)); border-radius: 13px; background: var(--warning-soft); }
.note-editor { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-3); padding: 14px; }
.note-editor label { display: block; font-weight: 900; }
.note-editor p { margin: 4px 0 10px; color: var(--muted); font-size: .84rem; }
.note-editor textarea { width: 100%; min-height: 130px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 11px 12px; }
.note-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 9px; }
.note-status { color: var(--muted); font-size: .82rem; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(540px,100%); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); padding: clamp(22px,5vw,38px); }
.auth-logo { width: 72px; height: 72px; }
.auth-card h1 { margin-top: 16px; font-size: clamp(1.8rem,6vw,2.7rem); }
.auth-card p { color: var(--muted); }
.auth-form { display: grid; gap: 12px; margin-top: 20px; }
.auth-error { margin-top: 12px; padding: 11px 12px; border-radius: 12px; color: var(--danger); background: var(--danger-soft); }
.auth-help { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.passkey-list { display: grid; gap: 9px; margin-top: 10px; }
.passkey-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; }
.passkey-row strong { display: block; }
.passkey-row small { color: var(--muted); }
.settings-section { margin-top: 18px; }
.settings-section h4 { margin: 0 0 8px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 20px; transform: translate(-50%,20px); max-width: calc(100% - 30px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--text); color: var(--surface); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 800px) {
  .app-shell { padding-top: 12px; }
  .hero { border-radius: 18px; }
  .hero-mark { display: none; }
  .header-actions { position: static; margin-bottom: 14px; justify-content: flex-end; }
  .controls-wrap { top: 6px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls .region-field { grid-column: 1 / -1; }
  .toggle-button { width: 100%; }
  .time-slot { grid-template-columns: 84px 1fr; }
  .time-label { padding: 16px 9px; font-size: .83rem; }
  .meeting-stack { grid-template-columns: 1fr; padding: 8px; }
  .detail-row { grid-template-columns: 1fr; }
  .detail-label { padding-bottom: 4px; }
  .detail-value { padding-top: 4px; }
}
@media (max-width: 500px) {
  .controls { grid-template-columns: 1fr; }
  .controls .region-field { grid-column: auto; }
  .view-head { display: block; }
  .count { margin-top: 5px; }
  .time-slot { grid-template-columns: 1fr; }
  .time-label { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .meeting-stack { padding: 7px; }
  .modal-head, .modal-body { padding-left: 15px; padding-right: 15px; }
  .note-tools { align-items: stretch; flex-direction: column; }
  .note-tools .primary-button { width: 100%; }
}
@media print {
  .controls-wrap, .star-button, .modal-actions, .notes, .header-actions, .contact-section { display: none !important; }
  .app-shell { width: 100%; padding: 0; }
  .hero, .timeline { box-shadow: none; }
}

/* Geolocation, view switching, live distances, and the dependency-free map. */
.controls {
  grid-template-columns: minmax(205px,1.15fr) minmax(135px,.72fr) minmax(190px,1fr) auto auto;
}
.location-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}
.location-summary { margin: 0; color: var(--muted); font-size: .83rem; }
.locate-button { white-space: nowrap; min-height: 46px; }
.view-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 154px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}
.view-switch button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}
.view-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent-strong); box-shadow: 0 2px 8px rgba(18,33,40,.12); }
.card-distance { display: block; width: max-content; max-width: 100%; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .74rem; font-weight: 850; }

.map-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.map-status { color: var(--muted); font-size: .83rem; }
.map-controls { display: flex; align-items: center; gap: 6px; }
.map-control { min-width: 40px; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font-weight: 900; }
.map-control:hover { background: var(--surface-2); }
.map-viewport { position: relative; height: min(68vh,650px); min-height: 430px; overflow: hidden; background: #dbe6e8; cursor: grab; touch-action: none; user-select: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-tiles, .map-markers { position: absolute; inset: 0; pointer-events: none; }
.map-tile { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.map-markers { z-index: 4; }
.meeting-pin {
  position: absolute;
  z-index: 5;
  width: 30px;
  height: 30px;
  padding: 0;
  transform: translate(-50%,-100%) rotate(45deg);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 10%;
  background: #c83d3d;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.36);
  cursor: pointer;
  pointer-events: auto;
}
.meeting-pin > span { display: block; width: 9px; height: 9px; margin: auto; border-radius: 50%; background: #fff; }
.meeting-pin.is-favorite { background: #d89a00; }
.meeting-pin:hover, .meeting-pin:focus-visible { z-index: 10; filter: brightness(1.08); }
/* Counter-rotate the visible star while leaving the pin body rotated. */
.meeting-pin.is-favorite { color: transparent; }
.meeting-pin.is-favorite::after { content: "★"; position: absolute; inset: 3px; display: grid; place-items: center; color: #fff; transform: rotate(-45deg); font-size: 14px; line-height: 1; }
.user-accuracy { position: absolute; z-index: 2; transform: translate(-50%,-50%); border: 1px solid rgba(25,102,184,.55); border-radius: 50%; background: rgba(25,102,184,.12); pointer-events: none; }
.user-location-pin { position: absolute; z-index: 7; width: 18px; height: 18px; transform: translate(-50%,-50%); border: 3px solid #fff; border-radius: 50%; background: #1966b8; box-shadow: 0 2px 9px rgba(0,0,0,.45); pointer-events: none; }
.map-popup {
  position: absolute;
  z-index: 20;
  width: min(330px,calc(100% - 24px));
  max-height: calc(100% - 30px);
  overflow: auto;
  transform: translate(-50%,calc(-100% - 23px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 45px rgba(0,0,0,.34);
  pointer-events: auto;
  user-select: text;
}
.map-popup::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.map-popup-close { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1.2rem; }
.map-popup-title { display: block; margin: 9px 34px 0 0; font-size: 1.04rem; line-height: 1.2; }
.map-popup-time, .map-popup-place, .map-popup-distance { display: block; margin-top: 5px; color: var(--muted); font-size: .83rem; }
.map-popup-distance { color: var(--accent-strong); font-weight: 850; }
.map-popup-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.map-popup-actions > * { min-height: 38px; padding: 0 11px; }
.map-action-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.map-popup-actions .is-favorite { color: #9b6d00; border-color: #d89a00; background: #fff2c7; }
.map-attribution { position: absolute; z-index: 8; right: 4px; bottom: 4px; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.88); color: #27343a; font-size: 10px; pointer-events: auto; }
.map-attribution a { color: #174f7a; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25); background: #c83d3d; }
.legend-dot.gold { background: #d89a00; }
.legend-dot.blue { background: #1966b8; }
.map-privacy { margin-left: auto; }

@media (prefers-color-scheme: dark) {
  .map-viewport { background: #17252b; }
  .map-popup-actions .is-favorite { color: #ffd86f; background: #463716; }
  .map-attribution { background: rgba(239,245,246,.88); color: #142126; }
}
@media (max-width: 980px) {
  .controls { grid-template-columns: 1fr 1fr 1fr; }
  .view-switch, .toggle-button { width: 100%; }
}
@media (max-width: 800px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .controls .region-field { grid-column: 1 / -1; }
  .location-row { align-items: stretch; flex-direction: column; }
  .locate-button { width: 100%; }
  .map-toolbar { align-items: stretch; flex-direction: column; }
  .map-controls { justify-content: flex-end; }
  .map-viewport { height: 64vh; min-height: 390px; }
}
@media (max-width: 500px) {
  .controls { grid-template-columns: 1fr; }
  .controls .region-field { grid-column: auto; }
  .map-viewport { height: 62vh; min-height: 360px; }
  .map-popup { left: 10px !important; right: 10px; top: auto !important; bottom: 10px; width: auto; max-height: 55%; transform: none; }
  .map-popup::after { display: none; }
  .map-popup-actions > * { flex: 1 1 auto; }
  .map-privacy { width: 100%; margin-left: 0; }
}
@media print {
  .map-panel, .view-switch, .locate-button, .location-row { display: none !important; }
}
.map-popup.is-below { transform: translate(-50%,0); }
.map-popup.is-below::after { top: -8px; bottom: auto; border: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
@media (max-width: 500px) {
  .map-popup.is-below { transform: none; }
  .map-popup.is-below::after { display: none; }
}
