:root {
  --bg: #120806;
  --bg-2: #1c0d08;
  --panel: rgba(47, 24, 15, .78);
  --panel-strong: rgba(61, 31, 19, .88);
  --panel-soft: rgba(255, 238, 211, .075);
  --line: rgba(255, 210, 142, .22);
  --line-strong: rgba(255, 196, 103, .40);
  --cream: #fff6ea;
  --muted: rgba(255, 246, 234, .72);
  --soft: rgba(255, 246, 234, .56);
  --gold: #ffc76f;
  --gold-2: #ff9e34;
  --gold-soft: #ffe0a5;
  --brown: #35180e;
  --green: #7ee074;
  --danger: #ff7368;
  --shadow: 0 18px 42px rgba(0, 0, 0, .34);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, .24);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 520px;
  --gap: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #0d0504; }
body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.bean-photo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("assets/epic-coffee-beans-bg.png") center top / cover no-repeat;
}
.bean-photo-bg::after {
  content: none;
}
.ambient-glow,
.grain {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 22px), var(--content-width));
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 0 calc(26px + env(safe-area-inset-bottom));
}

.hidden { display: none !important; }
.glass,
.hero-card,
.stop-card,
.map-panel,
.support-card,
.notice,
.footer-note,
.donate-modal,
.all-map-modal {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 194, 104, .10), transparent 13rem),
    linear-gradient(145deg, rgba(55, 27, 17, .78), rgba(25, 11, 8, .74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}

/* HERO */
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
  padding: 18px 14px 17px;
  border-radius: 30px;
  text-align: center;
  margin-bottom: 12px;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 190, 96, .15), transparent 13rem),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 44%);
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}
.hero-shine,
.steam-wrap { display: none !important; }
.hero-topline {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 238, 211, .08);
  border: 1px solid rgba(255, 226, 181, .18);
  color: rgba(255, 229, 188, .92);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-kicker-pill::before { content: "◐"; color: var(--gold); font-size: .78rem; letter-spacing: 0; }

.inline-brand-logo {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto 14px;
  padding: 13px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 75%, rgba(255, 190, 96, .16), transparent 9rem),
    linear-gradient(145deg, rgba(255,244,222,.12), rgba(255,244,222,.035));
  border: 1px solid rgba(255, 226, 181, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 13px 26px rgba(0,0,0,.18);
}
.inline-brand-logo::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 177, 74, .12), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.inline-brand-words,
.inline-brand-van { position: relative; z-index: 1; }
.inline-brand-words {
  order: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.inline-brand-words span {
  color: rgba(255, 226, 181, .94);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .66rem;
  font-weight: 900;
}
.inline-brand-words strong {
  color: var(--cream);
  font-size: clamp(1.38rem, 6.1vw, 1.9rem);
  letter-spacing: -.052em;
  line-height: .96;
  text-shadow: 0 8px 18px rgba(0,0,0,.26);
}
.inline-brand-van {
  order: 2;
  display: block;
  width: min(96%, 238px);
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.28));
}

.hero-card h1 {
  margin: 0 auto 14px;
  max-width: 410px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.18rem, 11.8vw, 3.65rem);
  line-height: .94;
  letter-spacing: -.058em;
  color: var(--cream);
  text-shadow: 0 16px 32px rgba(0,0,0,.26);
}
.hero-card h1 span {
  display: inline-block;
  color: var(--gold);
  background: linear-gradient(92deg, #ffe8b7 0%, #ffc06d 44%, #ff9a34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 12px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  color: rgba(255,246,234,.83);
  border: 1px solid rgba(255,226,181,.19);
  background: rgba(255,244,222,.075);
  border-radius: 18px;
  font-size: .88rem;
  line-height: 1.42;
  font-weight: 760;
}
.disclaimer-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #3b190d;
  background: linear-gradient(135deg, #ffe1a0, #ffb04c);
  font-weight: 950;
  font-family: Georgia, serif;
  box-shadow: 0 7px 14px rgba(0,0,0,.18);
}
.hero-actions {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  gap: 9px;
}
.btn {
  appearance: none;
  border: 0;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: .99rem;
  line-height: 1;
  color: var(--cream);
  background: rgba(255,244,222,.09);
  border: 1px solid rgba(255,226,181,.20);
  box-shadow: 0 9px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  color: #2f160b;
  border-color: rgba(255,231,179,.52);
  background: linear-gradient(135deg, #ffe4aa 0%, #ffc468 48%, #ff9e34 100%);
  box-shadow: 0 14px 26px rgba(255, 164, 62, .22), inset 0 1px 0 rgba(255,255,255,.38);
}
.btn-soft,
.btn-map-all {
  background: linear-gradient(145deg, rgba(255,244,222,.105), rgba(255,244,222,.045));
}
.hero-actions .btn::after,
.map-seg::after,
.route-main::after,
.closest-route-btn .closest-route-chevron {
  content: "›";
  margin-left: auto;
  font-size: 1.35rem;
  line-height: 1;
  opacity: .78;
}
.hero-actions .btn { justify-content: flex-start; }
.btn-spark { width: 20px; text-align: center; }
.status-text {
  margin: 11px auto 0;
  max-width: 430px;
  color: rgba(255,246,234,.70);
  font-size: .84rem;
  line-height: 1.35;
  font-weight: 800;
}
.status-text::before { content: "☕"; margin-right: 7px; opacity: .8; }

/* SUMMARY */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: 12px;
}
.summary-card {
  min-height: 116px;
  padding: 14px 12px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.summary-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  opacity: .62;
  color: var(--gold);
  font-size: 1.1rem;
}
.summary-card:nth-child(1)::after { content: "▣"; }
.summary-card:nth-child(2)::after { content: "●"; }
.status-summary-card::after { content: "↗"; }
.mini-label {
  margin: 0 0 8px;
  color: rgba(255, 226, 181, .84);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .63rem;
  line-height: 1.2;
  font-weight: 950;
}
.summary-card h2 {
  margin: 0;
  font-size: clamp(1.26rem, 5.4vw, 1.65rem);
  letter-spacing: -.06em;
  line-height: 1.02;
}
.status-summary-card h2 { font-size: clamp(1.04rem, 4.6vw, 1.36rem); }
.status-summary-card small {
  display: block;
  margin-top: 7px;
  color: rgba(255,246,234,.68);
  font-size: .70rem;
  line-height: 1.25;
  font-weight: 760;
}
.wide-card { grid-column: 1 / -1; }

/* FEATURED */
.closest-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 13px 14px 14px;
  border-radius: 22px;
  margin-bottom: 12px;
  border-color: rgba(255, 200, 105, .30);
  background:
    radial-gradient(circle at 92% 58%, rgba(255, 178, 74, .16), transparent 11rem),
    linear-gradient(145deg, rgba(52,25,15,.90), rgba(25,11,8,.88));
}
.closest-card-bg { display: none; }
.closest-route {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "icon copy"
    "button button";
  gap: 12px;
  align-items: center;
}
.closest-medallion {
  grid-area: icon;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe3a4, #d28a36);
  border: 1px solid rgba(255,246,234,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 24px rgba(0,0,0,.24);
}
.closest-medallion img { width: 40px; height: 40px; display: block; }
.closest-pin { color: #39180c; font-weight: 900; }
.closest-copy { grid-area: copy; min-width: 0; text-align: left; }
.closest-kicker {
  margin-bottom: 3px;
  color: rgba(255, 226, 181, .88);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .65rem;
  font-weight: 950;
}
.closest-kicker span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(126,224,116,.12);
}
.closest-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 6.5vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.closest-chip-row {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.closest-chip-row strong,
.closest-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
}
.closest-chip-row strong { color: #34170b; background: linear-gradient(135deg, #ffe0a1, #ffad48); }
.closest-chip-row span { color: rgba(255,246,234,.76); background: rgba(255,244,222,.10); border: 1px solid rgba(255,226,181,.14); }
.closest-copy small {
  display: block;
  margin-top: 8px;
  color: rgba(255,246,234,.70);
  font-size: .79rem;
  line-height: 1.35;
  font-weight: 750;
}
.closest-route-btn {
  grid-area: button;
  min-height: 54px;
  padding: 8px 12px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,226,181,.28);
  background: linear-gradient(135deg, #fff1cb, #ffbd5d);
  color: #32160b;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.45);
  font-weight: 900;
}
.closest-route-icon,
.route-icon,
.provider-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.closest-route-icon svg,
.route-icon svg,
.provider-logo svg,
.closest-route-icon img,
.route-icon img,
.provider-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.closest-route-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.closest-route-label small { font-size: .70rem; opacity: .72; }
.closest-route-chevron svg { display:none; }

/* MAP PREF */
.map-panel {
  width: 100%;
  padding: 14px;
  border-radius: 22px;
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
}
.map-copy h2,
.support-card h2 {
  margin: 0 0 5px;
  font-size: clamp(1.35rem, 6vw, 1.75rem);
  letter-spacing: -.06em;
  line-height: 1.02;
}
.map-copy p:not(.mini-label),
.support-card p,
.footer-note,
.notice {
  margin: 0;
  color: rgba(255,246,234,.70);
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 740;
}
.map-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 5px;
  border-radius: 19px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,226,181,.14);
}
.map-seg {
  appearance: none;
  border: 0;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: var(--cream);
  background: transparent;
  font-weight: 900;
  white-space: nowrap;
}
.map-seg::after { display: none; }
.map-seg.active,
.map-seg[aria-pressed="true"] {
  color: #32160b;
  background: linear-gradient(135deg, #fff0c9, #ffbd5d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}
.apple-logo svg { fill: currentColor; }

.notice {
  padding: 12px 14px;
  border-radius: 18px;
  margin-bottom: 12px;
}

/* RESULTS */
.results {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.results::before {
  content: "Today’s schedule";
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 -1px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255,226,181,.88);
  background: rgba(255,244,222,.07);
  border: 1px solid rgba(255,226,181,.15);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .63rem;
  font-weight: 950;
}
.stop-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 14px;
  border-radius: 21px;
  border-color: rgba(255,226,181,.17);
  background:
    radial-gradient(circle at 94% 20%, rgba(255, 185, 88, .12), transparent 8rem),
    linear-gradient(145deg, rgba(255,244,222,.095), rgba(255,244,222,.035));
}
.stop-glow { display: none; }
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.open-chip,
.distance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.open-chip { color: #3d1a0d; background: linear-gradient(135deg, #f8e0aa, #ce9147); }
.distance-chip { color: rgba(255,246,234,.85); background: rgba(255,244,222,.10); border: 1px solid rgba(255,226,181,.15); }
.open-now-chip { background: linear-gradient(135deg, #d5ffbc, #75d966); }
.closing-chip { background: linear-gradient(135deg, #ffe0a1, #ffaf3d); }
.upcoming-chip,
.scheduled-chip { background: linear-gradient(135deg, #f7dfaa, #dba461); }
.verify-time-chip { background: rgba(255,244,222,.12); color: var(--cream); border: 1px solid rgba(255,226,181,.2); }
.stop-name {
  margin: 0;
  font-size: clamp(1.18rem, 5.7vw, 1.62rem);
  line-height: 1.06;
  letter-spacing: -.06em;
}
.stop-time,
.stop-address,
.stop-source {
  margin: 7px 0 0;
  color: rgba(255,246,234,.70);
  line-height: 1.35;
  font-size: .83rem;
  font-weight: 760;
}
.stop-time { color: var(--gold); font-weight: 900; }
.route-main {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,226,181,.28);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #32160b;
  background: linear-gradient(135deg, #fff1c9, #ffbd5d);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.45);
}
.route-text { font-weight: 950; }
.route-provider { margin-left: -3px; font-size: .72rem; opacity: .72; font-weight: 900; }
.route-main::after { color: #6e3b13; }
.empty-card::after { content: none; }

/* SUPPORT */
.support-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  margin-bottom: 12px;
}
.support-card::before {
  content: "♥";
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff0c9;
  background: rgba(255, 190, 96, .14);
  border: 1px solid rgba(255,226,181,.16);
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-donate {
  color: #32160b;
  background: linear-gradient(135deg, #ffe7ae, #ffad42);
  border-color: rgba(255,226,181,.40);
}
.footer-note {
  display: block;
  padding: 14px;
  border-radius: 18px;
  text-align: center;
  margin-bottom: 4px;
}

/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 4, 3, .68);
  backdrop-filter: blur(10px);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: rgba(255,244,222,.12);
  border: 1px solid rgba(255,226,181,.13);
  font-size: 1.85rem;
  font-weight: 900;
  cursor: pointer;
}
.donate-modal,
.all-map-modal {
  position: relative;
  width: min(calc(100vw - 20px), var(--content-width));
  max-height: min(92dvh, 860px);
  overflow: auto;
  border-radius: 28px;
  padding: 18px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,207,131,.55) rgba(255,255,255,.06);
}
.donate-modal { text-align: center; }
.donate-modal h2 {
  margin: 4px auto 10px;
  max-width: 340px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.donate-modal > p {
  margin: 0 auto 14px;
  max-width: 320px;
  color: rgba(255,246,234,.72);
  font-weight: 800;
  line-height: 1.35;
}
.qr-frame {
  width: min(100%, 280px);
  margin: 0 auto 12px;
  padding: 14px;
  border-radius: 24px;
  background: #f2f2f2;
  box-shadow: 0 16px 34px rgba(0,0,0,.25);
}
.qr-frame img { width: 100%; display: block; border-radius: 12px; }
.paypal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: min(100%, 300px);
  margin: 0 auto 12px;
  border-radius: 999px;
  color: #32160b;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(135deg, #fff1c9, #ffbd5d);
}
.modal-ok { width: min(100%, 300px); margin: 0 auto 10px; }
.donate-modal small {
  display: block;
  color: rgba(255,246,234,.68);
  font-weight: 800;
  line-height: 1.35;
}

.all-map-modal { padding: 18px 14px 16px; }
.all-map-head {
  padding-right: 52px;
  margin-bottom: 12px;
}
.all-map-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  letter-spacing: -.065em;
  line-height: 1;
}
.all-map-head p {
  margin: 8px 0 0;
  color: rgba(255,246,234,.70);
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 780;
}
.all-map-preview {
  position: relative;
  width: 100%;
  height: min(58dvh, 420px);
  min-height: 315px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,226,181,.22);
  background: rgba(255,244,222,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.18);
}
.all-pins-leaflet-map,
.all-pins-google-map { width: 100%; height: 100%; }
.all-map-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,246,234,.70);
  font-weight: 850;
  padding: 20px;
}
.leaflet-stop-number-label,
.leaflet-user-label {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #3a1a0c !important;
  font-weight: 950 !important;
  font-size: 12px !important;
}
.leaflet-user-label { color: #173b11 !important; font-size: 11px !important; }
.all-map-stops {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.all-map-stop {
  display: block;
  padding: 12px 13px;
  border-radius: 16px;
  color: var(--cream);
  text-decoration: none;
  background: rgba(255,244,222,.075);
  border: 1px solid rgba(255,226,181,.14);
}
.all-map-stop strong { display:block; font-size: .96rem; line-height: 1.2; }
.all-map-stop span { display:block; margin-top:4px; color: rgba(255,246,234,.62); font-size: .78rem; line-height: 1.3; font-weight: 780; }

/* Desktop keeps a premium phone-app feel without stretching */
@media (min-width: 620px) {
  :root { --content-width: 560px; }
  .app-shell { padding-top: 24px; }
  .hero-card { padding: 22px 18px 20px; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn-map-all { grid-column: 1 / -1; width: min(100%, 300px); justify-self: center; }
  .closest-route {
    grid-template-columns: 64px minmax(0,1fr) 145px;
    grid-template-areas: "icon copy button";
  }
  .closest-route-btn { width: 145px; justify-self: end; }
  .map-panel { grid-template-columns: 1fr; }
  .support-card { grid-template-columns: 48px minmax(0,1fr); align-items:center; }
  .support-card .btn-donate { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  .app-shell { width: min(calc(100% - 16px), var(--content-width)); }
  .hero-card { padding: 16px 12px; border-radius: 26px; }
  .hero-card h1 { font-size: clamp(2rem, 11.3vw, 2.65rem); }
  .inline-brand-logo { padding: 12px 12px 11px; }
  .inline-brand-van { width: min(98%, 210px); max-height: 84px; }
  .summary-grid { gap: 8px; }
  .summary-card { padding: 12px 9px; min-height: 108px; }
  .summary-card h2 { font-size: 1.15rem; }
  .status-summary-card h2 { font-size: 1rem; }
  .status-summary-card small { font-size: .65rem; }
  .map-segmented { grid-template-columns: 1fr; }
}


/* v51 cleanup: remove duplicate unofficial pill spacing */
.hero-card .hero-topline:empty {
  display: none !important;
  margin: 0 !important;
}

#locateBtn.hidden {
  display: none !important;
}

#locateBtn.is-locating {
  opacity: .72;
  pointer-events: none;
}

.hero-actions {
  transition: gap .18s ease;
}


/* v52: convert location button into a small refresh link after GPS is ready */
#locateBtn.is-location-refresh {
  order: 5;
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-height: 0;
  padding: 4px 8px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 222, 164, .92);
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: .01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#locateBtn.is-location-refresh::after {
  display: none;
}

#locateBtn.is-location-refresh .btn-spark {
  width: auto;
  opacity: .82;
}

#locateBtn.is-location-refresh:hover,
#locateBtn.is-location-refresh:focus-visible {
  color: #ffe8bc;
  background: rgba(255,244,222,.045);
}

#locateBtn.is-location-refresh.is-locating {
  opacity: .72;
  text-decoration: none;
}

@media (min-width: 620px) {
  #locateBtn.is-location-refresh {
    margin-top: -2px;
  }
}

/* v53 revised: cleaner premium coffee bean background */

/* v53 final: single clean coffee-bean background only, no extra overlays */

/* v54: full roasted-bean background, no smoke, no extra background overlays */


/* v55: premium loading states + Waze option */
@keyframes rbSpin {
  to { transform: rotate(360deg); }
}
@keyframes rbPulseGlow {
  0%, 100% { opacity: .62; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.02); }
}
@keyframes rbShimmer {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(115%); }
}

.status-text {
  min-height: 1.4em;
}
body.is-loading-schedule .status-text::before,
body.is-locating-user .status-text::before {
  content: "";
  width: .92em;
  height: .92em;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 165, .25);
  border-top-color: rgba(255, 199, 111, .95);
  vertical-align: -0.12em;
  animation: rbSpin .85s linear infinite;
}

body.is-loading-schedule .summary-card h2,
body.is-loading-schedule .status-summary-card small,
body.is-loading-schedule #closestStop h2 {
  position: relative;
  color: transparent !important;
  user-select: none;
}
body.is-loading-schedule .summary-card h2::after,
body.is-loading-schedule .status-summary-card small::after,
body.is-loading-schedule #closestStop h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: .78em;
  width: min(100%, 150px);
  transform: translateY(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,244,222,.08), rgba(255,210,142,.22), rgba(255,244,222,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
body.is-loading-schedule .summary-card h2::before,
body.is-loading-schedule .status-summary-card small::before,
body.is-loading-schedule #closestStop h2::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(50% - .39em);
  left: 0;
  width: 44%;
  height: .78em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 188, .28), transparent);
  animation: rbShimmer 1.35s ease-in-out infinite;
}
body.is-loading-schedule .summary-card:nth-child(2) h2::after { width: 46px; }
body.is-loading-schedule .status-summary-card h2::after { width: 160px; }
body.is-loading-schedule #closestStop h2::after {
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
}

.btn.is-locating .btn-spark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: transparent;
  position: relative;
}
.btn.is-locating .btn-spark::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(48, 22, 10, .22);
  border-top-color: rgba(48, 22, 10, .86);
  animation: rbSpin .85s linear infinite;
}

body.is-locating-user .closest-medallion {
  animation: rbPulseGlow 1.35s ease-in-out infinite;
}

.map-copy p {
  max-width: 100%;
}
.map-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.map-seg {
  min-width: 0;
  padding: 0 8px;
  gap: 7px;
  font-size: .82rem;
}

.all-map-stop {
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.all-map-stop:active {
  transform: scale(.992);
}

@media (max-width: 430px) {
  .map-segmented {
    gap: 6px;
    padding: 5px;
  }
  .map-seg {
    min-height: 48px;
    padding: 0 6px;
    gap: 5px;
    font-size: .76rem;
  }
  .provider-logo {
    width: 23px;
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-loading-schedule .summary-card h2::before,
  body.is-loading-schedule .status-summary-card small::before,
  body.is-loading-schedule #closestStop h2::before,
  body.is-loading-schedule .status-text::before,
  body.is-locating-user .status-text::before,
  .btn.is-locating .btn-spark::after,
  body.is-locating-user .closest-medallion {
    animation: none !important;
  }
}

/* v56: reliable provider-aware shortcuts */
.all-map-stop-button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.all-map-stop small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #37190c;
  background: linear-gradient(135deg, #ffe2a6, #ffb34d);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .02em;
}
.all-map-stop-button:focus-visible,
.route-main:focus-visible,
.closest-route-btn:focus-visible,
.map-seg:focus-visible {
  outline: 2px solid rgba(255, 205, 122, .92);
  outline-offset: 3px;
}


/* v57 route shortcut reliability fix */
.map-popup-route {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff1c9, #ffbd5d);
  color: #35180e;
  cursor: pointer;
}

/* v59: updated Waze mascot icon */


/* v60: official Waze chat-bubble logo asset */
.waze-logo {
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  border-radius: 14px !important;
}
.waze-logo img,
.provider-inline-logo.waze-inline-logo {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
}
.route-icon .provider-inline-logo.waze-inline-logo,
.closest-route-icon .provider-inline-logo.waze-inline-logo {
  border-radius: 14px !important;
}


/* v61: desktop-only centering for Refresh Schedule after location is ready */
@media (min-width: 620px) {
  #locateBtn.is-location-refresh + #reloadBtn {
    grid-column: 1 / -1 !important;
    width: min(100%, 300px) !important;
    justify-self: center !important;
  }
}

/* v61: inline official-style Waze chat-bubble logo support */
.waze-logo svg,
.route-icon svg[aria-label="Waze"],
.closest-route-icon svg[aria-label="Waze"] {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
}
.route-icon svg[aria-label="Waze"],
.closest-route-icon svg[aria-label="Waze"] {
  border-radius: 14px !important;
}


/* v62 install footer */
.install-footer {
  margin: 12px 0 0;
}
.install-app-btn {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255, 210, 142, .22);
  border-radius: 22px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--cream);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 199, 111, .18), transparent 7rem),
    linear-gradient(145deg, rgba(55, 27, 17, .78), rgba(25, 11, 8, .74));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
.install-app-btn:active { transform: scale(.992); }
.install-app-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #33170b;
  background: linear-gradient(135deg, #fff1c9, #ffbd5d);
  font-size: 1.1rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 20px rgba(0,0,0,.22);
}
.install-app-btn strong {
  display: block;
  font-size: .98rem;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.install-app-btn small {
  display: block;
  margin-top: 4px;
  color: rgba(255,246,234,.66);
  font-weight: 760;
  line-height: 1.25;
}
.install-app-btn.is-installed {
  border-color: rgba(126, 224, 116, .25);
}
.install-app-btn.is-installed .install-app-icon {
  background: linear-gradient(135deg, #ddffd4, #7ee074);
}
.install-modal {
  width: min(100% - 24px, 420px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 194, 104, .13), transparent 13rem),
    linear-gradient(145deg, rgba(55, 27, 17, .94), rgba(25, 11, 8, .94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.install-modal h2 {
  margin: 4px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 7vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.install-steps {
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,244,222,.075);
  border: 1px solid rgba(255,226,181,.15);
  color: rgba(255,246,234,.82);
  text-align: left;
  line-height: 1.48;
  font-weight: 720;
}
.install-steps ol {
  margin: 0;
  padding-left: 20px;
}
.install-steps li + li { margin-top: 8px; }
.install-steps p { margin: 0; }
