:root {
  --primary: #0F5B50;
  --primary-dark: #0a4a3f;
  --primary-light: #127562;
  --primary-gradient: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  --green-shine: linear-gradient(160deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 35%, transparent 60%);
  --secondary: #6B7270;
  --accent: #C9A86A;
  --surface: #ffffff;
  --bg: #EFE9DF;
  --border: rgba(15, 91, 80, 0.1);
  --radius: 16px;
  --text-main: #1a1a1a;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Mini App / Telegram WebView: скролл только внутри #app, чтобы не сворачивало окно */
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
  color: var(--primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

#root, #app, .app {
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  box-sizing: border-box;
}

/* Header & Layout */
.header {
  padding: 32px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-content {
  flex: 1;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.header p {
  color: var(--accent);
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.content {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* CARDS (Warm Style) */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(15, 91, 80, 0.04);
  transition: transform 0.2s ease;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:active {
  transform: scale(0.98);
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.highlight-card {
  position: relative;
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: 0 12px 30px rgba(15, 91, 80, 0.25);
  overflow: hidden;
}

.highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--green-shine);
}

.highlight-card .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.highlight-card .value {
  font-size: 20px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.wifi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.password-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* Info Rows & Buttons */
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 91, 80, 0.1);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.info-desc {
  color: var(--secondary);
  font-size: 14px;
}

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-primary {
  position: relative;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(15, 91, 80, 0.2);
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--green-shine);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #E8F5E9;
  color: var(--primary);
}

/* Locals Banner */
.locals-banner {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--accent) !important;
}

/* --- SCROLL UTILS FOR NEW LOCALS PAGE --- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.snap-x {
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
}

.snap-start {
  scroll-snap-align: start;
}

.locals-section-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 20px 20px;
}

.locals-section-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 0 20px 20px;
}

/* Category Btn */
.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 8px 6px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: var(--secondary);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.category-btn.active,
.category-btn:hover {
  color: var(--primary);
  background: #ffffff;
  border: 1px solid var(--primary);
}

.category-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 3px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

/* Location Card NEW — фиксированный размер, не растягивается */
.location-card {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  scroll-snap-align: start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.locals-section-list--grid .location-card {
  flex: none;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.locals-section-list--grid .location-image-wrapper {
  aspect-ratio: 4 / 3;
}

.locals-section-list--grid .location-content {
  padding: 10px;
}

.locals-section-list--grid .location-title {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  font-size: 13px;
  line-height: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.location-card:active {
  transform: scale(0.98);
}

.location-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.location-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--primary, #0d9488);
  font-size: 42px;
  box-sizing: border-box;
}

.rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-content {
  padding: 12px;
}

.location-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--primary);
}

.location-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--secondary);
}

.price-indicator span {
  margin-left: 2px;
}

.price-active {
  color: var(--primary);
  font-weight: 700;
}

.price-inactive {
  color: #e2e8f0;
}


/* Tabbar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(239, 233, 223, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(15, 91, 80, 0.1);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  z-index: 100;
}

.tab-btn {
  border: none;
  background: none;
  color: var(--secondary);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 60px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary);
}

/* Animated Locals Button */
.tab-btn .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn.locals-animated .icon-wrapper {
  animation: bounceAndGlow 2s ease-in-out infinite;
}

@keyframes bounceAndGlow {

  0%,
  100% {
    transform: translateY(0);
    color: var(--secondary);
  }

  10% {
    transform: translateY(-8px);
  }

  20% {
    transform: translateY(0);
    color: #e74c3c;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.6));
  }

  30% {
    color: var(--secondary);
    filter: none;
  }
}

/* MODAL OVERLAY — выравнивание по верху, фиксированная высота при клавиатуре */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 91, 80, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-sheet {
  background: #fcfcfc;
  width: 100%;
  max-width: 600px;
  max-height: min(88vh, 88dvh);
  min-height: 0;
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}


@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Guest theme system: one markup, local browser preference. */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --page-bg: #EFE9DF;
  --page-bg-soft: #f8faf7;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f8faf9;
  --surface-tint: #f3f8f6;
  --text-main: #1d1d1f;
  --text-accent: #0f3f36;
  --text-muted: #64748b;
  --text-soft: #747568;
  --border: rgba(15, 91, 80, 0.12);
  --border-strong: rgba(15, 91, 80, 0.22);
  --overlay: rgba(15, 23, 42, 0.52);
  --floating-bg: rgba(248, 250, 247, 0.96);
  --shadow-soft: 0 6px 18px rgba(15, 91, 80, 0.07);
  --shadow-elevated: 0 18px 50px rgba(15, 23, 42, 0.24);
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --danger-bg: #fff0f0;
  --danger-text: #dc3545;
  --theme-control-bg: rgba(255,255,255,0.92);
  --theme-control-text: #0f3f36;
  --theme-control-border: rgba(15,63,54,0.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #111715;
  --page-bg-soft: #151d1a;
  --surface: #19231f;
  --surface-elevated: #1f2b27;
  --surface-muted: #16201c;
  --surface-tint: #20332d;
  --text-main: #f3f7f4;
  --text-accent: #d8fff0;
  --text-muted: #aebdb7;
  --text-soft: #93a29c;
  --border: rgba(195, 235, 219, 0.14);
  --border-strong: rgba(195, 235, 219, 0.26);
  --overlay: rgba(2, 6, 5, 0.72);
  --floating-bg: rgba(17, 23, 21, 0.92);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.28);
  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.46);
  --success-bg: rgba(13, 148, 136, 0.17);
  --success-text: #a7f3d0;
  --danger-bg: rgba(127, 29, 29, 0.26);
  --danger-text: #fecaca;
  --theme-control-bg: rgba(25, 35, 31, 0.88);
  --theme-control-text: #d8fff0;
  --theme-control-border: rgba(195, 235, 219, 0.22);
}

body {
  background: var(--page-bg);
  color: var(--text-main);
}

.guest-header-actions,
.locals-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.locals-header-actions {
  flex-direction: column !important;
}

.turka-theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--theme-control-border);
  border-radius: 999px;
  background: var(--theme-control-bg);
  color: var(--theme-control-text);
  box-shadow: 0 2px 10px rgba(15,63,54,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.turka-theme-toggle svg {
  width: 17px;
  height: 17px;
}

html[data-theme="light"] .turka-theme-toggle-icon-moon,
html[data-theme="dark"] .turka-theme-toggle-icon-sun {
  display: none;
}

.turka-language-current {
  background: var(--theme-control-bg) !important;
  color: var(--theme-control-text) !important;
  border-color: var(--theme-control-border) !important;
}

.turka-language-menu {
  background: var(--surface-elevated) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-elevated) !important;
}

.turka-language-menu a {
  color: var(--text-main) !important;
}

html[data-theme="dark"] .turka-language-menu a[style*="#f0fdf7"] {
  background: rgba(13, 148, 136, 0.18) !important;
}

.app,
#app {
  background: var(--page-bg);
  color: var(--text-main);
}

.header-content p,
.welcome-address,
.guest-section-title,
.instructions-section-head h3,
.instructions-scroll-hint,
.location-title,
.tab-btn.active {
  color: var(--text-accent) !important;
}

.welcome-address,
.location-meta,
.info-desc,
.city-chat-subtitle,
.city-chat-empty {
  color: var(--text-muted) !important;
}

.card,
.location-card,
.secondary-category-card,
.nearby-card,
.ux-section-card,
.instructions-carousel .instr-card-scalable,
.city-chat-header,
.city-chat-inputbar,
.city-chat-registration-box,
.modal-sheet,
.rules-popup-box {
  background: var(--surface) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
}

.nearby-card-cover,
.popular-guest-icon,
.secondary-category-icon,
.location-image-placeholder,
.ux-section-cover {
  background: linear-gradient(145deg, var(--surface-elevated) 0%, var(--surface-tint) 100%) !important;
  color: var(--text-accent) !important;
}

.nearby-card-title,
.popular-guest-card,
.popular-guest-title,
.secondary-category-title,
.ux-section-title,
.instructions-carousel .instr-card-title,
#m-title,
#partner-modal-title,
#m-feature-text,
#partner-modal-feature-text,
#partner-modal-desc .partner-benefits-list li,
#m-desc .partner-benefits-list li {
  color: var(--text-main) !important;
}

#m-comment,
#partner-modal-comment,
#m-desc,
#partner-modal-desc,
.route-text {
  color: var(--text-muted) !important;
}

#partnerModalOverlay #partner-modal-title,
#partnerModalOverlay #partner-modal-feature-text,
#partnerModalOverlay #partner-modal-address,
#partnerModalOverlay #partner-modal-hours,
#partnerModalOverlay #partner-modal-promo-code {
  color: #f4fbf7 !important;
}

#partnerModalOverlay #partner-modal-comment,
#partnerModalOverlay #partner-modal-desc {
  color: #d8e8e1 !important;
}

.modal-overlay,
.rules-popup-overlay,
.rules-full-overlay,
.city-chat-overlay {
  background: var(--overlay) !important;
}

.city-chat-panel {
  background: var(--page-bg-soft) !important;
  box-shadow: var(--shadow-elevated) !important;
}

.city-chat-message {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

.city-chat-message.own {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.city-chat-rules,
.rules-ack-label,
#lead-success-box,
#partner-modal-lead-success {
  background: var(--success-bg) !important;
  color: var(--success-text) !important;
  border-color: rgba(13, 148, 136, 0.34) !important;
}

.city-chat-inputbar textarea,
.city-chat-registration-box input,
input,
textarea,
select {
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  border-color: var(--border-strong) !important;
}

.city-chat-close,
.route-close,
.rules-popup-box button[aria-label],
.instruction-modal-inner button[aria-label] {
  background: var(--surface-muted) !important;
  color: var(--text-accent) !important;
}

.locals-header-cats .category-btn,
.locals-cats-float-btn {
  background: color-mix(in srgb, var(--surface-elevated) 78%, transparent) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-accent) !important;
}

.locals-header-cats .category-btn-icon,
.locals-header-cats .category-label,
.locals-cats-float-icon,
.locals-cats-float-label {
  color: var(--text-accent) !important;
}

.tabbar,
.route-actions {
  background: var(--floating-bg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .highlight-card,
html[data-theme="dark"] .locals-header,
html[data-theme="dark"] .locals-cats-float-toggle {
  background: linear-gradient(135deg, #203a34 0%, #10251f 100%) !important;
}

html[data-theme="dark"] .popular-guest-icon img,
html[data-theme="dark"] .secondary-category-icon img {
  filter: saturate(1.02) brightness(0.94);
}

html[data-theme="dark"] .modal-sheet [style*="background: #fff"],
html[data-theme="dark"] .modal-sheet [style*="background:#fff"],
html[data-theme="dark"] .modal-sheet [style*="background: white"],
html[data-theme="dark"] #app [style*="background: #fff"],
html[data-theme="dark"] #app [style*="background:#fff"],
html[data-theme="dark"] #app [style*="background: white"],
html[data-theme="dark"] .rules-popup-box [style*="background: #fff"],
html[data-theme="dark"] .rules-popup-box [style*="background: white"],
html[data-theme="dark"] #guestUIModal [style*="background: white"],
html[data-theme="dark"] #instructionModal [style*="background: white"],
html[data-theme="dark"] .car-popover {
  background: var(--surface) !important;
}

html[data-theme="dark"] .modal-sheet [style*="background: #f8fafc"],
html[data-theme="dark"] .modal-sheet [style*="background:#f8fafc"],
html[data-theme="dark"] .modal-sheet [style*="background: #f8f9fa"],
html[data-theme="dark"] .modal-sheet [style*="background: #f1f5f9"],
html[data-theme="dark"] #app [style*="background: #f8faf9"],
html[data-theme="dark"] #app [style*="background:#f8faf9"],
html[data-theme="dark"] #app [style*="background: #f8fafc"],
html[data-theme="dark"] #app [style*="background:#f8fafc"],
html[data-theme="dark"] #app [style*="background: #f8f9fa"],
html[data-theme="dark"] #guestUIModal [style*="background: #f8f9fa"] {
  background: var(--surface-muted) !important;
}

html[data-theme="dark"] [style*="color: #0f172a"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color: #1d1d1f"],
html[data-theme="dark"] [style*="color:#1d1d1f"],
html[data-theme="dark"] [style*="color: #333"],
html[data-theme="dark"] [style*="color:#333"],
html[data-theme="dark"] [style*="color: #334155"],
html[data-theme="dark"] [style*="color:#334155"],
html[data-theme="dark"] [style*="color: #1f2937"],
html[data-theme="dark"] [style*="color:#1f2937"] {
  color: var(--text-main) !important;
}

html[data-theme="dark"] [style*="color: #0f3f36"],
html[data-theme="dark"] [style*="color:#0f3f36"],
html[data-theme="dark"] [style*="color: #0f5b50"],
html[data-theme="dark"] [style*="color:#0f5b50"] {
  color: var(--text-accent) !important;
}

html[data-theme="dark"] svg[stroke="#0f3f36"],
html[data-theme="dark"] svg[stroke="#0f5b50"] {
  stroke: var(--text-accent) !important;
}

html[data-theme="dark"] [style*="color: #64748b"],
html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color: #52627a"],
html[data-theme="dark"] [style*="color:#52627a"],
html[data-theme="dark"] [style*="color: #475569"],
html[data-theme="dark"] [style*="color:#475569"],
html[data-theme="dark"] [style*="color: #94a3b8"],
html[data-theme="dark"] [style*="color:#94a3b8"],
html[data-theme="dark"] [style*="color: #666"],
html[data-theme="dark"] [style*="color:#666"] {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border: 1px solid #cbd5e1"],
html[data-theme="dark"] [style*="border:1px solid #cbd5e1"],
html[data-theme="dark"] [style*="border-bottom: 1px solid #f0f0f0"],
html[data-theme="dark"] [style*="border-top: 1px solid #f0f0f0"] {
  border-color: var(--border-strong) !important;
}

html[data-theme="light"] .popular-guest-icon img,
html[data-theme="light"] .secondary-category-icon img {
  filter: none;
}

@supports not (background: color-mix(in srgb, #fff 50%, transparent)) {
  .locals-header-cats .category-btn,
  .locals-cats-float-btn {
    background: var(--surface-elevated) !important;
  }
}

/* Route page light theme: keep route layout, change only visual tokens. */
html[data-theme="light"] {
  --route-bg: var(--page-bg);
  --route-panel: var(--surface);
  --route-line: var(--border);
  --route-text: var(--text-main);
  --route-muted: var(--text-muted);
  --route-accent: var(--primary);
  --route-accent-2: var(--accent);
}
html[data-theme="light"] .route-page {
  background: var(--page-bg-soft) !important;
}
html[data-theme="light"] .route-content,
html[data-theme="light"] body {
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
}
html[data-theme="light"] .route-panel,
html[data-theme="light"] .route-meta-item,
html[data-theme="light"] .route-self,
html[data-theme="light"] .route-service-card,
html[data-theme="light"] .route-sheet {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-soft) !important;
}
html[data-theme="light"] .route-panel h2,
html[data-theme="light"] .route-stop strong,
html[data-theme="light"] .route-self strong,
html[data-theme="light"] .route-service-card strong,
html[data-theme="light"] .route-trust-title,
html[data-theme="light"] .route-sheet-head h2 {
  color: var(--text-accent) !important;
}
html[data-theme="light"] .route-text,
html[data-theme="light"] .route-stop span,
html[data-theme="light"] .route-self span,
html[data-theme="light"] .route-service-card span,
html[data-theme="light"] .route-trust-text {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .route-meta,
html[data-theme="light"] .route-stop-image,
html[data-theme="light"] .route-service-image {
  background: var(--surface-tint) !important;
  border-color: var(--border) !important;
}
html[data-theme="light"] .route-stop::before,
html[data-theme="light"] .route-map-link {
  background: var(--primary) !important;
  color: #fff !important;
}
html[data-theme="light"] .route-service-tag,
html[data-theme="light"] .route-trust-title span + span,
html[data-theme="light"] .route-trust-help {
  color: var(--primary) !important;
}
