/* ==========================================================================
   FindMyPet design system
   Warm, rounded and calm — this app meets people on a bad day.
   ========================================================================== */

:root {
  --brand:        #0FAE96;
  --brand-light:  #22C9AE;
  --brand-deep:   #0B7F8C;
  --brand-wash:   #E4F7F3;
  --accent:       #FF6B4A;
  --accent-light: #FF9E6B;
  --accent-wash:  #FFEDE6;
  --amber:        #FFB020;
  --amber-wash:   #FFF3DC;
  --ink:          #16232B;
  --ink-2:        #46585F;
  --ink-3:        #7A8B92;
  --line:         #E7E0D7;
  --bg:           #FFF9F3;
  --surface:      #FFFFFF;
  --surface-2:    #FDF4EA;
  --danger:       #D64545;
  --danger-wash:  #FDEDED;
  --success:      #1F9D6B;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 1px 2px rgba(22, 35, 43, .06), 0 2px 8px rgba(22, 35, 43, .05);
  --shadow-2: 0 4px 12px rgba(22, 35, 43, .08), 0 12px 32px rgba(22, 35, 43, .08);
  --shadow-3: 0 10px 24px rgba(22, 35, 43, .12), 0 24px 60px rgba(22, 35, 43, .12);

  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Nunito', ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }
a  { color: var(--brand-deep); }
img { max-width: 100%; }

.muted   { color: var(--ink-3); }
.small   { font-size: .86rem; }
.center  { text-align: center; }
.stack   { display: grid; gap: 14px; }
.stack-sm{ display: grid; gap: 8px; }
.row     { display: flex; gap: 10px; align-items: center; }
.row-wrap{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer  { flex: 1; }
.hidden  { display: none !important; }

.boot {
  min-height: 100dvh; display: grid; place-content: center; justify-items: center;
  gap: 14px; color: var(--ink-3);
}
.boot img { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* ---------- app shell --------------------------------------------------- */

.shell { min-height: 100dvh; display: flex; flex-direction: column; }

/* Brand bar + nav scroll together as one sticky block. */
.chrome { position: sticky; top: 0; z-index: 400; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 249, 243, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand img { width: 32px; height: 32px; }
.brand b { font-size: 1.16rem; font-weight: 900; letter-spacing: -.03em; }
.brand b span { color: var(--brand); }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; color: var(--ink-2); font-size: 1.1rem;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .dot {
  position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}

.view { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
.view.flush { max-width: none; padding: 0 0 calc(var(--nav-h) + var(--safe-b)); }

/* ---------- bottom navigation ------------------------------------------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 6px calc(6px + var(--safe-b));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: grid; justify-items: center; gap: 2px; padding: 8px 2px;
  color: var(--ink-3); text-decoration: none; font-size: .68rem; font-weight: 700;
  border-radius: 14px; position: relative;
}
.tabbar a .glyph { font-size: 1.32rem; line-height: 1; transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.tabbar a[aria-current="page"] { color: var(--brand-deep); }
.tabbar a[aria-current="page"] .glyph { transform: translateY(-3px) scale(1.12); }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  --btn-bg: var(--brand); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; min-height: 48px;
  border: none; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 800; font-size: .97rem;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 4px 14px rgba(15, 174, 150, .28);
}
.btn:hover  { filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn.block { width: 100%; }
.btn.lg { padding: 16px 28px; font-size: 1.05rem; min-height: 56px; }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: .86rem; }

.btn.accent  { --btn-bg: var(--accent); box-shadow: 0 4px 14px rgba(255, 107, 74, .3); }
.btn.dark    { --btn-bg: var(--ink); box-shadow: 0 4px 14px rgba(22, 35, 43, .22); }
.btn.ghost   { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger  { --btn-bg: var(--danger-wash); --btn-fg: var(--danger); box-shadow: none; }
.btn.success { --btn-bg: var(--success); box-shadow: 0 4px 14px rgba(31, 157, 107, .3); }

.link-btn {
  background: none; border: none; padding: 0; font: inherit; font-weight: 700;
  color: var(--brand-deep); cursor: pointer; text-decoration: underline;
}

/* ---------- forms ------------------------------------------------------- */

.field { display: grid; gap: 6px; }
.field > label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-wash);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: .88rem;
  cursor: pointer; color: var(--ink-2); font-family: inherit;
  transition: all .15s ease;
}
.chip[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 3px 10px rgba(15, 174, 150, .28);
}

.form-error {
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--danger-wash); color: var(--danger);
  font-weight: 700; font-size: .9rem;
}

/* ---------- cards & surfaces -------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-1);
}
.card.tight { padding: 14px; }
.panel { background: var(--surface-2); border-radius: var(--r-lg); padding: 16px; }

.section-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.section-head h2 { margin: 0; }
.section-head .muted { font-size: .88rem; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .01em;
  background: var(--brand-wash); color: var(--brand-deep);
}
.badge.accent  { background: var(--accent-wash); color: #C24A2C; }
.badge.amber   { background: var(--amber-wash); color: #8A5B00; }
.badge.grey    { background: #EFEAE3; color: var(--ink-2); }
.badge.success { background: #E3F5EC; color: var(--success); }
.badge.danger  { background: var(--danger-wash); color: var(--danger); }

.reward-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), #FF9A3D);
  color: #4A2E00; font-weight: 900; font-size: .92rem;
  box-shadow: 0 3px 10px rgba(255, 176, 32, .35);
}

/* ---------- pet cards --------------------------------------------------- */

.pet-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.pet-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pet-card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.pet-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-card .thumb .reward-tag { position: absolute; top: 10px; right: 10px; }
.pet-card .thumb .dist {
  position: absolute; bottom: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(22, 35, 43, .72); color: #fff;
  font-size: .75rem; font-weight: 800; backdrop-filter: blur(4px);
}
.pet-card .body { padding: 13px 14px 15px; display: grid; gap: 4px; }
.pet-card .body h3 { margin: 0; }
.pet-card .body .meta { font-size: .84rem; color: var(--ink-3); }

/* ---------- map --------------------------------------------------------- */

.map-wrap { position: relative; height: calc(100dvh - var(--nav-h) - var(--safe-b) - 63px); }
#map { position: absolute; inset: 0; background: #DCE7E4; }
.leaflet-container { font-family: var(--font); }

.map-controls {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 420;
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.map-controls::-webkit-scrollbar { display: none; }
.map-controls .chip {
  flex: 0 0 auto; background: rgba(255,255,255,.95); box-shadow: var(--shadow-1);
  backdrop-filter: blur(8px);
}
.map-controls .chip[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

.map-fab {
  position: absolute; right: 14px; bottom: 214px; z-index: 420;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: var(--surface); box-shadow: var(--shadow-2);
  display: grid; place-items: center; font-size: 1.25rem; cursor: pointer;
}

/* photo pins, hotel-app style */
.pet-pin {
  display: grid; justify-items: center; gap: 2px; cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.pet-pin .puck {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid #fff; background: var(--surface-2);
  box-shadow: 0 4px 14px rgba(22,35,43,.3); overflow: hidden;
}
.pet-pin .puck img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-pin .price {
  padding: 3px 9px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 900;
  white-space: nowrap; box-shadow: 0 3px 8px rgba(22,35,43,.28);
  font-family: var(--font);
}
.pet-pin.is-active { transform: scale(1.14) translateY(-4px); z-index: 900; }
.pet-pin.is-active .puck { border-color: var(--amber); }
.pet-pin.is-active .price { background: var(--amber); color: #4A2E00; }
.leaflet-marker-icon.pet-pin-icon { background: none; border: none; }

.me-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2D8CFF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(45,140,255,.25);
}

.map-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 430;
  padding: 10px 0 14px;
  background: linear-gradient(to top, rgba(255,249,243,.98) 62%, rgba(255,249,243,0));
}
.map-sheet .row { padding: 0 16px 8px; align-items: baseline; }
.map-sheet .count { font-weight: 800; font-size: .9rem; color: var(--ink-2); flex: 1; }
.map-attr { font-size: .64rem; color: var(--ink-3); white-space: nowrap; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: 0 0 min(78vw, 300px); }

.mini-card {
  display: flex; gap: 12px; padding: 10px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  transition: border-color .15s ease;
}
.mini-card.is-active { border-color: var(--amber); }
.mini-card img { width: 78px; height: 78px; border-radius: var(--r-md); object-fit: cover; flex: 0 0 auto; background: var(--surface-2); }
.mini-card .info { display: grid; align-content: center; gap: 3px; min-width: 0; }
.mini-card .info h4 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.mini-card .info p { margin: 0; font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- pet detail --------------------------------------------------- */

.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img, .gallery video {
  flex: 0 0 100%; scroll-snap-align: center; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--surface-2);
}
.gallery.small img, .gallery.small video { flex: 0 0 62%; aspect-ratio: 1; }

.facts { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--surface); font-size: .92rem; }
.facts dt { color: var(--ink-3); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 450;
  padding: 12px 16px calc(12px);
  background: rgba(255,249,243,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: center;
}

/* ---------- timeline / status ------------------------------------------- */

.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.step .rail-col { display: grid; grid-template-rows: auto 1fr; justify-items: center; }
.step .bead {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #EFEAE3; color: var(--ink-3); font-size: .8rem; font-weight: 900;
}
.step .line { width: 2px; background: #EFEAE3; min-height: 18px; }
.step:last-child .line { background: none; }
.step .content { padding-bottom: 16px; }
.step .content h4 { margin: 2px 0 3px; font-size: .98rem; }
.step .content p { margin: 0; font-size: .87rem; color: var(--ink-3); }
.step.done .bead { background: var(--success); color: #fff; }
.step.done .line { background: var(--success); }
.step.active .bead { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-wash); }
.step.active .content h4 { color: var(--brand-deep); }

/* ---------- toasts & modal ----------------------------------------------- */

.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 900;
  display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-3); animation: toast-in .28s cubic-bezier(.34,1.4,.64,1);
}
.toast.error   { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(22,35,43,.5); backdrop-filter: blur(3px);
  display: grid; place-items: end center; padding: 0;
  animation: fade .2s ease;
}
@media (min-width: 640px) { .modal-backdrop { place-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0 } }
.modal {
  width: min(560px, 100%); max-height: 92dvh; overflow: auto;
  background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 22px 20px calc(22px + var(--safe-b));
  box-shadow: var(--shadow-3); animation: sheet-up .3s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 640px) { .modal { border-radius: var(--r-xl); } }
@keyframes sheet-up { from { transform: translateY(30px); opacity: .6 } }
.modal .grabber { width: 42px; height: 4px; border-radius: 2px; background: var(--line); margin: -6px auto 14px; }

/* ---------- media picker -------------------------------------------------- */

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  padding: 22px 16px; text-align: center; background: var(--surface);
  cursor: pointer; transition: all .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-wash); }
.dropzone .big { font-size: 1.6rem; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumbs .t { position: relative; width: 86px; height: 86px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumbs .t img, .thumbs .t video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t .kill {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(22,35,43,.8); color: #fff; cursor: pointer;
  font-size: .8rem; line-height: 1; display: grid; place-items: center;
}
.thumbs .t .tag {
  position: absolute; bottom: 3px; left: 3px; padding: 1px 6px; border-radius: 999px;
  background: rgba(22,35,43,.8); color: #fff; font-size: .62rem; font-weight: 800;
}
.progress { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--brand); transition: width .2s ease; }

/* ---------- landing / marketing ------------------------------------------ */

.hero {
  position: relative; overflow: hidden;
  padding: 26px 20px 0; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #E7FAF6 0%, var(--bg) 62%);
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); font-weight: 900; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: 1.06rem; color: var(--ink-2); max-width: 30ch; margin: 0 auto 20px; }
.hero .cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero .stats { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 4px 0 6px; }
.hero .stats b { display: block; font-size: 1.35rem; color: var(--brand-deep); }
.hero .stats span { font-size: .78rem; color: var(--ink-3); font-weight: 700; }

.mascot-stage {
  position: relative; padding-bottom: 26px; margin-top: 6px;
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  user-select: none;
}
/* Two mascots must always share one row, however narrow the phone. */
.mascot { width: min(172px, 43vw); height: auto; aspect-ratio: 200 / 240; }
.mascot.dog { margin-bottom: -2px; }
.mascot-hint {
  position: absolute; bottom: 2px; left: 0; right: 0;
  text-align: center; font-size: .76rem; color: var(--ink-3); font-weight: 700;
}
.speech {
  position: absolute; padding: 7px 13px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 800;
  white-space: nowrap; box-shadow: var(--shadow-2);
  animation: pop .3s cubic-bezier(.34,1.56,.64,1);
}
.speech::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--ink); border-bottom: none;
}
@keyframes pop { from { transform: scale(.7) translateY(6px); opacity: 0 } }

.how { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.how .card { text-align: left; }
.how .n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand-deep); font-weight: 900; margin-bottom: 8px;
}

.split-cta { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .split-cta { grid-template-columns: 1fr; } }
.split-cta .card { display: grid; gap: 6px; }
.split-cta .card .emoji { font-size: 1.9rem; }

/* ---------- empty state --------------------------------------------------- */

.empty { text-align: center; padding: 40px 20px; display: grid; gap: 10px; justify-items: center; }
.empty .art { font-size: 3rem; }

/* ---------- desktop ------------------------------------------------------- */

@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .tabbar {
    position: static;
    grid-auto-flow: column; grid-auto-columns: max-content;
    justify-content: center; gap: 4px;
    border-top: none; border-bottom: 1px solid var(--line);
    background: rgba(255,249,243,.9); padding: 6px;
  }
  .tabbar a { grid-auto-flow: column; align-items: center; gap: 8px; padding: 9px 16px; font-size: .9rem; }
  .tabbar a[aria-current="page"] { background: var(--brand-wash); }
  .tabbar a[aria-current="page"] .glyph { transform: none; }
  .sticky-cta { bottom: 0; }
  .map-wrap { height: calc(100dvh - 63px - 56px); }
  .map-fab { bottom: 224px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
