:root {
  --green: #126b55;
  --ink: #182e3b;
  --mist: #eaf6f1;
  --muted: #3e5563;
  --sand: #eaa34b;
  --line: #d5e4de;
  --radius: 14px;
  --header: 68px;
  color-scheme: light;
  font-family: Inter, Aptos, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--mist); }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button, .btn {
  background: var(--green); color: #fff; border: 0; border-radius: 12px;
  min-height: 44px; padding: 0.55rem 0.9rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn.alt { background: var(--ink); }
.btn.ghost, button.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
button.danger, .danger { background: #8d3b32; }
.topbar {
  display: flex; gap: 0.75rem; align-items: center; min-height: var(--header);
  padding: 0.5rem 1rem; background: #fff; border-bottom: 1px solid var(--line);
}
.logo { flex: 0 0 auto; font-weight: 700; color: var(--green); text-decoration: none; white-space: nowrap; }
.search { display: flex; flex: 1; gap: 0.4rem; min-width: 0; }
.search input, .panel input, .panel select, .panel textarea, .inline-form input, .create-card input, .create-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; min-height: 44px; padding: 0.4rem 0.7rem; background: #fff;
}
.search input { flex: 1; min-width: 0; width: auto; }
.search button { flex: 0 0 auto; }
input[type="color"] { width: 72px; padding: 0.25rem; }
.top-actions { display: flex; gap: 0.5rem; align-items: center; }
.account-link {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0.55rem 0.9rem;
  border: 1px solid var(--green); border-radius: 12px; text-decoration: none; white-space: nowrap;
}
.skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip:focus, .skip:focus-visible {
  position: fixed; inset-inline-start: 0.5rem; top: 0.5rem; left: auto; right: auto;
  width: auto; height: auto; margin: 0; padding: 0.4rem 0.6rem;
  overflow: visible; clip: auto; white-space: normal;
  background: #fff; color: #245d4b; z-index: 100; border-radius: 8px;
  box-shadow: 0 2px 12px #20352d22;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.banner { margin: 0.6rem 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: #fff; }
.banner-error { background: #fde8e4; }
.banner-success { background: #e5f6ee; }
.chips { display: flex; gap: 0.45rem; overflow: auto; padding: 0.55rem 0.8rem; background: #fff; }
.chip { display: inline-flex; gap: 0.35rem; align-items: center; border-radius: 999px; padding: 0.45rem 0.75rem; background: var(--mist); color: var(--ink); text-decoration: none; white-space: nowrap; min-height: 44px; }
.chip.is-on { background: var(--green); color: #fff; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.stage { display: block; position: relative; min-height: calc(100dvh - 150px); }
.map-wrap { position: relative; height: calc(100dvh - 150px); z-index: 1; }
#map, .picker { height: 100%; min-height: 280px; }
.picker { height: 280px; border-radius: var(--radius); overflow: hidden; margin-bottom: 0.6rem; }
.map-tools { position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; z-index: 2; }
.tool { background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 4px 16px rgba(24,46,59,.12); }
.tool.is-on { background: var(--green); color: #fff; }
.sheet {
  position: fixed; inset-inline: 0; bottom: 58px; z-index: 3; background: #fff;
  border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(24,46,59,.12);
  height: 46dvh; overflow: auto; padding: 0.4rem 0.9rem 1rem; z-index: 5;
}
.sheet.is-full { height: calc(100dvh - 130px); }
.sheet.is-closed { height: 52px; }
.sheet-handle { width: 100%; background: transparent; color: var(--muted); }
.card, .panel, .fiche { background: #fff; border-radius: var(--radius); }
.card { padding: 0.8rem; margin: 0.5rem 0; border: 1px solid var(--line); }
.card.is-selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(18,107,85,.2); }
.card h2 { font-size: 1.05rem; margin: 0 0 0.2rem; }
.panel, .fiche { margin: 1rem auto; padding: 1rem; max-width: 920px; }
.desk { max-width: 1080px; margin: 1rem auto 1.5rem; padding: 0 1rem 1rem; }
.desk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.8rem; margin-bottom: 1rem; }
.desk h1, .panel h1 { margin: 0 0 0.35rem; }
.lead { margin: 0; max-width: 38rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 0.65rem; margin: 1rem 0; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; text-decoration: none; color: inherit; }
.stat b { font-size: 1.7rem; line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); font-size: 0.9rem; }
.desk h2 { margin: 1.1rem 0 0.6rem; font-size: 1.05rem; }
.desk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem; }
.desk-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; min-height: 148px; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; }
.desk-card svg { width: 28px; height: 28px; color: var(--green); }
.desk-card strong { font-size: 1.05rem; }
.desk-card span { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }
.admin-nav a { text-decoration: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; min-height: 40px; }
.admin-nav a.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.create-card, .inline-form { display: grid; gap: 0.45rem; margin: 0 0 0.75rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: 16px; background: #f7fbf9; }
.create-card h2, .inline-form h2 { margin: 0; }
body.is-admin .search { display: none; }
body.is-admin .top-actions { margin-inline-start: auto; }
body.is-admin .panel { max-width: 1080px; }
@media (max-width: 760px) {
  body:not(.is-map) .topbar { flex-wrap: wrap; row-gap: 0.5rem; }
  body:not(.is-map) .logo, body:not(.is-map) .top-actions, body:not(.is-map) .search { flex: 1 0 100%; }
  body:not(.is-map) .search { order: 5; }
  body:not(.is-map) .top-actions { flex-wrap: wrap; }
  body:not(.is-map) .top-actions a, body:not(.is-map) .top-actions .ghost { white-space: nowrap; flex: 0 0 auto; }
}
@media (min-width: 800px) {
  .create-card, .inline-form { grid-template-columns: 1fr 1fr; align-items: end; }
  .create-card h2, .create-card button, .inline-form button, .inline-form .check { grid-column: 1 / -1; }
}
label { display: block; margin: 0.7rem 0; }
.field-error { color: #8d3b32; margin: 0; }
.muted, .eyebrow { color: var(--muted); }
.cta, .admin-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hours { list-style: none; padding: 0; }
.hours li, .hour-row { display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; }
.gallery img, .panel img { max-width: 180px; border-radius: 12px; }
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line); z-index: 4; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar { z-index: 8; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; text-decoration: none; color: #5f6368; padding: 6px 2px 8px;
  min-height: 56px; font-size: 11px; font-weight: 500; line-height: 1.1;
}
.tabbar svg, .ui-ico, .rail-btn svg, .layers-btn svg { width: 22px; height: 22px; display: block; }
.tabbar a.is-on { color: #126b55; }
.top-actions .ui-ico { width: 18px; height: 18px; }
.legal { display: flex; gap: 1rem; justify-content: center; padding: 1rem 1rem 5rem; }
.badge { background: var(--mist); border-radius: 999px; padding: 0.15rem 0.5rem; }
.check { display: flex; gap: 0.4rem; align-items: center; }
.secret { font-family: ui-monospace, monospace; background: var(--mist); padding: 0.6rem; border-radius: 10px; word-break: break-all; }
table { width: 100%; border-collapse: collapse; }
td { border-bottom: 1px solid var(--line); padding: 0.4rem; vertical-align: top; }
.split { display: grid; gap: 1rem; }
@media (min-width: 1024px) {
  .tabbar { display: none; }
  .legal { padding-bottom: 1rem; }
  .stage { display: grid; grid-template-columns: 380px 1fr; min-height: calc(100vh - 130px); }
  .sheet { position: static; height: auto; max-height: calc(100vh - 180px); border-radius: 0; box-shadow: none; }
  .map-wrap { height: calc(100vh - 180px); }
  .split { grid-template-columns: 1fr 1fr; }
}
.pin {
  width: 36px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer;
  filter: drop-shadow(0 3px 3px rgba(24, 46, 59, .35));
  transform-origin: center bottom;
}
.pin.is-selected { transform: translateY(-6px) scale(1.14); }
.you { width: 22px; height: 22px; position: relative; }
.you-core, .you-pulse { position: absolute; inset: 0; border-radius: 50%; }
.you-core { background: #1a73e8; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(24, 46, 59, .45); }
.you-pulse { background: rgba(26, 115, 232, .35); animation: you-pulse 1.8s ease-out infinite; }
@keyframes you-pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.popup-card { min-width: 160px; }
.popup-card strong, .popup-card p { display: block; margin: 0 0 .25rem; }
.popup-card a { font-weight: 700; }
.maplibregl-popup-content { border-radius: 14px; padding: .75rem .85rem; box-shadow: 0 10px 28px rgba(24, 46, 59, .2); font-family: inherit; }
.place-map { height: 340px; border-radius: 16px; overflow: hidden; margin: .8rem 0 1rem; border: 1px solid var(--line); }
body.is-map {
  overflow: hidden; background: #e8eaed; color: #202124;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}
body.is-map .legal, body.is-map .logo { display: none; }
body.is-map main { padding: 0; }
body.is-map .topbar {
  position: absolute; top: 8px; inset-inline: 8px; z-index: 8;
  min-height: 48px; height: 48px; gap: 8px; padding: 0;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
}
body.is-map .search {
  position: relative; flex: 1 1 auto; min-width: 0; height: 48px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .search input {
  height: 48px; min-height: 48px; border: 0; background: transparent; border-radius: 24px;
  padding-inline: 48px 16px; font-size: 16px; color: #202124;
}
body.is-map .search input::placeholder { color: #70757a; }
body.is-map .search button {
  position: absolute; inset-inline-start: 6px; top: 4px; width: 40px; height: 40px; min-height: 40px;
  padding: 0; border-radius: 50%; background: transparent; color: transparent; font-size: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16.5 20.5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 22px;
}
body.is-map .top-actions { gap: 8px; }
body.is-map .top-actions a,
body.is-map .top-actions .ghost {
  width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: transparent; font-size: 0; text-decoration: none;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .top-actions span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
body.is-map .top-actions .ui-ico { width: 22px; height: 22px; color: #5f6368; }
body.is-map .chips {
  position: absolute; top: 64px; inset-inline: 8px; z-index: 7; height: 40px;
  align-items: center; background: transparent; padding: 0; scrollbar-width: none;
}
body.is-map .chips::-webkit-scrollbar { display: none; }
body.is-map .chip {
  min-height: 32px; height: 32px; padding-block: 0; padding-inline: 8px 12px; gap: 6px;
  background: #fff; color: #3c4043; font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .chip.is-on { background: #e8f0fe; color: #1967d2; box-shadow: inset 0 0 0 1px #d2e3fc; }
body.is-map .gm-ico {
  width: 20px; height: 20px; flex: 0 0 20px; background: var(--c, #1a73e8);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
body.is-map .chip.is-on .gm-ico { background: #1967d2; }
body.is-map .ico-all { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E"); }
body.is-map .ico-pharmacie { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h4v7h7v4h-7v7h-4v-7H3v-4h7z'/%3E%3C/svg%3E"); }
body.is-map .ico-epicerie { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 7h15l-1.5 9h-12zM6 7 5 4H2v2h1.6zM9 20a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm8 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); }
body.is-map .ico-cafe { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 8h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zm12 1h2.5A2.5 2.5 0 0 1 16 11.5V14h-1.2A6 6 0 0 0 16 9zM4 20h14v2H4z'/%3E%3C/svg%3E"); }
body.is-map .ico-boulangerie { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 12c0-4 3-7 8-7s8 3 8 7-2 5-8 5-8-1-8-5zm3 6h10v2H7z'/%3E%3C/svg%3E"); }
body.is-map .ico-restaurant { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 3v8a2 2 0 0 0 2 2V21h2v-8a2 2 0 0 0 2-2V3h-2v6H9V3zm10 0c-2 3-2 5 0 8v10h2V3z'/%3E%3C/svg%3E"); }
body.is-map .ico-banque { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 3 8v2h18V8zM5 12h2v6H5zm6 0h2v6h-2zm6 0h2v6h-2zM3 20h18v2H3z'/%3E%3C/svg%3E"); }
body.is-map .ico-ecole { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 1 9l11 6 9-4.9V17h2V9zM7 13.2V17l5 3 5-3v-3.8l-5 2.7z'/%3E%3C/svg%3E"); }
body.is-map .ico-coiffure { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m8 4 2 4-3 3 2 8h2l1-5 1 5h2l2-8-3-3 2-4h-2l-2 3-2-3z'/%3E%3C/svg%3E"); }
body.is-map .ico-garage { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.7 6.3a1 1 0 0 0-1.4 0L4 15.6V20h4.4l9.3-9.3a1 1 0 0 0 0-1.4zM20 8l-2-2 1.2-1.2a1.5 1.5 0 0 1 2.1 2.1z'/%3E%3C/svg%3E"); }
body.is-map .ico-autre { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E"); }
body.is-map .rail { display: none; }
body.is-map .stage { display: block; }
body.is-map .stage, body.is-map .map-wrap, body.is-map #map { height: 100dvh; min-height: 100dvh; }
body.is-map [hidden] { display: none !important; }
body.is-map .map-wrap { position: absolute; inset: 0; }
body.is-map .sheet {
  height: 112px; bottom: 62px; z-index: 7; border-radius: 16px 16px 0 0; padding: 0 16px 8px;
  box-shadow: 0 -1px 2px rgba(60,64,67,.3), 0 -2px 6px rgba(60,64,67,.15);
}
body.is-map .sheet.is-open { height: 52dvh; }
body.is-map .sheet-head { position: sticky; top: 0; z-index: 1; background: #fff; padding-top: 4px; }
body.is-map .sheet-handle { width: 100%; min-height: 18px; padding: 6px 0 2px; background: transparent; }
body.is-map .handle-bar { display: block; width: 32px; height: 4px; margin: 0 auto; border-radius: 4px; background: #dadce0; }
body.is-map .count { margin: 0; font-size: 16px; font-weight: 500; color: #202124; }
body.is-map .city-name, body.is-map .demo-note, body.is-map .card .meta { color: #70757a; }
body.is-map .city-name { margin: 2px 0 8px; font-size: 13px; }
body.is-map .demo-note { margin: 0 0 8px; font-size: 12px; }
body.is-map .pill-check {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
  min-height: 32px; padding: 0 12px; border-radius: 16px; background: #f1f3f4; font-size: 13px;
}
body.is-map .card {
  background: #fff; border: 0; border-bottom: 1px solid #e8eaed; border-radius: 0;
  box-shadow: none; margin: 0; padding: 12px 2px; cursor: pointer;
}
body.is-map .card-line { display: flex; gap: 12px; align-items: flex-start; }
body.is-map .card h2 { font-size: 15px; font-weight: 500; }
body.is-map .card h2 a { color: #202124; text-decoration: none; }
body.is-map .card .meta { margin: 2px 0 0; font-size: 13px; }
body.is-map .card.is-selected { background: #e8f0fe; }
body.is-map .open-flag {
  display: inline-flex; margin: 6px 0 0; padding: 0; background: transparent;
  color: #70757a; font-size: 12px; font-weight: 500;
}
body.is-map .open-flag.is-open { color: #137333; }
body.is-map .open-flag.is-closed { color: #c5221f; }
body.is-map .empty-state { margin: 12px 0; text-align: center; }
body.is-map .empty-state p { margin: 0 0 10px; color: #70757a; }
body.is-map .empty-state .btn { background: #1a73e8; color: #fff; border: 0; border-radius: 18px; }
body.is-map .locate {
  position: static; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .locate::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1a73e8;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #1a73e8;
}
body.is-map .layers { position: absolute; z-index: 3; inset-inline-start: 8px; bottom: 186px; }
body.is-map .layers-btn {
  width: 76px; height: 64px; min-height: 64px; padding: 6px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #fff; color: #202124;
  font-size: 11px; font-weight: 500; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .layers-btn svg { width: 22px; height: 22px; color: #1a73e8; }
body.is-map .city-jump { display: none; }
body.is-map .sheet.is-open ~ .map-wrap .layers { bottom: calc(52dvh + 16px); }
body.is-map .sheet.is-open ~ .map-wrap .maplibregl-ctrl-bottom-right { bottom: calc(52dvh + 16px); }
body.is-map #map-banner {
  position: absolute; z-index: 5; top: 112px; left: 50%; transform: translateX(-50%);
  margin: 0; max-width: min(420px, calc(100% - 24px));
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .maplibregl-ctrl-group {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 40px;
  background: transparent; box-shadow: none;
}
body.is-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl { float: none; margin: 0; }
body.is-map .maplibregl-ctrl-group button {
  box-sizing: border-box; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 8px; margin: 0;
  line-height: 0; background: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
body.is-map .maplibregl-ctrl-bottom-right {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  bottom: 186px; right: 10px; left: auto; max-width: none;
}
body.is-map .maplibregl-ctrl-bottom-left { bottom: 128px; left: 50%; right: auto; transform: translateX(-50%); max-width: 70vw; }
body.is-map .maplibregl-ctrl-attrib { font-size: 11px; background: rgba(255,255,255,.85); border-radius: 4px; }
body.is-map .popup-card a { color: #1a73e8; font-weight: 500; }
@media (min-width: 1024px) {
  body.is-map .rail {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    position: absolute; z-index: 9; top: 0; bottom: 0; inset-inline-start: 0; width: 72px;
    background: #fff; padding-top: 8px;
    box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  }
  body.is-map .rail-btn {
    width: 64px; min-height: 56px; padding: 8px 4px; border-radius: 12px;
    background: transparent; color: #70757a; font-size: 11px; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
  }
  body.is-map .rail-btn svg { width: 24px; height: 24px; }
  body.is-map .rail-btn:hover, body.is-map .rail-btn[aria-expanded="true"] { background: #f1f3f4; color: #202124; }
  body.is-map .topbar { top: 12px; inset-inline-start: 84px; inset-inline-end: 16px; width: auto; }
  body.is-map .top-actions { margin-inline-start: auto; }
  body.is-map .search { flex: 0 0 368px; width: 368px; }
  body.is-map .chips { top: 16px; height: 48px; inset-inline-start: 464px; inset-inline-end: 168px; }
  body.is-map .sheet {
    position: absolute; top: 0; bottom: 0; inset-inline-start: 72px; width: 408px; height: auto;
    border-radius: 0; padding: 76px 16px 16px; transform: translateX(-120%); visibility: hidden; pointer-events: none;
  }
  body.is-map .sheet.is-open { transform: none; visibility: visible; pointer-events: auto; }
  body.is-map .sheet-handle { display: none; }
  body.is-map .maplibregl-ctrl-bottom-right { bottom: 24px; right: 16px; }
  body.is-map .layers { bottom: 24px; inset-inline-start: 88px; }
  body.is-map .city-jump {
    display: inline-flex; position: absolute; z-index: 3; bottom: 28px; inset-inline-start: 176px;
    max-width: 240px; height: 36px; padding: 0 12px; border-radius: 18px; background: #fff; color: #202124;
    font-weight: 500; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  }
  body.is-map .sheet.is-open ~ .map-wrap .layers,
  body.is-map .sheet.is-open ~ .map-wrap .city-jump { bottom: auto; }
  body.is-map .sheet.is-open ~ .map-wrap .layers,
  body.is-map .sheet.is-open ~ .map-wrap .city-jump { bottom: 24px; }
  body.is-map .sheet.is-open ~ .map-wrap .city-jump { inset-inline-start: 584px; }
  body.is-map .sheet.is-open ~ .map-wrap .layers { inset-inline-start: 496px; }
  body.is-map .maplibregl-ctrl-bottom-left { bottom: 8px; left: 50%; transform: translateX(-50%); max-width: 46vw; }
  body.is-map #map-banner { top: 72px; inset-inline-start: 480px; left: auto; transform: none; }
}
@media (min-width: 1024px) {
  [dir="rtl"] body.is-map .sheet { transform: translateX(120%); }
  [dir="rtl"] body.is-map .sheet.is-open { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .you-pulse { animation: none; }
}
[dir="rtl"] .topbar, [dir="rtl"] .cta, [dir="rtl"] .hour-row { text-align: right; }
[dir="rtl"] body.is-map .maplibregl-ctrl-bottom-right { right: auto; left: 10px; }
