:root {
  --ink: #171713;
  --ink-soft: #373832;
  --paper: #fcfcfa;
  --paper-muted: #f0f1ec;
  --line: #d9dbd4;
  --red: #c43832;
  --red-dark: #93251f;
  --jade: #2f7165;
  --jade-dark: #23544b;
  --gold: #d7a53d;
  --text-muted: #66685f;
  --topbar-height: 80px;
  --drawer-width: 470px;
  --shadow: 0 18px 48px rgba(23, 23, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(196, 56, 50, 0.3);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.topbar {
  position: relative;
  z-index: 1100;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(300px, 560px) minmax(250px, 1fr);
  align-items: center;
  gap: 24px;
  height: var(--topbar-height);
  padding: 0 28px;
  color: #fff;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-size: 18px;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy strong {
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #bebfb8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search {
  position: relative;
  width: 100%;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 44px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 4px;
  appearance: none;
}

.search input::placeholder {
  color: #76786f;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: var(--red);
  transform: translateY(-50%);
}

.icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.search-clear {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 3px;
  display: none;
  color: #6d6f66;
}

.search-clear.is-visible {
  display: inline-grid;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  display: none;
  max-height: min(480px, calc(100dvh - 120px));
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}

.search-results.is-visible {
  display: block;
}

.search-result {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: 64px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--paper-muted);
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result img {
  width: 64px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
}

.search-result-copy {
  display: block;
  min-width: 0;
}

.search-result-copy strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
}

.search-result-copy small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.search-result-copy > span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result > i {
  color: var(--red);
}

.search-empty {
  margin: 0;
  padding: 28px 20px;
  color: var(--text-muted);
  text-align: center;
}

.favorites-trigger {
  display: inline-flex;
  min-width: 146px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px 0 16px;
  color: #fff;
  background: transparent;
  border: 1px solid #595a54;
  border-radius: 4px;
  cursor: pointer;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.language-switch {
  display: grid;
  width: 88px;
  height: 36px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #292a25;
  border: 1px solid #595a54;
  border-radius: 4px;
}

.language-option {
  display: grid;
  min-width: 0;
  padding: 0;
  place-items: center;
  color: #bebfb8;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-option:hover {
  color: #fff;
}

.language-option.is-active {
  color: var(--ink);
  background: #fff;
}

.favorites-trigger:hover {
  background: #292a25;
  border-color: #7b7c74;
}

.favorites-trigger > i {
  color: #ee625a;
}

.favorites-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #dfe3dc;
}

.map {
  position: absolute;
  inset: 0;
}

.map.leaflet-container {
  background: #eef0eb;
}

.map-intro {
  position: absolute;
  z-index: 600;
  top: 28px;
  left: 28px;
  width: 350px;
  padding: 20px 22px 18px;
  background: rgba(252, 252, 250, 0.94);
  border-left: 5px solid var(--red);
  box-shadow: 0 8px 28px rgba(23, 23, 19, 0.14);
  backdrop-filter: blur(8px);
}

.eyebrow {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-intro h1 {
  margin: 5px 0 8px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 28px;
  line-height: 1.25;
}

.map-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.map-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
}

.map-stats strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: 17px;
}

.city-index {
  position: absolute;
  z-index: 600;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: grid;
  height: 62px;
  grid-template-columns: 92px 1fr;
  align-items: stretch;
  overflow: hidden;
  background: rgba(252, 252, 250, 0.96);
  border: 1px solid rgba(23, 23, 19, 0.16);
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(23, 23, 19, 0.16);
  backdrop-filter: blur(8px);
}

.city-index-title {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.city-index-list {
  display: flex;
  min-width: 0;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.city-index-btn {
  display: inline-flex;
  min-width: 84px;
  height: 100%;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.city-index-btn span {
  color: #9a9b93;
  font-size: 10px;
}

.city-index-btn:hover,
.city-index-btn.is-active {
  color: #fff;
  background: var(--red);
}

.city-index-btn:hover span,
.city-index-btn.is-active span {
  color: #ffd3d0;
}

.map-key {
  position: absolute;
  z-index: 600;
  top: 28px;
  right: 24px;
  display: flex;
  gap: 16px;
  padding: 8px 10px;
  color: var(--ink-soft);
  background: rgba(252, 252, 250, 0.9);
  font-size: 11px;
}

.map-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.key-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.key-dot.classic {
  background: var(--red);
}

.key-dot.hidden-gem {
  background: var(--jade);
}

.city-marker-shell {
  background: transparent;
  border: 0;
}

.city-marker {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
}

.marker-core,
.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.marker-core {
  z-index: 2;
  width: 18px;
  height: 18px;
  background: var(--red);
  border: 4px solid #fff;
  box-shadow: 0 3px 9px rgba(23, 23, 19, 0.34);
}

.hidden-gem .marker-core {
  background: var(--jade);
}

.marker-pulse {
  width: 30px;
  height: 30px;
  background: rgba(196, 56, 50, 0.22);
  animation: marker-pulse 2.4s ease-out infinite;
}

.hidden-gem .marker-pulse {
  background: rgba(47, 113, 101, 0.24);
}

.marker-label {
  position: absolute;
  z-index: 3;
  top: 31px;
  left: 50%;
  padding: 2px 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 23, 19, 0.12);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(23, 23, 19, 0.1);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  transform: translateX(-50%);
}

.city-marker.is-selected .marker-core {
  width: 24px;
  height: 24px;
  background: var(--gold);
}

.city-marker.is-selected .marker-pulse {
  width: 40px;
  height: 40px;
  background: rgba(215, 165, 61, 0.26);
}

.city-marker.is-selected .marker-label {
  color: #fff;
  background: var(--ink);
}

@keyframes marker-pulse {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.55); }
  75%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

.city-tooltip {
  padding: 6px 9px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 2px;
  box-shadow: 0 5px 16px rgba(23, 23, 19, 0.22);
  font-size: 12px;
}

.city-tooltip::before {
  border-top-color: var(--ink) !important;
}

.leaflet-control-zoom {
  margin-bottom: 102px !important;
  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: 0 6px 18px rgba(23, 23, 19, 0.16) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: var(--paper) !important;
  border-color: var(--line) !important;
}

.leaflet-control-attribution {
  margin-bottom: 90px !important;
  background: rgba(252, 252, 250, 0.76) !important;
  font-size: 9px !important;
}

.drawer-backdrop {
  position: fixed;
  z-index: 1190;
  inset: var(--topbar-height) 0 0;
  display: block;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  border: 0;
}

.city-drawer {
  position: fixed;
  z-index: 1200;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  display: grid;
  width: min(var(--drawer-width), 100vw);
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--ink);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 44px rgba(23, 23, 19, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(105%);
  transition: none;
}

.city-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(23, 23, 19, 0.82);
}

.drawer-close:hover {
  background: var(--red);
}

.drawer-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.city-visual {
  position: relative;
  width: 100%;
  height: 258px;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.city-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-visual.image-fallback::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d6d7d1;
  background: var(--ink-soft);
  content: attr(data-fallback);
  font-family: "Songti SC", STSong, serif;
  font-size: 18px;
}

.image-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  color: #eee;
  background: rgba(23, 23, 19, 0.76);
  font-size: 9px;
}

.image-credit a {
  color: #fff;
}

.city-content {
  padding: 26px 30px 36px;
}

.city-heading {
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.city-group,
.city-province {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 800;
}

.city-group {
  padding: 3px 7px;
  color: #fff;
  background: var(--red);
  border-radius: 2px;
}

.city-group[data-group="宝藏"] {
  background: var(--jade);
}

.city-province {
  color: var(--text-muted);
}

.city-heading h2 {
  margin: 9px 0 7px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 42px;
  line-height: 1.12;
}

.city-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.flavor-tags span {
  padding: 5px 9px;
  color: var(--jade-dark);
  background: #e7f0ed;
  border: 1px solid #c9ded8;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.city-description {
  margin: 0;
  color: #45473f;
  font-size: 14px;
  line-height: 1.85;
}

.dish-section,
.food-tip {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-heading > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.section-heading h3 {
  margin: 0;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 21px;
}

.dish-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.dish-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dish-list li > span {
  padding-top: 3px;
  color: #a0a198;
  font-family: Georgia, serif;
  font-size: 11px;
}

.dish-list h4 {
  margin: 0 0 3px;
  font-size: 15px;
}

.dish-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.food-tip {
  padding: 18px;
  background: #f2e9dc;
  border-left: 4px solid var(--gold);
}

.food-tip p {
  margin: 0;
  color: #555146;
  font-size: 13px;
  line-height: 1.7;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 18px rgba(23, 23, 19, 0.05);
}

.command-btn {
  display: inline-flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.favorite-action {
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
}

.favorite-action.is-favorited {
  background: var(--red-dark);
}

.share-action {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
}

.command-btn:hover {
  filter: brightness(0.94);
}

.modal {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: grid;
  pointer-events: none;
  place-items: center;
  opacity: 0;
  transition: none;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(23, 23, 19, 0.68);
  border: 0;
  cursor: default;
}

.favorites-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(620px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 44px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  border-top: 5px solid var(--red);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.favorites-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.favorites-header h2 {
  margin: 4px 0 0;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 28px;
}

.favorites-list {
  min-height: 260px;
  overflow-y: auto;
  padding: 8px 26px 24px;
}

.favorites-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  padding: 30px;
  color: var(--text-muted);
  text-align: center;
}

.favorites-empty i {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 30px;
}

.favorites-empty h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", STSong, serif;
  font-size: 21px;
}

.favorites-empty p {
  max-width: 280px;
  margin: 6px 0 0;
  font-size: 13px;
}

.favorite-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.favorite-open {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 14px 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.favorite-open:hover strong {
  color: var(--red);
}

.favorite-open img {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
}

.favorite-open > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.favorite-open small {
  color: var(--text-muted);
  font-size: 10px;
}

.favorite-open strong {
  margin: 2px 0;
  font-family: "Songti SC", STSong, serif;
  font-size: 21px;
}

.favorite-open em {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-remove {
  color: var(--text-muted);
}

.favorite-remove:hover {
  color: var(--red);
  background: #f5e5e3;
}

.toast {
  position: fixed;
  z-index: 1800;
  bottom: 90px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(23, 23, 19, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: var(--ink);
  transition: opacity 280ms ease;
}

.loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--red);
  border-radius: 50%;
  animation: loading-mark 1.1s ease-in-out infinite alternate;
}

@keyframes loading-mark {
  to { transform: translateY(-5px); }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.4fr) auto;
    gap: 16px;
    padding: 0 18px;
  }

  .favorites-label {
    display: none;
  }

  .favorites-trigger {
    min-width: 78px;
  }

  .map-intro {
    width: 300px;
  }

  .map-intro h1 {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 126px;
  }

  .app-shell {
    min-height: 520px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-rows: 62px 52px;
    gap: 0 12px;
    height: var(--topbar-height);
    padding: 0 14px 10px;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search input {
    height: 42px;
  }

  .favorites-trigger {
    min-width: 52px;
    height: 38px;
    padding: 0 8px;
  }

  .language-switch {
    width: 80px;
    height: 34px;
  }

  .search-results {
    top: calc(100% + 7px);
    max-height: calc(100dvh - 190px);
  }

  .map-intro {
    top: 14px;
    left: 14px;
    width: min(280px, calc(100vw - 28px));
    padding: 14px 16px 13px;
  }

  .map-intro h1 {
    margin: 3px 0 4px;
    font-size: 21px;
  }

  .map-intro p {
    display: none;
  }

  .map-stats {
    margin-top: 8px;
    padding-top: 7px;
  }

  .map-key {
    display: none;
  }

  .city-index {
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 54px;
    grid-template-columns: 66px 1fr;
  }

  .city-index-title {
    font-size: 10px;
  }

  .city-index-btn {
    min-width: 70px;
    flex-direction: column;
    gap: 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .leaflet-control-zoom {
    margin-bottom: 78px !important;
  }

  .leaflet-control-attribution {
    display: none;
  }

  .drawer-backdrop {
    pointer-events: none;
    background: rgba(23, 23, 19, 0.36);
    transition: opacity 220ms ease;
  }

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

  .city-drawer {
    top: auto;
    left: 0;
    width: 100%;
    height: min(78dvh, 720px);
    border-top: 4px solid var(--red);
    border-left: 0;
    box-shadow: 0 -18px 44px rgba(23, 23, 19, 0.24);
    transform: translateY(105%);
  }

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

  .city-visual {
    height: 210px;
  }

  .city-content {
    padding: 22px 20px 30px;
  }

  .city-heading h2 {
    font-size: 34px;
  }

  .city-tagline {
    font-size: 15px;
  }

  .drawer-actions {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .command-btn {
    height: 44px;
    padding: 0 8px;
    font-size: 12px;
  }

  .favorites-panel {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .favorites-header {
    padding: 20px 18px 14px;
  }

  .favorites-header h2 {
    font-size: 24px;
  }

  .favorites-list {
    padding: 6px 18px 20px;
  }

  .toast {
    bottom: 76px;
    width: max-content;
  }
}

@media (max-width: 420px) {
  .map-intro {
    width: 230px;
  }

  .map-stats {
    gap: 12px;
  }

  .search-result {
    grid-template-columns: 54px 1fr 18px;
    gap: 10px;
    padding: 9px 10px;
  }

  .search-result img {
    width: 54px;
    height: 48px;
  }

  .favorite-open {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .favorite-open img {
    width: 72px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
