:root {
  --background: #f7ead2;
  --foreground: #2d1b12;
  --card: #fff5dc;
  --muted: #ead4ad;
  --muted-foreground: #6f5139;
  --accent: #f3d7aa;
  --accent-foreground: #2d1b12;
  --border: #c58b55;
  --input: #b87946;
  --ring: #17242a;
  --primary: #b82222;
  --primary-foreground: #fff7df;
  --route-orange: #d9471f;
  --route-orange-dark: #9f1f18;
  --route-red: #bd2026;
  --route-teal: #168b91;
  --route-gold: #f0b548;
  --route-cream: #fff3cf;
  --route-ink: #241812;
  --route-chrome: #d7ddd5;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    repeating-linear-gradient(90deg, rgba(189, 32, 38, 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(22, 139, 145, 0.05) 0 1px, transparent 1px 28px),
    var(--background);
  font-family: "Trebuchet MS", "Gill Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.topbar {
  z-index: 20;
  position: relative;
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 0;
  background: linear-gradient(180deg, #342219 0%, #20150f 100%);
  color: var(--route-cream);
  box-shadow: 0 3px 0 var(--route-red), 0 7px 0 var(--route-gold);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 4px;
  background: repeating-conic-gradient(#fff7df 0 25%, #1f1713 0 50%) 0 0 / 14px 14px;
  opacity: 0.7;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--route-cream);
  font-family: "Cooper Black", "Clarendon", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.brand-shield {
  display: block;
  width: 50px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55));
}

.brand svg {
  width: 20px;
  height: 20px;
  color: var(--route-gold);
  filter: drop-shadow(0 1px 0 #000);
}

.tabs {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 243, 207, 0.35);
  border-radius: 6px;
  background: rgba(255, 243, 207, 0.06);
  color: var(--route-cream);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab svg {
  width: 16px;
  height: 16px;
}

.tab:hover {
  background: rgba(255, 243, 207, 0.14);
}

.tab.active {
  color: var(--primary-foreground);
  border-color: rgba(240, 181, 72, 0.9);
  background: linear-gradient(180deg, #dc3430 0%, #a51619 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 2px 0 #5b1211;
}

.review-link {
  display: inline-flex;
  white-space: nowrap;
  color: var(--route-gold);
  font-size: 12px;
  font-weight: 700;
}

.review-link:hover {
  text-decoration: underline;
}

.offline-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 243, 207, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 139, 145, 0.92), rgba(11, 94, 99, 0.92));
  color: var(--route-cream);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 0 rgba(0, 0, 0, 0.25);
}

.offline-download:hover {
  background: linear-gradient(180deg, #1aa0a8, #0b666d);
}

.offline-download.busy {
  opacity: 0.78;
  pointer-events: none;
}

.offline-download.ready {
  background: linear-gradient(180deg, #f0b548, #b86f1e);
  color: #2d1b12;
}

.offline-download svg {
  width: 15px;
  height: 15px;
}

.offline-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 243, 207, 0.35);
  border-radius: 999px;
  background: rgba(255, 243, 207, 0.08);
  color: var(--route-cream);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.offline-status svg {
  width: 14px;
  height: 14px;
}

.offline-status.offline {
  border-color: rgba(240, 181, 72, 0.85);
  background: rgba(189, 32, 38, 0.24);
  color: #ffe3a1;
}

.offline-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2600;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 2px solid var(--route-ink);
  border-radius: 8px;
  background: #fff5dc;
  color: var(--route-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 0 rgba(36, 24, 18, 0.22), 0 14px 28px rgba(36, 24, 18, 0.24);
}

.main,
.view {
  flex: 1 1 auto;
  min-height: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
  height: 100%;
}

.map-layout {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sidebar {
  display: flex;
  flex: 0 0 360px;
  flex-direction: column;
  width: 360px;
  height: 100%;
  min-height: 0;
  border-right: 3px solid var(--route-ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 223, 0.96), rgba(244, 218, 177, 0.96)),
    repeating-linear-gradient(45deg, rgba(189, 32, 38, 0.06) 0 8px, transparent 8px 16px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
}

.sidebar-header {
  position: relative;
  flex: 0 0 auto;
  padding: 16px 16px 12px;
  border-bottom: 3px double var(--route-red);
  background: linear-gradient(180deg, rgba(255, 250, 233, 0.95), rgba(250, 229, 191, 0.95));
}

.sidebar-header::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--route-red), var(--route-gold), var(--route-teal));
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--route-red);
  font-family: "Cooper Black", "Clarendon", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 1px 1px 0 #fff7df;
}

.sidebar-title svg {
  width: 20px;
  height: 20px;
  color: var(--route-teal);
}

.sidebar-copy {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-count {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.layer-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #a85635;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e6, #f3d3a1);
  color: var(--route-ink);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.layer-toggle svg {
  width: 15px;
  height: 15px;
}

.layer-toggle:hover,
.layer-toggle.active {
  border-color: var(--route-ink);
  background: linear-gradient(180deg, #cf312b, #9d1719);
  color: var(--route-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 0 rgba(36, 24, 18, 0.35);
}

.offline-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 0;
  border-left: 3px solid var(--route-teal);
  padding-left: 8px;
  color: #61452f;
  font-size: 11px;
  line-height: 1.35;
}

.offline-note svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--route-teal);
}

.sidebar-review {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(189, 32, 38, 0.38);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff1cc, #f5c36e);
  color: #8f1517;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.sidebar-review:hover {
  background: linear-gradient(180deg, #ffe2a4, #ecae4b);
}

.sidebar-review svg {
  width: 14px;
  height: 14px;
}

.search-wrap {
  position: relative;
  margin-top: 12px;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 7px 12px 7px 32px;
  border: 1px solid #a85b36;
  border-radius: 6px;
  outline: none;
  background: #fff9e8;
  color: var(--foreground);
  font-size: 14px;
}

.search-input:focus {
  border-color: var(--route-teal);
  box-shadow: 0 0 0 2px rgba(22, 139, 145, 0.18);
}

.stops-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.state-section + .state-section {
  margin-top: 4px;
}

.state-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  transition: background-color 0.15s ease;
}

.state-toggle:hover {
  background: rgba(255, 243, 207, 0.72);
}

.state-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.state-left svg {
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}

.state-count {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 500;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(36, 24, 18, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.state-illinois {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
}

.state-missouri {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

.state-kansas {
  color: #a16207;
  background: rgba(234, 179, 8, 0.1);
}

.state-oklahoma {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}

.state-texas {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
}

.state-new-mexico {
  color: #7e22ce;
  background: rgba(168, 85, 247, 0.1);
}

.state-arizona {
  color: #be123c;
  background: rgba(244, 63, 94, 0.1);
}

.state-california {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
}

.extra-section {
  margin-top: 10px;
}

.extra-badge {
  color: #334155;
  background: rgba(100, 116, 139, 0.12);
}

.extra-diner {
  color: #7f1d1d;
  background: #f7c65f;
}

.extra-kids {
  color: #083d45;
  background: #8dd6d2;
}

.state-stops {
  margin-left: 8px;
}

.stop-card {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(168, 91, 54, 0.42);
  border-left: 4px solid var(--route-red);
  border-radius: 8px;
  background: rgba(255, 248, 231, 0.84);
  text-align: left;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.stop-card:hover {
  background: #ffe7b6;
}

.stop-card.active {
  background: #fff4cf;
  box-shadow: inset 0 0 0 2px var(--route-teal), 0 3px 0 rgba(36, 24, 18, 0.14);
}

.stop-image {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 2px solid #fff7df;
  border-radius: 6px;
  background: var(--muted);
  filter: sepia(0.18) saturate(0.9) contrast(1.04);
  object-fit: cover;
}

.extra-card {
  align-items: flex-start;
}

.extra-marker-pill {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff7df;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(36, 24, 18, 0.24), 0 0 0 1px rgba(36, 24, 18, 0.14);
}

.stop-main {
  min-width: 0;
  flex: 1 1 auto;
}

.stop-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.stop-name {
  color: #29170f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.stop-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
}

.icon-action:hover {
  background: rgba(22, 139, 145, 0.12);
}

.icon-action svg {
  width: 14px;
  height: 14px;
}

.navigate-icon {
  color: var(--route-red);
}

.stop-address {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 10px;
}

.place-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 600;
}

.place-kind svg {
  width: 12px;
  height: 12px;
}

.stop-address svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.stop-address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-description {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.meta-pill svg {
  width: 12px;
  height: 12px;
}

.meta-cost {
  color: #0b655f;
  background: rgba(22, 139, 145, 0.14);
}

.meta-duration {
  color: #8f1517;
  background: rgba(240, 181, 72, 0.32);
}

.no-results {
  margin: 0;
  padding: 32px 4px;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.map-pane {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: #6d6255;
  box-shadow: inset 0 0 0 5px rgba(36, 24, 18, 0.2);
}

.map {
  width: 100%;
  height: 100%;
}

.fit-route {
  position: absolute;
  z-index: 1000;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #7c2d12;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff6d8, #f0b548);
  color: #42160d;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 0 rgba(36, 24, 18, 0.28), 0 10px 18px rgba(36, 24, 18, 0.12);
  backdrop-filter: blur(6px);
  transition: background-color 0.15s ease;
}

.fit-route:hover {
  background: linear-gradient(180deg, #fff0bd, #df9634);
}

.fit-route svg {
  width: 14px;
  height: 14px;
}

.explore-stops {
  display: none;
}

.route66-cluster-wrapper {
  background: none !important;
  border: none !important;
}

.route66-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff7df;
  border-radius: 9px 9px 16px 16px;
  background: linear-gradient(180deg, #d82e2b 0 42%, #fff7df 42% 49%, #168b91 49% 100%);
  color: #fff7df;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(36, 24, 18, 0.78);
  box-shadow: 0 2px 0 rgba(36, 24, 18, 0.42), 0 6px 12px rgba(36, 24, 18, 0.25);
}

.route66-marker {
  filter: hue-rotate(135deg) saturate(1.35) brightness(0.95);
}

.extra-map-marker-wrapper {
  background: none !important;
  border: none !important;
}

.extra-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fff7df;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(36, 24, 18, 0.45), 0 0 0 2px rgba(255, 247, 223, 0.42);
}

.extra-map-marker.extra-diner {
  background: linear-gradient(180deg, #f7c65f, #bd2026);
  color: #fff7df;
}

.extra-map-marker.extra-kids {
  background: linear-gradient(180deg, #8dd6d2, #168b91);
  color: #083d45;
}

.leaflet-container {
  background: #d8c2a0;
  font-family: inherit;
}

.leaflet-tile {
  opacity: 0.78;
  filter: sepia(0.34) saturate(0.48) contrast(0.9) brightness(1.08);
}

.leaflet-control-zoom a {
  border-color: rgba(36, 24, 18, 0.3) !important;
  background: #fff5dc !important;
  color: var(--route-ink) !important;
}

.leaflet-popup-content-wrapper {
  border: 2px solid var(--route-ink);
  border-top: 4px solid var(--route-red);
  border-radius: 8px;
  background: #fff5dc;
  box-shadow: 0 5px 0 rgba(36, 24, 18, 0.2), 0 12px 24px rgba(36, 24, 18, 0.18);
}

.leaflet-popup-tip {
  background: #fff5dc;
}

.leaflet-control-attribution {
  background: rgba(255, 245, 220, 0.88) !important;
  color: #4c3426 !important;
}

.leaflet-popup-content {
  margin: 13px 20px;
}

.popup-card {
  max-width: 260px;
  color: var(--foreground);
}

.popup-card img {
  width: 100%;
  height: 140px;
  margin-bottom: 8px;
  border: 2px solid #fff7df;
  border-radius: 6px;
  filter: sepia(0.15) saturate(0.88) contrast(1.05);
  object-fit: cover;
}

.popup-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--route-red);
  font-family: "Cooper Black", "Clarendon", Georgia, serif;
}

.popup-type {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.popup-card p {
  margin: 0 0 6px;
  color: #654934;
  font-size: 12px;
  line-height: 1.4;
}

.popup-address {
  display: inline-flex;
  color: #0b7176 !important;
  font-size: 11px;
  text-decoration: none;
}

.popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
}

.popup-cost {
  color: #0b655f;
  font-weight: 500;
}

.popup-duration {
  color: #8f1517;
  font-weight: 500;
}

.route66-navigate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #7c1516;
  background: linear-gradient(180deg, #dc3430, #a51619);
  color: #fff7df !important;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  transition: background-color 0.15s ease;
}

.route66-navigate-btn:hover {
  background: linear-gradient(180deg, #c52925, #861315);
}

.route66-navigate-btn svg {
  width: 14px;
  height: 14px;
}

.bonus-page {
  height: 100%;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 248, 223, 0.88), rgba(238, 207, 157, 0.88)),
    repeating-linear-gradient(90deg, rgba(189, 32, 38, 0.06) 0 18px, transparent 18px 36px);
}

.bonus-inner {
  width: min(100%, 896px);
  margin: 0 auto;
  padding: 24px 16px;
}

.bonus-heading {
  margin-bottom: 24px;
}

.bonus-heading h1 {
  margin: 0;
  color: var(--route-red);
  font-family: "Cooper Black", "Clarendon", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.bonus-heading p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.bonus-section {
  margin-bottom: 28px;
}

.bonus-section-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  color: #6c2a19;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bonus-card,
.bonus-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(168, 91, 54, 0.46);
  border-radius: 12px;
  background: rgba(255, 247, 223, 0.9);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bonus-card:hover,
.bonus-contact:hover {
  border-color: rgba(189, 32, 38, 0.62);
  background: #ffe7b6;
}

.bonus-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff0bd, #f0b548);
  color: var(--route-red);
}

.bonus-icon svg {
  width: 20px;
  height: 20px;
}

.bonus-text {
  min-width: 0;
}

.bonus-title {
  display: block;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
}

.bonus-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.55;
}

.bonus-open {
  display: block;
  margin-top: 6px;
  color: var(--route-red);
  font-size: 12px;
  font-weight: 600;
}

.bonus-card:hover .bonus-open {
  text-decoration: underline;
}

.bonus-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bonus-contact {
  width: 100%;
  border-color: var(--border);
  color: inherit;
  text-align: left;
}

.bonus-contact.primary {
  border-color: rgba(189, 32, 38, 0.5);
  background: rgba(255, 240, 189, 0.78);
}

.drawer-backdrop,
.mobile-drawer {
  display: none;
}

@media (max-width: 767px) {
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .brand span {
    display: none;
  }

  .brand-shield {
    width: 46px;
    height: 36px;
  }

  .tabs {
    justify-content: center;
  }

  .review-link {
    display: none;
  }

  .offline-download {
    width: 34px;
    min-width: 34px;
    padding: 4px;
  }

  .offline-download span {
    display: none;
  }

  .offline-status {
    padding: 4px 7px;
  }

  .offline-status span {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .map-layout {
    display: block;
  }

  .map-pane {
    height: 100%;
  }

  .explore-stops {
    position: absolute;
    z-index: 1000;
    bottom: 24px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 2px solid #fff7df;
    border-radius: 999px;
    background: linear-gradient(180deg, #d82e2b, #941518);
    color: var(--primary-foreground);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(36, 24, 18, 0.28);
    transform: translateX(-50%);
  }

  .explore-stops svg {
    width: 16px;
    height: 16px;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: block;
    background: rgba(36, 24, 18, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    max-height: 75dvh;
    border: 2px solid var(--route-ink);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #fff7df, #f2d4a6);
    transform: translateY(104%);
    transition: transform 0.24s ease;
  }

  .mobile-drawer.open {
    transform: translateY(0);
  }

  .drawer-handle {
    flex: 0 0 auto;
    width: 100px;
    height: 8px;
    margin: 16px auto 8px;
    border-radius: 999px;
    background: repeating-conic-gradient(#fff7df 0 25%, #241812 0 50%) 0 0 / 12px 12px;
  }

  .drawer-content {
    min-height: 0;
    overflow: hidden;
  }

  .drawer-content .sidebar {
    display: flex;
    width: 100%;
    height: calc(75dvh - 32px);
    border-right: 0;
  }

  .drawer-content .sidebar-header {
    padding-top: 8px;
  }

  .bonus-grid,
  .bonus-contact-grid {
    grid-template-columns: 1fr;
  }
}
