/* ATG_BUILD_VERSION: V046_EXTERNAL_CARD_DESKTOP_HOVER_DELAY_2S | ATG_BUILD_CACHE_KEY: 20260605-v046-external-card-hover-delay-2s */
/* V899: faster mobile map open, professional compact map help overlay, mobile filter manager preserved. */
* { box-sizing: border-box; }
:root {
  --topbar-pad-y: 10px;
  --topbar-pad-x: 16px;
  --topbar-gap: 10px;
  --cmd-padding: 8px;
  --cmd-title-size: 12px;
  --btn-pad-y: 8px;
  --btn-pad-x: 12px;
  --btn-font-size: 15px;
  --volume-width: 120px;
  --avatar-stage-pad: 0px;
  --history-pad-y: 9px;
  --history-pad-x: 12px;
  --history-font-size: 15px;
  --map-node-size: 30px;
  --map-node-font-size: 12px;
  --ui-bg-1: #f6ead9;
  --ui-bg-2: #fbf6ee;
  --ui-ink: #1f2937;
  --ui-ink-soft: #5b6472;
  --ui-panel: rgba(255, 250, 244, 0.9);
  --ui-panel-border: rgba(141, 79, 40, 0.16);
  --ui-accent: #8f4a24;
  --ui-accent-2: #be6a2d;
  --ui-accent-soft: #f4d7bf;
  --ui-deep: #233048;
  --gold-accent-deep: #d29a2e;
  --gold-accent: #f0c76f;
  --gold-accent-highlight: #ffdd93;
  --gold-rgb: 210, 154, 46;
  --gold-accent-rgb: 240, 199, 111;
  --gold-border-rgb: 255, 219, 145;
  --gold-shadow-rgb: 217, 164, 65;
  --cta-action-bg: linear-gradient(135deg, #315f9f 0%, #244f8c 56%, #183d72 100%);
  --cta-action-border: rgba(30, 74, 135, 0.76);
  --cta-action-shadow: 0 12px 26px rgba(28, 67, 122, 0.20);
  --cta-action-ink: #f8fbff;
  --cta-action-font: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  --cta-action-weight: 760;
  --cta-action-tracking: 0.012em;
  --gold-btn-bg: var(--cta-action-bg);
  --gold-btn-border: var(--cta-action-border);
  --gold-btn-shadow: var(--cta-action-shadow);
  --gold-btn-ink: var(--cta-action-ink);
  --secondary-btn-bg: linear-gradient(135deg, #e9eef2, #dbe4ea 58%, #f7fafc);
  --secondary-btn-border: rgba(104, 121, 138, 0.34);
  --secondary-btn-shadow: 0 14px 24px rgba(71, 85, 105, 0.18);
  --secondary-btn-ink: #0f172a;
  --poi-place: #D7A15A;
  --poi-place-outline: rgba(215, 161, 90, 0.52);
  --poi-place-outline-soft: rgba(255, 242, 226, 0.46);
  --poi-internal: #2FA8C0;
  --poi-internal-outline: rgba(47, 168, 192, 0.60);
  --poi-internal-outline-soft: rgba(229, 248, 251, 0.46);
  --poi-internal-ink: #0f172a;
  --poi-extra: #6F757A;
  --poi-extra-outline: rgba(111, 117, 122, 0.60);
  --poi-extra-outline-soft: rgba(229, 231, 235, 0.38);
  --poi-extra-ink: #f8fafc;
}

body.modern-v5.app-theme-dark {
  --gold-accent-deep: #5f421e;
  --gold-accent: #b38a4c;
  --gold-accent-highlight: #c19b63;
  --gold-rgb: 118, 85, 39;
  --gold-accent-rgb: 179, 138, 76;
  --gold-border-rgb: 193, 155, 99;
  --gold-shadow-rgb: 118, 85, 39;
  --cta-action-bg: linear-gradient(135deg, #3569ad 0%, #285896 56%, #1d477e 100%);
  --cta-action-border: rgba(125, 181, 245, 0.44);
  --cta-action-shadow: 0 14px 28px rgba(3, 10, 23, 0.42);
  --cta-action-ink: #f8fbff;
  --gold-btn-bg: var(--cta-action-bg);
  --gold-btn-border: var(--cta-action-border);
  --gold-btn-shadow: var(--cta-action-shadow);
  --gold-btn-ink: var(--cta-action-ink);
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-v1120zs {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  height: auto !important;
  margin: clamp(13px,2.2dvh,18px) auto 0 !important;
  padding: 13px 18px !important;
  border: 1px solid var(--cta-action-border) !important;
  border-radius: 8px !important;
  background: var(--cta-action-bg) !important;
  box-shadow: var(--cta-action-shadow) !important;
  color: var(--cta-action-ink) !important;
  font: var(--cta-action-weight) 15px/1.2 var(--cta-action-font) !important;
  letter-spacing: var(--cta-action-tracking) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-v1120zs:hover {
  filter: brightness(1.05) saturate(1.04) !important;
  transform: translateY(-1px) !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-v1120zs:active {
  transform: translateY(1px) scale(.99) !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-v1120zs:focus-visible {
  outline: 3px solid rgba(145,182,255,.88) !important;
  outline-offset: 4px !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-icon-v1120zs {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 38px !important;
  line-height: 0 !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-svg-v1120zt {
  display: block !important;
  width: 58px !important;
  height: 38px !important;
  overflow: visible !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-arrow-v1120zt {
  fill: none !important;
  stroke: #071325 !important;
  stroke-width: 5.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.38)) !important;
}

html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-copy-v1120zs {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

@media (max-width: 767px), (orientation: portrait) {
  html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-v1120zs {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    margin-top: 9px !important;
    padding: 0 14px !important;
  }

  html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-icon-v1120zs,
  html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-svg-v1120zt {
    width: 48px !important;
    height: 32px !important;
  }

  html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-arrow-v1120zt {
    stroke-width: 6.2 !important;
  }
}

@media (max-width: 767px), (orientation: portrait) {
  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible.entry-mobile-poster-visible-v1120zm::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    background: #101010 url("./ROME_CITYREVEAL_HYBRID_MOBILE_V001_POSTER.jpg?v=20260621-v1120zu-offers-area-filters-restore") center center / cover no-repeat !important;
    transition: opacity .32s ease !important;
  }

  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible.entry-mobile-poster-visible-v1120zm.entry-mobile-poster-fade-v1120zm::before {
    opacity: 0 !important;
  }

  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible .city-entry-transition-poster-v1120zm {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    background: #101010 url("./ROME_CITYREVEAL_HYBRID_MOBILE_V001_POSTER.jpg?v=20260621-v1120zu-offers-area-filters-restore") center center / cover no-repeat !important;
    transition: opacity .32s ease !important;
  }

  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible.entry-mobile-poster-fade-v1120zm .city-entry-transition-poster-v1120zm {
    opacity: 0 !important;
  }

  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible .city-entry-transition-core-video {
    position: relative !important;
    z-index: 1 !important;
  }

  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible.entry-video-low-power-fallback-v1120zq::before,
  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible.entry-video-low-power-fallback-v1120zq .city-entry-transition-poster-v1120zm {
    opacity: 1 !important;
    transform-origin: center center !important;
    animation: cityEntryLowPowerFallbackMotionV1120ZQ 6200ms cubic-bezier(.2,.7,.2,1) forwards !important;
  }

  html:not(.inbound-map-boot) body.is-inbound-map-entry-animation-v620 #cityEntryTransition.visible.entry-video-low-power-fallback-v1120zq::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 6 !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 50% 88%, rgba(224, 176, 72, .22), transparent 28%),
      linear-gradient(115deg, transparent 0%, rgba(255,255,255,.08) 46%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.07) 54%, transparent 100%) !important;
    mix-blend-mode: screen !important;
    animation: cityEntryLowPowerFallbackSweepV1120ZQ 6200ms ease-in-out forwards !important;
  }
}

@keyframes cityEntryLowPowerFallbackMotionV1120ZQ {
  0% { transform: scale(1.035) translate3d(0, 0, 0); filter: saturate(1.02) brightness(.96); }
  38% { transform: scale(1.085) translate3d(-1.4%, -.8%, 0); filter: saturate(1.08) brightness(1.04); }
  72% { transform: scale(1.13) translate3d(1.3%, .7%, 0); filter: saturate(1.04) brightness(1.01); }
  100% { transform: scale(1.17) translate3d(0, 0, 0); filter: saturate(1.02) brightness(.98); }
}

@keyframes cityEntryLowPowerFallbackSweepV1120ZQ {
  0% { opacity: .16; transform: translate3d(-72%, 0, 0); }
  42% { opacity: .38; transform: translate3d(28%, 0, 0); }
  100% { opacity: .12; transform: translate3d(72%, 0, 0); }
}

#cityEntryTransition.visible.entry-video-low-power-fallback-v1120zq::before,
#cityEntryTransition.visible.entry-video-low-power-fallback-v1120zq .city-entry-transition-poster-v1120zm {
  opacity: 1 !important;
  transform-origin: center center !important;
  animation: cityEntryLowPowerFallbackMotionV1120ZQ 6200ms cubic-bezier(.2,.7,.2,1) forwards !important;
}

#cityEntryTransition.visible.entry-video-low-power-fallback-v1120zq::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 6 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 88%, rgba(224, 176, 72, .22), transparent 28%),
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.08) 46%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.07) 54%, transparent 100%) !important;
  mix-blend-mode: screen !important;
  animation: cityEntryLowPowerFallbackSweepV1120ZQ 6200ms ease-in-out forwards !important;
}
html, body { margin: 0; min-height: 100dvh; font-family: Aptos, "Trebuchet MS", Arial, sans-serif; color: var(--ui-ink); }
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 157, 94, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(35, 48, 72, 0.08), transparent 24%),
    linear-gradient(180deg, var(--ui-bg-1) 0%, var(--ui-bg-2) 34%, #f7f8fa 100%);
}
.hidden { display: none !important; }

#root { min-height: 100dvh; height: auto; display: grid; grid-template-rows: auto auto; align-content: start; }
body.tour-mode #root { height: 100dvh; min-height: 100dvh; grid-template-rows: 1fr; }
body.tour-mode .topbar { display: none !important; }
body.wizard-splash-mode {
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 158, 11, 0.18), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(56, 189, 248, 0.16), transparent 16%),
    radial-gradient(circle at 50% 120%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(180deg, #09111f 0%, #0d1728 46%, #08111d 100%);
}
body.wizard-splash-mode #root {
  min-height: 100dvh;
  height: 100dvh;
  grid-template-rows: 1fr;
}
body.wizard-splash-mode .topbar {
  display: none !important;
}
.topbar {
  background: #0f172a;
  color: #e2e8f0;
  padding: calc(var(--topbar-pad-y) + env(safe-area-inset-top, 0px)) var(--topbar-pad-x) calc(var(--topbar-pad-y) + 2px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--topbar-gap);
}
.topbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; letter-spacing: .4px; }
.status { font-size: 12px; color: #93c5fd; }
.command-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.cmd-group {
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 10px;
  padding: var(--cmd-padding);
  background: rgba(30, 41, 59, .6);
}
.cmd-title {
  font-size: var(--cmd-title-size);
  font-weight: 700;
  color: #bfdbfe;
  margin-bottom: 6px;
}
.checks-row {
  margin-top: 6px;
}
.checks-row label {
  color: #dbeafe;
}
.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 6px 8px;
  background: #111827;
}
.volume-emoji {
  font-size: 16px;
  line-height: 1;
}
#volumeSlider {
  width: var(--volume-width);
}

.wizard-view {
  max-width: 1180px;
  margin: 20px auto;
  width: calc(100% - 24px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.92)),
    linear-gradient(140deg, rgba(244, 215, 191, 0.28), rgba(255,255,255,0));
  border: 1px solid var(--ui-panel-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(35, 48, 72, .12);
  backdrop-filter: blur(8px);
}
body.wizard-splash-mode .wizard-view {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(245, 158, 11, 0.11), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(59, 130, 246, 0.11), transparent 18%),
    linear-gradient(180deg, rgba(7,12,22,0.98), rgba(10,17,29,0.995));
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}
body.wizard-splash-mode .wizard-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0));
  pointer-events: none;
}
body.wizard-splash-mode .wizard-view::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30vh;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.34)),
    radial-gradient(circle at 50% 160%, rgba(243, 196, 139, 0.18), transparent 46%);
  pointer-events: none;
}
.wizard-progress {
  font-size: 12px;
  color: var(--ui-accent);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-panel {
  padding: 16px;
}
.wizard-panel-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ui-accent);
  margin-bottom: 12px;
}
.plan-filter-panel {
  margin-bottom: 14px;
}

.avatar-entry-panel {
  margin-bottom: 14px;
}

.tariff-panel {
  margin-bottom: 14px;
}
.plan-disclaimer {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(143, 74, 36, 0.07);
  border: 1px solid rgba(143, 74, 36, 0.10);
  color: #5a2d16;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}
.language-select-shell {
  position: relative;
}
.language-select-shell::after {
  content: "▼";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ui-accent);
  pointer-events: none;
}
.language-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(143, 74, 36, 0.18);
  border-radius: 16px;
  padding: 14px 42px 14px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1d2737;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247, 236, 224, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.language-select:focus {
  outline: none;
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px rgba(190, 106, 45, 0.14);
}
.wizard-section-head {
  margin-bottom: 14px;
}
.wizard-section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 6px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.pick-card {
  border: 1px solid rgba(35, 48, 72, 0.08);
  border-radius: 16px;
  padding: 14px 14px 13px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,241,232,0.9));
  transition: all .16s ease;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pick-card:hover {
  border-color: rgba(143, 74, 36, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 48, 72, 0.08);
}
.pick-card.active {
  border-color: var(--ui-accent);
  background: linear-gradient(180deg, #fff9f3, #f4dfca);
  box-shadow: inset 0 0 0 1px rgba(143, 74, 36, 0.22), 0 12px 28px rgba(143, 74, 36, 0.12);
}
.pick-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--ui-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.pick-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #1d2737;
}
.pick-card-subtitle {
  font-size: 12px;
  color: var(--ui-ink-soft);
  line-height: 1.45;
  margin-top: 6px;
}
.avatar-card { padding: 8px; }
.avatar-preview-box {
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  margin-bottom: 8px;
}
.avatar-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f172a;
}
.avatar-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.avatar-name { display: block; margin-bottom: 3px; }
.avatar-role { font-size: 12px; color: #475569; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.form-grid-tour {
  margin-bottom: 18px;
}
label { display: flex; flex-direction: column; font-size: 12px; gap: 6px; color: #334155; }
input, select {
  border: 1px solid rgba(35, 48, 72, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  background: rgba(255,255,255,0.88);
}

.tour-choice-grid {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}
.tour-preview-shell,
.tour-card-shell {
  background: var(--ui-panel);
  border: 1px solid var(--ui-panel-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(35, 48, 72, 0.08);
}
.tour-preview-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(35, 48, 72, 0.1);
  background: #efe6d9;
}
.tour-card {
  border: 1px solid rgba(35, 48, 72, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,244,235,0.92));
  margin-bottom: 0;
}
.tour-card h4 {
  margin: 0 0 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.05;
}
.tour-card-route {
  color: var(--ui-ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.tour-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(35, 48, 72, 0.08);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tour-card-status.ok {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
  background: #f0fdf4;
}
.tour-card-status.ko {
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.18);
  background: #fff7ed;
}
.tour-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.metric-pill {
  border: 1px solid rgba(35, 48, 72, 0.08);
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(255,255,255,0.88);
  font-size: 12px;
}
.metric-pill strong {
  color: var(--ui-accent);
}
.tour-card-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tour-inline-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(35, 48, 72, 0.06);
  border: 1px solid rgba(35, 48, 72, 0.08);
  color: var(--ui-deep);
  font-size: 12px;
  font-weight: 700;
}
.hint { font-size: 12px; color: #475569; }

.guide-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
}
.guide-main-panel { min-width: 0; }
.guide-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.avatar-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.step-actions, .inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(35, 48, 72, 0.12);
  border-radius: 12px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-font-size);
  background: rgba(255,255,255,0.94);
  cursor: pointer;
}
.btn.primary {
  background: var(--gold-btn-bg);
  border-color: var(--gold-btn-border);
  color: var(--gold-btn-ink);
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}
.btn.active {
  background: var(--gold-btn-bg);
  border-color: var(--gold-btn-border);
  color: var(--gold-btn-ink);
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(231, 176, 116, 0.28), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(32, 48, 76, 0.14), transparent 20%),
    linear-gradient(145deg, #f0dfc7 0%, #f8f1e6 36%, #f3f5f7 100%);
}
.topbar {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(32, 48, 76, 0.96)),
    linear-gradient(135deg, rgba(190, 106, 45, 0.18), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}
.brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
  color: #f8e9d0;
}
.status {
  color: #cfe0ff;
  font-weight: 700;
}
.wizard-view {
  position: relative;
  max-width: 1240px;
  margin: 24px auto;
  padding: 22px;
  overflow: visible;
  border-radius: 28px;
  border: 1px solid rgba(124, 62, 29, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.9)),
    linear-gradient(135deg, rgba(255, 244, 227, 0.92), rgba(255,255,255,0.68));
  box-shadow:
    0 24px 60px rgba(35, 48, 72, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
}
.wizard-view::before {
  content: "";
  position: absolute;
  inset: -160px auto auto -140px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(190, 106, 45, 0.18), transparent 66%);
  pointer-events: none;
}
.wizard-view::after {
  content: "";
  position: absolute;
  inset: auto -140px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(35, 48, 72, 0.10), transparent 68%);
  pointer-events: none;
}
.wizard-progress {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(124, 62, 29, 0.12);
  box-shadow: 0 8px 18px rgba(35, 48, 72, 0.06);
}
.wizard-panel,
.tour-preview-shell,
.tour-card-shell {
  border-radius: 24px;
}
.wizard-panel,
.tour-preview-shell,
.tour-card-shell {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.88), rgba(255,255,255,0.82));
  border: 1px solid rgba(124, 62, 29, 0.12);
  box-shadow: 0 18px 34px rgba(35, 48, 72, 0.08);
  backdrop-filter: blur(10px);
}
.wizard-panel-title {
  color: #7c3e1d;
}
.language-select {
  border-color: rgba(124, 62, 29, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 239, 227, 0.96));
}
.pick-card {
  min-height: 100px;
  border-radius: 18px;
  border: 1px solid rgba(35, 48, 72, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251, 245, 236, 0.94));
  box-shadow: 0 10px 22px rgba(35, 48, 72, 0.05);
}
.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(35, 48, 72, 0.10);
}
.pick-card.active {
  border-color: rgba(143, 74, 36, 0.34);
  background: linear-gradient(180deg, #fff6ea, #f2d8bc);
  box-shadow:
    inset 0 0 0 1px rgba(143, 74, 36, 0.14),
    0 18px 34px rgba(143, 74, 36, 0.16);
}
.tour-preview-map {
  border-radius: 18px;
  background: #ead8bf;
}
.tour-card {
  border-radius: 22px;
  border: 1px solid rgba(124, 62, 29, 0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250, 242, 231, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.tour-card h4 {
  font-size: 32px;
  color: #1e2430;
}
.tour-card-route {
  color: #4c5666;
}
.metric-pill {
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
}
.btn {
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246, 239, 230, 0.94));
  box-shadow: 0 8px 16px rgba(35, 48, 72, 0.06);
}
.btn.primary,
.btn.active {
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
}

.tour-view {
  display: block;
  height: 100%;
  min-height: 100dvh;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.left-panel, .right-panel {
  background: #f8fafc;
  border-right: 1px solid #dbeafe;
  overflow: auto;
}
.right-panel { border-right: none; border-left: 1px solid #dbeafe; }
.center-panel,
.avatar-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.center-panel {
  overflow: hidden;
}
body.tour-mode .tour-view.view-map,
body.tour-mode .tour-view.view-map .center-panel {
  height: 100dvh;
  min-height: 100dvh;
}
.avatar-panel {
  background: #101010;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tour-view.view-map .avatar-panel { display: none; }
.tour-view.view-avatar .center-panel { display: none; }
.avatar-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: var(--avatar-stage-pad);
  overflow: hidden;
}

.panel-block { border-bottom: 1px solid #e2e8f0; padding: 12px; }
.panel-block h3 { margin: 0 0 8px 0; font-size: 15px; }
.controls-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

#map { width: 100%; height: 100%; min-height: 100%; min-width: 0; position: relative; display: block; isolation: isolate; }
#map.leaflet-container { width: 100%; height: 100%; min-height: 100%; }
.atg-tour-preference-map-start-picker-v1174a {
  position: absolute;
  z-index: 1200;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(245, 207, 117, .46);
  border-radius: 16px;
  background: rgba(10, 18, 37, .94);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .38);
  color: #f8fafc;
  pointer-events: auto;
}
.atg-tour-preference-map-start-picker-v1174a strong { font-size: 15px; line-height: 1.18; }
.atg-tour-preference-map-start-picker-v1174a span { font-size: 13px; line-height: 1.3; color: #dbeafe; }
.atg-tour-preference-map-start-picker-v1174a button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}
@media (max-width: 520px) {
  .atg-tour-preference-map-start-picker-v1174a {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 14px;
  }
  .atg-tour-preference-map-start-picker-v1174a button {
    grid-row: auto;
    grid-column: auto;
    width: 100%;
  }
}
.build-tour-mode-switcher {
  display: none !important;
}
.build-tour-tray-toggle {
  position: absolute;
  top: max(12px, calc(env(safe-area-inset-top, 0px) + 12px));
  right: 12px;
  z-index: 618;
  pointer-events: none;
}
.build-tour-tray-toggle-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.22);
  background: linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(9, 14, 24, .97));
  box-shadow:
    0 16px 30px rgba(8, 15, 28, .3),
    inset 0 1px 0 rgba(255,255,255,.05);
  color: #f8fafc;
}
.build-tour-tray-toggle-icon {
  color: #f5d28f;
  font-size: 16px;
  line-height: 1;
}
.build-tour-tray {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(6px, calc(env(safe-area-inset-bottom, 0px) + 6px));
  z-index: 620;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.map-rights-control {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: max(6px, calc(env(safe-area-inset-bottom, 0px) + 6px));
  z-index: 500;
  pointer-events: none;
}
.map-rights-shell {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.map-rights-panel {
  max-width: min(260px, calc(100vw - 64px));
  padding: 2px 4px;
  border-radius: 4px;
  border: 0;
  background: rgba(7, 16, 29, 0.58);
  box-shadow: none;
  color: rgba(236, 244, 255, 0.82);
  opacity: 0.78;
  pointer-events: auto;
}
.map-rights-title {
  color: rgba(255, 226, 163, 0.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.map-rights-line {
  font-size: 8px;
  line-height: 1.1;
  white-space: nowrap;
}
.map-rights-toggle {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.88), rgba(7, 16, 29, 0.92));
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 12px rgba(0,0,0,0.14);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.map-rights-shell.is-collapsed {
  gap: 0;
}
.build-tour-preview-tray {
  z-index: 625;
}
.build-tour-dashboard-shell {
  width: min(100%, 620px);
  display: grid;
  gap: 10px;
  padding: 12px 14px 12px;
  border-radius: 22px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.32);
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.98), rgba(7, 16, 29, 0.995));
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.08);
  color: #f8fafc;
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.build-tour-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.build-tour-dashboard-head-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.build-tour-dashboard-hide {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.build-tour-dashboard-hide:hover {
  border-color: rgba(var(--gold-shadow-rgb), 0.28);
  background: rgba(255,255,255,0.07);
}
.build-tour-dashboard-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.build-tour-dashboard-title {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}
.build-tour-dashboard-note {
  color: rgba(239, 226, 201, 0.74);
  font-size: 12px;
  line-height: 1.35;
}
.build-tour-dashboard-departure {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: linear-gradient(180deg, rgba(24, 31, 46, 0.82), rgba(15, 23, 36, 0.88));
}
.build-tour-dashboard-departure.is-set {
  border-color: rgba(var(--gold-accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(40, 32, 13, 0.92), rgba(28, 22, 11, 0.94));
}
.build-tour-dashboard-departure.is-missing {
  border-color: rgba(148, 163, 184, 0.16);
}
.build-tour-dashboard-departure-label {
  color: rgba(239, 226, 201, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.build-tour-dashboard-departure strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}
.build-tour-dashboard-departure-action {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.build-tour-dashboard-departure-action:hover,
.build-tour-dashboard-departure-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--gold-accent-rgb), 0.3);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}
.build-tour-dashboard-edit,
.build-tour-dashboard-btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--secondary-btn-border);
  background: var(--secondary-btn-bg);
  color: var(--secondary-btn-ink);
  box-shadow: var(--secondary-btn-shadow);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.build-tour-dashboard-edit {
  flex: 0 0 auto;
  color: var(--gold-btn-ink);
  border: 1px solid var(--gold-btn-border);
  background: var(--gold-btn-bg);
  box-shadow: var(--gold-btn-shadow);
}
.build-tour-dashboard-shell-suggest {
  width: min(100%, 640px);
}
.build-tour-dashboard-shell-suggest .build-tour-dashboard-note {
  max-width: 540px;
  font-size: 12px;
  line-height: 1.45;
}
.build-tour-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.build-tour-dashboard-chip {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.12);
  background: linear-gradient(180deg, rgba(24, 31, 46, 0.82), rgba(15, 23, 36, 0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.build-tour-dashboard-chip span {
  color: rgba(255, 226, 163, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.build-tour-dashboard-chip strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}
.build-tour-dashboard-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}
.build-tour-dashboard-leg-label {
  color: rgba(255, 226, 163, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.build-tour-dashboard-leg-value {
  min-width: 0;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}
.build-tour-dashboard-stops {
  display: block;
  overflow: visible;
}
.build-tour-dashboard-stop-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 6px;
  padding-bottom: 0;
}
.build-tour-dashboard-stop-shell {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 24px 24px;
  align-items: center;
  gap: 3px;
  padding-top: 2px;
}
.build-tour-dashboard-stop-shell.is-reorder-source .build-tour-dashboard-stop {
  border-color: rgba(var(--gold-border-rgb), 0.48);
  box-shadow: 0 0 0 3px rgba(var(--gold-accent-rgb), 0.18);
  transform: scale(1.08);
}
.build-tour-dashboard-stop {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(25, 34, 50, 0.92), rgba(14, 22, 34, 0.94));
  display: inline-grid;
  place-items: center;
  color: #f8fafc;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.build-tour-dashboard-stop-remove {
  position: static;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(21, 32, 43, 0.96), rgba(11, 18, 32, 0.98));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.build-tour-dashboard-stop-order,
.build-tour-dashboard-stop-more {
  font-size: 10px;
  font-weight: 900;
}
.build-tour-dashboard-stop-more {
  color: rgba(255, 226, 163, 0.74);
}
.build-tour-dashboard-empty {
  color: rgba(239, 226, 201, 0.74);
  font-size: 12px;
  line-height: 1.45;
}
.build-tour-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.build-tour-dashboard-actions-suggest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.build-tour-dashboard-actions-suggest .build-tour-dashboard-edit {
  grid-column: 1 / -1;
}
.build-tour-dashboard-btn-danger {
  border-color: var(--secondary-btn-border);
  color: var(--secondary-btn-ink);
}
.build-tour-preview-shell {
  width: min(100%, 680px);
}
.build-tour-preview-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.build-tour-preview-pin-shell {
  background: transparent;
  border: 0;
}
.build-tour-preview-pin {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(215, 161, 90, 0.96), rgba(186, 125, 52, 0.98));
  color: #111827;
  border: 2px solid rgba(255, 239, 198, 0.72);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(215, 161, 90, 0.16);
}
.build-tour-preview-pin.is-extra {
  background: linear-gradient(180deg, rgba(136, 138, 139, 0.98), rgba(98, 102, 104, 0.98));
  border-color: rgba(241, 245, 249, 0.6);
  color: #f8fafc;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(136, 138, 139, 0.14);
}
.build-tour-preview-pin-order {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.nav-hud {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 520;
  max-width: min(98vw, 1120px);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .35);
  padding: 10px 14px;
  text-align: left;
  line-height: 1.35;
}
.nav-hud .hud-line {
  display: block;
  margin: 1px 0;
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 600;
}
.nav-hud .hud-line-1 {
  font-size: 14px;
  color: #bae6fd;
  font-weight: 800;
}
.nav-hud .hud-line-2 {
  font-size: 14px;
  color: #f8fafc;
  font-weight: 800;
}
.nav-hud .hud-line-3 {
  color: #cbd5e1;
  font-style: italic;
}
.tour-back-btn {
  position: absolute;
  top: 28px;
  right: 12px;
  z-index: 40;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.tour-back-btn:hover {
  background: #115e59;
  border-color: #115e59;
}
.video-options-fab {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 42;
  width: 42px;
  height: 42px;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 999px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-options-fab:hover {
  background: #115e59;
  border-color: #115e59;
}
.video-options-panel {
  position: absolute;
  right: 12px;
  bottom: 52px;
  z-index: 42;
  width: min(92vw, 320px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #134e4a;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .38);
  color: #e2e8f0;
}
.video-options-title {
  font-size: 15px;
  font-weight: 700;
  color: #ccfbf1;
  margin-bottom: 8px;
}
.video-options-field {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}
.video-options-field > span {
  color: #cbd5e1;
  font-weight: 600;
}
.video-options-field select {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0b1220;
  color: #e2e8f0;
  padding: 7px 8px;
  font-size: 12px;
}
.video-options-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #cbd5e1;
}
.map-fab-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(6px, calc(env(safe-area-inset-bottom, 0px) + 6px));
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 500;
}
.map-fab-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-fab-group-right {
  margin-left: auto;
}
.map-fab-anchor {
  position: static;
}
.history-btn {
  position: static;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 9px;
  padding: var(--history-pad-y) var(--history-pad-x);
  font-size: var(--history-font-size);
  white-space: nowrap;
  cursor: pointer;
}
.history-btn-alt {
  border-color: #0f766e;
  background: #0f766e;
}
.history-btn-back {
  border-color: rgba(var(--gold-border-rgb), .30);
  background: linear-gradient(180deg, rgba(17, 27, 44, .94), rgba(10, 18, 31, .98));
  color: #f8fafc;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .22);
}
.history-btn:disabled { opacity: .55; cursor: not-allowed; }
.map-icon-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .84);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .28);
}
.map-icon-btn-icon {
  font-size: 18px;
  line-height: 1;
}
.map-icon-btn.active {
  background: #0f766e;
  border-color: #0f766e;
}
.map-node-wrap {
  background: transparent;
  border: 0;
}
.map-node {
  width: var(--map-node-size);
  height: var(--map-node-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .28);
  color: #fff;
  font-size: var(--map-node-font-size);
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.map-node.stop { background: var(--poi-place); }
.map-node.stop-internal { background: var(--poi-internal); }
.map-node.extra { background: var(--poi-extra); color: var(--poi-extra-ink); }
.map-node-wrap:hover .map-node {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .35);
}
.map-node-wrap.is-active .map-node {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .24), 0 10px 22px rgba(37, 99, 235, .45);
}
.map-node-wrap.is-done .map-node {
  filter: saturate(0.55) brightness(0.92);
}
.map-node-wrap.is-locked .map-node {
  color: #fff;
  opacity: .84;
  filter: saturate(.72) brightness(.94);
  border-color: rgba(255,255,255,.88);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
}

.map-pulse-wrap {
  background: transparent;
  border: 0;
}
.map-pulse {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, .7);
  background: rgba(59, 130, 246, .14);
  animation: pulse-ring 1.6s infinite ease-out;
}
@keyframes pulse-ring {
  0% { transform: scale(.55); opacity: .85; }
  100% { transform: scale(1.2); opacity: 0; }
}

.wc-wrap { background: transparent; border: 0; }
.wc-pin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #16a34a;
  border: 2px solid #fff;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 14px rgba(22, 163, 74, .28);
}
.fountain-wrap { background: transparent; border: 0; }
.fountain-pin {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0891b2;
  border: 2px solid #fff;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 14px rgba(8, 145, 178, .30);
}
.rome-map-point {
  background: transparent;
  border: 0;
}
.rome-map-point-shell {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.rome-map-point-shell.is-dot {
  width: 24px;
  height: 24px;
}
.rome-map-point-photo {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .96);
  isolation: isolate;
  --marker-outline: rgba(203, 213, 225, .52);
  --marker-outline-soft: rgba(255, 255, 255, .34);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .94),
    0 0 0 3px var(--marker-outline),
    0 12px 22px rgba(15, 23, 42, .24);
}
.rome-map-point-photo::before,
.rome-map-point-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  clip-path: inherit;
  background:
    linear-gradient(150deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.18) 18%, rgba(255,255,255,0) 42%),
    linear-gradient(330deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,0) 46%);
  pointer-events: none;
  z-index: 1;
}
.rome-map-point-photo::after,
.rome-map-point-dot::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  clip-path: inherit;
  border: 1px solid var(--marker-outline-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.44),
    inset 0 -2px 5px rgba(0,0,0,.16);
  pointer-events: none;
  z-index: 2;
}
.rome-map-point-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
}
.rome-map-point-photo.shape-default,
.rome-map-point-dot.shape-default {
  border-radius: 999px;
  clip-path: none;
}
.rome-map-point-photo.shape-default .rome-map-point-photo-img {
  border-radius: 999px;
}
.rome-map-point-photo.shape-church,
.rome-map-point-dot.shape-church {
  border-radius: 0;
  clip-path: polygon(50% 4%, 58% 12%, 58% 22%, 76% 22%, 76% 38%, 88% 50%, 88% 100%, 12% 100%, 12% 50%, 24% 38%, 24% 22%, 42% 22%, 42% 12%);
}
.rome-map-point-photo.shape-church .rome-map-point-photo-img {
  border-radius: 0;
}
.rome-map-point-photo.shape-museum,
.rome-map-point-dot.shape-museum {
  border-radius: 0;
  clip-path: polygon(50% 4%, 92% 28%, 82% 28%, 82% 86%, 92% 86%, 92% 100%, 8% 100%, 8% 86%, 18% 86%, 18% 28%, 8% 28%);
}
.rome-map-point-photo.shape-museum .rome-map-point-photo-img {
  border-radius: 0;
}
.rome-map-point-photo.shape-archaeology,
.rome-map-point-dot.shape-archaeology {
  border-radius: 0;
  clip-path: polygon(50% 2%, 86% 14%, 98% 50%, 86% 86%, 50% 98%, 14% 86%, 2% 50%, 14% 14%);
}
.rome-map-point-photo.shape-archaeology .rome-map-point-photo-img {
  border-radius: 0;
}
.rome-map-point-photo.shape-bridge,
.rome-map-point-dot.shape-bridge {
  border-radius: 0;
  clip-path: polygon(8% 100%, 8% 70%, 22% 70%, 26% 56%, 35% 40%, 50% 24%, 65% 40%, 74% 56%, 78% 70%, 92% 70%, 92% 100%);
}
.rome-map-point-photo.shape-bridge .rome-map-point-photo-img {
  border-radius: 0;
}
.rome-map-point-photo.shape-square,
.rome-map-point-dot.shape-square {
  border-radius: 10px;
  clip-path: inset(0 round 10px);
}
.rome-map-point-photo.shape-square .rome-map-point-photo-img {
  border-radius: 10px;
}
.rome-map-point-photo.shape-fountain,
.rome-map-point-dot.shape-fountain {
  border-radius: 0;
  clip-path: polygon(50% 0%, 66% 15%, 80% 34%, 84% 50%, 78% 68%, 64% 86%, 50% 100%, 36% 86%, 22% 68%, 16% 50%, 20% 34%, 34% 15%);
}
.rome-map-point-photo.shape-fountain .rome-map-point-photo-img {
  border-radius: 0;
}
.rome-map-point-photo.thumb-missing .rome-map-point-photo-img {
  display: none;
}
.rome-map-point-photo.place-standard {
  --marker-outline: var(--poi-place-outline);
  --marker-outline-soft: var(--poi-place-outline-soft);
  border-color: var(--poi-place);
  background: var(--poi-place);
}
.rome-map-point-photo.place-internal {
  --marker-outline: var(--poi-internal-outline);
  --marker-outline-soft: var(--poi-internal-outline-soft);
  border-color: var(--poi-internal);
  background: var(--poi-internal);
}
.rome-map-point-photo.extra {
  --marker-outline: var(--poi-extra-outline);
  --marker-outline-soft: var(--poi-extra-outline-soft);
  border-color: var(--poi-extra);
  background: var(--poi-extra);
}
.rome-map-point-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .96);
  isolation: isolate;
  --marker-outline: rgba(203, 213, 225, .52);
  --marker-outline-soft: rgba(255, 255, 255, .34);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .94),
    0 0 0 3px var(--marker-outline),
    0 9px 16px rgba(15, 23, 42, .24);
}
.rome-map-point-dot.place-standard {
  --marker-outline: var(--poi-place-outline);
  --marker-outline-soft: var(--poi-place-outline-soft);
  background: var(--poi-place);
}
.rome-map-point-dot.place-internal {
  --marker-outline: var(--poi-internal-outline);
  --marker-outline-soft: var(--poi-internal-outline-soft);
  background: var(--poi-internal);
}
.rome-map-point-dot.extra {
  --marker-outline: var(--poi-extra-outline);
  --marker-outline-soft: var(--poi-extra-outline-soft);
  background: var(--poi-extra);
}
.rome-map-point-type-badge {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.96);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(237, 243, 250, .98));
  color: #0f172a;
  font-size: 12px;
  line-height: 1;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.40),
    0 0 0 4px rgba(29, 78, 216, .18),
    0 10px 16px rgba(15, 23, 42, .22);
  z-index: 4;
}
.rome-map-priority-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.rome-map-priority-star {
  color: rgba(255, 244, 214, 0.58);
  font-size: 10px;
  line-height: 1;
  text-shadow:
    0 1px 2px rgba(0,0,0,.9),
    0 0 6px rgba(0,0,0,.5);
}
.rome-map-priority-star.is-filled {
  color: var(--gold-accent);
}
.rome-map-point-shell.is-dot .rome-map-point-type-badge {
  right: -5px;
  top: -5px;
}
.rome-map-point-photo.tour-selected,
.rome-map-point-dot.tour-selected {
  box-shadow:
    0 0 0 2px rgba(96, 165, 250, 0.34),
    0 10px 18px rgba(15, 23, 42, .28);
}
.rome-map-tour-badge {
  position: absolute;
  left: -5px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(219, 234, 254, 0.9);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #eff6ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 14px rgba(29, 78, 216, 0.34);
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.leaflet-popup-content {
  margin: 0;
}
.leaflet-popup-tip-container {
  margin-top: -1px;
}
.leaflet-popup-tip {
  background: #0b1220;
  box-shadow: 0 14px 28px rgba(8, 15, 28, .28);
}
.leaflet-popup-close-button {
  color: rgba(255, 255, 255, .82) !important;
  font-size: 18px !important;
  top: 9px !important;
  right: 10px !important;
}
.leaflet-popup-close-button:hover {
  color: #fff !important;
}
.map-popup {
  width: min(240px, calc(100vw - 56px));
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(9, 14, 24, .97));
  border: 1px solid rgba(245, 200, 88, .22);
  box-shadow:
    0 24px 44px rgba(8, 15, 28, .42),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}
.map-popup .p-token {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .22);
  font-size: 11px;
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.map-popup .p-title {
  font-size: 16px;
  color: #f8fafc;
  font-weight: 800;
  margin: 0 22px 6px 0;
  line-height: 1.28;
  min-height: 42px;
  text-wrap: balance;
}
.map-popup .p-meta {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 7px;
  line-height: 1.4;
}
.map-popup .p-meta-missing-photo {
  color: #fcd34d;
  font-weight: 700;
}
.map-popup-photo-wrap {
  margin: 10px 0 10px;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .24);
}
.map-popup-photo {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.map-popup .popup-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}
.map-popup .popup-btn {
  display: block;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #f4d05e, #c8961c);
  color: #111827;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
}
.map-popup .popup-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.map-popup .popup-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  background: #94a3b8;
}
.map-legend-modal {
  width: min(92vw, 420px);
  max-width: min(92vw, 420px);
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(12, 18, 32, 0.96), rgba(9, 14, 26, 0.98)),
    radial-gradient(circle at top, rgba(var(--gold-shadow-rgb), 0.08), transparent 46%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 24px 60px rgba(0,0,0,0.44);
  color: #f8fafc;
  padding: 24px 22px 20px;
}
.map-legend-modal h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #f8fafc;
}
.map-legend-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 16px;
}
.map-legend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.map-legend-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .96);
  box-shadow:
    0 8px 14px rgba(15, 23, 42, .28),
    inset 0 1px 0 rgba(255,255,255,0.24);
  flex: 0 0 auto;
}
.map-legend-swatch.place-standard {
  background: var(--poi-place);
}
.map-legend-swatch.place-internal {
  background: var(--poi-internal);
}
.map-legend-swatch.extra {
  background: var(--poi-extra);
}
.map-legend-copy {
  font-size: 15px;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.3;
}
.map-legend-emoji {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 232, 240, 0.42);
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.7) 45%, rgba(226,232,240,0.86) 100%);
  box-shadow: 0 8px 14px rgba(15, 23, 42, .24), inset 0 1px 0 rgba(255,255,255,0.62);
  font-size: 18px;
  line-height: 1;
}
.map-legend-stars {
  min-width: 42px;
  display: inline-flex;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 10px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}
.map-legend-row-stars {
  align-items: flex-start;
}
.map-legend-note {
  margin: 2px 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}
.leaflet-tooltip.node-tip {
  background: #101010;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .25);
  padding: 8px 10px;
  color: #0f172a;
  max-width: min(90vw, 360px);
}
.leaflet-tooltip.node-tip.leaflet-tooltip-bottom::before {
  border-bottom-color: #93c5fd;
}

.video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
}
.avatar-stage.audio-only-mode .video-wrap {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(15, 23, 42, 0.98));
}
.avatar-stage.audio-only-mode .video-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 360px);
  height: 132px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.24);
  background:
    radial-gradient(circle at top, rgba(var(--gold-accent-rgb), 0.12), transparent 58%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.92), rgba(8, 14, 24, 0.98));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 2;
}
.avatar-stage.audio-only-mode .video-wrap::after {
  content: "AUDIO ONLY\A Voice active, video hidden";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(248, 250, 252, 0.92);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  z-index: 3;
}
.avatar-stage.audio-only-mode #videoBackdrop,
.avatar-stage.audio-only-mode #videoPlayer {
  opacity: 0;
  visibility: hidden;
}
#videoBackdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.2) brightness(0.62);
  transform: scale(1.08);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  display: none !important;
}
#videoPlayer {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  background: transparent;
  border-radius: 0;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 2;
}
.subtitle-overlay {
  position: absolute;
  left: 10px;
  right: 70px;
  bottom: 84px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.subtitle-overlay .subtitle-text {
  max-width: min(84vw, 620px);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.35;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
.node-list { display: grid; gap: 8px; }
.node-item {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
}
.node-item.active { border-color: #2563eb; background: #dbeafe; }
.node-item.done { border-color: #22c55e; }
.node-item.locked {
  opacity: .5;
  border-style: dashed;
  background: #f1f5f9;
}
.node-item .nline { font-size: 12px; color: #334155; }

.badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
  color: #fff;
}
.badge.stop { background: var(--poi-place); color: #111827; }
.badge.stop-internal { background: var(--poi-internal); color: var(--poi-internal-ink); }
.badge.extra { background: var(--poi-extra); color: var(--poi-extra-ink); }

.modal-layer {
  position: fixed;
  inset: 0;
  padding:
    calc(14px + env(safe-area-inset-top, 0px))
    8px
    calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: rgba(4, 10, 22, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 2000;
}
.modal-layer.modal-layer-surface {
  padding: 0;
  place-items: stretch;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.985), rgba(7, 16, 29, 0.995));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal-card {
  width: min(860px, calc(100% - 28px));
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 14px;
}
.modal-card.modal-card-start {
  width: min(560px, calc(100% - 26px));
  border: 1px solid #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 58%);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22);
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.tour-start-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #5eead4;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.tour-start-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 8px;
}
.tour-start-summary {
  color: #334155;
  margin-top: 4px;
}
.tour-start-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.start-tour-launch-btn {
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 11px;
}
.modal-card.modal-card-internal {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: 0;
  padding: 22px 24px 28px;
}
.modal-card.modal-card-place-detail {
  width: min(1020px, calc(100% - 16px));
  max-height: 94vh;
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(7, 16, 29, 0.995));
  color: #f8fafc;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.1);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.place-detail-shell {
  display: grid;
  grid-template-rows: auto auto;
  min-height: auto;
}
.place-detail-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 12px;
}
.place-detail-topbar-center {
  display: flex;
  justify-self: center;
  justify-content: center;
  min-width: 0;
}
.place-detail-scroll {
  overflow: visible;
  min-width: 0;
  padding: 0 20px 22px;
}
.place-detail-category {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.place-detail-category.stop {
  background: var(--poi-place);
  color: #111827;
}
.place-detail-category.stop-internal {
  background: var(--poi-internal);
  color: var(--poi-internal-ink);
}
.place-detail-category.extra {
  background: var(--poi-extra);
  color: var(--poi-extra-ink);
}
.place-detail-close-btn,
.place-detail-action-btn-history {
  color:var(--gold-btn-ink) !important;
  background: linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight)) !important;
  border: 1px solid rgba(var(--gold-border-rgb), 0.38) !important;
  box-shadow: 0 16px 28px rgba(var(--gold-rgb), 0.26) !important;
}
.place-detail-close-btn {
  justify-self: end;
}
.place-detail-action-btn-build {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 100%;
  min-height: 60px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 224, 148, 0.11), rgba(255, 224, 148, 0) 34%),
    linear-gradient(180deg, rgba(20, 35, 56, 0.98), rgba(10, 19, 33, 0.99)) !important;
  color: var(--gold-accent) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 1px rgba(var(--gold-accent-rgb), 0.08),
    0 14px 28px rgba(0,0,0,0.22),
    0 10px 24px rgba(var(--gold-rgb), 0.12) !important;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
}
.place-detail-action-btn-build:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.place-detail-hero {
  margin-bottom: 18px;
}
.place-detail-hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(6, 14, 25, 0.98));
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 18px 40px rgba(0, 0, 0, 0.22);
}
.place-detail-hero-photo {
  inset: 0;
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.place-detail-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.place-detail-priority-star {
  color: rgba(255, 244, 214, 0.54);
  font-size: 16px;
  line-height: 1;
  text-shadow:
    0 1px 1px rgba(0,0,0,.44),
    0 0 10px rgba(0,0,0,.16);
}
.place-detail-priority-star.is-filled {
  color: var(--gold-accent);
}
.place-detail-hero-media-missing {
  display: grid;
  place-items: center;
  min-height: 260px;
}
.place-detail-hero-missing-copy {
  max-width: 520px;
  padding: 0 18px;
  text-align: center;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.6;
}
.place-detail-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.place-detail-title-block {
  display: grid;
  gap: 6px;
}
.place-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.place-detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 5.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.place-detail-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.place-detail-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc !important;
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.94), rgba(6, 13, 24, 0.98)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16) !important;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.place-detail-inline-btn-icon {
  color: var(--gold-accent);
  line-height: 1;
  font-size: 13px;
  flex: 0 0 auto;
}
.place-detail-inline-btn-label {
  color: inherit;
}
.atg-cultural-avatar-policy-note-v1124ra {
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.28);
  border-radius: 8px;
  background: rgba(var(--gold-accent-rgb), 0.08);
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.atg-cultural-avatar-policy-note-v1124ra strong {
  color: var(--gold-accent);
  font-size: 12px;
  line-height: 1.3;
}
.atg-cultural-avatar-policy-note-v1124ra span {
  min-width: 0;
}
body.modern-v5.app-theme-light .atg-cultural-avatar-policy-note-v1124ra {
  border-color: rgba(138, 90, 0, 0.22);
  background: rgba(181, 126, 42, 0.08);
  color: #334155;
}
body.modern-v5.app-theme-light .atg-cultural-avatar-policy-note-v1124ra strong {
  color: #8a5a00;
}
.place-detail-inline-btn-secondary {
  color: #f8fafc !important;
}
.place-detail-subtitle {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.place-detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.place-detail-meta-line {
  margin-top: 0;
  color: rgba(236, 244, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.place-detail-disclosure {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.94), rgba(6, 13, 24, 0.98));
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  overflow: hidden;
}
.place-detail-disclosure summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.place-detail-disclosure summary::-webkit-details-marker {
  display: none;
}
.place-detail-disclosure summary::after {
  content: "+";
  color: var(--gold-accent);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.place-detail-disclosure[open] summary::after {
  content: "−";
}
.place-detail-disclosure-body {
  padding: 0 20px 20px;
  min-width: 0;
  overflow-x: hidden;
}
.place-detail-text,
.place-detail-empty {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.place-detail-kv-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.place-detail-kv {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.place-detail-kv-label {
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.place-detail-kv-value {
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.contact-rich-text .inline-contact-link,
.place-detail-kv-value .inline-contact-link,
.build-tour-summary-note .inline-contact-link,
.modal-card-internal .hint .inline-contact-link {
  color: var(--gold-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  font-weight: 700;
}
@media (pointer: coarse) and (max-width: 1024px) {
  .contact-rich-text .inline-contact-link,
  .place-detail-kv-value .inline-contact-link,
  .build-tour-summary-note .inline-contact-link,
  .modal-card-internal .hint .inline-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
  }
}
.contact-rich-text .inline-contact-link:hover,
.place-detail-kv-value .inline-contact-link:hover,
.build-tour-summary-note .inline-contact-link:hover,
.modal-card-internal .hint .inline-contact-link:hover {
  color: #f7deb0;
}
.place-detail-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.place-detail-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.place-detail-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 2px;
  flex-wrap: wrap;
}
.place-detail-action-btn-history {
  margin-left: auto;
}
.modal-card h3 { margin-top: 0; }
.gallery-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gallery-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  max-height: 62vh;
  object-fit: cover;
}
.gallery-caption { font-size: 15px; color: #334155; white-space: pre-wrap; }

@media (max-width: 1240px) {
  .command-dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root {
    --topbar-pad-y: 8px;
    --topbar-pad-x: 10px;
    --topbar-gap: 8px;
    --cmd-padding: 7px;
    --btn-pad-y: 7px;
    --btn-pad-x: 10px;
    --btn-font-size: 12px;
    --volume-width: 92px;
    --avatar-stage-pad: 0px;
    --history-pad-y: 8px;
    --history-pad-x: 10px;
    --history-font-size: 12px;
  }
  .wizard-view {
    margin: 10px auto;
    width: calc(100% - 14px);
    padding: 12px;
    border-radius: 10px;
  }
  .wizard-hero,
  .tour-choice-grid,
  .guide-choice-grid {
    grid-template-columns: 1fr;
  }
  .wizard-hero-copy {
    padding: 20px 18px;
  }
  .tour-preview-map {
    height: 280px;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .nav-hud {
    top: 8px;
    padding: 8px 10px;
  }
  .nav-hud .hud-line { font-size: 12px; }
  .nav-hud .hud-line-1 { font-size: 15px; }
  .nav-hud .hud-line-2 { font-size: 15px; }
  .subtitle-overlay {
    right: 66px;
    bottom: 78px;
  }
  .subtitle-overlay .subtitle-text {
    font-size: 14px;
    max-width: min(80vw, 520px);
  }
  .modal-card.modal-card-place-detail {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }
  .place-detail-shell {
    min-height: auto;
  }
  .place-detail-topbar {
    padding: 14px 14px 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }
  .place-detail-title-row {
    flex-direction: column;
  }
  .place-detail-title-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .place-detail-meta-row {
    align-items: flex-start;
  }
  .place-detail-meta-line {
    white-space: normal;
  }
  .place-detail-inline-btn {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .atg-cultural-avatar-policy-note-v1124ra {
    margin-top: 8px;
    padding: 10px 11px;
    font-size: 11px;
  }
  .place-detail-scroll {
    padding: 0 14px 16px;
  }
  .place-detail-hero-media {
    border-radius: 18px;
  }
  .place-detail-disclosure {
    border-radius: 18px;
  }
  .place-detail-disclosure summary,
  .place-detail-disclosure-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Small phones: ~360x800 */
@media (max-width: 380px) {
  :root {
    --topbar-pad-y: 7px;
    --topbar-pad-x: 8px;
    --topbar-gap: 7px;
    --cmd-padding: 6px;
    --cmd-title-size: 11px;
    --btn-pad-y: 6px;
    --btn-pad-x: 8px;
    --btn-font-size: 11px;
    --volume-width: 78px;
    --avatar-stage-pad: 0px;
    --history-pad-y: 7px;
    --history-pad-x: 8px;
    --history-font-size: 11px;
    --map-node-size: 26px;
    --map-node-font-size: 10px;
  }
  .volume-control {
    gap: 4px;
    padding: 4px 6px;
  }
  .volume-emoji { font-size: 15px; }
  .checks-row label { font-size: 11px; }
  .status { font-size: 11px; }
}

/* Large phones: ~412x915 */
@media (min-width: 411px) and (max-width: 520px) {
  :root {
    --topbar-pad-y: 10px;
    --topbar-pad-x: 12px;
    --topbar-gap: 10px;
    --cmd-padding: 9px;
    --cmd-title-size: 13px;
    --btn-pad-y: 8px;
    --btn-pad-x: 12px;
    --btn-font-size: 15px;
    --volume-width: 112px;
    --avatar-stage-pad: 0px;
    --history-pad-y: 9px;
    --history-pad-x: 12px;
    --history-font-size: 15px;
    --map-node-size: 31px;
    --map-node-font-size: 12px;
  }
}

html[dir="rtl"] body {
  direction: rtl;
}
html[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}
html[dir="rtl"] .node-item .nline,
html[dir="rtl"] .hint,
html[dir="rtl"] label {
  text-align: right;
}

body.wizard-onboarding-mode {
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 124, 56, 0.22), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(248, 204, 141, 0.16), transparent 18%),
    linear-gradient(180deg, #111827 0%, #172033 44%, #0b1220 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}

body.wizard-onboarding-mode #root {
  min-height: 100dvh;
  height: auto;
  grid-template-rows: 1fr;
  overflow-x: hidden;
  overflow-y: auto;
}

body.wizard-onboarding-mode .topbar,
body.wizard-onboarding-mode .wizard-progress {
  display: none !important;
}

body.wizard-onboarding-mode .wizard-view {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 158, 11, 0.10), transparent 18%),
    radial-gradient(circle at 75% 28%, rgba(96, 165, 250, 0.10), transparent 18%),
    linear-gradient(180deg, rgba(17,24,39,0.98), rgba(15,23,42,0.99));
  box-shadow: none;
  backdrop-filter: none;
  overflow-x: hidden;
  overflow-y: auto;
}

body.wizard-onboarding-mode .wizard-view::before,
body.wizard-onboarding-mode .wizard-view::after {
  display: none;
}

body.wizard-onboarding-mode .wizard-step-language,
body.wizard-onboarding-mode .language-stage,
body.wizard-onboarding-mode .transition-stage {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 32px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body.wizard-onboarding-mode .language-card {
  width: min(100%, 560px);
  display: grid;
  gap: 20px;
  padding: 0;
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body.wizard-onboarding-mode .wizard-step-language h1 {
  margin: 0;
  color: #f8fafc;
  font-family: Aptos, "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.wizard-onboarding-mode .wizard-step-language .language-select-shell {
  width: 100%;
}

body.wizard-onboarding-mode .wizard-step-language .language-select-shell::after {
  color: #f3c48b;
  right: 18px;
}

body.wizard-onboarding-mode .wizard-step-language .language-select {
  border: 1px solid rgba(243, 196, 139, 0.34);
  border-radius: 18px;
  padding: 16px 48px 16px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
  text-align-last: center;
}

body.wizard-onboarding-mode .wizard-step-language .language-select option {
  text-align: center;
}

body.wizard-onboarding-mode .wizard-step-language .language-select:focus {
  border-color: #f3c48b;
  box-shadow: 0 0 0 3px rgba(243, 196, 139, 0.16);
}

body.wizard-onboarding-mode .wizard-step-language .language-actions {
  justify-content: center;
  margin-top: 0;
}

body.wizard-onboarding-mode .wizard-step-language .btn.primary {
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
  color: var(--cta-action-ink);
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
}

body.wizard-onboarding-mode .transition-popup-title {
  margin-top: 4px;
  color: #8f4a24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

body.wizard-onboarding-mode .transition-popup-body {
  color: #1d2737;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

body.wizard-onboarding-mode .transition-actions {
  justify-content: center;
  margin-top: 2px;
}

body.wizard-onboarding-mode .transition-actions .btn.primary {
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
  color: var(--cta-action-ink);
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
}

body.wizard-onboarding-mode .wizard-section-head {
  margin: 0 0 18px;
  padding-top: 16px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

body.wizard-onboarding-mode .wizard-section-head h2 {
  margin: 0;
  color: #f8fafc;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(26px, 4.6vw, 34px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

body.wizard-onboarding-mode .wizard-section-head .hint {
  margin: 0;
  color: #f8fafc;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(20px, 3.8vw, 26px);
  line-height: 1.08;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

body.wizard-onboarding-mode .tour-step-logo {
  width: min(100%, 620px);
  max-width: 88vw;
  height: auto;
  display: block;
  margin: 10px auto 2px;
  filter:
    brightness(1.15)
    contrast(1.10)
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.18))
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.20));
}

body.wizard-onboarding-mode .tour-info-popup {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(214, 114, 42, 0.98), rgba(178, 84, 28, 0.98));
  border: 1px solid rgba(255, 228, 196, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  color: #fff8ef;
}

body.wizard-onboarding-mode .tour-info-popup-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.wizard-onboarding-mode .tour-info-popup-body {
  font-size: 15px;
  line-height: 1.48;
  color: #fff5eb;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-disclaimer,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .metric-pill,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-inline-chip {
  background: transparent !important;
  box-shadow: none !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card {
  border-color: rgba(243, 196, 139, 0.20) !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  font-size: 15px;
  font-weight: 800;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] label,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .hint,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-route,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card h4,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-inline-chip,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-disclaimer,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .metric-pill {
  color: #f8fafc;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-map {
  background: transparent;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-filter-panel {
  padding-left: 14px;
  padding-right: 14px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #planOptions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card {
  min-height: 260px;
  justify-content: flex-start;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .pick-card-title {
  line-height: 1.08;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #1d2737;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  line-height: 1.42;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-box {
  display: block;
  cursor: pointer;
  user-select: none;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 148px;
  justify-content: flex-start;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  color: #1d2737;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.18;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-box:focus-visible {
  outline: 2px solid rgba(143, 74, 36, 0.45);
  outline-offset: 4px;
  border-radius: 8px;
}

/* 2026-03-12 Modern onboarding refresh: step 2 transition + step 3 setup */
body.wizard-onboarding-mode {
  background:
    radial-gradient(circle at top center, rgba(var(--gold-shadow-rgb),0.16) 0%, rgba(var(--gold-shadow-rgb),0.00) 28%),
    linear-gradient(180deg, #08101d 0%, #0b1323 46%, #09101c 100%);
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] {
  width: min(100%, 920px);
  margin: 0 auto;
}

body.wizard-onboarding-mode .transition-popup-title {
  color: #f8fafc;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

body.wizard-onboarding-mode .transition-popup-body {
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  color: #b9c4d4;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  text-align: center;
}

body.wizard-onboarding-mode .transition-actions {
  margin-top: 18px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] {
  display: grid;
  gap: 18px;
  padding-bottom: 26px;
}

body.wizard-onboarding-mode .wizard-section-head {
  margin: 0;
  padding-top: 6px;
  gap: 8px;
}

body.wizard-onboarding-mode .wizard-section-head h2 {
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

body.wizard-onboarding-mode .wizard-section-head .hint {
  color: #d3dae6;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.wizard-onboarding-mode .tour-step-logo {
  width: min(100%, 360px);
  max-width: 72vw;
  margin: 10px auto 0;
  filter: brightness(1.12) contrast(1.08) drop-shadow(0 14px 32px rgba(0,0,0,0.34));
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15,24,41,0.92), rgba(10,17,29,0.94)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.24) !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  color: #f8fafc;
  text-align: left;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18,31,52,0.94), rgba(11,20,35,0.96));
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  padding: 16px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card.active {
  border-color: rgba(var(--gold-shadow-rgb),0.64);
  box-shadow: 0 0 0 1px rgba(var(--gold-shadow-rgb),0.28), 0 18px 36px rgba(0,0,0,0.28);
  background: linear-gradient(180deg, rgba(24,38,63,0.98), rgba(13,22,39,0.98));
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-eyebrow {
  color: #d9a441 !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-title {
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-detail-line,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section {
  color: #a8b4c4 !important;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.52;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section {
  color: #d9a441 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  margin: 0;
  gap: 10px;
  padding-left: 18px;
  color: #d6e0ee;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list li {
  line-height: 1.5;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 0;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #planOptions,
body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions,
body.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions {
  gap: 14px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card {
  min-height: 168px;
  justify-content: flex-start;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  text-transform: uppercase;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .step-actions {
  margin-top: 2px;
}

@media (max-width: 720px) {
  body.wizard-onboarding-mode .wizard-step[data-step="3"] {
    gap: 14px;
  }

  body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
  body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
  body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell {
    padding: 16px;
    border-radius: 22px;
  }

  body.wizard-onboarding-mode .wizard-step[data-step="3"] #planOptions,
  body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions {
    grid-template-columns: 1fr;
  }
}

/* 2026-03-12 Language page modern refresh + transition chip fix */
body.wizard-onboarding-mode .language-card {
  width: min(100%, 620px);
  padding: 28px 22px 22px;
  gap: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,22,39,0.96), rgba(9,17,30,0.98));
  border: 1px solid rgba(var(--gold-shadow-rgb),0.22);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
  position: relative;
}

body.wizard-onboarding-mode .language-card::before {
  content: "LANGUAGE";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 30px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: rgba(var(--gold-shadow-rgb),0.12);
  border: 1px solid rgba(var(--gold-shadow-rgb),0.28);
  color: #f5d28f;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.wizard-onboarding-mode .wizard-step-language h1 {
  color: #f8fafc;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.wizard-onboarding-mode .wizard-step-language .language-select {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px 52px 16px 18px;
  color: #f8fafc;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.wizard-onboarding-mode .wizard-step-language .language-select-shell::after {
  color: #d9a441;
}

body.wizard-onboarding-mode .wizard-step-language .btn.primary {
  min-width: 240px;
  border-radius: 18px;
  font-family: var(--cta-action-font);
  font-size: 15px;
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}

@media (max-width: 720px) {
  body.wizard-onboarding-mode .language-card {
    padding: 24px 18px 18px;
    border-radius: 24px;
  }
}

/* 2026-03-12 Compact section 2A tariff cards */
body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card {
  min-height: 138px !important;
  padding: 13px 12px !important;
  gap: 4px !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card-title {
  font-size: 20px !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card-detail-list {
  margin-top: 8px !important;
  gap: 3px !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card-detail-line {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* 2026-03-12 Center section titles */
body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  text-align: center !important;
}

/* 2026-03-12 Center all content on onboarding page 3 */
body.wizard-onboarding-mode .wizard-step[data-step="3"],
body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  text-align: center !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  padding-left: 0 !important;
  list-style-position: inside;
  text-align: center !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-detail-list {
  justify-items: center;
}


/* Daylight high-contrast tour UI pass */
body.modern-v5.app-theme-light .modal-layer.modal-layer-surface {
  background:
    radial-gradient(circle at 14% 14%, rgba(190, 106, 45, 0.14), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(35, 48, 72, 0.08), transparent 18%),
    linear-gradient(180deg, #f4eadb 0%, #fbf7ef 44%, #efe4d6 100%) !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-shell,
body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-light .modal-card.modal-card-avatar-picker.app-sheet,
body.modern-v5.app-theme-light .modal-card.build-tour-suggest-modal,
body.modern-v5.app-theme-light .modal-card.plan-compare-modal.build-tour-summary-modal,
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.985), rgba(244, 236, 226, 0.992)) !important;
  border-color: rgba(143, 74, 36, 0.18) !important;
  box-shadow:
    0 22px 48px rgba(61, 44, 27, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.78) !important;
  color: #1f2937 !important;
}

body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface {
  background:
    radial-gradient(circle at top left, rgba(var(--gold-rgb), 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.988), rgba(244, 236, 226, 0.994)) !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .build-tour-summary-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title,
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .modal-card.modal-card-avatar-picker.app-sheet h3,
body.modern-v5.app-theme-light .modal-card.plan-compare-modal.build-tour-summary-modal h3,
body.modern-v5.app-theme-light .modal-card.build-tour-suggest-modal h3 {
  color: #18212d !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-note,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy {
  color: #556070 !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-departure,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-suggest-section-panel,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-card,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block,
body.modern-v5.app-theme-light .build-tour-suggest-empty-panel,
body.modern-v5.app-theme-light .place-detail-inline-btn,
body.modern-v5.app-theme-light .place-detail-disclosure,
body.modern-v5.app-theme-light .place-detail-action-btn-build {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246, 239, 229, 0.985)) !important;
  border-color: rgba(143, 74, 36, 0.14) !important;
  box-shadow:
    0 12px 28px rgba(61, 44, 27, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.84) !important;
  color: #1f2937 !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-departure.is-set {
  background:
    linear-gradient(180deg, rgba(255, 248, 231, 0.98), rgba(245, 229, 196, 0.99)) !important;
  border-color: rgba(190, 106, 45, 0.2) !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-light .build-tour-dashboard-chip span,
body.modern-v5.app-theme-light .build-tour-summary-chip span,
body.modern-v5.app-theme-light .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-kicker,
body.modern-v5.app-theme-light .place-detail-kv-label {
  color: #8f4a24 !important;
}

body.modern-v5.app-theme-light .build-tour-time-label {
  color: #6b3a1d !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-chip strong,
body.modern-v5.app-theme-light .build-tour-dashboard-departure strong,
body.modern-v5.app-theme-light .build-tour-summary-chip strong,
body.modern-v5.app-theme-light .build-tour-summary-note strong,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item strong,
body.modern-v5.app-theme-light .build-tour-suggest-card-chip strong,
body.modern-v5.app-theme-light .place-detail-disclosure summary,
body.modern-v5.app-theme-light .place-detail-inline-btn-label {
  color: #18212d !important;
}

body.modern-v5.app-theme-light .build-tour-dashboard-hide,
body.modern-v5.app-theme-light .build-tour-summary-remove,
body.modern-v5.app-theme-light .build-tour-suggest-clear-btn,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239, 230, 218, 0.98)) !important;
  border-color: rgba(143, 74, 36, 0.14) !important;
  color: #374151 !important;
  box-shadow: 0 10px 22px rgba(61, 44, 27, 0.08) !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-search,
body.modern-v5.app-theme-light .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-select,
body.modern-v5.app-theme-light .build-tour-time-field input[type="date"],
body.modern-v5.app-theme-light .build-tour-time-field input[type="time"],
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 238, 229, 0.99)) !important;
  color: #1f2937 !important;
  border-color: rgba(143, 74, 36, 0.18) !important;
  box-shadow:
    inset 3px 0 0 rgba(var(--gold-shadow-rgb), 0.82),
    inset 0 1px 0 rgba(255,255,255,0.78) !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-select option {
  background: #fffaf4;
  color: #1f2937;
}

body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate {
  color: #4b5563 !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-row-control-km,
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item span,
body.modern-v5.app-theme-light .build-tour-summary-footer-or {
  color: #8f4a24 !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-card-warning,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-warning {
  background: rgba(191, 87, 0, 0.08) !important;
  border-color: rgba(191, 87, 0, 0.16) !important;
  color: #8a4b08 !important;
}

body.modern-v5.app-theme-light .place-detail-inline-btn-icon,
body.modern-v5.app-theme-light .place-detail-disclosure summary::after {
  color: #b36d18 !important;
}

body.modern-v5.app-theme-light .place-detail-action-btn-build {
  color: #b36d18 !important;
  text-shadow: none !important;
}

body.modern-v5.app-theme-light .place-detail-close-btn {
  box-shadow: 0 14px 28px rgba(var(--gold-rgb), 0.2) !important;
}

body.modern-v5.app-theme-light .place-detail-hero-media {
  background: linear-gradient(180deg, rgba(243, 233, 220, 0.98), rgba(232, 221, 207, 0.99)) !important;
  border-color: rgba(143, 74, 36, 0.16) !important;
  box-shadow: 0 16px 34px rgba(61, 44, 27, 0.12) !important;
}

body.modern-v5.app-theme-light .place-detail-hero-photo {
  background-color: rgba(255,255,255,0.5);
}

/* Outdoor mode across operational app screens */
body.modern-v5.app-theme-light .topbar {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 237, 226, 0.995)) !important;
  color: #1f2937 !important;
  border-bottom: 1px solid rgba(143, 74, 36, 0.12);
  box-shadow: 0 12px 28px rgba(61, 44, 27, 0.08);
}

body.modern-v5.app-theme-light .brand-overline,
body.modern-v5.app-theme-light .brand-main,
body.modern-v5.app-theme-light .brand,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .cmd-title,
body.modern-v5.app-theme-light .checks-row label,
body.modern-v5.app-theme-light .video-options-field > span,
body.modern-v5.app-theme-light .video-options-check,
body.modern-v5.app-theme-light .map-legend-copy,
body.modern-v5.app-theme-light .map-rights-line {
  color: #1f2937 !important;
}

body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-popup .p-meta,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy {
  color: #556070 !important;
}

body.modern-v5.app-theme-light .command-dashboard,
body.modern-v5.app-theme-light .controls-row {
  color: #1f2937;
}

body.modern-v5.app-theme-light .map-popup-photo-wrap {
  border-color: rgba(143, 74, 36, 0.12) !important;
  box-shadow: 0 12px 24px rgba(61, 44, 27, 0.1) !important;
}

body.modern-v5.app-theme-light .leaflet-popup-tip {
  background: #fffaf4 !important;
  box-shadow: 0 10px 18px rgba(61, 44, 27, 0.1) !important;
}

body.modern-v5.app-theme-light .leaflet-popup-close-button {
  color: #31435c !important;
}

body.modern-v5.app-theme-light .leaflet-popup-close-button:hover {
  color: #18212d !important;
}

body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241, 233, 222, 0.995)) !important;
  color: #1f2937 !important;
  border-color: rgba(143, 74, 36, 0.16) !important;
  box-shadow: 0 10px 22px rgba(61, 44, 27, 0.12) !important;
}

body.modern-v5.app-theme-light .map-icon-btn.active,
body.modern-v5.app-theme-light .history-btn-alt {
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.98), rgba(242, 225, 178, 0.99)) !important;
  border-color: rgba(190, 106, 45, 0.24) !important;
  color: #8f4a24 !important;
}

body.modern-v5.app-theme-light .video-options-field select {
  background: #fffaf4 !important;
  color: #1f2937 !important;
  border-color: rgba(143, 74, 36, 0.16) !important;
}

body.modern-v5.app-theme-light .subtitle-overlay .subtitle-text {
  background: rgba(255, 250, 244, 0.96) !important;
  color: #0c1524 !important;
  border: 1px solid rgba(143, 74, 36, 0.12);
  box-shadow: 0 8px 20px rgba(61, 44, 27, 0.12);
  border-radius: 12px;
  font-weight: 700;
}

body.modern-v5.app-theme-light .map-legend-row,
body.modern-v5.app-theme-light .map-legend-note {
  background: rgba(255,255,255,0.78) !important;
  border-color: rgba(143, 74, 36, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82) !important;
}

body.modern-v5.app-theme-light .map-legend-stars {
  text-shadow: none !important;
}

body.modern-v5.app-theme-light .nav-hud {
  border-color: rgba(143, 74, 36, 0.14) !important;
}

body.modern-v5.app-theme-light .nav-hud .hud-line-3 {
  color: #6b7280 !important;
}

body.modern-v5.app-theme-light .panel-block h3 {
  color: #18212d;
}

body.modern-v5.app-theme-light.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-icon {
  border-color: rgba(190, 106, 45, 0.18) !important;
  background: rgba(var(--gold-rgb), 0.1) !important;
  color: #8f4a24 !important;
  box-shadow: none !important;
}

body.modern-v5.app-theme-light.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy .intro-sub {
  max-width: 44ch;
}

body.modern-v5.app-theme-light.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-bottom-note {
  color: #556070 !important;
}

body.modern-v5.app-theme-light.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-compare-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241, 233, 222, 0.99)) !important;
  border-color: rgba(143, 74, 36, 0.16) !important;
  color: #1f2937 !important;
  box-shadow: 0 10px 22px rgba(61, 44, 27, 0.1) !important;
}

/* ===== V5 CLEAN LAYOUT OVERRIDES ===== */
body.modern-v5 {
  --v5-bg: #07101d;
  --v5-panel: rgba(11, 19, 33, 0.9);
  --v5-panel-2: rgba(15, 25, 42, 0.96);
  --v5-line: rgba(148, 163, 184, 0.18);
  --v5-text: #ecf4ff;
  --v5-soft: #9eb3cb;
  --v5-blue: #40a6ff;
  --v5-gold: #f7c948;
  --v5-green: #22c55e;
  --v5-red: #ef4444;
  color: var(--v5-text);
  background: radial-gradient(circle at top, #173256 0%, #091321 42%, #050b14 100%);
}

body.modern-v5::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(64, 166, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(247, 201, 72, 0.10), transparent 24%);
}

body.modern-v5 .topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(5, 10, 19, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.modern-v5 .topbar-head {
  align-items: center;
  gap: 20px;
}

body.modern-v5 .brand-with-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.modern-v5 .brand-mark {
  width: 118px;
  max-width: 30vw;
  display: block;
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

body.modern-v5 .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.modern-v5 .brand-overline {
  color: var(--v5-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.modern-v5 .brand-main {
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.modern-v5 .status {
  background: rgba(14, 26, 46, 0.92);
  color: #dbeafe;
  border: 1px solid rgba(64, 166, 255, 0.22);
}

body.modern-v5 .wizard-progress {
  display: flex;
  justify-content: center;
  margin: 18px auto 8px;
}

body.modern-v5 .wizard-progress.hidden {
  display: none;
}

body.modern-v5 .wizard-progress span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 22, 38, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--v5-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.modern-v5 .modern-surface,
body.modern-v5 .wizard-panel.modern-surface,
body.modern-v5 .language-card.modern-surface {
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.96), rgba(7, 14, 26, 0.98));
  border: 1px solid var(--v5-line);
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}

body.modern-v5 .wizard-v4-shell,
body.modern-v5 .wizard-review-shell,
body.modern-v5 .step-actions-v4 {
  width: min(1400px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

body.modern-v5 .wizard-v4-shell,
body.modern-v5 .wizard-review-shell {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
  background: transparent;
}

body.modern-v5 .wizard-logo-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 2px;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.modern-v5 .wizard-logo-banner-mark {
  width: min(100%, 320px);
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
}

body.modern-v5 .preview-stats,
body.modern-v5 .tour-result-metrics,
body.modern-v5 .tour-result-chips,
body.modern-v5 .tour-card-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.modern-v5 .preview-stats span,
body.modern-v5 .tour-inline-chip,
body.modern-v5 .tour-result-badge,
body.modern-v5 .metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(16, 29, 49, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e6eefc;
  font-size: 15px;
  font-weight: 700;
}

body.modern-v5 .wizard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

body.modern-v5 .wizard-main-left,
body.modern-v5 .wizard-main-right {
  display: grid;
  gap: 22px;
}

body.modern-v5 .modern-panel {
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.95), rgba(7, 16, 29, 0.98));
}

body.modern-v5 .wizard-panel-headline {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

body.modern-v5 .split-headline {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}

body.modern-v5 .wizard-panel-title {
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.modern-v5 .panel-mini-copy,
body.modern-v5 .hint,
body.modern-v5 .tour-result-summary,
body.modern-v5 .tour-result-matchline,
body.modern-v5 .tour-filter-lead,
body.modern-v5 #summaryBox .hint {
  color: var(--v5-soft);
  line-height: 1.55;
}

body.modern-v5 .cards-grid.compact-grid,
body.modern-v5 .avatar-grid-inline,
body.modern-v5 .zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.modern-v5 .zone-grid .zone-card-wide {
  grid-column: 1 / -1;
}

body.modern-v5 .plan-pick-card,
body.modern-v5 .avatar-card,
body.modern-v5 .zone-card,
body.modern-v5 .tariff-list-card,
body.modern-v5 .tour-result-card,
body.modern-v5 #summaryBox .tour-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.94), rgba(6, 13, 24, 0.98));
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

body.modern-v5 .plan-pick-card,
body.modern-v5 .avatar-card,
body.modern-v5 .zone-card,
body.modern-v5 .tariff-list-card {
  padding: 18px;
}

body.modern-v5 #avatarEntryBox {
  display: block;
}

body.modern-v5 .modal-card-avatar-picker {
  width: min(980px, calc(100% - 20px));
  max-height: 88vh;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
  backdrop-filter: none;
}

body.modern-v5 .avatar-modal-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 18px;
}

body.modern-v5 .avatar-modal-head h3 {
  margin: 0;
  font-size: 28px;
  color: #f8fafc;
  text-align: center;
}

body.modern-v5 .avatar-modal-head p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.82);
}

body.modern-v5 .avatar-modal-actions {
  justify-content: flex-start;
}

body.modern-v5 .avatar-modal-actions .btn.primary {
  color:var(--gold-btn-ink) !important;
  background: var(--cta-action-bg) !important;
  border: 1px solid var(--cta-action-border) !important;
  box-shadow: var(--cta-action-shadow) !important;
  font-family: var(--cta-action-font) !important;
  font-weight: var(--cta-action-weight) !important;
  letter-spacing: var(--cta-action-tracking) !important;
}

body.modern-v5 .avatar-modal-head .btn.primary,
body.modern-v5 #closeAvatarPickerModal,
body.modern-v5 #closeMapAvatarModalBtn {
  color:var(--secondary-btn-ink) !important;
  background: var(--secondary-btn-bg) !important;
  border: 1px solid var(--secondary-btn-border) !important;
  box-shadow: var(--secondary-btn-shadow) !important;
}

body.modern-v5 .avatar-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.modern-v5 .plan-pick-card.active {
  border-color: rgba(64, 166, 255, 0.7);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
}

body.modern-v5 .avatar-card.active {
  border-color: transparent;
  box-shadow: none;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active {
  border-color: rgba(var(--gold-shadow-rgb), 0.92) !important;
  background: linear-gradient(180deg, rgba(40, 28, 10, 0.98), rgba(18, 16, 10, 0.99)) !important;
  box-shadow:
    inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.78),
    0 0 0 2px rgba(var(--gold-shadow-rgb), 0.44),
    0 18px 40px rgba(0, 0, 0, 0.30),
    0 0 28px rgba(var(--gold-shadow-rgb), 0.16) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-section,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-list,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .pick-card-title,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-section,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-list {
  color: #f8fafc !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card:not(.active),
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card:not(.active) {
  opacity: 0.86;
  transform: scale(0.992);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card {
  position: relative;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-selected-badge,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-selected-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--gold-shadow-rgb), 0.96);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.modern-v5 .avatar-inline-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

body.modern-v5 .customer-name-field {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

body.modern-v5 .customer-name-field span,
body.modern-v5 .modern-form-grid span,
body.modern-v5 .customer-name-field label,
body.modern-v5 .form-grid label span {
  color: var(--v5-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.modern-v5 .modern-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.modern-v5 input,
body.modern-v5 select,
body.modern-v5 .language-select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(5, 12, 23, 0.94);
  color: #f8fbff;
}

body.modern-v5 .avatar-preview-box {
  position: relative;
  min-height: 184px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(64, 166, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(20, 34, 57, 0.94), rgba(8, 17, 30, 0.98));
}

body.modern-v5 .avatar-plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 223, 148, 0.52);
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.92), rgba(255, 221, 147, 0.95));
  color: #101726;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(var(--gold-rgb), 0.24);
}

body.modern-v5 .avatar-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.modern-v5 .avatar-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.modern-v5 .avatar-preview-fallback {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
}

body.modern-v5 .avatar-fallback-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.95), rgba(251, 191, 36, 0.8));
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.modern-v5 .avatar-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  align-items: start;
  column-gap: 10px;
  margin-top: 14px;
  width: 100%;
}

body.modern-v5 .avatar-name-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: 42px;
}

body.modern-v5 .avatar-name-line {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.08;
}

body.modern-v5 .avatar-role-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  min-height: 42px;
}

body.modern-v5 .avatar-role-line {
  display: block;
  color: rgba(255, 226, 163, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1.08;
}

body.modern-v5 .avatar-audio-toggle {
  margin-left: 0;
  align-self: start;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.24);
  background: rgba(12, 18, 32, 0.82);
  color: rgba(255, 226, 163, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

body.modern-v5 .avatar-audio-toggle:hover,
body.modern-v5 .avatar-audio-toggle:focus-visible {
  color: rgba(255, 226, 163, 0.9);
  border-color: rgba(var(--gold-border-rgb), 0.4);
  outline: none;
}

body.modern-v5 .avatar-audio-toggle.active {
  color: var(--gold-btn-ink);
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}

body.modern-v5 .map-preview-panel {
  overflow: hidden;
}

body.modern-v5 .modern-preview-map,
body.modern-v5 .map-preview-panel .leaflet-container {
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

body.modern-v5 .wizard-step[data-step="3"] .wizard-main-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

body.modern-v5 .wizard-step[data-step="3"] .wizard-main-left {
  max-width: 760px;
  margin: 0 auto;
}

body.modern-v5 .wizard-step[data-step="3"] .wizard-main-right,
body.modern-v5 .wizard-step[data-step="3"] .tour-filter-panel,
body.modern-v5 .wizard-step[data-step="4"] {
  display: none !important;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-picker-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-picker-panel .wizard-panel-title {
  margin-bottom: 12px;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-picker-panel .wizard-panel-headline {
  display: none !important;
}

body.modern-v5 .wizard-step[data-step="3"] #avatarEntryBox {
  width: 100%;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 176px;
  display: grid;
  place-items: center;
  text-align: center;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  text-align: center;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  font-size: 24px;
  line-height: 1.2;
}

body.modern-v5 .wizard-step[data-step="3"] .step-actions-v4 {
  justify-content: space-between;
  align-items: center;
}

body.modern-v5 .wizard-step[data-step="3"] .step-actions-v4 #startTourBtn {
  margin-left: auto;
}

body.modern-v5 .btn {
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
}

body.modern-v5 .btn.primary {
  background: var(--gold-btn-bg);
  color: var(--gold-btn-ink);
  border: 1px solid var(--gold-btn-border);
  box-shadow: var(--gold-btn-shadow);
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}

body.modern-v5 .btn:not(.primary) {
  background: var(--secondary-btn-bg);
  color: var(--secondary-btn-ink);
  border: 1px solid var(--secondary-btn-border);
  box-shadow: var(--secondary-btn-shadow);
}

body.modern-v5 #summaryBox .tour-card {
  padding: 28px;
}

body.modern-v5 #summaryBox h4 {
  font-size: 30px;
  margin-bottom: 12px;
}

body.modern-v5 .metric-pill {
  border-radius: 16px;
}

@media (max-width: 1180px) {
  body.modern-v5 .wizard-main-grid,
  body.modern-v5 .wizard-hero,
  body.modern-v5 .split-headline {
    grid-template-columns: 1fr;
  }

  body.modern-v5 .avatar-inline-actions {
    justify-items: stretch;
  }
}

@media (max-width: 860px) {
  body.modern-v5 .brand-copy {
    display: none;
  }

  body.modern-v5 .brand-mark {
    width: 92px;
  }

  body.modern-v5 .wizard-v4-shell,
  body.modern-v5 .wizard-review-shell,
  body.modern-v5 .step-actions-v4 {
    width: calc(100vw - 20px);
  }

  body.modern-v5 .modern-panel {
    padding: 18px;
    border-radius: 22px;
  }

  body.modern-v5 .cards-grid.compact-grid,
  body.modern-v5 .avatar-grid-inline,
  body.modern-v5 .zone-grid,
  body.modern-v5 .modern-form-grid,
  body.modern-v5 .tour-result-card {
    grid-template-columns: 1fr;
  }

  body.modern-v5 .tour-result-body {
    padding: 0 18px 18px;
  }

  body.modern-v5 .wizard-hero h2 {
    font-size: 34px;
  }
}

@media (max-width: 980px) {
  body.modern-v5.wizard-onboarding-mode .wizard-view {
    width: calc(100% - 12px) !important;
    max-width: none !important;
    margin: 6px auto 12px !important;
    padding: 10px !important;
    overflow-x: hidden !important;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"],
  body.modern-v5.wizard-onboarding-mode .wizard-v4-shell,
  body.modern-v5.wizard-onboarding-mode .wizard-review-shell,
  body.modern-v5.wizard-onboarding-mode .step-actions-v4,
  body.modern-v5.wizard-onboarding-mode .wizard-main-grid,
  body.modern-v5.wizard-onboarding-mode .wizard-main-left,
  body.modern-v5.wizard-onboarding-mode .wizard-main-right,
  body.modern-v5.wizard-onboarding-mode .wizard-hero {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-main-grid,
  body.modern-v5.wizard-onboarding-mode .wizard-hero,
  body.modern-v5.wizard-onboarding-mode .modern-form-grid,
  body.modern-v5.wizard-onboarding-mode .avatar-grid-inline,
  body.modern-v5.wizard-onboarding-mode .zone-grid,
  body.modern-v5.wizard-onboarding-mode .tour-result-card {
    grid-template-columns: 1fr !important;
  }

  body.modern-v5.wizard-onboarding-mode #planOptions,
  body.modern-v5.wizard-onboarding-mode #typeOptions {
    grid-template-columns: 1fr !important;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-panel,
  body.modern-v5.wizard-onboarding-mode .modern-panel,
  body.modern-v5.wizard-onboarding-mode .pick-card,
  body.modern-v5.wizard-onboarding-mode .zone-card,
  body.modern-v5.wizard-onboarding-mode .tour-result-card {
    overflow: hidden !important;
  }
}

/* =====================================================================
   2026-03-13 — REAL MOBILE-FIRST ONBOARDING REBUILD (steps 0,1,2 only)
   ===================================================================== */
body.modern-v5.wizard-onboarding-mode {
  --onboarding-bg-1: #060816;
  --onboarding-bg-2: #0a1030;
  --onboarding-bg-3: #131d48;
  --onboarding-surface: rgba(13, 18, 46, 0.82);
  --onboarding-surface-2: rgba(19, 25, 63, 0.92);
  --onboarding-border: rgba(255, 255, 255, 0.1);
  --onboarding-text: #f5f7ff;
  --onboarding-text-soft: rgba(229, 234, 255, 0.78);
  --onboarding-accent: #8ea8ff;
  --onboarding-accent-2: #d79bff;
  --onboarding-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body.modern-v5.wizard-onboarding-mode .topbar {
  background: linear-gradient(180deg, rgba(8, 12, 31, 0.94), rgba(8, 12, 31, 0.68));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.modern-v5.wizard-onboarding-mode .topbar-head {
  min-height: 72px;
  align-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt {
  min-height: calc(100vh - 72px);
  padding: 16px 14px 28px;
  background:
    radial-gradient(circle at top left, rgba(142, 168, 255, 0.24), transparent 36%),
    radial-gradient(circle at top right, rgba(215, 155, 255, 0.18), transparent 30%),
    linear-gradient(180deg, var(--onboarding-bg-1) 0%, var(--onboarding-bg-2) 44%, var(--onboarding-bg-3) 100%);
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::before,
body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.55;
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::before {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: 100px;
  right: -20px;
  background: rgba(142, 168, 255, 0.28);
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::after {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  bottom: 20px;
  left: -40px;
  background: rgba(215, 155, 255, 0.18);
}

body.modern-v5.wizard-onboarding-mode .wizard-progress {
  position: relative;
  z-index: 2;
  margin: 0 auto 12px;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 41, 0.66);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body.modern-v5.wizard-onboarding-mode .wizard-progress span {
  color: rgba(241, 244, 255, 0.9);
  letter-spacing: 0.08em;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"],
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"],
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="2"] {
  min-height: calc(100vh - 132px);
  display: grid;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== REAL INTRO REBUILD B ===== */
body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt {
  background:
    radial-gradient(circle at top, rgba(31, 91, 255, 0.24), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255, 197, 61, 0.16), transparent 24%),
    linear-gradient(180deg, #020611 0%, #071225 48%, #04070f 100%);
}

body.modern-v5.wizard-onboarding-mode .intro-screen {
  min-height: min(100dvh - 104px, 880px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(18px, 4vw, 32px);
  background: transparent;
}

body.modern-v5.wizard-onboarding-mode .intro-card {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 28px 20px 22px;
  border-radius: 28px;
  border: 1px solid rgba(121, 167, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 18, 37, 0.92), rgba(6, 10, 22, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

body.modern-v5.wizard-onboarding-mode .intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(93,145,255,0.18), rgba(255,203,79,0.14));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

body.modern-v5.wizard-onboarding-mode .intro-card > * {
  position: relative;
  z-index: 1;
}

body.modern-v5.wizard-onboarding-mode .intro-card-splash {
  min-height: min(100dvh - 124px, 760px);
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 22px;
}

body.modern-v5.wizard-onboarding-mode .intro-logo-wrap {
  width: min(100%, 270px);
  display: grid;
  place-items: center;
  padding: 6px 0 2px;
}

body.modern-v5.wizard-onboarding-mode .intro-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

body.modern-v5.wizard-onboarding-mode .intro-copy-stack {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
}

body.modern-v5.wizard-onboarding-mode .intro-eyebrow,
body.modern-v5.wizard-onboarding-mode .intro-step {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.64);
}

body.modern-v5.wizard-onboarding-mode .intro-title,
body.modern-v5.wizard-onboarding-mode .intro-section-title {
  margin: 0;
  color: #f8fbff;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body.modern-v5.wizard-onboarding-mode .intro-title {
  font-size: clamp(40px, 10vw, 74px);
}

body.modern-v5.wizard-onboarding-mode .intro-section-title {
  font-size: clamp(30px, 7vw, 46px);
}

body.modern-v5.wizard-onboarding-mode .intro-lead,
body.modern-v5.wizard-onboarding-mode .intro-sub {
  margin: 0;
  color: rgba(236, 242, 248, 0.86);
  line-height: 1.55;
}

body.modern-v5.wizard-onboarding-mode .intro-lead {
  font-size: clamp(18px, 4.3vw, 24px);
  font-weight: 600;
  color: rgba(248, 251, 255, 0.96);
}

body.modern-v5.wizard-onboarding-mode .intro-sub {
  font-size: clamp(15px, 3.8vw, 18px);
}

body.modern-v5.wizard-onboarding-mode .intro-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

body.modern-v5.wizard-onboarding-mode .btn-intro {
  min-width: 170px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 15px;
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
  text-transform: uppercase;
  color:var(--gold-btn-ink) !important;
  background: var(--cta-action-bg) !important;
  border: 1px solid var(--cta-action-border) !important;
  box-shadow: var(--cta-action-shadow) !important;
}

body.modern-v5.wizard-onboarding-mode .intro-bottom-nav {
  width: min(100%, 760px);
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: stretch;
  margin-top: 16px;
  padding: 0 2px;
}

body.modern-v5.wizard-onboarding-mode .intro-top-nav {
  width: min(100%, 760px);
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: stretch;
  margin-bottom: 6px;
  padding: 0 2px;
}

body.modern-v5.wizard-onboarding-mode .intro-top-nav.intro-top-nav-wide {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
}

body.modern-v5.wizard-onboarding-mode .intro-bottom-nav.intro-bottom-nav-wide {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  appearance: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent) !important;
  text-shadow: 0 0 18px rgba(var(--gold-rgb), 0.28);
  cursor: pointer;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow:hover,
body.modern-v5.wizard-onboarding-mode .intro-nav-arrow:focus-visible {
  transform: translateY(-1px);
  color: var(--gold-accent-highlight) !important;
  text-shadow: 0 0 22px rgba(var(--gold-accent-rgb), 0.38);
  outline: none;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow span {
  display: block;
  font-size: clamp(56px, 11vw, 88px);
  font-weight: 700;
  line-height: 1;
  transform: translateY(-4px);
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow-back {
  justify-self: start;
}

body.modern-v5.wizard-onboarding-mode .intro-card-language {
  width: min(100%, 760px);
  gap: 18px;
}

body.modern-v5.wizard-onboarding-mode .intro-section-copy {
  max-width: 560px;
}

body.modern-v5.wizard-onboarding-mode .language-quick-grid-clean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.modern-v5.wizard-onboarding-mode .language-quick-btn {
  min-height: 72px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

body.modern-v5.wizard-onboarding-mode .language-quick-btn.active {
  border-color: rgba(255, 170, 24, 0.72);
  background: linear-gradient(180deg, rgba(255,170,24,0.18), rgba(255,255,255,0.05));
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

body.modern-v5.wizard-onboarding-mode .language-quick-label {
  color: #f7fbff;
  font-size: 15px;
  font-weight: 700;
}

body.modern-v5.wizard-onboarding-mode .language-quick-sub {
  color: rgba(222, 230, 240, 0.72);
  font-size: 12px;
}

body.modern-v5.wizard-onboarding-mode .intro-select-shell,
body.modern-v5.wizard-onboarding-mode .intro-select-shell .language-select {
  border-radius: 18px;
  background: rgba(7, 15, 26, 0.92);
  border-color: rgba(255,255,255,0.10);
}

body.modern-v5.wizard-onboarding-mode .language-current-pill-clean {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(236,242,248,0.84);
}

body.modern-v5.wizard-onboarding-mode .intro-screen-city {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

body.modern-v5.wizard-onboarding-mode .intro-city-head {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 18px;
}

body.modern-v5.wizard-onboarding-mode .intro-city-head-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding-top: 8px;
}

body.modern-v5.wizard-onboarding-mode .intro-city-head-spacer {
  width: clamp(56px, 11vw, 88px);
  min-width: clamp(56px, 11vw, 88px);
}

body.modern-v5.wizard-onboarding-mode .intro-card-city {
  width: min(1120px, 100%);
  gap: 20px;
}

body.modern-v5.wizard-onboarding-mode .country-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.modern-v5.wizard-onboarding-mode .country-card {
  position: relative;
  min-height: 220px;
  border: none;
  border-radius: 28px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  text-align: left;
  appearance: none;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
  cursor: pointer;
  isolation: isolate;
  transition: transform 140ms ease, box-shadow 140ms ease, outline-color 140ms ease;
}

body.modern-v5.wizard-onboarding-mode .country-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

body.modern-v5.wizard-onboarding-mode .country-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.14) 0%, rgba(3, 8, 18, 0.48) 45%, rgba(3, 8, 18, 0.88) 100%),
    linear-gradient(135deg, rgba(var(--gold-accent-rgb), 0.14), transparent 48%);
  z-index: 1;
}

body.modern-v5.wizard-onboarding-mode .country-card:hover,
body.modern-v5.wizard-onboarding-mode .country-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  outline: none;
}

body.modern-v5.wizard-onboarding-mode .country-card.active {
  box-shadow:
    inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.84),
    0 0 0 2px rgba(var(--gold-shadow-rgb), 0.52),
    0 20px 42px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(var(--gold-shadow-rgb), 0.22);
}

body.modern-v5.wizard-onboarding-mode .country-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 100%;
}

body.modern-v5.wizard-onboarding-mode .country-card-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  color: #f8fafc;
}

body.modern-v5.wizard-onboarding-mode .country-card-detail {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  color: rgba(236, 242, 248, 0.88);
}

body.modern-v5.wizard-onboarding-mode .city-selection-block {
  display: grid;
  gap: 16px;
}

body.modern-v5.wizard-onboarding-mode .city-selection-block.hidden {
  display: none;
}

body.modern-v5.wizard-onboarding-mode .intro-section-title-sub {
  margin: 4px 0 0;
}

body.modern-v5.wizard-onboarding-mode .city-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.modern-v5.wizard-onboarding-mode .city-card {
  position: relative;
  min-height: 220px;
  border: none;
  border-radius: 28px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  text-align: left;
  appearance: none;
  background-color: #0a1220;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  isolation: isolate;
  transition: transform 140ms ease, box-shadow 140ms ease, outline-color 140ms ease;
}

body.modern-v5.wizard-onboarding-mode .city-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease, transform 320ms ease;
}

body.modern-v5.wizard-onboarding-mode .city-card-media.is-pending {
  opacity: 0;
  transform: scale(1.018);
}

body.modern-v5.wizard-onboarding-mode .city-card-media.is-ready {
  opacity: 1;
  transform: scale(1);
}

body.modern-v5.wizard-onboarding-mode .city-card:hover,
body.modern-v5.wizard-onboarding-mode .city-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  outline: none;
}

body.modern-v5.wizard-onboarding-mode .city-card.active {
  outline: none;
  box-shadow:
    inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.78),
    0 0 0 2px rgba(var(--gold-shadow-rgb), 0.44),
    0 18px 40px rgba(0, 0, 0, 0.30),
    0 0 28px rgba(var(--gold-shadow-rgb), 0.16);
}

body.modern-v5.wizard-onboarding-mode .city-card:disabled {
  cursor: default;
}

body.modern-v5.wizard-onboarding-mode .city-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.14) 0%, rgba(3, 8, 18, 0.48) 45%, rgba(3, 8, 18, 0.88) 100%),
    linear-gradient(135deg, rgba(var(--gold-accent-rgb), 0.14), transparent 48%);
  z-index: 1;
}

body.modern-v5.wizard-onboarding-mode .city-card-disabled .city-card-overlay {
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.24) 0%, rgba(3, 8, 18, 0.56) 45%, rgba(3, 8, 18, 0.9) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
}

body.modern-v5.wizard-onboarding-mode .city-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 100%;
}

body.modern-v5.wizard-onboarding-mode .city-selected-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--gold-shadow-rgb), 0.96);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.modern-v5.wizard-onboarding-mode .city-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(var(--gold-accent-rgb), 0.98);
}

body.modern-v5.wizard-onboarding-mode .city-card-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  color: #f8fbff;
}

body.modern-v5.wizard-onboarding-mode .city-card-subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(236, 242, 248, 0.88);
  max-width: 52ch;
}

body.modern-v5.wizard-onboarding-mode .city-card-detail-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

body.modern-v5.wizard-onboarding-mode .city-card-detail-line {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(226, 234, 244, 0.8);
}

@media (min-width: 760px) {
  body.modern-v5.wizard-onboarding-mode .language-quick-grid-clean {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.modern-v5.wizard-onboarding-mode .country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.modern-v5.wizard-onboarding-mode .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  body.modern-v5.wizard-onboarding-mode .city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.modern-v5.wizard-onboarding-mode .intro-bottom-nav {
    margin-top: 14px;
    padding: 0;
  }

  body.modern-v5.wizard-onboarding-mode .country-card {
    min-height: 200px;
    padding: 20px;
    border-radius: 24px;
  }

  body.modern-v5.wizard-onboarding-mode .city-card {
    min-height: 200px;
    padding: 20px;
    border-radius: 24px;
  }
}


/* 2026-03-13 reset first page: futuristic intro + 10-language drawer */
body.wizard-splash-mode .wizard-progress,
body.wizard-splash-mode .topbar {
  display: none !important;
}

body.wizard-splash-mode .wizard-view {
  padding: 0;
  min-height: 100dvh;
}

.neo-intro-screen {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at top, rgba(31, 91, 255, 0.24), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255, 197, 61, 0.16), transparent 24%),
    linear-gradient(180deg, #020611 0%, #071225 48%, #04070f 100%);
}

.neo-intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82, 138, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 138, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.95));
  pointer-events: none;
}

body.wizard-splash-mode .neo-intro-grid {
  display: none !important;
}

.neo-intro-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.neo-intro-glow-a {
  width: 220px;
  height: 220px;
  top: 7%;
  left: -40px;
  background: rgba(44, 118, 255, 0.28);
}

.neo-intro-glow-b {
  width: 180px;
  height: 180px;
  right: -24px;
  bottom: 14%;
  background: rgba(255, 193, 58, 0.18);
}

.neo-intro-card {
  position: relative;
  width: min(100%, 470px);
  z-index: 1;
  padding: 28px 20px 22px;
  border-radius: 28px;
  border: 1px solid rgba(121, 167, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 18, 37, 0.92), rgba(6, 10, 22, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.neo-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(93,145,255,0.18), rgba(255,203,79,0.14));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.neo-intro-copy {
  display: grid;
  gap: 12px;
  text-align: center;
}

.neo-intro-kicker {
  max-width: 360px;
  margin: 0 auto;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #9fd8ff;
  text-wrap: balance;
}

.neo-intro-kicker:empty {
  display: none;
}

.neo-intro-title {
  margin: 0;
  font-size: clamp(31px, 7.8vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f8ff;
  text-wrap: balance;
}

.neo-intro-lead {
  margin: 0 auto 16px;
  max-width: 430px;
  text-align: center;
  font-size: clamp(17px, 4.1vw, 22px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  font-weight: 760;
  text-transform: none;
  color: rgba(236, 244, 255, 0.96);
  text-wrap: balance;
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: neoIntroLeadIn 1280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-copy {
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: neoIntroLeadIn 1280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-copy {
  animation-delay: 280ms;
}

@keyframes neoIntroLeadIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-intro-lead,
  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-title,
  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-copy {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.neo-intro-title:empty {
  display: none;
}

.neo-intro-helper {
  margin: 0;
}

.neo-intro-logo-shell {
  margin: 26px auto 20px;
  width: min(100%, 300px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.neo-intro-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.neo-intro-language-zone {
  margin-top: 12px;
}

.hero-language-menu {
  width: 100%;
}

.hero-language-menu[open] .hero-language-summary-icon {
  transform: rotate(180deg);
}

.hero-language-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(113, 162, 255, 0.26);
  background: linear-gradient(180deg, rgba(12, 22, 44, 0.88), rgba(7, 12, 24, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.hero-language-summary::-webkit-details-marker {
  display: none;
}

.hero-language-summary-copy {
  display: grid;
  gap: 4px;
}

.hero-language-summary-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(151, 188, 255, 0.74);
}

.hero-language-summary-value {
  font-size: 18px;
  line-height: 1.15;
  color: #f3f7ff;
}

.hero-language-summary-icon {
  font-size: 20px;
  color: rgba(190, 213, 255, 0.9);
  transition: transform 180ms ease;
}

.hero-language-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(115, 164, 255, 0.18);
  background: rgba(5, 10, 22, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-language-menu:not([open]) .hero-language-panel,
.hero-language-menu:not([open]) .language-quick-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero-language-panel-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(165, 198, 255, 0.82);
}

.hero-language-panel-copy {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(219, 230, 255, 0.72);
}

.hero-language-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-language-grid .language-quick-btn {
  min-height: 66px;
  text-align: left;
  padding: 12px 12px 11px;
  border-radius: 16px;
  border: 1px solid rgba(110, 160, 255, 0.14);
  background: linear-gradient(180deg, rgba(15, 26, 53, 0.94), rgba(8, 14, 28, 0.96));
  box-shadow: none;
}

.hero-language-grid .language-quick-btn.active {
  border-color: rgba(255, 201, 78, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 201, 78, 0.24), 0 12px 22px rgba(0, 0, 0, 0.18);
}

.hero-language-grid .language-quick-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #f5f8ff;
}

.hero-language-grid .language-quick-flag {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: .95em;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
}

.hero-language-grid .language-quick-flag--en {
  background:
    linear-gradient(90deg, transparent 0 36%, #c8102e 36% 64%, transparent 64%),
    linear-gradient(0deg, transparent 0 36%, #c8102e 36% 64%, transparent 64%),
    #fff;
}

.hero-language-grid .language-quick-flag--it { background: linear-gradient(90deg, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666%); }
.hero-language-grid .language-quick-flag--es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.hero-language-grid .language-quick-flag--fr { background: linear-gradient(90deg, #002654 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666%); }
.hero-language-grid .language-quick-flag--de { background: linear-gradient(#111 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666%); }
.hero-language-grid .language-quick-flag--pt { background: linear-gradient(90deg, #006600 0 40%, #ff0000 40%); }
.hero-language-grid .language-quick-flag--zh { background: #de2910; }
.hero-language-grid .language-quick-flag--zh::after { content: "★"; color: #ffde00; font-size: .7em; line-height: 1; }
.hero-language-grid .language-quick-flag--ko { background: radial-gradient(circle at 44% 50%, #cd2e3a 0 26%, transparent 27%), radial-gradient(circle at 56% 50%, #0047a0 0 26%, transparent 27%), #fff; }
.hero-language-grid .language-quick-flag--ja { background: radial-gradient(circle at 50% 50%, #bc002d 0 32%, transparent 34%), #fff; }
.hero-language-grid .language-quick-flag--ar { background: #006c35; }
.hero-language-grid .language-quick-flag--ar::after { content: "☪"; color: #fff; font-size: .72em; line-height: 1; }
.hero-language-grid .language-quick-flag--ru { background: linear-gradient(#fff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666%); }

.hero-language-grid .language-quick-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 205, 255, 0.66);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-copy,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-language-zone,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-panel,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-summary-copy,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-panel-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-panel-copy {
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-summary {
  justify-content: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-summary-copy {
  justify-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-grid .language-quick-btn {
  text-align: center;
}

.neo-language-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.neo-intro-actions {
  margin-top: 18px;
}

.neo-intro-enter {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font-size: 15px;
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
  text-transform: uppercase;
  color:var(--gold-btn-ink);
  background: var(--cta-action-bg);
  border: 1px solid var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
}

@media (max-width: 360px) {
  .hero-language-panel {
    width: 100%;
    max-width: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
    padding: 14px;
  }
}

body.modern-v5.wizard-onboarding-mode #wizardSplashBtn {
  color:var(--gold-btn-ink) !important;
  background: var(--cta-action-bg) !important;
  border: 1px solid var(--cta-action-border) !important;
  box-shadow: var(--cta-action-shadow) !important;
  font-family: var(--cta-action-font) !important;
  font-weight: var(--cta-action-weight) !important;
  letter-spacing: var(--cta-action-tracking) !important;
}

.wizard-step-legacy-skip {
  display: none !important;
}

@media (min-width: 720px) {
  .neo-intro-screen {
    padding-left: 24px;
    padding-right: 24px;
  }

  .neo-intro-card {
    width: min(100%, 560px);
    padding: 34px 28px 26px;
  }

  .neo-intro-logo-shell {
    width: min(100%, 340px);
  }
}

/* FIX-APP-017: keep the first onboarding viewport complete on low-height mobile landscape. */
@media (max-height: 430px) and (min-width: 700px) {
  body.wizard-splash-mode .wizard-view,
  body.wizard-splash-mode .neo-intro-screen {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  body.wizard-splash-mode .neo-intro-screen {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card {
    width: min(100%, 520px);
    padding: 8px 16px 10px;
  }

  body.wizard-splash-mode .neo-intro-logo-shell {
    width: min(100%, 170px);
    margin: 6px auto 8px;
  }

  body.wizard-splash-mode .neo-intro-lead {
    max-width: 420px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.22;
  }

  body.wizard-splash-mode .neo-intro-language-zone,
  body.wizard-splash-mode .neo-intro-actions {
    margin-top: 8px;
  }

  body.wizard-splash-mode .hero-language-summary {
    padding: 8px 14px;
    border-radius: 14px;
  }

  body.wizard-splash-mode .hero-language-summary-label {
    font-size: 10px;
  }

  body.wizard-splash-mode .hero-language-summary-value {
    font-size: 16px;
  }

  body.wizard-splash-mode .neo-intro-enter {
    min-height: 44px;
    border-radius: 14px;
    font-size: 13px;
  }
}

/* =====================================================================
   2026-03-18 - clean setup experience
   ===================================================================== */
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-main-grid {
  grid-template-columns: 1fr !important;
  max-width: 760px;
  margin: 0 auto;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-main-left-clean {
  display: grid;
  gap: 18px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: neoIntroLeadIn 1280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #wAvatarTitle {
  animation-delay: 280ms;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #wTypeTitle {
  animation-delay: 380ms;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-panel {
  padding: 22px 20px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-shell + .setup-choice-shell {
  margin-top: 12px;
}

/* 2026-03-18 Remove visible mega-panels from city/setup screens */
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-card-city,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel.setup-panel,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-v4-shell,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-main-left-clean {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-card-city::before {
  display: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card::before {
  display: none !important;
}

/* 2026-03-18 Lighten avatar picker cards: no heavy panels unless selected */
body.modern-v5 .avatar-grid-modal .avatar-card {
  display: grid;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-card.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-card:not(.active) {
  opacity: 0.94;
  transform: none;
}

body.modern-v5 .avatar-grid-modal .avatar-card:hover,
body.modern-v5 .avatar-grid-modal .avatar-card.avatar-card-previewing,
body.modern-v5 .avatar-grid-modal .avatar-card.avatar-card-confirming {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  overflow: visible;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-box {
  width: 100%;
  min-width: 0;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-video,
body.modern-v5 .avatar-grid-modal .avatar-preview-image {
  display: block;
  border-radius: 22px;
}

body.modern-v5 .avatar-grid-modal .avatar-card.active .avatar-preview-box {
  border-color: rgba(var(--gold-shadow-rgb), 0.92) !important;
  box-shadow:
    inset 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.78),
    inset 0 0 0 3px rgba(255, 226, 163, 0.12),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.28) !important;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-fallback {
  min-height: 184px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 12, 24, 0.36);
}

body.modern-v5 .avatar-grid-modal .avatar-meta-row {
  position: relative;
  grid-template-columns: 1fr !important;
  justify-items: center;
  text-align: center;
  row-gap: 2px;
  margin-top: 12px;
  padding-right: 0;
}

body.modern-v5 .avatar-grid-modal .avatar-name-stack,
body.modern-v5 .avatar-grid-modal .avatar-role-stack {
  align-items: center;
  text-align: center;
  min-height: 0;
  width: 100%;
}

body.modern-v5 .avatar-grid-modal .avatar-name-line,
body.modern-v5 .avatar-grid-modal .avatar-role-line {
  display: block;
  width: 100%;
  text-align: center;
}

body.modern-v5 .avatar-grid-modal .avatar-audio-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

body.modern-v5 .avatar-grid-modal .avatar-plan-badge {
  left: 12px;
  right: auto;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-prompt {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 1;
  display: grid;
  align-content: center;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-prompt.hidden {
  display: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-prompt-copy {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #f8fafc;
  text-align: center;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-prompt-kicker {
  color: rgba(203, 213, 225, 0.92);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-prompt-line {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-btn {
  min-width: 68px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.28);
  background: rgba(12, 18, 32, 0.84);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

body.modern-v5 .avatar-grid-modal .avatar-choice-btn:hover,
body.modern-v5 .avatar-grid-modal .avatar-choice-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(var(--gold-border-rgb), 0.42);
}

body.modern-v5 .avatar-grid-modal .avatar-choice-btn-yes {
  color:var(--gold-btn-ink);
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card {
  width: 100%;
  min-height: 164px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview {
  position: relative;
  width: 100%;
  min-height: 122px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 20% 24%, rgba(78, 167, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(var(--gold-accent-rgb), 0.18), transparent 26%),
    linear-gradient(180deg, rgba(12, 21, 37, 0.98), rgba(7, 14, 24, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-surface,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-line,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-pin {
  position: absolute;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-surface {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-line {
  height: 4px;
  border-radius: 999px;
  transform-origin: left center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-pin {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.86);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-itinerary .setup-map-line-a {
  left: 16%;
  top: 34%;
  width: 38%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-accent-highlight));
  transform: rotate(22deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-itinerary .setup-map-line-b {
  left: 48%;
  top: 58%;
  width: 26%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-accent-highlight));
  transform: rotate(-28deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-itinerary .setup-map-pin-a {
  left: 18%;
  top: 28%;
  background: #2563eb;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-itinerary .setup-map-pin-b {
  left: 50%;
  top: 50%;
  background: #38bdf8;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-itinerary .setup-map-pin-c {
  left: 70%;
  top: 34%;
  background: #fb923c;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-full_map .setup-map-line-a {
  left: 10%;
  top: 36%;
  width: 78%;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.25), rgba(56, 189, 248, 0.22));
  transform: rotate(-8deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-full_map .setup-map-line-b {
  left: 12%;
  top: 64%;
  width: 70%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(var(--gold-accent-rgb), 0.2));
  transform: rotate(10deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-full_map .setup-map-pin-a {
  left: 20%;
  top: 30%;
  background: #38bdf8;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-full_map .setup-map-pin-b {
  left: 44%;
  top: 52%;
  background: #2563eb;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-full_map .setup-map-pin-c {
  left: 68%;
  top: 26%;
  background: #fb923c;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-eyebrow {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: rgba(255, 226, 163, 0.82);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-title {
  color: #f8fafc !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-detail-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-detail-line {
  color: rgba(214, 224, 238, 0.88) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  text-align: center !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.locked {
  opacity: 0.96;
  cursor: default;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.locked .setup-map-preview {
  filter: saturate(0.82) brightness(0.92);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.locked .pick-card-detail-line {
  color: rgba(255, 226, 163, 0.82) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-hint {
  margin-top: 6px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-panel-note {
  margin: -2px 0 10px;
  color: rgba(236, 244, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-pricing {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-pricing-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 244, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.active {
  border-color: rgba(var(--gold-shadow-rgb), 0.96) !important;
  background: linear-gradient(180deg, rgba(46, 31, 9, 0.99), rgba(22, 16, 9, 0.99)) !important;
  box-shadow: inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.84), 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.52), 0 20px 42px rgba(0, 0, 0, 0.32), 0 0 30px rgba(var(--gold-shadow-rgb), 0.22) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-panel,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-mode-panel {
  display: grid;
  gap: 14px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .intro-screen-entry {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .intro-city-head {
  align-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .intro-city-head-copy {
  padding-top: 0;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .intro-city-head-copy .intro-section-title {
  font-size: clamp(28px, 6.4vw, 42px);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .intro-card-entry {
  width: min(860px, 100%);
  gap: 22px;
  align-content: start;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .intro-card-entry::before {
  display: none;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero {
  display: grid;
  gap: 18px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-media {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  border-radius: 26px;
  overflow: hidden;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy {
  display: grid;
  gap: 8px;
  text-align: left;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy .intro-section-title {
  font-size: clamp(34px, 7vw, 48px);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy .intro-sub {
  max-width: 44ch;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-list {
  width: 100%;
  display: grid;
  gap: 14px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-border-rgb), 0.28);
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold-accent);
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-body {
  display: grid;
  gap: 6px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-title {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-copy {
  margin: 0;
  color: rgba(236, 242, 248, 0.86);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.62;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-cta-stack {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 2px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-cta-stack .btn-intro {
  width: min(100%, 360px);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-compare-btn {
  min-width: min(100%, 360px);
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-bottom-note {
  margin: 0;
  color: rgba(236, 242, 248, 0.72);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 980px) {
  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy .intro-section-title {
    font-size: 34px;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-title {
    font-size: 21px;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-copy {
    font-size: 15px;
  }
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-online .setup-map-line-a {
  left: 12%;
  top: 36%;
  width: 72%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), rgba(74, 222, 128, 0.24));
  transform: rotate(-9deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-online .setup-map-line-b {
  left: 18%;
  top: 62%;
  width: 58%;
  background: linear-gradient(90deg, rgba(var(--gold-accent-rgb), 0.22), rgba(56, 189, 248, 0.26));
  transform: rotate(11deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-online .setup-map-pin-a {
  left: 20%;
  top: 30%;
  background: #38bdf8;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-online .setup-map-pin-b {
  left: 44%;
  top: 52%;
  background: #2563eb;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-online .setup-map-pin-c {
  left: 68%;
  top: 26%;
  background: #fb923c;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-offline .setup-map-line-a {
  left: 16%;
  top: 34%;
  width: 38%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-accent-highlight));
  transform: rotate(22deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-offline .setup-map-line-b {
  left: 48%;
  top: 58%;
  width: 26%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-accent-highlight));
  transform: rotate(-28deg);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-offline .setup-map-pin-a {
  left: 18%;
  top: 28%;
  background: #2563eb;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-offline .setup-map-pin-b {
  left: 50%;
  top: 50%;
  background: #38bdf8;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-map-preview-offline .setup-map-pin-c {
  left: 70%;
  top: 34%;
  background: #fb923c;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 156px;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  color: #f8fafc !important;
  font-size: 20px !important;
  text-align: center !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card {
  min-height: 138px !important;
  padding: 13px 12px !important;
  gap: 4px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  font-size: 18px !important;
  line-height: 1.18 !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card .pick-card-detail-list,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card .pick-card-detail-list {
  margin-top: 8px !important;
  gap: 3px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card .pick-card-detail-line,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card .pick-card-detail-line {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-price-chip,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-price-chip {
  font-size: 10px !important;
  min-height: 26px !important;
  padding: 0 9px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .avatar-plan-badge {
  position: static;
  margin: 10px auto 0;
  align-self: center;
  justify-self: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-summary {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  color: rgba(236, 244, 255, 0.9);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-label {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-card {
  width: 100%;
  min-height: 0;
  padding: 0;
  cursor: default;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-card .avatar-preview-box {
  min-height: 184px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-picker-inline-shell {
  display: grid;
  gap: 14px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live {
  margin-top: 0;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card {
  position: relative;
  display: grid;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card:hover,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.avatar-card-previewing,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.avatar-card-confirming {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-preview-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  overflow: visible;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-preview-box {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.active .avatar-preview-box {
  border-color: rgba(var(--gold-shadow-rgb), 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.84),
    inset 0 0 0 3px rgba(255, 226, 163, 0.12),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.28);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.avatar-card-previewing .avatar-preview-box {
  box-shadow:
    inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.9),
    inset 0 0 0 5px rgba(255, 226, 163, 0.12),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.32);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.avatar-card-confirming .avatar-preview-box {
  border-color: rgba(var(--gold-shadow-rgb), 0.96);
  box-shadow:
    inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.9),
    inset 0 0 0 5px rgba(255, 226, 163, 0.12),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.32);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-audio-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.active .avatar-audio-toggle,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.avatar-card-previewing .avatar-audio-toggle,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-card.avatar-card-confirming .avatar-audio-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-preview-box-thanks {
  min-height: 220px;
  border-color: rgba(var(--gold-shadow-rgb), 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.84),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.36),
    0 18px 38px rgba(0,0,0,0.22);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 2px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-meta-row {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 2px;
  margin-top: 12px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-name-stack,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-role-stack,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-name-line,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-role-line {
  width: 100%;
  text-align: center;
  align-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-name-stack,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-role-stack,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-name-line,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-role-line {
  width: 100%;
  text-align: center;
  align-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-name-stack {
  align-items: center;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-name-line + .avatar-name-line {
  margin-top: 2px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-grid-live .avatar-plan-badge {
  left: 12px;
  right: auto;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-prompt {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 1;
  display: grid;
  align-content: center;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-prompt.hidden {
  display: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-prompt-copy {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #f8fafc;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-prompt-kicker {
  color: rgba(203, 213, 225, 0.92);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-prompt-line {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-btn {
  min-width: 68px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.28);
  background: rgba(12, 18, 32, 0.84);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-btn:hover,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(var(--gold-border-rgb), 0.42);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-choice-btn-yes {
  color:var(--gold-btn-ink);
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  box-shadow: var(--cta-action-shadow);
  font-family: var(--cta-action-font);
  font-weight: var(--cta-action-weight);
  letter-spacing: var(--cta-action-tracking);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-thanks-card {
  display: grid;
  gap: 12px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-thanks-copy {
  margin: 0;
  color: rgba(236, 244, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .start-map-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card {
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.active {
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96)) !important;
  border-color: rgba(var(--gold-shadow-rgb), 0.96) !important;
  box-shadow: inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.84), 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.52), 0 20px 42px rgba(0, 0, 0, 0.32), 0 0 30px rgba(var(--gold-shadow-rgb), 0.22) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card:not(.active) {
  opacity: 0.86;
  transform: scale(0.992);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-title {
  font-size: 18px !important;
  line-height: 1.18 !important;
  text-align: center !important;
  color: #f8fafc !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .pick-card-eyebrow {
  font-size: 12px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .plan-pick-section {
  font-size: 13px !important;
  margin-top: 11px !important;
  margin-bottom: 9px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .plan-pick-list {
  font-size: 13px !important;
  line-height: 1.48 !important;
  gap: 10px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .plan-pick-list li {
  line-height: 1.52 !important;
}

body.modern-v5 .modal-card.map-mode-modal,
body.modern-v5 .modal-card.map-feature-modal,
body.modern-v5 .modal-card.offline-access-modal,
body.modern-v5 .modal-card.plan-compare-modal {
  background: linear-gradient(180deg, rgba(20, 22, 39, 0.98), rgba(10, 12, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  color: #f8fafc;
}

body.modern-v5 .modal-card.map-mode-modal .hint,
body.modern-v5 .modal-card.map-feature-modal .hint,
body.modern-v5 .modal-card.offline-access-modal .hint,
body.modern-v5 .modal-card.plan-compare-modal .hint {
  color: rgba(236, 244, 255, 0.74);
}

body.modern-v5 .map-mode-grid,
body.modern-v5 .plan-compare-grid {
  display: grid;
  gap: 14px;
}

body.modern-v5 .map-mode-secondary-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-card,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-card,
body.modern-v5 .modal-card.offline-access-modal .setup-choice-card,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-choice-card {
  width: 100%;
  min-height: 164px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview,
body.modern-v5 .modal-card.map-feature-modal .setup-map-preview,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-preview {
  position: relative;
  width: 100%;
  min-height: 122px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 20% 24%, rgba(78, 167, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(var(--gold-accent-rgb), 0.18), transparent 26%),
    linear-gradient(180deg, rgba(12, 21, 37, 0.98), rgba(7, 14, 24, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-surface,
body.modern-v5 .modal-card.map-mode-modal .setup-map-line,
body.modern-v5 .modal-card.map-mode-modal .setup-map-pin,
body.modern-v5 .modal-card.map-feature-modal .setup-map-surface,
body.modern-v5 .modal-card.map-feature-modal .setup-map-line,
body.modern-v5 .modal-card.map-feature-modal .setup-map-pin,
body.modern-v5 .modal-card.offline-access-modal .setup-map-surface,
body.modern-v5 .modal-card.offline-access-modal .setup-map-line,
body.modern-v5 .modal-card.offline-access-modal .setup-map-pin,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-surface,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-line,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-pin {
  position: absolute;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-surface,
body.modern-v5 .modal-card.map-feature-modal .setup-map-surface,
body.modern-v5 .modal-card.offline-access-modal .setup-map-surface,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-surface {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-line,
body.modern-v5 .modal-card.map-feature-modal .setup-map-line,
body.modern-v5 .modal-card.offline-access-modal .setup-map-line,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-line {
  height: 4px;
  border-radius: 999px;
  transform-origin: left center;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-pin,
body.modern-v5 .modal-card.map-feature-modal .setup-map-pin,
body.modern-v5 .modal-card.offline-access-modal .setup-map-pin,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-pin {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.86);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-card .pick-card-eyebrow,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-card .pick-card-eyebrow,
body.modern-v5 .modal-card.offline-access-modal .setup-choice-card .pick-card-eyebrow,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-choice-card .pick-card-eyebrow {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: rgba(255, 226, 163, 0.82);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-card .pick-card-title,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-card .pick-card-title,
body.modern-v5 .modal-card.offline-access-modal .setup-choice-card .pick-card-title,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-choice-card .pick-card-title {
  color: #f8fafc !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-align: center !important;
  white-space: normal !important;
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-pricing,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-pricing,
body.modern-v5 .modal-card.offline-access-modal .setup-choice-pricing,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-choice-pricing {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-pricing-row,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-pricing-row,
body.modern-v5 .modal-card.offline-access-modal .setup-choice-pricing-row,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-choice-pricing-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-price-chip,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-price-chip,
body.modern-v5 .modal-card.offline-access-modal .setup-choice-price-chip,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-choice-price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 244, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}

body.modern-v5 .modal-card.map-mode-modal .setup-choice-card.active,
body.modern-v5 .modal-card.map-feature-modal .setup-choice-card.active {
  border-color: rgba(var(--gold-shadow-rgb), 0.96) !important;
  background: linear-gradient(180deg, rgba(46, 31, 9, 0.99), rgba(22, 16, 9, 0.99)) !important;
  box-shadow: inset 0 0 0 3px rgba(var(--gold-shadow-rgb), 0.84), 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.52), 0 20px 42px rgba(0, 0, 0, 0.32), 0 0 30px rgba(var(--gold-shadow-rgb), 0.22) !important;
}

body.modern-v5 .modal-card.offline-access-modal .setup-choice-card.locked {
  opacity: 0.96;
  cursor: default;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-column {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-heading {
  margin: 10px 0 14px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-column.premium {
  border-color: rgba(var(--gold-shadow-rgb), 0.34);
  background: linear-gradient(180deg, rgba(46, 31, 9, 0.5), rgba(22, 16, 9, 0.5));
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-title {
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(236, 244, 255, 0.86);
  display: grid;
  gap: 7px;
}

body.modern-v5 .modal-card.plan-compare-modal {
  width: min(980px, calc(100% - 18px));
  max-height: 94vh;
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(7, 16, 29, 0.995));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.1);
  overflow: auto;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-hero {
  display: grid;
  gap: 10px;
  padding: 22px 22px 12px;
  text-align: center;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-kicker {
  color: rgba(255, 226, 163, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-trial-badge {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: rgba(var(--gold-shadow-rgb), 0.12);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

body.modern-v5 .modal-card.plan-compare-modal h3 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

body.modern-v5 .modal-card.plan-compare-modal .hint {
  margin: 0 auto;
  max-width: 740px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(236, 244, 255, 0.78);
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-heading {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-grid {
  padding: 4px 22px 0;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-column {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-column.premium {
  border-color: rgba(var(--gold-shadow-rgb), 0.72);
  background: linear-gradient(180deg, rgba(46, 31, 9, 0.96), rgba(22, 16, 9, 0.98));
  box-shadow:
    inset 0 0 0 2px rgba(var(--gold-shadow-rgb), 0.56),
    0 20px 42px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(var(--gold-shadow-rgb), 0.16);
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-title {
  margin-bottom: 12px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-list {
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-showcase-list li::marker {
  color: rgba(255, 226, 163, 0.82);
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-actions {
  padding: 18px 22px 24px;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-actions .btn {
  min-width: 180px;
}

body.modern-v5 .modal-card.build-tour-intro-modal .plan-compare-hero {
  text-align: left;
}

body.modern-v5 .build-tour-intro-list {
  display: grid;
  gap: 12px;
  padding: 4px 22px 0;
}

body.modern-v5 .build-tour-intro-row {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: linear-gradient(180deg, rgba(23, 31, 47, 0.92), rgba(14, 21, 33, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5 .build-tour-intro-row-title {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

body.modern-v5 .build-tour-intro-row-copy {
  color: rgba(239, 226, 201, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

body.modern-v5 .build-tour-intro-actions {
  justify-content: space-between;
}

body.modern-v5 .build-tour-intro-actions-single {
  justify-content: flex-start;
}

body.modern-v5 .build-tour-intro-mode-row {
  gap: 12px;
}

body.modern-v5 .build-tour-intro-mode-actions {
  display: flex;
  justify-content: flex-start;
}

body.modern-v5 .build-tour-entry-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(236, 244, 255, 0.8);
  font-size: 13px;
  line-height: 1.55;
}

body.modern-v5 .build-tour-suggest-shell {
  display: grid;
  gap: 12px;
  padding: 0 16px 14px;
}

body.modern-v5 .build-tour-suggest-shell-proposals {
  gap: 14px;
}

body.modern-v5 .build-tour-suggest-section {
  display: grid;
  gap: 12px;
}

body.modern-v5 .build-tour-suggest-section-panel {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background:#111827;
  box-shadow:none;
}

body.modern-v5 .build-tour-suggest-section-head {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}

body.modern-v5 .build-tour-suggest-section-title {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

body.modern-v5 .build-tour-suggest-section-note {
  color: rgba(236, 244, 255, 0.74);
  font-size: 13px;
  line-height: 1.55;
}

body.modern-v5 .build-tour-suggest-stop-list,
body.modern-v5 .build-tour-suggest-rules-list {
  display: grid;
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-stop-row,
body.modern-v5 .build-tour-suggest-rule-row {
  gap: 12px;
  cursor: default;
  min-height: 88px;
  position: relative;
}

body.modern-v5 .build-tour-suggest-rule-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--gold-shadow-rgb), 0.18);
}

body.modern-v5 .build-tour-suggest-rule-row-main::before {
  width: 4px;
  background: linear-gradient(180deg, rgba(255, 226, 163, 0.92), rgba(var(--gold-rgb), 0.92));
  box-shadow: 0 0 0 1px rgba(var(--gold-border-rgb), 0.08);
}

body.modern-v5 .build-tour-suggest-rule-row-main {
  border-color: rgba(var(--gold-shadow-rgb), 0.24);
  background: linear-gradient(180deg, rgba(42, 30, 12, 0.34), rgba(17, 23, 36, 0.94));
}

body.modern-v5 .build-tour-suggest-stop-row:hover,
body.modern-v5 .build-tour-suggest-stop-row:focus-visible,
body.modern-v5 .build-tour-suggest-rule-row:hover,
body.modern-v5 .build-tour-suggest-rule-row:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5 .build-tour-suggest-stop-order {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.28);
  background: rgba(var(--gold-shadow-rgb), 0.12);
  color: rgba(255, 226, 163, 0.96);
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 30px;
}

body.modern-v5 .build-tour-suggest-stop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.modern-v5 .build-tour-suggest-stop-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(236, 244, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-stop-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

body.modern-v5 .build-tour-suggest-stop-star {
  color: rgba(255, 244, 214, 0.38);
  font-size: 12px;
  line-height: 1;
  text-shadow:
    0 1px 1px rgba(0,0,0,.44),
    0 0 8px rgba(0,0,0,.18);
}

body.modern-v5 .build-tour-suggest-stop-star.is-filled {
  color: var(--gold-accent);
}

body.modern-v5 .build-tour-suggest-row-control {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body.modern-v5 .build-tour-suggest-row-control-km {
  min-width: 118px;
  justify-content: flex-end;
}

body.modern-v5 .build-tour-suggest-inline-unit {
  color: rgba(236, 244, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number {
  width: 86px;
  min-width: 86px;
  text-align: center;
  border-color: rgba(var(--gold-shadow-rgb), 0.34);
  box-shadow:
    inset 3px 0 0 rgba(var(--gold-shadow-rgb), 0.82),
    inset 0 1px 0 rgba(255,255,255,0.02);
}

body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select {
  width: min(240px, 34vw);
  min-width: 180px;
  padding-right: 42px;
  border-color: rgba(var(--gold-shadow-rgb), 0.34);
  box-shadow:
    inset 3px 0 0 rgba(var(--gold-shadow-rgb), 0.82),
    inset 0 1px 0 rgba(255,255,255,0.02);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5L8 10.5L12 6.5' fill='none' stroke='%23b38a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

body.modern-v5 .build-tour-suggest-rule-selection {
  min-width: 220px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

body.modern-v5 .build-tour-suggest-rule-state {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 180px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(236, 244, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-color: rgba(var(--gold-shadow-rgb), 0.34);
  box-shadow:
    inset 3px 0 0 rgba(var(--gold-shadow-rgb), 0.82),
    inset 0 1px 0 rgba(255,255,255,0.02);
}

body.modern-v5 .build-tour-suggest-rule-activate {
  padding-right: 38px;
}

body.modern-v5 .build-tour-suggest-rule-activate {
  cursor: pointer;
}

body.modern-v5 .build-tour-suggest-rule-btn {
  min-width: 172px;
  position: relative;
  padding-right: 38px;
  border-color: rgba(var(--gold-shadow-rgb), 0.34) !important;
  box-shadow:
    inset 3px 0 0 rgba(var(--gold-shadow-rgb), 0.82),
    inset 0 1px 0 rgba(255,255,255,0.02),
    var(--secondary-btn-shadow) !important;
}

body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

body.modern-v5 .build-tour-suggest-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 32px;
  cursor: pointer;
}

body.modern-v5 .build-tour-suggest-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body.modern-v5 .build-tour-suggest-switch-ui {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  transition: background 0.18s ease, border-color 0.18s ease;
}

body.modern-v5 .build-tour-suggest-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  transition: transform 0.18s ease;
}

body.modern-v5 .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui {
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.8), rgba(var(--gold-accent-rgb), 0.88));
  border-color: rgba(var(--gold-border-rgb), 0.46);
}

body.modern-v5 .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui::after {
  transform: translateX(22px);
  background: #0b1220;
}

body.modern-v5 .build-tour-suggest-empty-panel {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(var(--gold-shadow-rgb), 0.22);
  background: linear-gradient(180deg, rgba(22, 31, 47, 0.78), rgba(12, 19, 31, 0.88));
  color: rgba(236, 244, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

body.modern-v5 .build-tour-suggest-generate-shell {
  display: grid;
}

body.modern-v5 .build-tour-suggest-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 0 22px 22px;
  margin-top: auto;
}

body.modern-v5 .build-tour-suggest-actions .app-sheet-back {
  justify-self: start;
}

body.modern-v5 .build-tour-suggest-actions .app-sheet-primary,
body.modern-v5 .build-tour-suggest-actions .app-sheet-secondary {
  justify-self: end;
}

body.modern-v5 .build-tour-suggest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0 22px 12px;
}

body.modern-v5 .build-tour-suggest-panel {
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.18);
  border-radius: 22px;
  background: rgba(15, 20, 31, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 16px;
  display: grid;
  gap: 12px;
}

body.modern-v5 .build-tour-suggest-search,
body.modern-v5 .build-tour-suggest-number,
body.modern-v5 .build-tour-suggest-select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.22);
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  color: #f8fafc;
  padding: 0 14px;
  accent-color: var(--gold-accent);
  caret-color: var(--gold-accent);
}

body.modern-v5 .build-tour-suggest-number::-webkit-outer-spin-button,
body.modern-v5 .build-tour-suggest-number::-webkit-inner-spin-button,
body.modern-v5 .build-tour-time-modal input[type="date"]::-webkit-calendar-picker-indicator,
body.modern-v5 .build-tour-time-modal input[type="time"]::-webkit-calendar-picker-indicator,
body.modern-v5 .build-tour-time-modal input[type="time"]::-webkit-inner-spin-button,
body.modern-v5 .build-tour-time-modal input[type="time"]::-webkit-clear-button {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(82%) sepia(42%) saturate(625%) hue-rotate(349deg) brightness(100%) contrast(92%);
}

body.modern-v5 .build-tour-suggest-number::-webkit-outer-spin-button,
body.modern-v5 .build-tour-suggest-number::-webkit-inner-spin-button,
body.modern-v5 .build-tour-time-modal input[type="time"]::-webkit-inner-spin-button {
  min-height: 30px;
}

body.modern-v5 .build-tour-suggest-select option {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 700;
}

body.modern-v5 .build-tour-suggest-results,
body.modern-v5 .build-tour-suggest-selected-list,
body.modern-v5 .build-tour-suggest-proposals {
  display: grid;
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-proposals {
  gap: 14px;
  padding: 0 22px 6px;
}

body.modern-v5 .build-tour-suggest-results {
  max-height: 320px;
  overflow: auto;
}

body.modern-v5 .build-tour-suggest-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
  color: #f8fafc;
}

body.modern-v5 .build-tour-suggest-result-copy,
body.modern-v5 .build-tour-suggest-control {
  display: grid;
  gap: 4px;
}

body.modern-v5 .build-tour-suggest-result-title,
body.modern-v5 .build-tour-suggest-selected-title,
body.modern-v5 .build-tour-suggest-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
}

body.modern-v5 .build-tour-suggest-result-meta,
body.modern-v5 .build-tour-suggest-card-note,
body.modern-v5 .build-tour-suggest-route,
body.modern-v5 .build-tour-suggest-empty,
body.modern-v5 .build-tour-suggest-card-warning {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
}

body.modern-v5 .build-tour-suggest-result-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

body.modern-v5 .build-tour-suggest-result-star {
  color: rgba(255, 244, 214, 0.54);
  font-size: 12px;
  line-height: 1;
  text-shadow:
    0 1px 1px rgba(0,0,0,.44),
    0 0 10px rgba(0,0,0,.16);
}

body.modern-v5 .build-tour-suggest-result-star.is-filled {
  color: var(--gold-accent);
}

body.modern-v5 .build-tour-suggest-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-clear-btn {
  min-width: auto;
}

body.modern-v5 .build-tour-suggest-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(var(--gold-shadow-rgb), 0.12);
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.18);
  color: #f8fafc;
  max-width: 100%;
}

body.modern-v5 .build-tour-suggest-chip-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  flex: 1 1 auto;
}

body.modern-v5 .build-tour-suggest-chip-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.modern-v5 .build-tour-suggest-chip-flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--gold-shadow-rgb), 0.14);
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.22);
  color: rgba(244, 226, 189, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.modern-v5 .build-tour-suggest-chip-remove {
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1;
}

body.modern-v5 .build-tour-suggest-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body.modern-v5 .build-tour-suggest-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.04);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

body.modern-v5 .build-tour-suggest-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #d7a15a;
}

body.modern-v5 .build-tour-suggest-control-wide {
  grid-column: 1 / -1;
}

body.modern-v5 .build-tour-suggest-generate-btn {
  width: 100%;
}

body.modern-v5 .build-tour-suggest-main-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-manual-btn,
body.modern-v5 .build-tour-suggest-departure-btn {
  width: 100%;
}

body.modern-v5 .build-tour-suggest-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 18px 18px 16px;
}

body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-card {
  min-height: auto;
  justify-content: start;
  align-items: stretch;
  text-align: left;
}

body.modern-v5 .build-tour-suggest-card.is-balanced {
  border-color: rgba(var(--gold-shadow-rgb), 0.3);
}

body.modern-v5 .build-tour-suggest-card.is-shortest {
  border-color: rgba(148, 163, 184, 0.24);
}

body.modern-v5 .build-tour-suggest-card.is-historical {
  border-color: rgba(var(--gold-accent-rgb), 0.34);
}

body.modern-v5 .build-tour-suggest-card.is-recommended {
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(var(--gold-border-rgb), 0.12);
}

body.modern-v5 .build-tour-suggest-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--gold-accent), var(--gold-accent-deep));
}

body.modern-v5 .build-tour-suggest-card.is-historical .build-tour-suggest-card-accent {
  background: linear-gradient(180deg, #f8e2aa, var(--gold-accent));
}

body.modern-v5 .build-tour-suggest-card.is-shortest .build-tour-suggest-card-accent {
  background: linear-gradient(180deg, #b8c1cf, #667387);
}

body.modern-v5 .build-tour-suggest-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

body.modern-v5 .build-tour-suggest-card-copy {
  display: grid;
  gap: 7px;
}

body.modern-v5 .build-tour-suggest-card-kicker {
  color: rgba(255, 226, 163, 0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-live-map-shell {
  position: relative;
  width: 100%;
  min-height: 170px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 20% 24%, rgba(78, 167, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(var(--gold-accent-rgb), 0.18), transparent 26%),
    linear-gradient(180deg, rgba(12, 21, 37, 0.98), rgba(7, 14, 24, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

body.modern-v5 .build-tour-suggest-live-map {
  width: 100%;
  height: 170px;
}

body.modern-v5 .build-tour-suggest-live-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: transparent;
}

body.modern-v5 .build-tour-suggest-live-map .leaflet-control-container,
body.modern-v5 .build-tour-suggest-live-map .leaflet-bottom,
body.modern-v5 .build-tour-suggest-live-map .leaflet-top {
  display: none;
}

body.modern-v5 .build-tour-suggest-map-marker-wrap {
  background: transparent;
  border: 0;
}

body.modern-v5 .build-tour-suggest-map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(215, 161, 90, 0.96);
  border: 2px solid rgba(255, 244, 214, 0.88);
  color: #0b1220;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.34);
}

body.modern-v5 .build-tour-suggest-map-marker.is-extra {
  background: rgba(111, 117, 122, 0.98);
  border-color: rgba(229, 231, 235, 0.82);
  color: #f8fafc;
}

body.modern-v5 .build-tour-suggest-map-marker.is-start {
  background: #38bdf8;
  border-color: rgba(224, 242, 254, 0.96);
}

body.modern-v5 .build-tour-suggest-map-marker.is-end {
  background: #f59e0b;
  border-color: rgba(254, 240, 138, 0.94);
}

body.modern-v5 .build-tour-suggest-mini-map-empty {
  min-height: 170px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(14, 21, 33, 0.96), rgba(9, 15, 24, 0.98));
}

body.modern-v5 .build-tour-suggest-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-card-body {
  font-size: 13px;
  line-height: 1.56;
  color: rgba(236, 244, 255, 0.78);
}

body.modern-v5 .build-tour-suggest-card-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.035);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(239, 226, 201, 0.86);
}

body.modern-v5 .build-tour-suggest-card-chip {
  display: grid;
  gap: 4px;
  padding: 12px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(11, 18, 32, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

body.modern-v5 .build-tour-suggest-card-chip span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.68);
}

body.modern-v5 .build-tour-suggest-card-chip strong {
  font-size: 15px;
  color: #f8fafc;
}

body.modern-v5 .build-tour-suggest-card-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255, 226, 163, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5 .build-tour-suggest-use-btn {
  justify-self: start;
}

body.modern-v5 .build-tour-suggest-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-use-btn {
  justify-self: start;
}

body.modern-v5 .build-tour-suggest-card-warning {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(236, 244, 255, 0.78);
}

body.modern-v5 .build-tour-suggest-route {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 24, 0.36);
  color: rgba(248, 250, 252, 0.92);
  font-size: 13px;
  line-height: 1.55;
}

body.modern-v5 .build-tour-suggest-controls {
  grid-template-columns: minmax(0, 1fr);
}

body.modern-v5 .build-tour-suggest-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.modern-v5 .build-tour-suggest-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
}

body.modern-v5 .build-tour-suggest-preview-chip.is-extra {
  border-color: rgba(180, 186, 191, 0.24);
  background: rgba(136, 138, 139, 0.16);
}

body.modern-v5 .build-tour-suggest-preview-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(var(--gold-shadow-rgb), 0.2);
  color: var(--gold-accent);
  font-size: 10px;
  font-weight: 900;
}

body.modern-v5 .build-tour-suggest-proposals-section {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.modern-v5 .build-tour-time-field {
  padding: 0 22px 8px;
  display: grid;
  gap: 14px;
}

body.modern-v5 .build-tour-time-row {
  display: grid;
  gap: 8px;
}

body.modern-v5 .build-tour-time-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.modern-v5 .build-tour-time-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 231, 213, 0.84);
}

body.modern-v5 .build-tour-time-field input[type="date"],
body.modern-v5 .build-tour-time-field input[type="time"] {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.22);
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  color: #f8fafc;
  padding: 0 14px;
}

body.modern-v5 .build-tour-time-picker-btn {
  min-width: 52px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.38);
  background: linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight));
  color:var(--gold-btn-ink);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(var(--gold-rgb), 0.22);
}

body.modern-v5 .build-tour-time-actions {
  justify-content: space-between;
}

body.modern-v5 .build-tour-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 22px 0;
}

body.modern-v5 .build-tour-summary-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: linear-gradient(180deg, rgba(23, 31, 47, 0.92), rgba(14, 21, 33, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5 .build-tour-summary-chip span {
  color: rgba(255, 226, 163, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-summary-chip strong {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
}

body.modern-v5 .build-tour-summary-list {
  display: grid;
  gap: 12px;
  padding: 16px 22px 0;
}

body.modern-v5 .build-tour-summary-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: linear-gradient(180deg, rgba(23, 31, 47, 0.92), rgba(14, 21, 33, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5 .build-tour-summary-order {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.3);
  color: rgba(255, 226, 163, 0.92);
  font-size: 14px;
  font-weight: 900;
}

body.modern-v5 .build-tour-summary-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.modern-v5 .build-tour-summary-title {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.24;
}

body.modern-v5 .build-tour-summary-meta,
body.modern-v5 .build-tour-summary-eta {
  color: rgba(239, 226, 201, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

body.modern-v5 .build-tour-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.modern-v5 .build-tour-summary-internal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

body.modern-v5 .build-tour-summary-internal.open {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.24);
}

body.modern-v5 .build-tour-summary-internal.closed {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.24);
}

body.modern-v5 .build-tour-summary-internal.unknown {
  background: rgba(255,255,255,0.05);
  color: rgba(236, 244, 255, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
}

body.modern-v5 .build-tour-summary-note {
  color: rgba(239, 226, 201, 0.74);
  font-size: 12px;
  line-height: 1.5;
}

body.modern-v5 .build-tour-summary-note strong {
  color: #f8fafc;
  font-weight: 800;
}

body.modern-v5 .build-tour-summary-remove {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: rgba(255,255,255,0.04);
  color: #f5ecdf;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body.modern-v5 .build-tour-summary-empty {
  padding: 20px 0 6px;
  color: rgba(239, 226, 201, 0.78);
  text-align: center;
}

body.modern-v5 .build-tour-summary-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
}

body.modern-v5 .build-tour-summary-departure {
  margin: 0 22px 14px;
}

body.modern-v5 .build-tour-summary-footer-actions {
  width: 100%;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.modern-v5 .build-tour-summary-back {
  width: 100%;
}

body.modern-v5 .build-tour-summary-footer-or {
  color: rgba(255, 226, 163, 0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-overview-card {
  width: 100%;
  max-width: none;
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-actions .btn.primary {
  background: var(--cta-action-bg);
  border-color: var(--cta-action-border);
  color: var(--cta-action-ink);
  box-shadow: var(--cta-action-shadow);
}

body.modern-v5 .modal-card.plan-compare-modal .plan-compare-actions .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(28, 67, 122, 0.28);
}

body.modern-v5 .modal-card.map-menu-sheet {
  width: min(760px, calc(100% - 16px));
  max-height: min(88vh, 760px);
  align-self: end;
  margin-bottom: 14px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(7, 16, 29, 0.995));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.1);
  color: #f8fafc;
  overflow: auto;
}

body.modern-v5 .map-menu-sheet-top {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

body.modern-v5 .map-menu-sheet-head {
  display: grid;
  gap: 8px;
}

body.modern-v5 .map-menu-sheet-kicker {
  color: rgba(255, 226, 163, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.modern-v5 .modal-card.map-menu-sheet h3 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(24px, 4.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

body.modern-v5 .modal-card.map-menu-sheet .hint {
  margin: 0;
  color: rgba(236, 244, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

body.modern-v5 .map-menu-list {
  display: grid;
  gap: 12px;
}

body.modern-v5 .map-menu-sheet-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

body.modern-v5 .map-menu-sheet-back,
body.modern-v5 .map-legend-actions .map-menu-sheet-back {
  min-width: 132px;
  color:var(--gold-btn-ink) !important;
  background: linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight)) !important;
  border: 1px solid rgba(var(--gold-border-rgb), 0.38) !important;
  box-shadow: 0 16px 28px rgba(var(--gold-rgb), 0.26) !important;
}

body.modern-v5 .map-menu-row {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body.modern-v5 .map-menu-row:hover,
body.modern-v5 .map-menu-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--gold-shadow-rgb), 0.52);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  outline: none;
}

body.modern-v5 .map-menu-row-premium {
  background: linear-gradient(180deg, rgba(46, 31, 9, 0.96), rgba(22, 16, 9, 0.98));
  border-color: rgba(var(--gold-shadow-rgb), 0.44);
}

body.modern-v5 .map-menu-row-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 226, 163, 0.92);
  font-size: 20px;
  font-weight: 800;
}

body.modern-v5 .map-menu-row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.modern-v5 .map-menu-row-title {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.18;
}

body.modern-v5 .map-menu-row-subtitle {
  color: rgba(236, 244, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

body.modern-v5 .map-menu-row-arrow {
  color: rgba(255, 226, 163, 0.82);
  font-size: 28px;
  line-height: 1;
}

body.modern-v5 .build-tour-place-row {
  grid-template-columns: auto minmax(0, 1fr) 82px;
  align-items: stretch;
  min-height: 112px;
  padding: 14px;
}

body.modern-v5 .build-tour-place-row.has-remove {
  grid-template-columns: auto minmax(0, 1fr) 82px auto;
}

body.modern-v5 .build-tour-place-order {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: rgba(255,255,255,0.04);
  color: rgba(255, 226, 163, 0.92);
  font-size: 13px;
  font-weight: 900;
}

body.modern-v5 .build-tour-place-copy {
  align-self: center;
  gap: 6px;
}

body.modern-v5 .build-tour-place-copy .map-menu-row-title {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.modern-v5 .build-tour-place-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.modern-v5 .build-tour-place-secondary {
  display: grid;
  gap: 6px;
}

body.modern-v5 .build-tour-place-token {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255, 226, 163, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-place-token.is-metrics {
  color: rgba(236, 244, 255, 0.78);
  text-transform: none;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-place-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

body.modern-v5 .build-tour-place-star {
  color: rgba(255, 226, 163, 0.24);
  font-size: 12px;
  line-height: 1;
}

body.modern-v5 .build-tour-place-star.is-filled {
  color: #f6c453;
}

body.modern-v5 .build-tour-place-note {
  color: rgba(239, 226, 201, 0.74);
  font-size: 12px;
  line-height: 1.5;
}

body.modern-v5 .build-tour-place-note strong {
  color: #f8fafc;
  font-weight: 800;
}

body.modern-v5.app-theme-light .build-tour-place-order {
  background: rgba(255,255,255,0.74);
  color: #7a4b00;
}

body.modern-v5.app-theme-light .build-tour-place-token {
  background: rgba(255,255,255,0.66);
  color: #7a4b00;
}

body.modern-v5.app-theme-light .build-tour-place-token.is-metrics {
  color: #475569;
}

body.modern-v5.app-theme-light .build-tour-place-star {
  color: #8b7755;
}

body.modern-v5.app-theme-light .build-tour-place-star.is-filled {
  color: #8a5a00;
}

body.modern-v5.app-theme-light .build-tour-place-note {
  color: #5f5144;
}

body.modern-v5.app-theme-light .build-tour-place-note strong {
  color: #201912;
}

body.modern-v5 .build-tour-place-note-eta {
  color: rgba(236, 244, 255, 0.82);
  font-weight: 700;
}

body.modern-v5 .build-tour-place-thumb {
  display: block;
  width: 82px;
  height: 96px;
  min-width: 82px;
  min-height: 96px;
  border-radius: 20px;
  overflow: hidden;
  align-self: center;
  justify-self: end;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.22);
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

body.modern-v5 .build-tour-place-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.modern-v5 .build-tour-place-thumb.is-empty {
  display: grid;
  place-items: center;
}

body.modern-v5 .build-tour-place-thumb-fallback {
  color: rgba(255, 226, 163, 0.72);
  font-size: 20px;
}

body.modern-v5 .build-tour-place-remove {
  min-height: 38px;
  align-self: center;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: rgba(255,255,255,0.04);
  color: #f5ecdf;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body.modern-v5 .build-tour-suggest-route-list {
  display: grid;
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-proposals {
  display: grid;
  gap: 12px;
  padding: 0;
}

body.modern-v5 .build-tour-suggest-proposal-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background:#111827;
  box-shadow:none;
}

body.modern-v5 .build-tour-suggest-proposal-block:first-child {
  padding-top:14px;
  border-top:1px solid #334155;
}

body.modern-v5 .build-tour-suggest-proposal-head {
  display: grid;
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-proposal-copy {
  display: grid;
  gap: 6px;
}

body.modern-v5 .build-tour-suggest-proposal-kicker {
  color: rgba(255, 226, 163, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-proposal-title {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-suggest-proposal-body {
  color: rgba(236, 244, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-suggest-proposal-note,
body.modern-v5 .build-tour-suggest-proposal-warning {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(239, 226, 201, 0.88);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-suggest-proposal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.modern-v5 .build-tour-suggest-proposal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255, 226, 163, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-proposal-summary {
  color: rgba(236, 244, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-suggest-proposal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-proposal-grid-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius:7px;
  background:#172131;
  border:1px solid #334155;
}

body.modern-v5 .build-tour-suggest-proposal-grid-item span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.modern-v5 .build-tour-suggest-proposal-grid-item strong {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-suggest-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.modern-v5 .map-legend-sheet {
  width: min(760px, calc(100% - 16px));
}

body.modern-v5 .map-legend-list-modern {
  display: grid;
  gap: 12px;
  margin: 0;
}

body.modern-v5 .map-legend-row-modern {
  min-height: 82px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5 .map-legend-row-modern .map-legend-copy {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
}

body.modern-v5 .map-legend-note-modern {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 18, 13, 0.92), rgba(14, 12, 10, 0.98));
  color: rgba(249, 241, 219, 0.94);
  font-size: 14px;
  line-height: 1.6;
}

body.modern-v5 .modal-card.app-sheet {
  width: min(760px, calc(100% - 16px));
  max-height: min(calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 28px), 760px);
  align-self: end;
  margin-top: calc(6px + env(safe-area-inset-top, 0px));
  margin-bottom: 0;
  padding: 20px 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(7, 16, 29, 0.995));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.1);
  color: #f8fafc;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--gold-accent-rgb), 0.88) rgba(255, 255, 255, 0.08);
}

body.modern-v5 .modal-card.app-sheet::-webkit-scrollbar {
  width: 10px;
}

body.modern-v5 .modal-card.app-sheet::-webkit-scrollbar-track {
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

body.modern-v5 .modal-card.app-sheet::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(7, 16, 29, 0.88);
  background: linear-gradient(180deg, rgba(255, 224, 148, 0.96), rgba(var(--gold-rgb), 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 214, 0.22);
}

body.modern-v5 .modal-card.app-sheet::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 234, 174, 0.98), rgba(226, 170, 60, 0.98));
}

body.modern-v5 .modal-card.app-sheet.app-sheet-wide {
  width: min(980px, calc(100% - 18px));
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
}

body.modern-v5 .app-sheet-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

body.modern-v5 .app-sheet-head.centered {
  justify-items: center;
  text-align: center;
}

body.modern-v5 .app-sheet-kicker {
  color: rgba(255, 226, 163, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.modern-v5 .app-sheet-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(24px, 4.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

body.modern-v5 .app-sheet-copy,
body.modern-v5 .modal-card.app-sheet .hint {
  margin: 0;
  color: rgba(236, 244, 255, 0.78);
  font-size: 14px;
  line-height: 1.58;
}

body.modern-v5 .app-sheet-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-actions {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: end;
  gap: 12px;
  width: 100%;
  padding: 0 22px 22px;
  margin-top: 18px;
}

body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-actions .app-sheet-back {
  justify-self: start;
}

body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-actions .app-sheet-primary,
body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-actions .app-sheet-secondary {
  justify-self: end;
}

body.modern-v5 .app-sheet-back,
body.modern-v5 .app-sheet-primary,
body.modern-v5 .map-menu-sheet-back,
body.modern-v5 .map-legend-actions .map-menu-sheet-back,
body.modern-v5 #closeMapAvatarModalBtn {
  min-width: 132px;
}

body.modern-v5 .app-sheet-primary {
  color: var(--gold-btn-ink) !important;
  background: var(--gold-btn-bg) !important;
  border: 1px solid var(--gold-btn-border) !important;
  box-shadow: var(--gold-btn-shadow) !important;
  font-family: var(--cta-action-font) !important;
  font-weight: var(--cta-action-weight) !important;
  letter-spacing: var(--cta-action-tracking) !important;
}

body.modern-v5 .app-sheet-back,
body.modern-v5 .map-menu-sheet-back,
body.modern-v5 .map-legend-actions .map-menu-sheet-back,
body.modern-v5 #closeMapAvatarModalBtn,
body.modern-v5 .place-detail-close-btn {
  color: var(--secondary-btn-ink) !important;
  background: var(--secondary-btn-bg) !important;
  border: 1px solid var(--secondary-btn-border) !important;
  box-shadow: var(--secondary-btn-shadow) !important;
}

body.modern-v5 .app-sheet-secondary {
  color: var(--secondary-btn-ink) !important;
  background: var(--secondary-btn-bg) !important;
  border: 1px solid var(--secondary-btn-border) !important;
  box-shadow: var(--secondary-btn-shadow) !important;
}

body.modern-v5 .modal-card.modal-card-avatar-picker.app-sheet {
  padding: 20px 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.34);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(7, 16, 29, 0.995));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--gold-shadow-rgb), 0.1);
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  align-self: stretch;
  margin-top: 0;
  margin-bottom: 0;
  padding:
    calc(16px + env(safe-area-inset-top, 0px))
    18px
    calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow-x: hidden;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface.app-sheet-wide {
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
}

body.modern-v5 .modal-card.modal-card-avatar-picker.app-sheet .avatar-modal-head {
  margin-bottom: 18px;
}

body.modern-v5 .modal-card.modal-card-avatar-picker.app-sheet .avatar-modal-head h3 {
  font-size: clamp(24px, 4.6vw, 34px);
}

body.modern-v5 .modal-card.plan-compare-modal.app-sheet .plan-compare-hero {
  padding: 0;
  text-align: inherit;
}

body.modern-v5 .modal-card.plan-compare-modal.app-sheet .plan-compare-heading {
  margin: 6px 0 0;
  text-align: center;
}

body.modern-v5 .modal-card.plan-compare-modal.app-sheet .plan-compare-grid,
body.modern-v5 .build-tour-intro-list,
body.modern-v5 .build-tour-summary-metrics,
body.modern-v5 .build-tour-summary-list,
body.modern-v5 .build-tour-time-field {
  padding-left: 0;
  padding-right: 0;
}

body.modern-v5 .modal-card.map-feature-modal.app-sheet .map-mode-secondary-actions,
body.modern-v5 .modal-card.offline-access-modal.app-sheet .step-actions,
body.modern-v5 .modal-card.plan-compare-modal.app-sheet .plan-compare-actions,
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .map-menu-sheet-actions,
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .map-legend-actions,
body.modern-v5 .modal-card.modal-card-avatar-picker.app-sheet .avatar-modal-actions {
  margin-top: 18px;
  padding: 0;
}

body.modern-v5 .modal-card.map-feature-modal.app-sheet h3,
body.modern-v5 .modal-card.offline-access-modal.app-sheet h3,
body.modern-v5 .modal-card.map-menu-sheet.app-sheet h3,
body.modern-v5 .modal-card.modal-card-avatar-picker.app-sheet h3,
body.modern-v5 .modal-card.plan-compare-modal.app-sheet h3 {
  margin: 0;
}


.city-entry-transition {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  background: #101010;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.city-entry-transition.visible {
  opacity: 1;
  visibility: visible;
}

.city-entry-transition-core,
.city-entry-transition-core-video {
  position: relative;
  width: 100vw;
  height: 100svh;
  max-width: 100vw;
  max-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #101010;
}

.city-entry-transition-video {
  display: block;
  width: 100vw;
  height: 100svh;
  max-width: 100vw;
  max-height: 100svh;
  object-fit: cover;
  object-position: center center;
  margin: 0 auto;
  padding: 0;
  background: #101010;
  user-select: none;
  color: transparent;
  font-size: 0;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-itinerary .setup-map-line-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-itinerary .setup-map-line-a,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-offline .setup-map-line-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-offline .setup-map-line-a,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-preview-itinerary .setup-map-line-a {
  left: 16%;
  top: 34%;
  width: 38%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-accent-highlight));
  transform: rotate(22deg);
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-itinerary .setup-map-line-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-itinerary .setup-map-line-b,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-offline .setup-map-line-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-offline .setup-map-line-b,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-preview-itinerary .setup-map-line-b {
  left: 48%;
  top: 58%;
  width: 26%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-accent-highlight));
  transform: rotate(-28deg);
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-itinerary .setup-map-pin-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-itinerary .setup-map-pin-a,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-offline .setup-map-pin-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-offline .setup-map-pin-a,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-preview-itinerary .setup-map-pin-a {
  left: 18%;
  top: 28%;
  background: #2563eb;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-itinerary .setup-map-pin-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-itinerary .setup-map-pin-b,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-offline .setup-map-pin-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-offline .setup-map-pin-b,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-preview-itinerary .setup-map-pin-b {
  left: 50%;
  top: 50%;
  background: #38bdf8;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-itinerary .setup-map-pin-c,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-itinerary .setup-map-pin-c,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-offline .setup-map-pin-c,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-offline .setup-map-pin-c,
body.modern-v5 .modal-card.build-tour-suggest-modal .setup-map-preview-itinerary .setup-map-pin-c {
  left: 70%;
  top: 34%;
  background: #fb923c;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-full_map .setup-map-line-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-full_map .setup-map-line-a,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-online .setup-map-line-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-online .setup-map-line-a {
  left: 10%;
  top: 36%;
  width: 78%;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.25), rgba(56, 189, 248, 0.22));
  transform: rotate(-8deg);
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-full_map .setup-map-line-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-full_map .setup-map-line-b,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-online .setup-map-line-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-online .setup-map-line-b {
  left: 12%;
  top: 64%;
  width: 70%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(var(--gold-accent-rgb), 0.2));
  transform: rotate(10deg);
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-full_map .setup-map-pin-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-full_map .setup-map-pin-a,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-online .setup-map-pin-a,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-online .setup-map-pin-a {
  left: 20%;
  top: 30%;
  background: #38bdf8;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-full_map .setup-map-pin-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-full_map .setup-map-pin-b,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-online .setup-map-pin-b,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-online .setup-map-pin-b {
  left: 44%;
  top: 52%;
  background: #2563eb;
}

body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-full_map .setup-map-pin-c,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-full_map .setup-map-pin-c,
body.modern-v5 .modal-card.map-mode-modal .setup-map-preview-online .setup-map-pin-c,
body.modern-v5 .modal-card.offline-access-modal .setup-map-preview-online .setup-map-pin-c {
  left: 68%;
  top: 26%;
  background: #fb923c;
}

@media (min-width: 760px) {
  body.modern-v5 .map-mode-grid,
  body.modern-v5 .plan-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .rome-map-point-photo {
    width: 32px;
    height: 32px;
  }

  .rome-map-point-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .94),
      0 0 0 2px var(--marker-outline),
      0 7px 12px rgba(15, 23, 42, .22);
  }

  .rome-map-point-type-badge {
    right: -4px;
    top: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.38),
      0 0 0 3px rgba(29, 78, 216, .14),
      0 8px 12px rgba(15, 23, 42, .18);
  }
  .rome-map-priority-badge {
    top: 1px;
    padding: 2px 3px;
  }
  .rome-map-priority-star {
    font-size: 8px;
  }

  .rome-map-point-shell.is-dot .rome-map-point-type-badge {
    right: -4px;
    top: -4px;
  }

  .rome-map-tour-badge {
    left: -4px;
    bottom: -3px;
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .build-tour-tray {
    left: 10px;
    right: 10px;
    bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  }

  .build-tour-mode-switcher {
    top: max(10px, calc(env(safe-area-inset-top, 0px) + 10px));
  }

  .build-tour-tray-toggle {
    right: 10px;
  }

  .build-tour-tray-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .map-rights-control {
    left: 10px;
    right: auto;
    bottom: max(6px, calc(env(safe-area-inset-bottom, 0px) + 6px));
  }

  .build-tour-dashboard-shell {
    width: 100%;
    gap: 8px;
    padding: 11px 12px 11px;
  }

  .build-tour-dashboard-head {
    align-items: center;
  }

  .build-tour-dashboard-head-actions {
    gap: 6px;
  }

  .build-tour-dashboard-title {
    font-size: 15px;
  }

  .build-tour-dashboard-note {
    font-size: 11px;
  }

  .build-tour-dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .build-tour-dashboard-chip {
    padding: 8px 9px;
  }

  .build-tour-dashboard-chip span {
    font-size: 9px;
  }

  .build-tour-dashboard-chip strong {
    font-size: 12px;
  }

  .build-tour-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-tour-dashboard-actions-suggest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-tour-dashboard-actions-suggest .build-tour-dashboard-edit {
    grid-column: 1 / -1;
  }

  .build-tour-dashboard-edit,
  .build-tour-dashboard-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.modern-v5 .build-tour-summary-metrics {
    grid-template-columns: 1fr;
  }

  body.modern-v5 .build-tour-summary-actions {
    align-items: stretch;
  }

  body.modern-v5 .build-tour-summary-footer-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  body.modern-v5 .build-tour-summary-footer-actions .btn {
    flex: 1 1 0;
  }

  body.modern-v5 .build-tour-summary-footer-or {
    width: 100%;
    text-align: center;
  }

  body.modern-v5 .build-tour-summary-row,
  body.modern-v5 .build-tour-place-row,
  body.modern-v5 .build-tour-suggest-stop-row {
    grid-template-columns: 30px minmax(0, 1fr) 60px;
    padding: 10px;
  }

  body.modern-v5 .build-tour-place-row.has-remove {
    grid-template-columns: 30px minmax(0, 1fr) 60px;
  }

  body.modern-v5 .build-tour-place-order {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  body.modern-v5 .build-tour-place-thumb {
    width: 60px;
    height: 72px;
    min-width: 60px;
    min-height: 72px;
    border-radius: 14px;
  }

  body.modern-v5 .build-tour-place-copy .map-menu-row-title {
    font-size: 13px;
    line-height: 1.34;
  }

  body.modern-v5 .build-tour-place-meta {
    gap: 4px;
  }

  body.modern-v5 .build-tour-place-token {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.modern-v5 .build-tour-place-remove {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.modern-v5 .build-tour-suggest-proposal-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.modern-v5 .build-tour-suggest-grid,
  body.modern-v5 .build-tour-suggest-controls,
  body.modern-v5 .build-tour-suggest-card-metrics {
    grid-template-columns: 1fr;
  }

  body.modern-v5 .build-tour-suggest-shell {
    padding: 0 14px 12px;
  }

  body.modern-v5 .build-tour-suggest-actions {
    grid-template-columns: 1fr auto;
    padding: 0 16px 18px;
  }

  body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-actions {
    grid-template-columns: 1fr auto !important;
    padding: 0 16px 18px;
  }

  .modal-layer {
    padding:
      calc(10px + env(safe-area-inset-top, 0px))
      6px
      calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body.modern-v5 .build-tour-suggest-rule-row,
  body.modern-v5 .build-tour-suggest-stop-row {
    align-items: start;
  }

  body.modern-v5 .build-tour-suggest-row-control,
  body.modern-v5 .build-tour-suggest-rule-btn {
    grid-column: 2 / -1;
    width: 100%;
    margin-left: 0;
  }

  body.modern-v5 .build-tour-suggest-row-control {
    justify-content: stretch;
  }

  body.modern-v5 .build-tour-suggest-rule-selection {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select,
  body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number,
  body.modern-v5 .build-tour-suggest-rule-btn {
    width: 100%;
    min-width: 0;
  }

  body.modern-v5 .build-tour-suggest-rule-state {
    width: 100%;
    min-width: 0;
  }

  body.modern-v5 .build-tour-suggest-row-control-km {
    justify-content: stretch;
  }

  body.modern-v5 .build-tour-suggest-live-map-shell,
  body.modern-v5 .build-tour-suggest-mini-map-empty {
    min-height: 146px;
  }

  body.modern-v5 .build-tour-suggest-live-map {
    height: 146px;
  }
}



/* V125 MINIMAL FIX: arrows + history row only. No theme/global boot overrides. */
.place-detail-meta-main {
  min-width: 0;
  flex: 1 1 220px;
}
.place-detail-meta-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  flex-wrap: wrap;
}
.place-detail-disclosure summary::after {
  content: "▾";
  color: var(--gold-accent);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.place-detail-disclosure[open] summary::after {
  content: "▴";
}
@media (max-width: 760px) {
  .place-detail-meta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


.build-pill{
  position:fixed;
  top:92px;
  right:16px;
  z-index:95;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(245,158,11,.36);
  background:rgba(7,17,31,.96);
  color:#fde68a;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  box-shadow:0 14px 34px rgba(0,0,0,.34);
  pointer-events:none;
}
body:not(.atg-debug-build-pill) .build-pill{display:none!important;visibility:hidden!important;opacity:0!important;}
@media (max-width: 900px){.build-pill{top:140px}}
@media (max-width: 640px){.build-pill{top:176px;right:12px;font-size:11px;padding:8px 12px}}

.theme-dock-toggle{
  position: fixed;
  left: max(12px, calc(env(safe-area-inset-left, 0px) + 12px));
  bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 1400;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,250,244,.96);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15,23,42,.12);
  font-weight: 800;
  cursor: pointer;
}
body.app-theme-dark .theme-dock-toggle{
  background: rgba(10,18,37,.96);
  border-color: rgba(121,167,255,.22);
  color: #f5f8ff;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
body.modern-v5.app-theme-light .build-tour-suggest-chip,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove{
  color: #1f2937 !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-chip{
  background: rgba(var(--gold-shadow-rgb),0.12) !important;
  border-color: rgba(143,74,36,0.18) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-chip-flag{
  color: #6b4a12 !important;
  background: rgba(var(--gold-shadow-rgb),0.14) !important;
  border-color: rgba(143,74,36,0.18) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-toggle{
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(148,163,184,0.18) !important;
}


/* ===== V130 POPUP-LIGHT UNIFICATION ===== */
body.modern-v5.app-theme-light {
  --ui-bg-1: #f7f9fc;
  --ui-bg-2: #edf2f8;
  --ui-ink: #09111f;
  --ui-ink-soft: #475569;
  --ui-panel: rgba(255,255,255,.97);
  --ui-panel-border: rgba(15,23,42,.10);
  --ui-accent: #8a5a00;
  --ui-accent-2: #275df6;
  --ui-accent-soft: rgba(245,158,11,.10);
  --ui-deep: #09111f;
  background:
    radial-gradient(circle at 16% 12%, rgba(245,158,11,.10), transparent 16%),
    radial-gradient(circle at 84% 10%, rgba(39,93,246,.10), transparent 16%),
    radial-gradient(circle at 50% 120%, rgba(245,158,11,.08), transparent 30%),
    linear-gradient(180deg,#f7f9fc 0%, #edf2f8 48%, #e7edf5 100%) !important;
}

body.modern-v5.app-theme-light .wizard-view::before {
  background: radial-gradient(circle, rgba(245,158,11,.10), transparent 66%);
}
body.modern-v5.app-theme-light .wizard-view::after {
  background: radial-gradient(circle, rgba(39,93,246,.08), transparent 68%);
}

body.modern-v5.app-theme-light .wizard-section-head h2,
body.modern-v5.app-theme-light .pick-card-title,
body.modern-v5.app-theme-light .tour-card h4,
body.modern-v5.app-theme-light .metric-pill,
body.modern-v5.app-theme-light .map-popup .p-title,
body.modern-v5.app-theme-light .map-legend-modal h3,
body.modern-v5.app-theme-light .video-options-title,
body.modern-v5.app-theme-light .app-sheet-title,
body.modern-v5.app-theme-light .panel-block h3,
body.modern-v5.app-theme-light .entry-brief-item-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-section-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-sub,
body.modern-v5.app-theme-light .build-tour-place-copy .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-dashboard-chip strong,
body.modern-v5.app-theme-light .build-tour-dashboard-actions-title,
body.modern-v5.app-theme-light .build-tour-summary-title {
  color: #09111f !important;
}

body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .pick-card-subtitle,
body.modern-v5.app-theme-light .tour-card-route,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy,
body.modern-v5.app-theme-light .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .hint,
body.modern-v5.app-theme-light .build-tour-place-meta,
body.modern-v5.app-theme-light .build-tour-summary-copy,
body.modern-v5.app-theme-light .build-tour-summary-footer-or,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-rights-line,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3 {
  color: #475569 !important;
}

body.modern-v5.app-theme-light .btn,
body.modern-v5.app-theme-light .app-sheet-back,
body.modern-v5.app-theme-light .app-sheet-secondary,
body.modern-v5.app-theme-light .map-menu-sheet-back,
body.modern-v5.app-theme-light .build-tour-dashboard-edit,
body.modern-v5.app-theme-light .build-tour-dashboard-btn,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove,
body.modern-v5.app-theme-light .build-tour-place-remove,
body.modern-v5.app-theme-light .entry-compare-btn,
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,253,.965)) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #09111f !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.10) !important;
}

body.modern-v5.app-theme-light .pick-card.active,
body.modern-v5.app-theme-light .tour-card-status,
body.modern-v5.app-theme-light .build-tour-suggest-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-place-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-metric,
body.modern-v5.app-theme-light .build-tour-summary-metric,
body.modern-v5.app-theme-light .build-tour-summary-chip {
  background: linear-gradient(180deg, rgba(255,255,255,.992), rgba(245,248,252,.975)) !important;
  border-color: rgba(15,23,42,.10) !important;
  color: #09111f !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.08) !important;
}

body.modern-v5.app-theme-light .entry-city-hero-media,
body.modern-v5.app-theme-light .avatar-preview-box,
body.modern-v5.app-theme-light .map-popup-photo-wrap,
body.modern-v5.app-theme-light .build-tour-place-thumb,
body.modern-v5.app-theme-light .build-tour-summary-map,
body.modern-v5.app-theme-light .tour-preview-map {
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,248,252,.97)) !important;
  border-color: rgba(15,23,42,.10) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.12) !important;
}

body.modern-v5.app-theme-light .theme-dock-toggle {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,253,.94)) !important;
  color: #8a5a00 !important;
  border-color: rgba(var(--gold-rgb),.34) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.10) !important;
}


/* ===== V130 THEME SPLIT HARDENING ===== */
body.modern-v5.app-theme-light .build-tour-dashboard-shell,
body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-light .modal-card.modal-card-avatar-picker.app-sheet,
body.modern-v5.app-theme-light .modal-card.build-tour-suggest-modal,
body.modern-v5.app-theme-light .modal-card.plan-compare-modal.build-tour-summary-modal,
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface,
body.modern-v5.app-theme-light .place-detail-disclosure,
body.modern-v5.app-theme-light .place-detail-inline-btn,
body.modern-v5.app-theme-light .place-detail-action-btn-build {
  background: linear-gradient(180deg, rgba(255,255,255,.988), rgba(246,248,252,.98)) !important;
  border-color: rgba(15,23,42,.10) !important;
  box-shadow: 0 20px 46px rgba(15,23,42,.09), 0 0 0 1px rgba(255,255,255,.65) inset !important;
  color: #09111f !important;
}
body.modern-v5.app-theme-light .modal-layer.modal-layer-surface {
  background:
    radial-gradient(circle at 14% 14%, rgba(245,158,11,.10), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(39,93,246,.08), transparent 18%),
    linear-gradient(180deg, #f7f9fc 0%, #edf2f8 44%, #e7edf5 100%) !important;
}
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .place-detail-disclosure summary,
body.modern-v5.app-theme-light .place-detail-inline-btn-label,
body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .build-tour-summary-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title {
  color: #18212d !important;
}
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy,
body.modern-v5.app-theme-light .build-tour-dashboard-note,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty {
  color: #556070 !important;
}
body.modern-v5.app-theme-light .place-detail-kv-label,
body.modern-v5.app-theme-light .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-light .build-tour-dashboard-chip span,
body.modern-v5.app-theme-light .build-tour-summary-chip span,
body.modern-v5.app-theme-light .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-kicker {
  color: #8a5a00 !important;
}
body.modern-v5.app-theme-light .place-detail-inline-btn-icon,
body.modern-v5.app-theme-light .place-detail-disclosure summary::after,
body.modern-v5.app-theme-light .place-detail-action-btn-build {
  color: #b36d18 !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .place-detail-hero-media,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-departure,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-suggest-section-panel,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-card,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block,
body.modern-v5.app-theme-light .build-tour-suggest-empty-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,239,229,.985)) !important;
  border-color: rgba(143,74,36,.14) !important;
  box-shadow: 0 12px 28px rgba(61,44,27,.10), inset 0 1px 0 rgba(255,255,255,.84) !important;
  color: #1f2937 !important;
}
body.modern-v5.app-theme-dark .modal-layer.modal-layer-surface {
  background:
    radial-gradient(circle at 14% 14%, rgba(245,158,11,.14), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(59,130,246,.10), transparent 18%),
    linear-gradient(180deg, rgba(11,22,38,.985), rgba(7,16,29,.995)) !important;
}
body.modern-v5.app-theme-dark .build-tour-dashboard-shell,
body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-dark .modal-card.modal-card-avatar-picker.app-sheet,
body.modern-v5.app-theme-dark .modal-card.build-tour-suggest-modal,
body.modern-v5.app-theme-dark .modal-card.plan-compare-modal.build-tour-summary-modal,
body.modern-v5.app-theme-dark .modal-card.app-sheet.app-sheet-surface,
body.modern-v5.app-theme-dark .place-detail-disclosure,
body.modern-v5.app-theme-dark .place-detail-inline-btn {
  background:
    linear-gradient(180deg, rgba(12,18,32,.96), rgba(9,14,26,.98)),
    radial-gradient(circle at top, rgba(var(--gold-shadow-rgb),.08), transparent 46%) !important;
  border-color: rgba(var(--gold-border-rgb),0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 24px 60px rgba(0,0,0,0.34) !important;
  color: #f8fafc !important;
}
body.modern-v5.app-theme-dark .place-detail-action-btn-build {
  border-color: rgba(var(--gold-accent-rgb),.34) !important;
  background:
    linear-gradient(180deg, rgba(255,224,148,.11), rgba(255,224,148,0) 34%),
    linear-gradient(180deg, rgba(20,35,56,.98), rgba(10,19,33,.99)) !important;
  color: var(--gold-accent) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 0 1px rgba(var(--gold-accent-rgb),0.08), 0 14px 28px rgba(0,0,0,0.22), 0 10px 24px rgba(var(--gold-rgb),0.12) !important;
}
body.modern-v5.app-theme-dark .place-detail-title,
body.modern-v5.app-theme-dark .place-detail-disclosure summary,
body.modern-v5.app-theme-dark .place-detail-inline-btn-label,
body.modern-v5.app-theme-dark .build-tour-dashboard-title,
body.modern-v5.app-theme-dark .build-tour-summary-title,
body.modern-v5.app-theme-dark .build-tour-suggest-section-title,
body.modern-v5.app-theme-dark .build-tour-suggest-card-title,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-dark .build-tour-suggest-selected-title,
body.modern-v5.app-theme-dark .build-tour-suggest-result-title,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip strong,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure strong,
body.modern-v5.app-theme-dark .build-tour-summary-chip strong {
  color: #f8fafc !important;
}
body.modern-v5.app-theme-dark .place-detail-subtitle,
body.modern-v5.app-theme-dark .place-detail-meta-line,
body.modern-v5.app-theme-dark .place-detail-text,
body.modern-v5.app-theme-dark .place-detail-empty,
body.modern-v5.app-theme-dark .place-detail-kv-value,
body.modern-v5.app-theme-dark .place-detail-hero-missing-copy,
body.modern-v5.app-theme-dark .build-tour-dashboard-note,
body.modern-v5.app-theme-dark .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-dark .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-dark .build-tour-summary-meta,
body.modern-v5.app-theme-dark .build-tour-summary-eta,
body.modern-v5.app-theme-dark .build-tour-summary-note,
body.modern-v5.app-theme-dark .build-tour-suggest-section-note,
body.modern-v5.app-theme-dark .build-tour-suggest-card-note,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-dark .build-tour-suggest-result-meta,
body.modern-v5.app-theme-dark .build-tour-suggest-route,
body.modern-v5.app-theme-dark .build-tour-suggest-empty {
  color: rgba(226,232,240,.82) !important;
}
body.modern-v5.app-theme-dark .place-detail-kv-label,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip span,
body.modern-v5.app-theme-dark .build-tour-summary-chip span,
body.modern-v5.app-theme-dark .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-kicker,
body.modern-v5.app-theme-dark .place-detail-inline-btn-icon,
body.modern-v5.app-theme-dark .place-detail-disclosure summary::after {
  color: var(--gold-accent) !important;
}
body.modern-v5.app-theme-dark .place-detail-hero-media,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure,
body.modern-v5.app-theme-dark .build-tour-summary-chip,
body.modern-v5.app-theme-dark .build-tour-summary-row,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row,
body.modern-v5.app-theme-dark .build-tour-suggest-card,
body.modern-v5.app-theme-dark .build-tour-suggest-empty-panel {
  background: linear-gradient(180deg, rgba(24,31,46,.82), rgba(15,23,36,.88)) !important;
  border-color: rgba(var(--gold-shadow-rgb),.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
  color: #f8fafc !important;
}


/* ===== V130 PREMIUM SURFACE POLISH ===== */
body.modern-v5.app-theme-light .topbar{
  background:linear-gradient(90deg, rgba(255,255,255,.985), rgba(246,248,252,.98)) !important;
  border-bottom:1px solid rgba(15,23,42,.08) !important;
  box-shadow:0 18px 38px rgba(15,23,42,.08) !important;
}
body.modern-v5.app-theme-light .brand,
body.modern-v5.app-theme-light .cmd-title,
body.modern-v5.app-theme-light .panel-block h3,
body.modern-v5.app-theme-light .tour-card-status,
body.modern-v5.app-theme-light .node-item,
body.modern-v5.app-theme-light .leaflet-tooltip.node-tip{
  color:#18212d !important;
}
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .checks-row label,
body.modern-v5.app-theme-light .node-item .nline,
body.modern-v5.app-theme-light .gallery-caption{
  color:#556070 !important;
}
body.modern-v5.app-theme-light input,
body.modern-v5.app-theme-light select,
body.modern-v5.app-theme-light .language-select,
body.modern-v5.app-theme-light .node-item,
body.modern-v5.app-theme-light .leaflet-tooltip.node-tip,
body.modern-v5.app-theme-light .modal-card.modal-card-start{
  background:linear-gradient(180deg, rgba(255,255,255,.992), rgba(246,248,252,.978)) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 16px 34px rgba(15,23,42,.08), 0 0 0 1px rgba(255,255,255,.70) inset !important;
  color:#09111f !important;
}
body.modern-v5.app-theme-light .left-panel,
body.modern-v5.app-theme-light .right-panel,
body.modern-v5.app-theme-light .panel-block{
  background:linear-gradient(180deg, rgba(255,255,255,.975), rgba(246,248,252,.965)) !important;
  border-color:rgba(15,23,42,.08) !important;
}
body.modern-v5.app-theme-light .center-panel,
body.modern-v5.app-theme-light .avatar-panel,
body.modern-v5.app-theme-light .video-wrap{
  background:linear-gradient(180deg, rgba(249,251,254,1), rgba(238,243,249,1)) !important;
}
body.modern-v5.app-theme-light .pick-card:hover,
body.modern-v5.app-theme-light .node-item:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(15,23,42,.10), 0 0 0 1px rgba(255,255,255,.72) inset !important;
}
body.modern-v5.app-theme-light .pick-card.active,
body.modern-v5.app-theme-light .node-item.active{
  background:linear-gradient(180deg, rgba(255,249,240,.995), rgba(246,231,210,.985)) !important;
  border-color:rgba(var(--gold-rgb),.26) !important;
  box-shadow:0 18px 38px rgba(160,108,46,.14), 0 0 0 1px rgba(255,255,255,.74) inset !important;
}
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle{
  border-radius:16px !important;
  box-shadow:0 14px 28px rgba(15,23,42,.10), 0 0 0 1px rgba(255,255,255,.66) inset !important;
}
body.modern-v5.app-theme-light .map-popup .p-token,
body.modern-v5.app-theme-light .tour-start-chip{
  background:rgba(245,158,11,.10) !important;
  border-color:rgba(var(--gold-rgb),.24) !important;
  color:#8a5a00 !important;
}
body.modern-v5.app-theme-light .map-popup .p-title,
body.modern-v5.app-theme-light .nav-hud .hud-line-2,
body.modern-v5.app-theme-light .tour-start-name{
  color:#09111f !important;
}
body.modern-v5.app-theme-light .map-popup .p-meta,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .tour-start-summary{
  color:#556070 !important;
}


/* ===== V131 LIGHT MENU-ROW / RULE CONTRAST FIX ===== */
body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row {
  background: linear-gradient(180deg, rgba(255,255,255,.992), rgba(247,241,233,.984)) !important;
  border-color: rgba(var(--gold-rgb),.18) !important;
  color: #18212d !important;
  box-shadow: 0 18px 38px rgba(61,44,27,.10), 0 0 0 1px rgba(255,255,255,.74) inset !important;
}
body.modern-v5.app-theme-light .map-menu-row:hover,
body.modern-v5.app-theme-light .map-menu-row:focus-visible,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row:hover,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row:focus-visible,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row:hover,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row:focus-visible {
  border-color: rgba(var(--gold-rgb),.28) !important;
  box-shadow: 0 22px 44px rgba(61,44,27,.12), 0 0 0 1px rgba(255,255,255,.76) inset !important;
}
body.modern-v5.app-theme-light .map-menu-row-premium,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main {
  background: linear-gradient(180deg, rgba(255,249,239,.995), rgba(246,233,211,.985)) !important;
  border-color: rgba(var(--gold-rgb),.24) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row::before {
  background: rgba(var(--gold-rgb),.26) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main::before {
  background: linear-gradient(180deg, rgba(var(--gold-rgb),.96), rgba(190,106,45,.92)) !important;
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.12) !important;
}
body.modern-v5.app-theme-light .map-menu-row-icon {
  background: rgba(245,158,11,.10) !important;
  border-color: rgba(var(--gold-rgb),.22) !important;
  color: #c58a18 !important;
}
body.modern-v5.app-theme-light .map-menu-row-title {
  color: #18212d !important;
}
body.modern-v5.app-theme-light .map-menu-row-subtitle {
  color: #64748b !important;
}
body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after {
  color: #c58a18 !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-stop-order {
  background: rgba(245,158,11,.10) !important;
  border-color: rgba(var(--gold-rgb),.22) !important;
  color: #8a5a00 !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit {
  color: #8a5a00 !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select {
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(246,248,252,.982)) !important;
  border-color: rgba(var(--gold-rgb),.24) !important;
  color: #18212d !important;
  box-shadow: inset 3px 0 0 rgba(var(--gold-shadow-rgb),.82), inset 0 1px 0 rgba(255,255,255,.82), 0 10px 22px rgba(61,44,27,.06) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-selection {
  justify-items: end;
}
body.modern-v5.app-theme-light .build-tour-suggest-row-control-km {
  min-width: 118px;
}


/* ===== V132 APP LIGHT HARD VERIFICATION PASS ===== */
body.modern-v5.app-theme-light .map-menu-list,
body.modern-v5.app-theme-light .build-tour-suggest-rules-list,
body.modern-v5.app-theme-light .build-tour-suggest-stop-list,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu,
body.modern-v5.app-theme-light .map-menu-row{
  color:#18212d !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu,
body.modern-v5.app-theme-light .map-menu-row{
  background:linear-gradient(180deg, rgba(255,255,255,.996), rgba(246,239,229,.988)) !important;
  border-color:rgba(143,74,36,.14) !important;
  box-shadow:0 12px 28px rgba(61,44,27,.10), inset 0 1px 0 rgba(255,255,255,.84) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main{
  background:linear-gradient(180deg, rgba(255,250,241,.998), rgba(248,242,232,.99)) !important;
  border-color:rgba(var(--gold-rgb),.24) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row::before{
  background:rgba(var(--gold-rgb),.30) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main::before{
  background:linear-gradient(180deg, rgba(var(--gold-rgb),.98), rgba(190,106,45,.96)) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-copy,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-copy,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate,
body.modern-v5.app-theme-light .build-tour-suggest-row-control,
body.modern-v5.app-theme-light .build-tour-suggest-row-control *,
body.modern-v5.app-theme-light .build-tour-suggest-rule-selection,
body.modern-v5.app-theme-light .build-tour-suggest-rule-selection *,
body.modern-v5.app-theme-light .build-tour-suggest-switch,
body.modern-v5.app-theme-light .build-tour-suggest-switch *,
body.modern-v5.app-theme-light .map-menu-row-icon,
body.modern-v5.app-theme-light .map-menu-row-arrow{
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select{
  color:#18212d !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-subtitle{
  color:#64748b !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .map-menu-row-icon,
body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after{
  color:#c58a18 !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-switch-ui{
  background:rgba(226,232,240,.92) !important;
  border-color:rgba(148,163,184,.34) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-switch-ui::after{
  background:linear-gradient(180deg, rgba(255,255,255,.995), rgba(248,250,253,.985)) !important;
  box-shadow:0 8px 18px rgba(15,23,42,.14) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui{
  background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight)) !important;
  border-color:rgba(var(--gold-rgb),.34) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui::after{
  background:#ffffff !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select{
  background:linear-gradient(180deg, rgba(255,255,255,.998), rgba(246,248,252,.986)) !important;
  border-color:rgba(var(--gold-rgb),.26) !important;
  box-shadow:inset 3px 0 0 rgba(var(--gold-shadow-rgb),.82), inset 0 1px 0 rgba(255,255,255,.86), 0 10px 22px rgba(61,44,27,.06) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select option{
  color:#18212d !important;
  background:#ffffff !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-number::placeholder,
body.modern-v5.app-theme-light .build-tour-suggest-select::placeholder{
  color:#64748b !important;
}


/* ===== V133 ULTRA LIGHT CONSISTENCY PASS ===== */
body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-dashboard-shell,
body.modern-v5.app-theme-light .build-tour-suggest-section-panel,
body.modern-v5.app-theme-light .build-tour-suggest-card,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block,
body.modern-v5.app-theme-light .build-tour-suggest-empty-panel,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-departure,
body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-light .place-detail-disclosure,
body.modern-v5.app-theme-light .place-detail-inline-btn,
body.modern-v5.app-theme-light .place-detail-action-btn-build{
  background:linear-gradient(180deg, rgba(255,255,255,.998), rgba(246,248,252,.992)) !important;
  border-color:rgba(148,163,184,.22) !important;
  box-shadow:0 18px 38px rgba(15,23,42,.08), 0 0 0 1px rgba(255,255,255,.74) inset !important;
  color:#18212d !important;
  opacity:1 !important;
  filter:none !important;
}
body.modern-v5.app-theme-light .map-menu-row-premium,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-dashboard-departure.is-set{
  background:linear-gradient(180deg, rgba(255,251,243,.998), rgba(247,236,217,.992)) !important;
  border-color:rgba(var(--gold-rgb),.28) !important;
}
body.modern-v5.app-theme-light .map-menu-row-copy,
body.modern-v5.app-theme-light .map-menu-row-copy *,
body.modern-v5.app-theme-light .build-tour-place-copy,
body.modern-v5.app-theme-light .build-tour-place-copy *,
body.modern-v5.app-theme-light .build-tour-suggest-row-control,
body.modern-v5.app-theme-light .build-tour-suggest-row-control *,
body.modern-v5.app-theme-light .build-tour-dashboard-copy,
body.modern-v5.app-theme-light .build-tour-dashboard-copy *,
body.modern-v5.app-theme-light .place-detail-body,
body.modern-v5.app-theme-light .place-detail-body *{
  opacity:1 !important;
  filter:none !important;
}
body.modern-v5.app-theme-light .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .build-tour-summary-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title,
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .place-detail-disclosure summary{
  color:#18212d !important;
  text-shadow:none !important;
}
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-dashboard-note,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy{
  color:#4b5563 !important;
  text-shadow:none !important;
}
body.modern-v5.app-theme-light .map-menu-row-icon,
body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after,
body.modern-v5.app-theme-light .place-detail-inline-btn-icon,
body.modern-v5.app-theme-light .place-detail-disclosure summary::after{
  color:#b7791f !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-light .build-tour-dashboard-chip span,
body.modern-v5.app-theme-light .build-tour-summary-chip span,
body.modern-v5.app-theme-light .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-kicker,
body.modern-v5.app-theme-light .place-detail-kv-label{
  color:#8a5a00 !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5.app-theme-light .build-tour-suggest-search,
body.modern-v5.app-theme-light .build-tour-time-field input[type="date"],
body.modern-v5.app-theme-light .build-tour-time-field input[type="time"],
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate{
  background:linear-gradient(180deg, rgba(255,255,255,.998), rgba(247,249,252,.992)) !important;
  color:#18212d !important;
  border-color:rgba(var(--gold-rgb),.24) !important;
  box-shadow:inset 3px 0 0 rgba(var(--gold-shadow-rgb),.82), inset 0 1px 0 rgba(255,255,255,.88), 0 10px 20px rgba(15,23,42,.05) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number::placeholder,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select::placeholder,
body.modern-v5.app-theme-light .build-tour-suggest-search::placeholder{
  color:#64748b !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select option{
  background:#ffffff !important;
  color:#18212d !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-rule-row::before{
  background:rgba(var(--gold-rgb),.28) !important;
  box-shadow:none !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-stop-order{
  background:rgba(245,158,11,.10) !important;
  border-color:rgba(var(--gold-rgb),.24) !important;
  color:#8a5a00 !important;
}
body.modern-v5.app-theme-light .place-detail-hero-media{
  background:linear-gradient(180deg, rgba(248,242,234,.998), rgba(238,230,219,.992)) !important;
  border-color:rgba(148,163,184,.18) !important;
}
body.modern-v5.app-theme-light .place-detail-close-btn,
body.modern-v5.app-theme-light .place-detail-action-btn-history{
  color:var(--gold-btn-ink) !important;
  background:linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight)) !important;
  border-color:rgba(var(--gold-border-rgb),.38) !important;
  box-shadow:0 14px 28px rgba(var(--gold-rgb),.22) !important;
}
body.modern-v5.app-theme-light .place-detail-inline-btn-secondary,
body.modern-v5.app-theme-light .place-detail-inline-btn{
  color:#18212d !important;
}

/* ===== V134 PREMIUM NAV / BUILD TOUR GRAPHICS PASS ===== */
body.modern-v5 .map-menu-row,
body.modern-v5 .build-tour-suggest-stop-row,
body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-rule-row-main,
body.modern-v5 .build-tour-suggest-rule-row-menu {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

body.modern-v5 .map-menu-row::after,
body.modern-v5 .build-tour-suggest-stop-row::after,
body.modern-v5 .build-tour-suggest-rule-row::after,
body.modern-v5 .build-tour-suggest-rule-row-main::after,
body.modern-v5 .build-tour-suggest-rule-row-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 100% 0%, rgba(var(--gold-accent-rgb),0.12), transparent 42%);
  opacity: 1;
}

body.modern-v5 .map-menu-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(var(--gold-accent-rgb),0.28);
  background: linear-gradient(180deg, rgba(19,25,63,0.96), rgba(12,18,48,0.98));
  color: #f7d488;
  box-shadow:
    0 12px 24px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

body.modern-v5 .map-menu-row-arrow,
body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-accent-rgb),0.30);
  background: linear-gradient(180deg, rgba(19,25,63,0.98), rgba(12,18,48,0.99));
  color: #f7d488 !important;
  box-shadow:
    0 12px 24px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.05);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none !important;
}

body.modern-v5 .map-menu-row-arrow {
  flex: 0 0 36px;
}

body.modern-v5 .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-activate {
  padding-right: 58px;
}

body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  right: 10px;
}

body.modern-v5 .map-menu-row:hover,
body.modern-v5 .map-menu-row:focus-visible,
body.modern-v5 .build-tour-suggest-stop-row:hover,
body.modern-v5 .build-tour-suggest-stop-row:focus-visible,
body.modern-v5 .build-tour-suggest-rule-row:hover,
body.modern-v5 .build-tour-suggest-rule-row:focus-visible,
body.modern-v5 .build-tour-suggest-rule-row-main:hover,
body.modern-v5 .build-tour-suggest-rule-row-main:focus-visible,
body.modern-v5 .build-tour-suggest-rule-row-menu:hover,
body.modern-v5 .build-tour-suggest-rule-row-menu:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(0,0,0,0.24);
}

body.modern-v5.app-theme-dark .map-menu-row,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-menu {
  background:
    linear-gradient(180deg, rgba(18,25,41,0.97), rgba(8,14,27,0.99)),
    radial-gradient(circle at 100% 0%, rgba(var(--gold-accent-rgb),0.08), transparent 44%) !important;
  border-color: rgba(var(--gold-accent-rgb),0.18) !important;
  box-shadow:
    0 18px 38px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

body.modern-v5.app-theme-dark .map-menu-row-premium,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main {
  background:
    linear-gradient(180deg, rgba(42,30,12,0.98), rgba(18,14,10,0.99)),
    radial-gradient(circle at 100% 0%, rgba(255,224,148,0.14), transparent 42%) !important;
  border-color: rgba(var(--gold-accent-rgb),0.32) !important;
}

body.modern-v5.app-theme-dark .map-menu-row-title,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row .map-menu-row-title,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row .map-menu-row-title {
  color: #f8fafc !important;
}

body.modern-v5.app-theme-dark .map-menu-row-subtitle,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row .map-menu-row-subtitle {
  color: rgba(236,244,255,0.74) !important;
}

body.modern-v5.app-theme-dark .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-activate {
  background: linear-gradient(180deg, rgba(16,24,38,0.96), rgba(9,16,29,0.98)) !important;
  border-color: rgba(var(--gold-accent-rgb),0.22) !important;
  color: #f8fafc !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 24px rgba(0,0,0,0.18) !important;
}

body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.998), rgba(247,241,233,0.992)),
    radial-gradient(circle at 100% 0%, rgba(var(--gold-accent-rgb),0.10), transparent 42%) !important;
  border-color: rgba(191,138,53,0.18) !important;
  box-shadow:
    0 18px 34px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.84) !important;
}

body.modern-v5.app-theme-light .map-menu-row-premium,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main {
  background:
    linear-gradient(180deg, rgba(255,251,243,0.998), rgba(246,232,208,0.992)),
    radial-gradient(circle at 100% 0%, rgba(var(--gold-accent-rgb),0.14), transparent 40%) !important;
  border-color: rgba(var(--gold-rgb),0.26) !important;
}

body.modern-v5.app-theme-light .map-menu-row-icon {
  background: linear-gradient(180deg, rgba(19,25,63,0.98), rgba(12,18,48,0.99)) !important;
  color: #f7d488 !important;
  border-color: rgba(var(--gold-accent-rgb),0.30) !important;
}

body.modern-v5.app-theme-light .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-title {
  color: #18212d !important;
}

body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-subtitle {
  color: #64748b !important;
}

body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after {
  background: linear-gradient(180deg, rgba(19,25,63,0.98), rgba(12,18,48,0.99)) !important;
  color: #f7d488 !important;
  border-color: rgba(var(--gold-accent-rgb),0.30) !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.998), rgba(247,249,252,0.992)) !important;
  color: #18212d !important;
  border-color: rgba(var(--gold-rgb),0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 10px 22px rgba(15,23,42,0.05) !important;
}


/* ===== V135 BUILD TOUR FINAL COHERENCE PASS ===== */
body.modern-v5 .map-menu-row-arrow,
body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  font-family: Arial, sans-serif;
  letter-spacing: 0;
}

body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-stop-row,
body.modern-v5 .build-tour-suggest-rule-row-main,
body.modern-v5 .build-tour-suggest-rule-row-menu {
  overflow: hidden;
}

body.modern-v5 .build-tour-suggest-row-control {
  gap: 10px;
}

body.modern-v5 .build-tour-suggest-rule-selection {
  min-width: 232px;
  align-items: center;
}

body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5 .build-tour-suggest-rule-state,
body.modern-v5 .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-activate {
  min-height: 50px;
  border-width: 1px;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number {
  font-size: 16px;
  font-weight: 900;
}

body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5 .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-activate,
body.modern-v5 .build-tour-suggest-rule-state {
  font-weight: 800;
}

body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number:focus,
body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number:focus-visible,
body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select:focus,
body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select:focus-visible,
body.modern-v5 .build-tour-suggest-rule-btn:focus-visible,
body.modern-v5 .build-tour-suggest-rule-activate:focus-visible,
body.modern-v5 .build-tour-suggest-switch input:focus-visible + .build-tour-suggest-switch-ui {
  outline: none !important;
  border-color: rgba(var(--gold-accent-rgb),0.54) !important;
  box-shadow: 0 0 0 4px rgba(var(--gold-accent-rgb),0.16), 0 14px 28px rgba(0,0,0,0.18) !important;
}

body.modern-v5 .map-menu-row,
body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-stop-row {
  position: relative;
}

body.modern-v5 .map-menu-row::after,
body.modern-v5 .build-tour-suggest-rule-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 44%);
  opacity: 0.9;
}

body.modern-v5 .map-menu-row-icon,
body.modern-v5 .map-menu-row-arrow,
body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  position: relative;
  border-radius: 16px;
  border-width: 1px;
}

body.modern-v5 .map-menu-row-icon::before,
body.modern-v5 .map-menu-row-arrow::before,
body.modern-v5 .build-tour-suggest-rule-btn::before,
body.modern-v5 .build-tour-suggest-rule-activate::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  pointer-events: none;
}

body.modern-v5 .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-activate {
  border-radius: 16px;
}

body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  right: 8px;
}

body.modern-v5.app-theme-light .build-tour-suggest-empty-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.995), rgba(247,249,252,0.988)) !important;
  border-color: rgba(var(--gold-rgb),0.18) !important;
  color: #475569 !important;
  box-shadow: 0 16px 28px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}

body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu {
  border-color: rgba(191,138,53,0.20) !important;
  box-shadow: 0 18px 34px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.86) !important;
}

body.modern-v5.app-theme-light .map-menu-row-premium,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu {
  background:
    linear-gradient(180deg, rgba(255,250,241,0.998), rgba(247,237,220,0.992)),
    radial-gradient(circle at 100% 0%, rgba(var(--gold-accent-rgb),0.16), transparent 42%) !important;
  border-color: rgba(var(--gold-rgb),0.30) !important;
}

body.modern-v5.app-theme-light .map-menu-row-icon,
body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,232,208,0.98)) !important;
  border-color: rgba(191,138,53,0.38) !important;
  color: #8f4a24 !important;
  box-shadow: 0 10px 22px rgba(143,74,36,0.12), inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after {
  font-size: 22px;
  font-weight: 900;
}

body.modern-v5.app-theme-light .map-menu-row-icon {
  background: linear-gradient(180deg, rgba(255,248,236,0.99), rgba(246,232,208,0.98)) !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate {
  background: linear-gradient(180deg, rgba(255,255,255,0.998), rgba(248,250,253,0.992)) !important;
  border: 1px solid rgba(191,138,53,0.26) !important;
  color: #1f2937 !important;
  box-shadow: inset 3px 0 0 rgba(var(--gold-shadow-rgb),0.88), inset 0 1px 0 rgba(255,255,255,0.90), 0 10px 20px rgba(15,23,42,0.05) !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag {
  color: #8f4a24 !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-rule-selection {
  min-width: 240px;
}

body.modern-v5.app-theme-light .build-tour-suggest-switch-ui {
  background: linear-gradient(180deg, rgba(226,232,240,0.96), rgba(214,223,234,0.96)) !important;
  border-color: rgba(148,163,184,0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78) !important;
}

body.modern-v5.app-theme-light .build-tour-suggest-switch-ui::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.998), rgba(247,249,252,0.99)) !important;
  box-shadow: 0 8px 16px rgba(15,23,42,0.12) !important;
}

body.modern-v5.app-theme-dark .map-menu-row-premium,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-menu {
  background:
    linear-gradient(180deg, rgba(31,22,10,0.98), rgba(14,10,8,0.99)),
    radial-gradient(circle at 100% 0%, rgba(var(--gold-accent-rgb),0.12), transparent 42%) !important;
  border-color: rgba(var(--gold-shadow-rgb),0.38) !important;
}

body.modern-v5.app-theme-dark .map-menu-row-icon,
body.modern-v5.app-theme-dark .map-menu-row-arrow,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-activate::after {
  background: linear-gradient(180deg, rgba(23,32,48,0.98), rgba(11,18,31,0.99)) !important;
  border-color: rgba(var(--gold-accent-rgb),0.34) !important;
  color: var(--gold-accent) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

body.modern-v5.app-theme-dark .map-menu-row-arrow,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-activate::after {
  font-size: 22px;
  font-weight: 900;
}

body.modern-v5.app-theme-dark .build-tour-suggest-rule-row,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-menu {
  border-color: rgba(var(--gold-shadow-rgb),0.22) !important;
}

body.modern-v5.app-theme-dark .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-dark .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-state,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-activate {
  border: 1px solid rgba(var(--gold-accent-rgb),0.24) !important;
  box-shadow: inset 3px 0 0 rgba(var(--gold-shadow-rgb),0.82), inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.18) !important;
}

body.modern-v5.app-theme-dark .build-tour-suggest-empty-panel {
  color: rgba(236,244,255,0.82) !important;
}

@media (max-width: 900px) {
  body.modern-v5 .build-tour-suggest-rule-selection {
    min-width: 100%;
    width: 100%;
    justify-items: stretch;
  }

  body.modern-v5 .build-tour-suggest-row-control {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  body.modern-v5 .build-tour-suggest-row-control-km,
  body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select,
  body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number,
  body.modern-v5 .build-tour-suggest-rule-state,
  body.modern-v5 .build-tour-suggest-rule-btn,
  body.modern-v5 .build-tour-suggest-rule-activate {
    width: 100%;
    min-width: 0;
  }
}


/* V138 final build-tour coherence pass */
body.modern-v5 .build-tour-suggest-empty-panel-primary{
  padding:18px 20px !important;
  border-radius:22px !important;
  font-weight:800;
}
body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-stop-row,
body.modern-v5 .map-menu-row{
  grid-template-columns:auto minmax(0,1fr) auto !important;
  gap:14px !important;
  align-items:center !important;
  min-height:96px !important;
  border-radius:24px !important;
}
body.modern-v5 .build-tour-suggest-rule-row-main,
body.modern-v5 .build-tour-suggest-rule-row-menu{
  min-height:98px !important;
}
body.modern-v5 .map-menu-row-copy,
body.modern-v5 .build-tour-suggest-rule-row .map-menu-row-copy,
body.modern-v5 .build-tour-suggest-stop-row .map-menu-row-copy{
  gap:5px !important;
}
body.modern-v5 .map-menu-row-title,
body.modern-v5 .build-tour-suggest-rule-row .map-menu-row-title,
body.modern-v5 .build-tour-suggest-stop-row .map-menu-row-title{
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1.14 !important;
}
body.modern-v5 .map-menu-row-subtitle,
body.modern-v5 .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5 .build-tour-suggest-stop-row .map-menu-row-subtitle{
  font-size:13px !important;
  line-height:1.42 !important;
}
body.modern-v5 .map-menu-row-icon,
body.modern-v5 .map-menu-row-arrow{
  width:42px !important;
  height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1 !important;
  flex:0 0 42px !important;
}
body.modern-v5 .map-menu-row-arrow{
  position:relative;
  font-size:0 !important;
}
body.modern-v5 .map-menu-row-arrow::before{
  content:"›";
  font-size:24px;
  line-height:1;
  font-weight:900;
}
body.modern-v5 .build-tour-suggest-row-control,
body.modern-v5 .build-tour-suggest-rule-selection{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-width:min(42vw,260px);
}
body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5 .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5 .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-state,
body.modern-v5 .build-tour-suggest-rule-activate{
  min-height:46px !important;
  border-radius:16px !important;
  font-weight:800 !important;
}
body.modern-v5 .build-tour-suggest-inline-unit{
  min-width:42px;
  text-align:center;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.1em;
  text-transform:uppercase;
}
body.modern-v5 .build-tour-suggest-switch-ui{
  width:56px !important;
  height:32px !important;
  border-radius:999px !important;
}
body.modern-v5 .build-tour-suggest-switch-ui::after{
  width:24px !important;
  height:24px !important;
  top:3px !important;
  left:4px !important;
}
body.modern-v5 .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui::after{
  transform:translateX(24px) !important;
}
body.modern-v5 .place-detail-disclosure,
body.modern-v5 .place-detail-inline-btn,
body.modern-v5 .place-detail-action-btn-build{
  border-radius:22px !important;
}
body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.985), rgba(246,239,229,0.992)) !important;
  border:1px solid rgba(143,74,36,0.18) !important;
  box-shadow:0 16px 34px rgba(61,44,27,0.10), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}
body.modern-v5.app-theme-light .map-menu-row-premium,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu{
  background:
    linear-gradient(180deg, rgba(255,248,235,0.99), rgba(245,230,203,0.99)) !important;
  border-color:rgba(190,106,45,0.22) !important;
}
body.modern-v5.app-theme-light .map-menu-row-icon,
body.modern-v5.app-theme-light .map-menu-row-arrow{
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,233,216,0.98)) !important;
  border:1px solid rgba(190,106,45,0.18) !important;
  box-shadow:0 10px 22px rgba(61,44,27,0.08) !important;
  color:#8f4a24 !important;
}
body.modern-v5.app-theme-light .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-title{color:#18212d !important;}
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-subtitle{color:#556070 !important;}
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-light .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate{
  background:linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,239,228,0.995)) !important;
  border:1px solid rgba(143,74,36,0.20) !important;
  color:#1f2937 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.78), 0 10px 20px rgba(61,44,27,0.06) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit{color:#8f4a24 !important;}
body.modern-v5.app-theme-light .build-tour-suggest-switch-ui{
  background:linear-gradient(180deg, rgba(233,224,209,0.95), rgba(221,210,191,0.98)) !important;
  border:1px solid rgba(143,74,36,0.16) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui{
  background:linear-gradient(180deg, var(--gold-accent-deep), #be6a2d) !important;
}
body.modern-v5.app-theme-dark .map-menu-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-menu,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row{
  background:
    linear-gradient(180deg, rgba(18,26,41,0.98), rgba(10,17,29,0.995)) !important;
  border:1px solid rgba(255,255,255,0.08) !important;
  box-shadow:0 18px 38px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}
body.modern-v5.app-theme-dark .map-menu-row-premium,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-menu{
  background:linear-gradient(180deg, rgba(40,32,13,0.96), rgba(22,16,9,0.98)) !important;
  border-color:rgba(var(--gold-shadow-rgb),0.36) !important;
}
body.modern-v5.app-theme-dark .map-menu-row-icon,
body.modern-v5.app-theme-dark .map-menu-row-arrow{
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
  border:1px solid rgba(var(--gold-shadow-rgb),0.24) !important;
  color:rgba(255,226,163,0.92) !important;
  box-shadow:0 12px 24px rgba(0,0,0,0.20) !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-row-control .build-tour-suggest-number,
body.modern-v5.app-theme-dark .build-tour-suggest-row-control .build-tour-suggest-select,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-state,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-activate{
  background:linear-gradient(180deg, rgba(18,26,41,0.98), rgba(10,17,29,0.995)) !important;
  border:1px solid rgba(var(--gold-shadow-rgb),0.20) !important;
  color:#f8fafc !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 24px rgba(0,0,0,0.20) !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-inline-unit{color:rgba(255,226,163,0.82) !important;}
body.modern-v5.app-theme-dark .build-tour-suggest-switch-ui{
  background:linear-gradient(180deg, rgba(34,42,56,0.96), rgba(15,23,36,0.98)) !important;
  border:1px solid rgba(var(--gold-shadow-rgb),0.20) !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-switch input:checked + .build-tour-suggest-switch-ui{
  background:linear-gradient(180deg, var(--gold-accent-deep), #8f4a24) !important;
}
@media (max-width: 640px){
  body.modern-v5 .map-menu-row,
  body.modern-v5 .build-tour-suggest-rule-row,
  body.modern-v5 .build-tour-suggest-stop-row{
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:flex-start !important;
  }
  body.modern-v5 .build-tour-suggest-row-control,
  body.modern-v5 .build-tour-suggest-rule-selection{
    grid-column:2 / span 1;
    width:100%;
    justify-content:flex-start !important;
    min-width:0;
    flex-wrap:wrap;
  }
  body.modern-v5 .map-menu-row-arrow{
    display:none !important;
  }
}


/* ===== V140 MENU ARROWS MOBILE FIX ===== */
body.modern-v5{
  --atg-bt-surface-dark: linear-gradient(180deg, rgba(18,25,41,0.97), rgba(8,14,27,0.99));
  --atg-bt-surface-dark-premium: linear-gradient(180deg, rgba(42,30,12,0.98), rgba(18,14,10,0.99));
  --atg-bt-border-dark: rgba(var(--gold-accent-rgb),0.18);
  --atg-bt-border-dark-premium: rgba(var(--gold-accent-rgb),0.32);
  --atg-bt-ink-dark: #f8fafc;
  --atg-bt-subink-dark: rgba(236,244,255,0.74);
  --atg-bt-accent-dark: #f7d488;
  --atg-bt-icon-dark: linear-gradient(180deg, rgba(19,25,63,0.98), rgba(12,18,48,0.99));
  --atg-bt-surface-light: linear-gradient(180deg, rgba(255,255,255,0.998), rgba(247,241,233,0.992));
  --atg-bt-surface-light-premium: linear-gradient(180deg, rgba(255,251,243,0.998), rgba(246,232,208,0.992));
  --atg-bt-border-light: rgba(191,138,53,0.18);
  --atg-bt-border-light-premium: rgba(var(--gold-rgb),0.26);
  --atg-bt-ink-light: #18212d;
  --atg-bt-subink-light: #64748b;
  --atg-bt-accent-light: #b7791f;
  --atg-bt-icon-light: linear-gradient(180deg, rgba(19,25,63,0.98), rgba(12,18,48,0.99));
}
body.modern-v5 .map-menu-row,
body.modern-v5 .build-tour-suggest-stop-row,
body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-rule-row-main,
body.modern-v5 .build-tour-suggest-rule-row-menu,
body.modern-v5 .build-tour-suggest-section-panel,
body.modern-v5 .build-tour-suggest-card,
body.modern-v5 .build-tour-suggest-proposal-block,
body.modern-v5 .build-tour-suggest-empty-panel,
body.modern-v5 .build-tour-dashboard-shell,
body.modern-v5 .build-tour-dashboard-chip,
body.modern-v5 .build-tour-dashboard-departure,
body.modern-v5 .build-tour-summary-row,
body.modern-v5 .build-tour-summary-chip,
body.modern-v5 .modal-card.modal-card-place-detail,
body.modern-v5 .place-detail-disclosure,
body.modern-v5 .place-detail-inline-btn,
body.modern-v5 .place-detail-action-btn-build{
  backdrop-filter: blur(10px);
}
body.modern-v5.app-theme-dark .map-menu-row,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-menu,
body.modern-v5.app-theme-dark .build-tour-suggest-card,
body.modern-v5.app-theme-dark .build-tour-suggest-empty-panel,
body.modern-v5.app-theme-dark .build-tour-dashboard-shell,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure,
body.modern-v5.app-theme-dark .build-tour-summary-row,
body.modern-v5.app-theme-dark .build-tour-summary-chip,
body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-dark .place-detail-disclosure,
body.modern-v5.app-theme-dark .place-detail-inline-btn,
body.modern-v5.app-theme-dark .place-detail-action-btn-build{
  background: var(--atg-bt-surface-dark) !important;
  border-color: var(--atg-bt-border-dark) !important;
}
body.modern-v5.app-theme-dark .map-menu-row-premium,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure.is-set{
  background: var(--atg-bt-surface-dark-premium) !important;
  border-color: var(--atg-bt-border-dark-premium) !important;
}
body.modern-v5.app-theme-dark .map-menu-row-title,
body.modern-v5.app-theme-dark .build-tour-suggest-section-title,
body.modern-v5.app-theme-dark .build-tour-suggest-card-title,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-dark .build-tour-suggest-selected-title,
body.modern-v5.app-theme-dark .build-tour-suggest-result-title,
body.modern-v5.app-theme-dark .build-tour-dashboard-title,
body.modern-v5.app-theme-dark .place-detail-title,
body.modern-v5.app-theme-dark .place-detail-disclosure summary{color:var(--atg-bt-ink-dark) !important;}
body.modern-v5.app-theme-dark .map-menu-row-subtitle,
body.modern-v5.app-theme-dark .build-tour-suggest-section-note,
body.modern-v5.app-theme-dark .build-tour-suggest-card-note,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-dark .build-tour-suggest-result-meta,
body.modern-v5.app-theme-dark .build-tour-suggest-route,
body.modern-v5.app-theme-dark .build-tour-suggest-empty,
body.modern-v5.app-theme-dark .build-tour-dashboard-note,
body.modern-v5.app-theme-dark .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-dark .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-dark .place-detail-subtitle,
body.modern-v5.app-theme-dark .place-detail-meta-line,
body.modern-v5.app-theme-dark .place-detail-text,
body.modern-v5.app-theme-dark .place-detail-empty,
body.modern-v5.app-theme-dark .place-detail-kv-value{color:var(--atg-bt-subink-dark) !important;}
body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu,
body.modern-v5.app-theme-light .build-tour-suggest-card,
body.modern-v5.app-theme-light .build-tour-suggest-empty-panel,
body.modern-v5.app-theme-light .build-tour-dashboard-shell,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-departure,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-light .place-detail-disclosure,
body.modern-v5.app-theme-light .place-detail-inline-btn,
body.modern-v5.app-theme-light .place-detail-action-btn-build{
  background: var(--atg-bt-surface-light) !important;
  border-color: var(--atg-bt-border-light) !important;
}
body.modern-v5.app-theme-light .map-menu-row-premium,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-dashboard-departure.is-set{
  background: var(--atg-bt-surface-light-premium) !important;
  border-color: var(--atg-bt-border-light-premium) !important;
}
body.modern-v5.app-theme-light .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title,
body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .place-detail-disclosure summary{color:var(--atg-bt-ink-light) !important;}
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .build-tour-dashboard-note,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value{color:var(--atg-bt-subink-light) !important;}
body.modern-v5.app-theme-dark .map-menu-row-icon,
body.modern-v5.app-theme-dark .map-menu-row-arrow,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-dark .build-tour-suggest-rule-activate::after{
  background: var(--atg-bt-icon-dark) !important;
  color: var(--atg-bt-accent-dark) !important;
}
body.modern-v5.app-theme-light .map-menu-row-icon,
body.modern-v5.app-theme-light .map-menu-row-arrow,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn::after,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate::after{
  background: var(--atg-bt-icon-light) !important;
  color: var(--atg-bt-accent-dark) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .build-tour-dashboard-chip span,
body.modern-v5.app-theme-light .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-light .build-tour-summary-chip span,
body.modern-v5.app-theme-light .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-kicker,
body.modern-v5.app-theme-light .place-detail-kv-label{color:var(--atg-bt-accent-light) !important;}
body.modern-v5.app-theme-dark .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-dark .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip span,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-dark .build-tour-summary-chip span,
body.modern-v5.app-theme-dark .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-kicker,
body.modern-v5.app-theme-dark .place-detail-kv-label{color:var(--atg-bt-accent-dark) !important;}
@media (max-width: 860px){
  body.modern-v5 .build-tour-suggest-rule-row,
  body.modern-v5 .build-tour-suggest-stop-row{grid-template-columns:auto minmax(0,1fr) !important;align-items:start !important;}
  body.modern-v5 .map-menu-row{grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;}
  body.modern-v5 .build-tour-suggest-row-control,
  body.modern-v5 .build-tour-suggest-rule-selection{grid-column:2 / -1;justify-content:flex-start !important;min-width:0 !important;flex-wrap:wrap;}
  body.modern-v5 .map-menu-row-arrow{display:inline-flex !important;width:38px !important;height:38px !important;flex:0 0 38px !important;margin-left:8px !important;}
}
@media (max-width: 560px){
  body.modern-v5 .map-menu-row-arrow{width:34px !important;height:34px !important;flex-basis:34px !important;margin-left:6px !important;}
  body.modern-v5 .map-menu-row-title{font-size:14px !important;}
  body.modern-v5 .map-menu-row-subtitle{font-size:12px !important;line-height:1.38 !important;}
}



/* ===== V148 CORE USER + TOUR BASE ===== */
body.modern-v5.app-theme-light{
  --ui-ink:#09111f !important;
  --ui-ink-soft:#3c4b61 !important;
  --secondary-btn-ink:#0f172a !important;
}
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .checks-row label,
body.modern-v5.app-theme-light .pick-card-subtitle,
body.modern-v5.app-theme-light .tour-card-route,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy,
body.modern-v5.app-theme-light .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .hint,
body.modern-v5.app-theme-light .build-tour-place-meta,
body.modern-v5.app-theme-light .build-tour-place-secondary,
body.modern-v5.app-theme-light .build-tour-summary-copy,
body.modern-v5.app-theme-light .build-tour-summary-footer-or,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-dashboard-note,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-rights-line,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy,
body.modern-v5.app-theme-light .gallery-caption,
body.modern-v5.app-theme-light .node-item .nline{
  color:#3c4b61 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-sub,
body.modern-v5.app-theme-light .entry-city-hero-copy p,
body.modern-v5.app-theme-light .wizard-section-head p,
body.modern-v5.app-theme-light .tour-card p,
body.modern-v5.app-theme-light .pick-card p,
body.modern-v5.app-theme-light .entry-mode-panel p,
body.modern-v5.app-theme-light .panel-block p{
  color:#3c4b61 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
body.modern-v5.app-theme-light .topbar{
  background:linear-gradient(90deg, rgba(255,255,255,.992), rgba(246,248,252,.984)) !important;
  border-bottom:1px solid rgba(15,23,42,.08) !important;
  box-shadow:0 16px 34px rgba(15,23,42,.08) !important;
}
body.modern-v5.app-theme-light .btn,
body.modern-v5.app-theme-light .app-sheet-back,
body.modern-v5.app-theme-light .app-sheet-secondary,
body.modern-v5.app-theme-light .map-menu-sheet-back,
body.modern-v5.app-theme-light .build-tour-dashboard-edit,
body.modern-v5.app-theme-light .build-tour-dashboard-btn,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove,
body.modern-v5.app-theme-light .build-tour-place-remove,
body.modern-v5.app-theme-light .entry-compare-btn,
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle{
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,248,252,.976)) !important;
  border-color:rgba(15,23,42,.12) !important;
  color:#09111f !important;
  box-shadow:0 10px 24px rgba(15,23,42,.09) !important;
}
body.modern-v5.app-theme-light .pick-card.active,
body.modern-v5.app-theme-light .tour-card-status,
body.modern-v5.app-theme-light .build-tour-suggest-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-place-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-metric,
body.modern-v5.app-theme-light .build-tour-summary-metric,
body.modern-v5.app-theme-light .build-tour-summary-chip{
  background:linear-gradient(180deg, rgba(255,255,255,.996), rgba(247,249,252,.986)) !important;
  border-color:rgba(15,23,42,.10) !important;
  color:#18212d !important;
  box-shadow:0 12px 28px rgba(15,23,42,.07) !important;
}
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row .map-menu-row-subtitle{
  color:#3c4b61 !important;
}


/* ===== V148 CORE USER + TOUR BASE ===== */
body.modern-v5 .preset-detail-grid{
  display:grid;
  gap:16px;
  grid-template-columns:1.1fr .9fr;
}
body.modern-v5 .preset-detail-panel,
body.modern-v5 .preset-tour-row,
body.modern-v5 .preset-empty-state{
  border-radius:8px;
  border:1px solid rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(10,16,30,.90), rgba(7,12,24,.82));
  box-shadow:0 18px 36px rgba(2,6,23,.22);
}
body.modern-v5 .preset-detail-panel{
  padding:18px;
}
body.modern-v5 .preset-detail-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
body.modern-v5 .preset-detail-metric{
  border-radius:6px;
  padding:12px 14px;
  border:1px solid rgba(148,163,184,.14);
  background:rgba(255,255,255,.03);
}
body.modern-v5 .preset-detail-metric span{
  display:block;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ui-ink-soft);
  margin-bottom:5px;
}
body.modern-v5 .preset-detail-metric strong,
body.modern-v5 .preset-detail-section-title,
body.modern-v5 .preset-tour-row-title{
  color:var(--ui-ink);
}
body.modern-v5 .preset-detail-note,
body.modern-v5 .preset-detail-ideal,
body.modern-v5 .preset-tour-row-meta,
body.modern-v5 .preset-empty-state{
  color:var(--ui-ink-soft);
}
body.modern-v5 .preset-detail-ideal{
  line-height:1.6;
}
body.modern-v5 .preset-detail-section-title{
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:10px;
}
body.modern-v5 .preset-detail-list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:10px;
}
body.modern-v5 .preset-detail-list li{
  color:var(--ui-ink-soft);
  line-height:1.55;
}
body.modern-v5 .preset-tour-list{
  display:grid;
  gap:14px;
}
body.modern-v5 .preset-tour-row{
  padding:16px;
}
body.modern-v5 .preset-tour-row-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
body.modern-v5 .preset-tour-row-title{
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}
body.modern-v5 .preset-tour-row-meta{
  font-size:13px;
  margin-top:6px;
}
body.modern-v5 .preset-tour-row-chip{
  border-radius:999px;
  padding:7px 10px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.04);
  color:var(--ui-ink-soft);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.modern-v5 .preset-tour-row-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
body.modern-v5 .preset-empty-state{
  padding:18px;
  text-align:center;
  line-height:1.6;
}
body.modern-v5 .atg-preset-wizard-progress-v1124sz{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0 0 16px;
  padding:0;
  list-style:none;
}
body.modern-v5 .atg-preset-wizard-progress-v1124sz li{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:7px 10px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  color:rgba(226,232,240,.68);
}
body.modern-v5 .atg-preset-wizard-progress-v1124sz li > span{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:50%;
  font-size:12px;
  font-weight:900;
}
body.modern-v5 .atg-preset-wizard-progress-v1124sz li > strong{
  font-size:13px;
  line-height:1.2;
  letter-spacing:0;
}
body.modern-v5 .atg-preset-wizard-progress-v1124sz li.is-current-v1124sz{
  border-color:rgba(var(--gold-accent-rgb),.62);
  background:rgba(var(--gold-accent-rgb),.12);
  color:#fff4d1;
}
body.modern-v5 .atg-preset-wizard-progress-v1124sz li.is-complete-v1124sz{
  border-color:rgba(45,212,191,.38);
  background:rgba(13,148,136,.13);
  color:#ccfbf1;
}
body.modern-v5 .atg-preset-wizard-question-v1124sz,
body.modern-v5 .atg-preset-results-v1124sz,
body.modern-v5 .atg-preset-detail-config-v1124sz{
  display:grid;
  gap:14px;
  padding:20px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  background:linear-gradient(145deg,rgba(15,23,42,.82),rgba(8,47,73,.44));
}
body.modern-v5 .atg-preset-wizard-step-label-v1124sz{
  color:var(--gold-accent);
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.modern-v5 .atg-preset-wizard-question-v1124sz h4{
  margin:0;
  color:#f8fafc;
  font-size:25px;
  line-height:1.15;
  letter-spacing:0;
}
body.modern-v5 .atg-preset-wizard-question-v1124sz > p{
  margin:0;
  color:rgba(226,232,240,.76);
  font-size:14px;
  line-height:1.5;
}
body.modern-v5 .atg-preset-wizard-choices-v1124sz{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
body.modern-v5 .atg-preset-wizard-choice-v1124sz{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 22px;
  align-items:center;
  gap:12px;
  min-height:94px;
  padding:14px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:8px;
  background:rgba(255,255,255,.055);
  color:#f8fafc;
  text-align:left;
  cursor:pointer;
}
body.modern-v5 .atg-preset-wizard-choice-v1124sz:hover,
body.modern-v5 .atg-preset-wizard-choice-v1124sz:focus-visible{
  border-color:rgba(var(--gold-accent-rgb),.7);
  background:rgba(var(--gold-accent-rgb),.12);
  outline:2px solid transparent;
}
body.modern-v5 .atg-preset-wizard-choice-number-v1124sz{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:50%;
  background:#0f766e;
  color:#fff;
  font-size:12px;
  font-weight:950;
}
body.modern-v5 .atg-preset-wizard-choice-copy-v1124sz{
  display:grid;
  gap:5px;
  min-width:0;
}
body.modern-v5 .atg-preset-wizard-choice-copy-v1124sz strong{
  color:inherit;
  font-size:16px;
  line-height:1.2;
  letter-spacing:0;
}
body.modern-v5 .atg-preset-wizard-choice-copy-v1124sz > span{
  color:rgba(226,232,240,.72);
  font-size:12px;
  line-height:1.42;
}
body.modern-v5 .atg-preset-wizard-choice-arrow-v1124sz{
  color:var(--gold-accent);
  font-size:22px;
  font-weight:900;
}
body.modern-v5 .atg-preset-results-summary-v1124sz{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
body.modern-v5 .atg-preset-results-summary-v1124sz button{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:8px 10px;
  border:1px solid rgba(45,212,191,.32);
  border-radius:8px;
  background:rgba(13,148,136,.12);
  color:#ccfbf1;
  text-align:left;
  cursor:pointer;
}
body.modern-v5 .atg-preset-results-summary-v1124sz button > span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#0f766e;
  color:#fff;
  font-size:11px;
  font-weight:900;
}
body.modern-v5 .atg-preset-results-summary-v1124sz button > strong{
  min-width:0;
  font-size:12px;
  line-height:1.25;
  letter-spacing:0;
}
body.modern-v5 .atg-preset-results-list-v1124sz{
  display:grid;
  gap:10px;
}
body.modern-v5 .atg-preset-result-card-v1124sz{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px 16px;
  width:100%;
  padding:16px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:8px;
  background:rgba(255,255,255,.045);
  color:#f8fafc;
  text-align:left;
  cursor:pointer;
}
body.modern-v5 .atg-preset-result-card-v1124sz:hover,
body.modern-v5 .atg-preset-result-card-v1124sz:focus-visible{
  border-color:rgba(var(--gold-accent-rgb),.62);
  background:rgba(var(--gold-accent-rgb),.09);
  outline:2px solid transparent;
}
body.modern-v5 .atg-preset-result-head-v1124sz,
body.modern-v5 .atg-preset-result-title-v1124sz,
body.modern-v5 .atg-preset-result-copy-v1124sz,
body.modern-v5 .atg-preset-result-route-v1124sz,
body.modern-v5 .atg-preset-result-metrics-v1124sz{
  grid-column:1;
}
body.modern-v5 .atg-preset-result-head-v1124sz{
  display:flex;
  align-items:center;
  gap:8px;
}
body.modern-v5 .atg-preset-result-kicker-v1124sz,
body.modern-v5 .atg-preset-result-access-v1124sz{
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
body.modern-v5 .atg-preset-result-kicker-v1124sz{color:var(--gold-accent);}
body.modern-v5.app-theme-light .atg-preset-result-kicker-v1124sz{color:#704400;}
body.modern-v5 .atg-preset-result-access-v1124sz{
  padding:4px 7px;
  border-radius:5px;
  background:rgba(13,148,136,.16);
  color:#99f6e4;
}
body.modern-v5 .atg-preset-result-title-v1124sz{
  font-size:21px;
  line-height:1.15;
  letter-spacing:0;
}
body.modern-v5 .atg-preset-result-copy-v1124sz{
  color:rgba(226,232,240,.76);
  font-size:13px;
  line-height:1.45;
}
body.modern-v5 .atg-preset-result-route-v1124sz{
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);
  align-items:center;
  gap:7px;
  color:rgba(226,232,240,.82);
  font-size:12px;
  line-height:1.35;
}
body.modern-v5 .atg-preset-result-route-v1124sz > span:nth-child(2){
  color:var(--gold-accent);
  text-align:center;
}
body.modern-v5 .atg-preset-result-metrics-v1124sz{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
body.modern-v5 .atg-preset-result-metrics-v1124sz > span{
  padding:5px 8px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:5px;
  color:rgba(226,232,240,.78);
  font-size:11px;
  line-height:1.2;
}
body.modern-v5 .atg-preset-result-action-v1124sz{
  grid-column:2;
  grid-row:1 / span 5;
  align-self:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 12px;
  border-radius:6px;
  background:#0f766e;
  color:#fff;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
body.modern-v5 .atg-preset-summary-v1124sz{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
body.modern-v5 .atg-preset-summary-v1124sz > span{
  padding:6px 9px;
  border:1px solid rgba(45,212,191,.3);
  border-radius:5px;
  background:rgba(13,148,136,.12);
  color:#ccfbf1;
  font-size:11px;
  font-weight:850;
}
body.modern-v5 .atg-preset-detail-config-head-v1124sz{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
body.modern-v5 .atg-preset-detail-config-head-v1124sz > div{
  display:grid;
  gap:8px;
}
body.modern-v5 .atg-preset-departure-v1124sz{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);
  align-items:center;
  gap:16px;
  padding-top:14px;
  border-top:1px solid rgba(148,163,184,.18);
}
body.modern-v5 .atg-preset-departure-v1124sz > div:first-child{
  display:grid;
  gap:5px;
}
body.modern-v5 .atg-preset-departure-v1124sz strong{
  color:#f8fafc;
  font-size:15px;
  line-height:1.25;
}
body.modern-v5 .atg-preset-departure-v1124sz span{
  color:rgba(226,232,240,.72);
  font-size:12px;
  line-height:1.45;
}
body.modern-v5 .atg-preset-departure-fields-v1124sz{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
  gap:8px;
}
body.modern-v5 .atg-preset-direction-v1124sz{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 24px auto minmax(0,1fr);
  align-items:center;
  gap:7px;
  margin-top:14px;
  padding:12px;
  border:1px solid rgba(45,212,191,.25);
  border-radius:6px;
  background:rgba(13,148,136,.09);
}
body.modern-v5 .atg-preset-direction-v1124sz span{
  color:#99f6e4;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
body.modern-v5 .atg-preset-direction-v1124sz strong{
  color:#f8fafc;
  font-size:12px;
  line-height:1.35;
}
body.modern-v5 .atg-preset-route-list-v1124sz{
  padding:0;
  list-style:none;
}
body.modern-v5 .atg-preset-route-list-v1124sz li{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  min-height:54px;
  padding:7px 0;
}
body.modern-v5 .atg-preset-route-list-v1124sz li:not(:last-child)::after{
  content:"";
  position:absolute;
  left:16px;
  top:41px;
  bottom:-7px;
  width:2px;
  background:rgba(45,212,191,.3);
}
body.modern-v5 .atg-preset-route-index-v1124sz{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(45,212,191,.4);
  border-radius:50%;
  background:#0f766e;
  color:#fff;
  font-size:11px;
  font-weight:900;
}
body.modern-v5 .atg-preset-route-list-v1124sz li.is-break-v1124sz .atg-preset-route-index-v1124sz{
  border-color:rgba(var(--gold-accent-rgb),.6);
  background:#8a5a00;
}
body.modern-v5 .atg-preset-route-copy-v1124sz{
  display:grid;
  gap:4px;
  min-width:0;
}
body.modern-v5 .atg-preset-route-copy-v1124sz strong{
  color:#f8fafc;
  font-size:13px;
  line-height:1.32;
  letter-spacing:0;
}
body.modern-v5 .atg-preset-route-copy-v1124sz > span{
  color:rgba(226,232,240,.68);
  font-size:11px;
  line-height:1.35;
}
body.modern-v5 .atg-preset-actions-v1124sz{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;
}
body.modern-v5 .atg-preset-wizard-actions-v1125a{
  grid-template-columns:minmax(0,1fr);
  width:100%;
}
body.modern-v5 .atg-preset-actions-v1124sz > .btn,
body.modern-v5 .atg-preset-wizard-actions-v1125a > .btn{
  width:100%;
  min-width:0;
  min-height:48px;
  white-space:normal;
}
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .app-sheet-actions.atg-preset-action-stack-v1125f{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  width:100%;
  margin-top:16px!important;
  padding:0!important;
  background:transparent!important;
}
body.modern-v5 .modal-layer:not(.hidden) .modal-card.map-menu-sheet.app-sheet.atg-preset-itinerary-modal-v1124sz{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
}
body.modern-v5 .atg-preset-action-stack-v1125f > .btn{
  width:100%;
  min-width:0;
}
body.modern-v5 .atg-preset-preference-surface-v1125f{
  padding:0;
  border:0;
  background:transparent;
}
body.modern-v5 .atg-preset-preference-row-v1125f{
  grid-template-columns:48px minmax(0,1fr);
  align-items:start;
  gap:8px 12px;
}
body.modern-v5 .atg-preset-preference-row-v1125f > .atg-v437-setting-icon{
  grid-column:1;
  grid-row:1;
}
body.modern-v5 .atg-preset-preference-row-v1125f > .atg-v437-setting-copy{
  grid-column:2;
  grid-row:1;
  min-width:0;
}
body.modern-v5 .atg-preset-preference-row-v1125f > .atg-preset-wizard-choices-v1124sz{
  display:grid !important;
  grid-column:1 / -1;
  grid-row:2;
  grid-template-columns:minmax(0,1fr) !important;
  justify-content:stretch !important;
  width:100%;
  margin-top:4px;
}
body.modern-v5 .atg-preset-preference-choice-v1125f{
  width:100%;
  min-width:0;
  min-height:48px !important;
  white-space:normal;
}
body.modern-v5 .atg-preset-results-summary-v1124sz,
body.modern-v5 .atg-preset-departure-fields-v1124sz{
  grid-template-columns:minmax(0,1fr);
}
body.modern-v5 .atg-preset-loading-v1124sz{
  display:grid;
  justify-items:center;
  gap:12px;
  padding:42px 20px;
  color:#f8fafc;
}
body.modern-v5 .atg-preset-loading-mark-v1124sz{
  width:38px;
  height:38px;
  border:3px solid rgba(148,163,184,.26);
  border-top-color:var(--gold-accent);
  border-radius:50%;
  animation:atgPresetLoadingSpinV1124SZ .8s linear infinite;
}
@keyframes atgPresetLoadingSpinV1124SZ{to{transform:rotate(360deg)}}
body.modern-v5.app-theme-light .preset-detail-panel,
body.modern-v5.app-theme-light .preset-tour-row,
body.modern-v5.app-theme-light .preset-empty-state{
  background:linear-gradient(180deg, rgba(255,255,255,.995), rgba(246,248,252,.985)) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 18px 40px rgba(15,23,42,.08), 0 0 0 1px rgba(255,255,255,.72) inset !important;
}
body.modern-v5.app-theme-light .preset-detail-metric,
body.modern-v5.app-theme-light .preset-tour-row-chip{
  background:linear-gradient(180deg, rgba(255,255,255,.996), rgba(247,249,252,.986)) !important;
  border-color:rgba(15,23,42,.10) !important;
}
body.modern-v5.app-theme-light .preset-detail-metric span,
body.modern-v5.app-theme-light .preset-detail-note,
body.modern-v5.app-theme-light .preset-detail-ideal,
body.modern-v5.app-theme-light .preset-detail-list li,
body.modern-v5.app-theme-light .preset-tour-row-meta,
body.modern-v5.app-theme-light .preset-tour-row-chip,
body.modern-v5.app-theme-light .preset-empty-state{
  color:#3c4b61 !important;
}
body.modern-v5.app-theme-light .preset-detail-metric strong,
body.modern-v5.app-theme-light .preset-detail-section-title,
body.modern-v5.app-theme-light .preset-tour-row-title{
  color:#09111f !important;
}
body.modern-v5.app-theme-light .atg-preset-wizard-progress-v1124sz li{
  border-color:rgba(15,23,42,.12);
  background:#fff;
  color:#64748b;
}
body.modern-v5.app-theme-light .atg-preset-wizard-progress-v1124sz li.is-current-v1124sz{
  border-color:rgba(143,74,36,.42);
  background:rgba(188,116,53,.08);
  color:#713b1d;
}
body.modern-v5.app-theme-light .atg-preset-wizard-progress-v1124sz li.is-complete-v1124sz{
  border-color:rgba(15,118,110,.28);
  background:rgba(15,118,110,.07);
  color:#115e59;
}
body.modern-v5.app-theme-light .atg-preset-wizard-question-v1124sz,
body.modern-v5.app-theme-light .atg-preset-results-v1124sz,
body.modern-v5.app-theme-light .atg-preset-detail-config-v1124sz{
  border-color:rgba(15,23,42,.1);
  background:linear-gradient(145deg,#fff,#f3f8f7);
}
body.modern-v5.app-theme-light .atg-preset-wizard-question-v1124sz h4,
body.modern-v5.app-theme-light .atg-preset-departure-v1124sz strong,
body.modern-v5.app-theme-light .atg-preset-direction-v1124sz strong,
body.modern-v5.app-theme-light .atg-preset-route-copy-v1124sz strong{
  color:#0f172a;
}
body.modern-v5.app-theme-light .atg-preset-wizard-question-v1124sz > p,
body.modern-v5.app-theme-light .atg-preset-wizard-choice-copy-v1124sz > span,
body.modern-v5.app-theme-light .atg-preset-result-copy-v1124sz,
body.modern-v5.app-theme-light .atg-preset-result-route-v1124sz,
body.modern-v5.app-theme-light .atg-preset-result-metrics-v1124sz > span,
body.modern-v5.app-theme-light .atg-preset-departure-v1124sz span,
body.modern-v5.app-theme-light .atg-preset-route-copy-v1124sz > span{
  color:#475569;
}
body.modern-v5.app-theme-light .atg-preset-wizard-choice-v1124sz,
body.modern-v5.app-theme-light .atg-preset-result-card-v1124sz{
  border-color:rgba(15,23,42,.11);
  background:#fff;
  color:#0f172a;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}
body.modern-v5.app-theme-light .atg-preset-wizard-choice-v1124sz:hover,
body.modern-v5.app-theme-light .atg-preset-wizard-choice-v1124sz:focus-visible,
body.modern-v5.app-theme-light .atg-preset-result-card-v1124sz:hover,
body.modern-v5.app-theme-light .atg-preset-result-card-v1124sz:focus-visible{
  border-color:rgba(143,74,36,.42);
  background:#fffaf3;
}
body.modern-v5.app-theme-light .atg-preset-results-summary-v1124sz button,
body.modern-v5.app-theme-light .atg-preset-summary-v1124sz > span{
  border-color:rgba(15,118,110,.24);
  background:rgba(15,118,110,.07);
  color:#115e59;
}
body.modern-v5.app-theme-light .atg-preset-result-access-v1124sz{
  background:rgba(15,118,110,.1);
  color:#115e59;
}
body.modern-v5.app-theme-light .atg-preset-direction-v1124sz{
  border-color:rgba(15,118,110,.2);
  background:rgba(15,118,110,.055);
}
body.modern-v5.app-theme-light .atg-preset-direction-v1124sz span{
  color:#0f766e;
}
body.modern-v5.app-theme-light .atg-preset-loading-v1124sz{
  color:#0f172a;
}
@media (max-width: 860px) {
  body.modern-v5 .preset-detail-grid{
    grid-template-columns:1fr;
  }
  body.modern-v5 .preset-detail-metrics{
    grid-template-columns:1fr 1fr;
  }
  body.modern-v5 .atg-preset-departure-v1124sz{
    grid-template-columns:1fr;
  }
}
@media (max-width: 560px) {
  body.modern-v5 .preset-tour-row-actions,
  body.modern-v5 .app-sheet-actions{
    flex-direction:column;
  }
  body.modern-v5 .preset-tour-row-actions .btn,
  body.modern-v5 .app-sheet-actions .btn{
    width:100%;
  }
  body.modern-v5 .preset-detail-metrics{
    grid-template-columns:1fr;
  }
  body.modern-v5 .atg-preset-wizard-progress-v1124sz{
    gap:5px;
  }
  body.modern-v5 .atg-preset-wizard-progress-v1124sz li{
    grid-template-columns:28px minmax(0,1fr);
    gap:6px;
    padding:6px;
  }
  body.modern-v5 .atg-preset-wizard-progress-v1124sz li > span{
    width:28px;
    height:28px;
  }
  body.modern-v5 .atg-preset-wizard-question-v1124sz,
  body.modern-v5 .atg-preset-results-v1124sz,
  body.modern-v5 .atg-preset-detail-config-v1124sz{
    padding:14px;
  }
  body.modern-v5 .atg-preset-wizard-choices-v1124sz,
  body.modern-v5 .atg-preset-results-summary-v1124sz{
    grid-template-columns:1fr;
  }
  body.modern-v5 .atg-preset-wizard-choice-v1124sz{
    min-height:84px;
    padding:12px;
  }
  body.modern-v5 .atg-preset-result-card-v1124sz{
    grid-template-columns:minmax(0,1fr);
  }
  body.modern-v5 .atg-preset-result-action-v1124sz{
    grid-column:1;
    grid-row:auto;
    justify-content:center;
  }
  body.modern-v5 .atg-preset-result-route-v1124sz{
    grid-template-columns:1fr;
  }
  body.modern-v5 .atg-preset-result-route-v1124sz > span:nth-child(2){
    transform:rotate(90deg);
  }
  body.modern-v5 .atg-preset-detail-config-head-v1124sz{
    align-items:stretch;
    flex-direction:column;
  }
  body.modern-v5 .atg-preset-departure-fields-v1124sz,
  body.modern-v5 .atg-preset-direction-v1124sz,
  body.modern-v5 .atg-preset-actions-v1124sz{
    grid-template-columns:1fr;
  }
  body.modern-v5 .atg-preset-direction-v1124sz > span:nth-child(3){
    transform:rotate(90deg);
    text-align:center;
  }
}


/* ===== V220 DUAL THEME DOCK ALIGNMENT ===== */
.theme-dock-toggle{display:none !important;}
.theme-dock{
  position:fixed;
  top:138px;
  right:16px;
  z-index:1400;
  display:flex;
  gap:6px;
  align-items:center;
  padding:8px;
  border-radius:999px;
  border:1px solid rgba(121,167,255,.24);
  background:rgba(7,17,31,.94);
  box-shadow:0 16px 36px rgba(0,0,0,.32);
  backdrop-filter:blur(16px);
}
.theme-dock-btn{
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:rgba(236,244,255,.78);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:.2s;
}
.theme-dock-btn:hover{transform:translateY(-1px);color:#fff;}
.theme-dock-btn.active{
  background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight));
  border-color:rgba(var(--gold-border-rgb),.34);
  color:var(--gold-btn-ink);
  box-shadow:0 10px 22px rgba(var(--gold-rgb),.22);
}
body.modern-v5.app-theme-light .theme-dock{
  background:rgba(255,255,255,.96) !important;
  border-color:rgba(var(--gold-rgb),.22) !important;
  box-shadow:0 14px 30px rgba(15,23,42,.10) !important;
}
body.modern-v5.app-theme-light .theme-dock-btn{color:#475569 !important;}
body.modern-v5.app-theme-light .theme-dock-btn.active{color:var(--gold-btn-ink) !important;box-shadow:0 10px 22px rgba(var(--gold-rgb),.14) !important;}
@media (max-width: 900px){.theme-dock{top:186px}}
@media (max-width: 640px){.theme-dock{top:222px;right:12px;padding:7px;gap:5px}.theme-dock-btn{min-height:34px;padding:0 12px;font-size:11px}}
body.modern-v5.wizard-onboarding-mode .theme-dock{display:none!important;}


/* ===== V221 LIGHT MODE COHERENCE CLEANUP ===== */
body.modern-v5.app-theme-light {
  --ui-bg-1:#fdfaf4;
  --ui-bg-2:#f5eee2;
  --ui-ink:#1e1914;
  --ui-ink-soft:#615449;
  --ui-panel:rgba(255,252,247,.985);
  --ui-panel-border:rgba(96,75,42,.12);
  --ui-accent:#9a6b1a;
  --ui-accent-2:#7c6e61;
  --ui-accent-soft:rgba(var(--gold-rgb),.10);
  --ui-deep:#1e1914;
  background:
    radial-gradient(circle at 14% 14%, rgba(243,181,93,.16), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(255,255,255,.62), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(198,153,88,.10), transparent 30%),
    linear-gradient(180deg,#fdfaf4 0%, #f5eee2 50%, #ece2d1 100%) !important;
  color:var(--ui-ink) !important;
}
body.modern-v5.app-theme-light .wizard-view::before { background: radial-gradient(circle, rgba(243,181,93,.16), transparent 68%) !important; }
body.modern-v5.app-theme-light .wizard-view::after { background: radial-gradient(circle, rgba(255,255,255,.42), transparent 70%) !important; }
body.modern-v5.app-theme-light .btn,
body.modern-v5.app-theme-light .app-sheet-back,
body.modern-v5.app-theme-light .app-sheet-secondary,
body.modern-v5.app-theme-light .map-menu-sheet-back,
body.modern-v5.app-theme-light .build-tour-dashboard-edit,
body.modern-v5.app-theme-light .build-tour-dashboard-btn,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove,
body.modern-v5.app-theme-light .build-tour-place-remove,
body.modern-v5.app-theme-light .entry-compare-btn,
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle,
body.modern-v5.app-theme-light .theme-dock-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate {
  background:linear-gradient(180deg, rgba(255,251,245,.988), rgba(242,234,223,.974)) !important;
  border-color:rgba(96,75,42,.14) !important;
  color:#1e1914 !important;
  box-shadow:0 10px 24px rgba(94,73,39,.09) !important;
}
body.modern-v5.app-theme-light .btn:hover,
body.modern-v5.app-theme-light .app-sheet-back:hover,
body.modern-v5.app-theme-light .app-sheet-secondary:hover,
body.modern-v5.app-theme-light .map-menu-sheet-back:hover,
body.modern-v5.app-theme-light .build-tour-dashboard-edit:hover,
body.modern-v5.app-theme-light .build-tour-dashboard-btn:hover,
body.modern-v5.app-theme-light .build-tour-suggest-toggle:hover,
body.modern-v5.app-theme-light .entry-compare-btn:hover,
body.modern-v5.app-theme-light .map-icon-btn:hover,
body.modern-v5.app-theme-light .history-btn:hover,
body.modern-v5.app-theme-light .tour-back-btn:hover,
body.modern-v5.app-theme-light .video-options-fab:hover,
body.modern-v5.app-theme-light .map-rights-toggle:hover,
body.modern-v5.app-theme-light .theme-dock-btn:hover,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn:hover {
  background:linear-gradient(180deg, rgba(255,247,235,.995), rgba(244,235,219,.985)) !important;
  border-color:rgba(181,126,42,.22) !important;
  color:#1e1914 !important;
}
body.modern-v5.app-theme-light .pick-card.active,
body.modern-v5.app-theme-light .tour-card-status,
body.modern-v5.app-theme-light .build-tour-suggest-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-place-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-metric,
body.modern-v5.app-theme-light .build-tour-summary-metric,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-chip,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .place-detail-kv {
  background:linear-gradient(180deg, rgba(255,247,234,.995), rgba(246,234,214,.985)) !important;
  border-color:rgba(181,126,42,.20) !important;
  color:#1e1914 !important;
  box-shadow:0 12px 28px rgba(94,73,39,.07) !important;
}
body.modern-v5.app-theme-light .entry-city-hero-media,
body.modern-v5.app-theme-light .avatar-preview-box,
body.modern-v5.app-theme-light .map-popup-photo-wrap,
body.modern-v5.app-theme-light .build-tour-place-thumb,
body.modern-v5.app-theme-light .build-tour-summary-map,
body.modern-v5.app-theme-light .tour-preview-map {
  background:linear-gradient(180deg, rgba(255,252,247,.996), rgba(243,236,226,.98)) !important;
  border-color:rgba(96,75,42,.12) !important;
  box-shadow:0 14px 30px rgba(94,73,39,.10) !important;
}
body.modern-v5.app-theme-light .wizard-section-head h2,
body.modern-v5.app-theme-light .pick-card-title,
body.modern-v5.app-theme-light .tour-card h4,
body.modern-v5.app-theme-light .metric-pill,
body.modern-v5.app-theme-light .map-popup .p-title,
body.modern-v5.app-theme-light .map-legend-modal h3,
body.modern-v5.app-theme-light .video-options-title,
body.modern-v5.app-theme-light .app-sheet-title,
body.modern-v5.app-theme-light .panel-block h3,
body.modern-v5.app-theme-light .entry-brief-item-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-section-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-sub,
body.modern-v5.app-theme-light .build-tour-place-copy .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-dashboard-chip strong,
body.modern-v5.app-theme-light .build-tour-dashboard-actions-title,
body.modern-v5.app-theme-light .build-tour-summary-title,
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .place-detail-disclosure summary,
body.modern-v5.app-theme-light .place-detail-inline-btn-label,
body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title {
  color:#1e1914 !important;
}
body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .pick-card-subtitle,
body.modern-v5.app-theme-light .tour-card-route,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy,
body.modern-v5.app-theme-light .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .hint,
body.modern-v5.app-theme-light .build-tour-place-meta,
body.modern-v5.app-theme-light .build-tour-summary-copy,
body.modern-v5.app-theme-light .build-tour-summary-footer-or,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-rights-line,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .map-popup .p-meta,
body.modern-v5.app-theme-light .nav-hud .hud-line-2,
body.modern-v5.app-theme-light .tour-start-summary,
body.modern-v5.app-theme-light .theme-dock-btn {
  color:#615449 !important;
}
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle {
  border-radius:16px !important;
  box-shadow:0 12px 26px rgba(94,73,39,.09), 0 0 0 1px rgba(255,255,255,.66) inset !important;
}
body.modern-v5.app-theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.modern-v5.app-theme-light select,
body.modern-v5.app-theme-light textarea {
  background:linear-gradient(180deg, rgba(255,251,245,.99), rgba(243,235,224,.98)) !important;
  border:1px solid rgba(96,75,42,.14) !important;
  color:#1e1914 !important;
  box-shadow:0 8px 18px rgba(94,73,39,.06) !important;
}
body.modern-v5.app-theme-light input::placeholder,
body.modern-v5.app-theme-light textarea::placeholder { color:#8c7e70 !important; }
body.modern-v5.app-theme-light .theme-dock{
  background:rgba(255,250,244,.96) !important;
  border-color:rgba(181,126,42,.20) !important;
  box-shadow:0 14px 30px rgba(94,73,39,.10) !important;
}
body.modern-v5.app-theme-light .build-pill,
body.modern-v5.app-theme-light .theme-dock-toggle{
  background:linear-gradient(180deg, rgba(255,250,244,.98), rgba(243,236,226,.96)) !important;
  color:#9a6b1a !important;
  border-color:rgba(181,126,42,.22) !important;
}
body.modern-v5.app-theme-light .modal-layer.modal-layer-surface {
  background:
    radial-gradient(circle at 14% 14%, rgba(243,181,93,.14), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.44), transparent 18%),
    linear-gradient(180deg, #fdfaf4 0%, #f5eee2 44%, #ece2d1 100%) !important;
}

/* ===== V222 LIGHT MODE FULL SPLIT ===== */
body.modern-v5.app-theme-light{
  --ui-bg-1:#fbf7ef;
  --ui-bg-2:#f2e8d9;
  --ui-bg-3:#e8dbc5;
  --ui-ink:#1f1913;
  --ui-ink-soft:#66584b;
  --ui-panel:rgba(255,251,244,.992);
  --ui-panel-alt:rgba(244,235,222,.984);
  --ui-panel-border:rgba(104,82,53,.13);
  --ui-panel-border-strong:rgba(181,126,42,.30);
  --ui-accent:#9b681f;
  --ui-accent-2:#8a7966;
  --ui-accent-soft:rgba(181,126,42,.10);
  --ui-deep:#1f1913;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,230,185,.58), transparent 18%),
    radial-gradient(circle at 84% 9%, rgba(255,255,255,.70), transparent 20%),
    radial-gradient(circle at 50% 118%, rgba(201,157,92,.12), transparent 30%),
    linear-gradient(180deg, var(--ui-bg-1) 0%, var(--ui-bg-2) 52%, var(--ui-bg-3) 100%) !important;
  color:var(--ui-ink) !important;
}
body.modern-v5.app-theme-light .wizard-view::before{
  background:radial-gradient(circle, rgba(255,224,164,.22), transparent 68%) !important;
}
body.modern-v5.app-theme-light .wizard-view::after{
  background:radial-gradient(circle, rgba(255,255,255,.46), transparent 72%) !important;
}
body.modern-v5.app-theme-light .btn,
body.modern-v5.app-theme-light .app-sheet-back,
body.modern-v5.app-theme-light .app-sheet-secondary,
body.modern-v5.app-theme-light .map-menu-sheet-back,
body.modern-v5.app-theme-light .build-tour-dashboard-edit,
body.modern-v5.app-theme-light .build-tour-dashboard-btn,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove,
body.modern-v5.app-theme-light .build-tour-place-remove,
body.modern-v5.app-theme-light .entry-compare-btn,
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle,
body.modern-v5.app-theme-light .theme-dock-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate,
body.modern-v5.app-theme-light .maplibregl-ctrl-group,
body.modern-v5.app-theme-light .maplibregl-ctrl button{
  background:linear-gradient(180deg, rgba(255,248,240,.994), rgba(241,232,217,.984)) !important;
  border-color:rgba(104,82,53,.14) !important;
  color:#1f1913 !important;
  box-shadow:0 10px 24px rgba(89,68,37,.08) !important;
}
body.modern-v5.app-theme-light .btn:hover,
body.modern-v5.app-theme-light .app-sheet-back:hover,
body.modern-v5.app-theme-light .app-sheet-secondary:hover,
body.modern-v5.app-theme-light .map-menu-sheet-back:hover,
body.modern-v5.app-theme-light .build-tour-dashboard-edit:hover,
body.modern-v5.app-theme-light .build-tour-dashboard-btn:hover,
body.modern-v5.app-theme-light .build-tour-suggest-toggle:hover,
body.modern-v5.app-theme-light .entry-compare-btn:hover,
body.modern-v5.app-theme-light .map-icon-btn:hover,
body.modern-v5.app-theme-light .history-btn:hover,
body.modern-v5.app-theme-light .tour-back-btn:hover,
body.modern-v5.app-theme-light .video-options-fab:hover,
body.modern-v5.app-theme-light .map-rights-toggle:hover,
body.modern-v5.app-theme-light .theme-dock-btn:hover,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn:hover,
body.modern-v5.app-theme-light .maplibregl-ctrl button:hover{
  background:linear-gradient(180deg, rgba(255,246,233,.996), rgba(243,232,215,.986)) !important;
  border-color:rgba(181,126,42,.22) !important;
  color:#1f1913 !important;
}
body.modern-v5.app-theme-light .pick-card.active,
body.modern-v5.app-theme-light .tour-card-status,
body.modern-v5.app-theme-light .build-tour-suggest-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-place-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-metric,
body.modern-v5.app-theme-light .build-tour-summary-metric,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-chip,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .place-detail-kv,
body.modern-v5.app-theme-light .app-sheet-note{
  background:linear-gradient(180deg, rgba(255,246,231,.995), rgba(244,233,217,.986)) !important;
  border-color:rgba(181,126,42,.20) !important;
  color:#1f1913 !important;
  box-shadow:0 12px 28px rgba(89,68,37,.07) !important;
}
body.modern-v5.app-theme-light .entry-city-hero-media,
body.modern-v5.app-theme-light .avatar-preview-box,
body.modern-v5.app-theme-light .map-popup-photo-wrap,
body.modern-v5.app-theme-light .build-tour-place-thumb,
body.modern-v5.app-theme-light .build-tour-summary-map,
body.modern-v5.app-theme-light .tour-preview-map{
  background:linear-gradient(180deg, rgba(255,251,244,.996), rgba(241,232,217,.982)) !important;
  border-color:rgba(104,82,53,.13) !important;
  box-shadow:0 14px 30px rgba(89,68,37,.10) !important;
}
body.modern-v5.app-theme-light .wizard-section-head h2,
body.modern-v5.app-theme-light .pick-card-title,
body.modern-v5.app-theme-light .tour-card h4,
body.modern-v5.app-theme-light .metric-pill,
body.modern-v5.app-theme-light .map-popup .p-title,
body.modern-v5.app-theme-light .map-legend-modal h3,
body.modern-v5.app-theme-light .video-options-title,
body.modern-v5.app-theme-light .app-sheet-title,
body.modern-v5.app-theme-light .panel-block h3,
body.modern-v5.app-theme-light .entry-brief-item-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-section-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-sub,
body.modern-v5.app-theme-light .build-tour-place-copy .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-dashboard-chip strong,
body.modern-v5.app-theme-light .build-tour-dashboard-actions-title,
body.modern-v5.app-theme-light .build-tour-summary-title,
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .place-detail-disclosure summary,
body.modern-v5.app-theme-light .place-detail-inline-btn-label,
body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title,
body.modern-v5.app-theme-light .app-user-profile-name,
body.modern-v5.app-theme-light .app-user-city-line,
body.modern-v5.app-theme-light .app-user-trigger-title{
  color:#1f1913 !important;
}
body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .pick-card-subtitle,
body.modern-v5.app-theme-light .tour-card-route,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy,
body.modern-v5.app-theme-light .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .hint,
body.modern-v5.app-theme-light .build-tour-place-meta,
body.modern-v5.app-theme-light .build-tour-summary-copy,
body.modern-v5.app-theme-light .build-tour-summary-footer-or,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-rights-line,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .map-popup .p-meta,
body.modern-v5.app-theme-light .nav-hud .hud-line-2,
body.modern-v5.app-theme-light .tour-start-summary,
body.modern-v5.app-theme-light .theme-dock-btn,
body.modern-v5.app-theme-light .app-user-trigger-subtitle,
body.modern-v5.app-theme-light .app-user-profile-meta,
body.modern-v5.app-theme-light .app-user-city-meta,
body.modern-v5.app-theme-light .app-user-action small,
body.modern-v5.app-theme-light .app-user-section-meta,
body.modern-v5.app-theme-light .experience-hub-card p,
body.modern-v5.app-theme-light .experience-shell-card p,
body.modern-v5.app-theme-light .experience-shell-card li{
  color:#66584b !important;
}
body.modern-v5.app-theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.modern-v5.app-theme-light select,
body.modern-v5.app-theme-light textarea{
  background:linear-gradient(180deg, rgba(255,248,240,.994), rgba(241,232,217,.984)) !important;
  border:1px solid rgba(104,82,53,.14) !important;
  color:#1f1913 !important;
  box-shadow:0 8px 18px rgba(89,68,37,.06) !important;
}
body.modern-v5.app-theme-light input::placeholder,
body.modern-v5.app-theme-light textarea::placeholder{
  color:#8a7966 !important;
}
body.modern-v5.app-theme-light .theme-dock,
body.modern-v5.app-theme-light .build-pill,
body.modern-v5.app-theme-light .theme-dock-toggle{
  background:linear-gradient(180deg, rgba(255,250,242,.992), rgba(241,232,217,.982)) !important;
  color:#9b681f !important;
  border-color:rgba(181,126,42,.22) !important;
}
body.modern-v5.app-theme-light .theme-dock-btn.active,
body.modern-v5.app-theme-light .app-user-theme-btn.is-active{
  color:#1f1913 !important;
}
body.modern-v5.app-theme-light .modal-layer.modal-layer-surface{
  background:
    radial-gradient(circle at 14% 12%, rgba(255,230,185,.56), transparent 20%),
    radial-gradient(circle at 84% 9%, rgba(255,255,255,.70), transparent 18%),
    linear-gradient(180deg, var(--ui-bg-1) 0%, var(--ui-bg-2) 52%, var(--ui-bg-3) 100%) !important;
}
body.modern-v5.app-theme-light .maplibregl-canvas{
  filter:saturate(.90) contrast(1.01) brightness(1.04) sepia(.05) !important;
}


/* ===== V223 LIGHT MODE CLARITY CONSOLIDATION ===== */
body.modern-v5.app-theme-light{
  --ui-bg-1:#fcf7ef;
  --ui-bg-2:#f3eadb;
  --ui-bg-3:#eadcc7;
  --ui-ink-1:#201912;
  --ui-ink-2:#5f5144;
  --ui-ink-3:#7c6d5d;
  --ui-accent:#b07926;
  --ui-accent-2:#d9aa59;
  --ui-surface-1:linear-gradient(180deg, rgba(255,252,246,.996), rgba(247,239,227,.989));
  --ui-surface-2:linear-gradient(180deg, rgba(255,249,241,.996), rgba(244,236,224,.988));
  --ui-surface-3:linear-gradient(180deg, rgba(251,244,234,.992), rgba(239,228,211,.986));
  --ui-surface-premium:linear-gradient(180deg, rgba(255,244,224,.996), rgba(245,229,199,.990));
  --ui-line-soft:rgba(97,76,48,.14);
  --ui-line-strong:rgba(168,118,44,.32);
  --ui-shadow-1:0 18px 42px rgba(84,63,34,.10), 0 0 0 1px rgba(255,255,255,.76) inset;
  --ui-shadow-2:0 12px 28px rgba(84,63,34,.08);
}
body.modern-v5.app-theme-light .entry-city-hero-media,
body.modern-v5.app-theme-light .avatar-preview-box,
body.modern-v5.app-theme-light .map-popup-photo-wrap,
body.modern-v5.app-theme-light .build-tour-place-thumb,
body.modern-v5.app-theme-light .build-tour-summary-map,
body.modern-v5.app-theme-light .tour-preview-map,
body.modern-v5.app-theme-light .setup-map-surface{
  background:var(--ui-surface-3) !important;
  border-color:var(--ui-line-soft) !important;
  box-shadow:0 14px 30px rgba(84,63,34,.10) !important;
}
body.modern-v5.app-theme-light .brand-overline,
body.modern-v5.app-theme-light .brand-main,
body.modern-v5.app-theme-light .brand,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .cmd-title,
body.modern-v5.app-theme-light .wizard-panel-title,
body.modern-v5.app-theme-light .pick-card-title,
body.modern-v5.app-theme-light .tour-card h4,
body.modern-v5.app-theme-light .map-popup .p-title,
body.modern-v5.app-theme-light .map-legend-modal h3,
body.modern-v5.app-theme-light .video-options-title,
body.modern-v5.app-theme-light .app-sheet-title,
body.modern-v5.app-theme-light .panel-block h3,
body.modern-v5.app-theme-light .entry-brief-item-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-section-title,
body.modern-v5.app-theme-light .entry-city-hero-copy .intro-sub,
body.modern-v5.app-theme-light .build-tour-place-copy .map-menu-row-title,
body.modern-v5.app-theme-light .build-tour-dashboard-chip strong,
body.modern-v5.app-theme-light .build-tour-dashboard-actions-title,
body.modern-v5.app-theme-light .build-tour-summary-title,
body.modern-v5.app-theme-light .place-detail-title,
body.modern-v5.app-theme-light .place-detail-disclosure summary,
body.modern-v5.app-theme-light .place-detail-inline-btn-label,
body.modern-v5.app-theme-light .build-tour-dashboard-title,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title,
body.modern-v5.app-theme-light .build-tour-suggest-selected-title,
body.modern-v5.app-theme-light .build-tour-suggest-result-title,
body.modern-v5.app-theme-light .app-user-profile-name,
body.modern-v5.app-theme-light .app-user-city-line,
body.modern-v5.app-theme-light .app-user-trigger-title,
body.modern-v5.app-theme-light .experience-hub-card h3,
body.modern-v5.app-theme-light .experience-shell-card h3{
  color:var(--ui-ink-1) !important;
}
body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .pick-card-subtitle,
body.modern-v5.app-theme-light .tour-card-route,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy,
body.modern-v5.app-theme-light .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .hint,
body.modern-v5.app-theme-light .build-tour-place-meta,
body.modern-v5.app-theme-light .build-tour-summary-copy,
body.modern-v5.app-theme-light .build-tour-summary-footer-or,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-rights-line,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty,
body.modern-v5.app-theme-light .map-popup .p-meta,
body.modern-v5.app-theme-light .nav-hud .hud-line-2,
body.modern-v5.app-theme-light .tour-start-summary,
body.modern-v5.app-theme-light .theme-dock-btn,
body.modern-v5.app-theme-light .app-user-trigger-subtitle,
body.modern-v5.app-theme-light .app-user-profile-meta,
body.modern-v5.app-theme-light .app-user-city-meta,
body.modern-v5.app-theme-light .app-user-action small,
body.modern-v5.app-theme-light .app-user-section-meta,
body.modern-v5.app-theme-light .experience-hub-card p,
body.modern-v5.app-theme-light .experience-shell-card p,
body.modern-v5.app-theme-light .experience-shell-card li{
  color:var(--ui-ink-2) !important;
}
body.modern-v5.app-theme-light .btn,
body.modern-v5.app-theme-light .app-sheet-back,
body.modern-v5.app-theme-light .app-sheet-secondary,
body.modern-v5.app-theme-light .map-menu-sheet-back,
body.modern-v5.app-theme-light .build-tour-dashboard-edit,
body.modern-v5.app-theme-light .build-tour-dashboard-btn,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove,
body.modern-v5.app-theme-light .build-tour-place-remove,
body.modern-v5.app-theme-light .entry-compare-btn,
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle,
body.modern-v5.app-theme-light .theme-dock-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn,
body.modern-v5.app-theme-light .build-tour-suggest-rule-state,
body.modern-v5.app-theme-light .build-tour-suggest-rule-activate,
body.modern-v5.app-theme-light .maplibregl-ctrl-group,
body.modern-v5.app-theme-light .maplibregl-ctrl button,
body.modern-v5.app-theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.modern-v5.app-theme-light select,
body.modern-v5.app-theme-light textarea{
  background:var(--ui-surface-2) !important;
  border-color:var(--ui-line-soft) !important;
  color:var(--ui-ink-1) !important;
  box-shadow:var(--ui-shadow-2) !important;
}
body.modern-v5.app-theme-light .btn:hover,
body.modern-v5.app-theme-light .app-sheet-back:hover,
body.modern-v5.app-theme-light .app-sheet-secondary:hover,
body.modern-v5.app-theme-light .map-menu-sheet-back:hover,
body.modern-v5.app-theme-light .build-tour-dashboard-edit:hover,
body.modern-v5.app-theme-light .build-tour-dashboard-btn:hover,
body.modern-v5.app-theme-light .build-tour-suggest-toggle:hover,
body.modern-v5.app-theme-light .entry-compare-btn:hover,
body.modern-v5.app-theme-light .map-icon-btn:hover,
body.modern-v5.app-theme-light .history-btn:hover,
body.modern-v5.app-theme-light .tour-back-btn:hover,
body.modern-v5.app-theme-light .video-options-fab:hover,
body.modern-v5.app-theme-light .map-rights-toggle:hover,
body.modern-v5.app-theme-light .theme-dock-btn:hover,
body.modern-v5.app-theme-light .build-tour-suggest-rule-btn:hover,
body.modern-v5.app-theme-light .maplibregl-ctrl button:hover{
  background:linear-gradient(180deg, rgba(255,247,236,.996), rgba(244,235,221,.987)) !important;
  border-color:rgba(168,118,44,.24) !important;
  color:var(--ui-ink-1) !important;
}
body.modern-v5.app-theme-light input::placeholder,
body.modern-v5.app-theme-light textarea::placeholder{
  color:#8a7966 !important;
}
body.modern-v5.app-theme-light .theme-dock,
body.modern-v5.app-theme-light .build-pill,
body.modern-v5.app-theme-light .theme-dock-toggle{
  background:var(--ui-surface-2) !important;
  color:#98651d !important;
  border-color:rgba(168,118,44,.22) !important;
  box-shadow:var(--ui-shadow-2) !important;
}
body.modern-v5.app-theme-light .modal-layer.modal-layer-surface{
  background:
    radial-gradient(circle at 14% 10%, rgba(255,225,171,.54), transparent 18%),
    radial-gradient(circle at 84% 8%, rgba(255,255,255,.66), transparent 20%),
    linear-gradient(180deg, var(--ui-bg-1) 0%, var(--ui-bg-2) 50%, var(--ui-bg-3) 100%) !important;
}
body.modern-v5.app-theme-light .maplibregl-canvas{
  filter:saturate(.88) contrast(1.01) brightness(1.045) sepia(.06) !important;
}

/* ===== V224 APP LIGHT WARM REBASE ===== */
body.modern-v5.app-theme-light {
  --ui-bg-1:#f9f3e8;
  --ui-bg-2:#f2eadf;
  --ui-ink:#1f1913;
  --ui-ink-soft:#6f6256;
  --ui-panel:rgba(255,251,245,.988);
  --ui-panel-border:rgba(104,82,53,.11);
  --ui-accent:#9b681f;
  --ui-accent-2:#8a5a00;
  --ui-accent-soft:rgba(var(--gold-shadow-rgb),.12);
  --ui-deep:#241b14;
  background:
    radial-gradient(circle at 14% 12%, rgba(var(--gold-shadow-rgb),.14), transparent 20%),
    radial-gradient(circle at 84% 10%, rgba(143,74,36,.08), transparent 18%),
    radial-gradient(circle at 52% 118%, rgba(var(--gold-shadow-rgb),.10), transparent 28%),
    linear-gradient(180deg,#f9f3e8 0%, #f2eadf 44%, #ece2d3 100%) !important;
}
body.modern-v5.app-theme-light .wizard-view::before {
  background: radial-gradient(circle, rgba(var(--gold-shadow-rgb),.12), transparent 66%);
}
body.modern-v5.app-theme-light .wizard-view::after {
  background: radial-gradient(circle, rgba(143,74,36,.07), transparent 68%);
}
body.modern-v5.app-theme-light .topbar{
  background:rgba(253,249,242,.95) !important;
  border-bottom-color:rgba(104,82,53,.11) !important;
  box-shadow:0 14px 30px rgba(61,44,27,.08) !important;
}
body.modern-v5.app-theme-light .hint,
body.modern-v5.app-theme-light .status,
body.modern-v5.app-theme-light .pick-card-subtitle,
body.modern-v5.app-theme-light .tour-card-route,
body.modern-v5.app-theme-light .entry-bottom-note,
body.modern-v5.app-theme-light .entry-brief-item-copy,
body.modern-v5.app-theme-light .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .hint,
body.modern-v5.app-theme-light .build-tour-place-meta,
body.modern-v5.app-theme-light .build-tour-summary-copy,
body.modern-v5.app-theme-light .build-tour-summary-footer-or,
body.modern-v5.app-theme-light .map-legend-note,
body.modern-v5.app-theme-light .map-rights-line,
body.modern-v5.app-theme-light .map-rights-title,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .checks-row label,
body.modern-v5.app-theme-light .node-item .nline,
body.modern-v5.app-theme-light .gallery-caption,
body.modern-v5.app-theme-light .place-detail-subtitle,
body.modern-v5.app-theme-light .place-detail-meta-line,
body.modern-v5.app-theme-light .place-detail-text,
body.modern-v5.app-theme-light .place-detail-empty,
body.modern-v5.app-theme-light .place-detail-kv-value,
body.modern-v5.app-theme-light .place-detail-hero-missing-copy,
body.modern-v5.app-theme-light .build-tour-dashboard-note,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-light .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-light .build-tour-summary-meta,
body.modern-v5.app-theme-light .build-tour-summary-eta,
body.modern-v5.app-theme-light .build-tour-summary-note,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-result-meta,
body.modern-v5.app-theme-light .build-tour-suggest-route,
body.modern-v5.app-theme-light .build-tour-suggest-empty{
  color:#6f6256 !important;
}
body.modern-v5.app-theme-light .btn,
body.modern-v5.app-theme-light .app-sheet-back,
body.modern-v5.app-theme-light .app-sheet-secondary,
body.modern-v5.app-theme-light .map-menu-sheet-back,
body.modern-v5.app-theme-light .build-tour-dashboard-edit,
body.modern-v5.app-theme-light .build-tour-dashboard-btn,
body.modern-v5.app-theme-light .build-tour-suggest-toggle,
body.modern-v5.app-theme-light .build-tour-suggest-chip-remove,
body.modern-v5.app-theme-light .build-tour-place-remove,
body.modern-v5.app-theme-light .entry-compare-btn,
body.modern-v5.app-theme-light .map-icon-btn,
body.modern-v5.app-theme-light .history-btn,
body.modern-v5.app-theme-light .tour-back-btn,
body.modern-v5.app-theme-light .video-options-fab,
body.modern-v5.app-theme-light .map-rights-toggle,
body.modern-v5.app-theme-light .theme-dock-toggle{
  background:linear-gradient(180deg, rgba(255,251,245,.992), rgba(243,235,224,.984)) !important;
  border-color:rgba(104,82,53,.12) !important;
  color:#2a2119 !important;
  box-shadow:0 10px 24px rgba(61,44,27,.10), 0 0 0 1px rgba(255,255,255,.68) inset !important;
}
body.modern-v5.app-theme-light .pick-card.active,
body.modern-v5.app-theme-light .node-item.active,
body.modern-v5.app-theme-light .tour-card-status,
body.modern-v5.app-theme-light .build-tour-suggest-chip,
body.modern-v5.app-theme-light .build-tour-summary-row,
body.modern-v5.app-theme-light .build-tour-place-row,
body.modern-v5.app-theme-light .build-tour-suggest-stop-row,
body.modern-v5.app-theme-light .build-tour-dashboard-chip,
body.modern-v5.app-theme-light .build-tour-dashboard-metric,
body.modern-v5.app-theme-light .build-tour-summary-metric,
body.modern-v5.app-theme-light .build-tour-summary-chip,
body.modern-v5.app-theme-light .map-menu-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-main,
body.modern-v5.app-theme-light .build-tour-suggest-rule-row-menu{
  background:linear-gradient(180deg, rgba(255,251,244,.995), rgba(244,236,223,.987)) !important;
  border-color:rgba(181,126,42,.16) !important;
  color:#1f1913 !important;
  box-shadow:0 12px 28px rgba(61,44,27,.09), inset 0 1px 0 rgba(255,255,255,.78) !important;
}
body.modern-v5.app-theme-light .entry-city-hero-media,
body.modern-v5.app-theme-light .avatar-preview-box,
body.modern-v5.app-theme-light .map-popup-photo-wrap,
body.modern-v5.app-theme-light .build-tour-place-thumb,
body.modern-v5.app-theme-light .build-tour-summary-map,
body.modern-v5.app-theme-light .tour-preview-map,
body.modern-v5.app-theme-light .place-detail-hero-media{
  background:linear-gradient(180deg, rgba(255,252,246,.996), rgba(242,234,223,.985)) !important;
  border-color:rgba(104,82,53,.11) !important;
  box-shadow:0 14px 30px rgba(61,44,27,.12) !important;
}
body.modern-v5.app-theme-light .app-sheet-note,
body.modern-v5.app-theme-light .build-tour-dashboard-departure,
body.modern-v5.app-theme-light .build-tour-suggest-card,
body.modern-v5.app-theme-light .build-tour-suggest-empty-panel{
  background:linear-gradient(180deg, rgba(255,247,235,.996), rgba(244,233,217,.986)) !important;
  border-color:rgba(181,126,42,.18) !important;
  color:#6f6256 !important;
  box-shadow:0 14px 30px rgba(61,44,27,.08) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-section-panel{
  background:#f8fafc !important;
  border-color:#cbd5e1 !important;
  color:#475569 !important;
  box-shadow:none !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block{
  background:#ffffff!important;
  border-color:#cbd5e1!important;
  color:#0f172a!important;
  box-shadow:none!important;
}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block .build-tour-suggest-stop-row{
  background:#f8fafc!important;
  border-color:#dbe3ef!important;
  color:#0f172a!important;
  box-shadow:none!important;
}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block .build-tour-place-order{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1e3a8a!important;
}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block .build-tour-place-token{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
  letter-spacing:0!important;
}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-block .build-tour-place-token.is-metrics{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
  color:#334155!important;
}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-kicker{color:#1d4ed8!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-title{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-body,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-summary{color:#475569!important;-webkit-text-fill-color:#475569!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-note,
body.modern-v5.app-theme-light .build-tour-suggest-proposal-warning{background:#f8fafc!important;border-color:#dbe3ef!important;color:#334155!important;-webkit-text-fill-color:#334155!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-chip{background:#eff6ff!important;border-color:#bfdbfe!important;color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item{background:#f8fafc!important;border-color:#dbe3ef!important;box-shadow:none!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item span{color:#475569!important;-webkit-text-fill-color:#475569!important;}
body.modern-v5.app-theme-light .build-tour-suggest-proposal-grid-item strong{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;}
body.modern-v5.app-theme-light .map-popup .p-token,
body.modern-v5.app-theme-light .tour-start-chip,
body.modern-v5.app-theme-light .build-tour-suggest-stop-order,
body.modern-v5.app-theme-light .map-menu-row-icon{
  background:rgba(var(--gold-shadow-rgb),.12) !important;
  border-color:rgba(181,126,42,.20) !important;
  color:#9b681f !important;
}
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .build-tour-suggest-stop-tag,
body.modern-v5.app-theme-light .build-tour-suggest-inline-unit,
body.modern-v5.app-theme-light .place-detail-kv-label{
  color:#9b681f !important;
}
body.modern-v5.app-theme-light .map-popup .p-meta,
body.modern-v5.app-theme-light .nav-hud .hud-line,
body.modern-v5.app-theme-light .nav-hud .hud-line-3,
body.modern-v5.app-theme-light .tour-start-summary{
  color:#6f6256 !important;
}
body.modern-v5.app-theme-light .modal-layer.modal-layer-surface {
  background:
    radial-gradient(circle at 14% 14%, rgba(var(--gold-shadow-rgb),.12), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(143,74,36,.07), transparent 18%),
    linear-gradient(180deg, #f9f3e8 0%, #f2eadf 44%, #ece2d3 100%) !important;
}

/* V357 GPS filters + popup arrow alignment */
body.modern-v5.wizard-onboarding-mode .intro-nav-arrow {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: clamp(42px, 7vw, 58px) !important;
  line-height: 1 !important;
  transform: none !important;
}

body.modern-v5 .map-menu-row-icon,
body.modern-v5 .map-menu-row-arrow,
body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  align-self: center !important;
  transform: none !important;
}

body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-rule-row-main,
body.modern-v5 .build-tour-suggest-rule-row-menu,
body.modern-v5 .map-menu-row {
  align-items: center !important;
}

body.modern-v5 .build-tour-suggest-row-control,
body.modern-v5 .build-tour-suggest-rule-selection {
  align-items: center !important;
}


/* V427 optimize-tour button spacing + curated map back */
body.modern-v5 .build-tour-suggest-rule-row,
body.modern-v5 .build-tour-suggest-rule-row-main,
body.modern-v5 .build-tour-suggest-rule-row-menu {
  column-gap: 16px !important;
}

body.modern-v5 .build-tour-suggest-rule-row .map-menu-row-copy {
  padding-right: 18px !important;
}

body.modern-v5 .build-tour-suggest-row-control,
body.modern-v5 .build-tour-suggest-rule-selection {
  min-width: 300px !important;
  gap: 12px !important;
  align-items: center !important;
}

body.modern-v5 .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-state,
body.modern-v5 .build-tour-suggest-rule-activate {
  position: relative !important;
  min-width: 246px !important;
  min-height: 54px !important;
  padding-left: 18px !important;
  padding-right: 72px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.16 !important;
}

body.modern-v5 .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-activate::after {
  right: 12px !important;
}

@media (max-width: 900px) {
  body.modern-v5 .build-tour-suggest-row-control,
  body.modern-v5 .build-tour-suggest-rule-selection {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.modern-v5 .build-tour-suggest-rule-btn,
  body.modern-v5 .build-tour-suggest-rule-state,
  body.modern-v5 .build-tour-suggest-rule-activate {
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* ===== V430 OPTIMIZE TOUR CONTROL WIDTH + CURATED BACK FIX ===== */
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-selection {
  min-width: 304px !important;
  gap: 14px !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-state,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-select {
  min-width: 248px !important;
  width: 248px !important;
  max-width: 248px !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-state {
  padding-right: 92px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-select {
  padding-right: 78px !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate::after {
  right: 12px !important;
}

body.modern-v5 .curated-enable-row .build-tour-suggest-rule-selection {
  min-width: 304px !important;
}

@media (max-width: 900px) {
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-selection,
  body.modern-v5 .curated-enable-row .build-tour-suggest-rule-selection {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-state,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-select {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}


/* ===== V431 OPTIMIZE TOUR ARROW HARDENING ===== */
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-main {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  column-gap: 18px !important;
}

body.modern-v5 .build-tour-suggest-rule-row .map-menu-row-copy {
  min-width: 0 !important;
  padding-right: 28px !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-row-control,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-selection {
  min-width: 372px !important;
  width: 372px !important;
  max-width: 372px !important;
  gap: 14px !important;
  justify-content: flex-end !important;
  flex: 0 0 372px !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-state,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-select {
  min-width: 298px !important;
  width: 298px !important;
  max-width: 298px !important;
  box-sizing: border-box !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-state {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 18px !important;
  padding-right: 92px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn::after,
body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate::after {
  right: 16px !important;
}

body.modern-v5 .curated-enable-row .build-tour-suggest-rule-selection {
  min-width: 372px !important;
  width: 372px !important;
  max-width: 372px !important;
}

body.modern-v5 .curated-enable-row .build-tour-suggest-rule-btn,
body.modern-v5 .curated-enable-row .build-tour-suggest-rule-activate,
body.modern-v5 .curated-enable-row .build-tour-suggest-rule-state {
  min-width: 298px !important;
  width: 298px !important;
  max-width: 298px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1100px) {
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-row-control,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-selection,
  body.modern-v5 .curated-enable-row .build-tour-suggest-rule-selection {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }

  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-btn,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-activate,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-rule-state,
  body.modern-v5 .build-tour-suggest-rule-row.build-tour-suggest-rule-row-menu .build-tour-suggest-select,
  body.modern-v5 .curated-enable-row .build-tour-suggest-rule-btn,
  body.modern-v5 .curated-enable-row .build-tour-suggest-rule-activate,
  body.modern-v5 .curated-enable-row .build-tour-suggest-rule-state {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== V434 OPTIMIZE TOUR + CURATED CONTROL PARITY ===== */
body.modern-v5 .optimize-tour-rules-list {
  display: grid;
  gap: 14px;
}

body.modern-v5 .optimize-tour-rule-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 252px) !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 0 !important;
  padding: 18px 18px !important;
  border-radius: 24px !important;
}

body.modern-v5 .optimize-tour-rule-row .map-menu-row-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.modern-v5 .optimize-tour-rule-row .map-menu-row-title {
  font-size: 16px !important;
  line-height: 1.18 !important;
}

body.modern-v5 .optimize-tour-rule-row .map-menu-row-subtitle {
  font-size: 13px !important;
  line-height: 1.48 !important;
}

body.modern-v5 .optimize-tour-rule-row > .build-tour-suggest-row-control,
body.modern-v5 .optimize-tour-rule-row > .build-tour-suggest-rule-selection,
body.modern-v5 .optimize-tour-rule-row > .optimize-tour-action-btn,
body.modern-v5 .curated-layer-control-row > .build-tour-suggest-row-control,
body.modern-v5 .curated-layer-control-row > .build-tour-suggest-rule-selection {
  margin-left: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  justify-self: end !important;
}

body.modern-v5 .optimize-tour-control-shell,
body.modern-v5 .curated-layer-control-shell {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 252px !important;
}

body.modern-v5 .optimize-tour-control-shell .build-tour-suggest-switch,
body.modern-v5 .curated-layer-control-shell .build-tour-suggest-switch {
  margin: 0 !important;
  justify-self: start !important;
}

body.modern-v5 .optimize-tour-action-btn,
body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-select,
body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-number {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.modern-v5 .optimize-tour-action-btn,
body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-rule-state,
body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-rule-btn,
body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-rule-activate,
body.modern-v5 .curated-layer-control-row .build-tour-suggest-rule-state,
body.modern-v5 .curated-layer-control-row .build-tour-suggest-rule-btn,
body.modern-v5 .curated-layer-control-row .build-tour-suggest-rule-activate {
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  justify-content: center !important;
  text-align: center !important;
}

body.modern-v5 .optimize-tour-action-btn::after,
body.modern-v5 .curated-layer-control-row .optimize-tour-action-btn::after {
  content: none !important;
  display: none !important;
}

body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-select {
  padding-right: 16px !important;
  background-position: right 12px center !important;
}

body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-row-control-km {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 220px !important;
  justify-self: end !important;
  justify-content: flex-end !important;
}

body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-row-control-km .build-tour-suggest-number {
  width: 116px !important;
  min-width: 116px !important;
}

body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-inline-unit {
  min-width: 40px !important;
  text-align: center !important;
}

body.modern-v5 .curated-layer-control-row .map-menu-row-copy {
  min-width: 0;
}

@media (max-width: 860px) {
  body.modern-v5 .optimize-tour-rule-row,
  body.modern-v5 .curated-layer-control-row {
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
  }

  body.modern-v5 .optimize-tour-rule-row > .build-tour-suggest-row-control,
  body.modern-v5 .optimize-tour-rule-row > .build-tour-suggest-rule-selection,
  body.modern-v5 .optimize-tour-rule-row > .optimize-tour-action-btn,
  body.modern-v5 .curated-layer-control-row > .build-tour-suggest-row-control,
  body.modern-v5 .curated-layer-control-row > .build-tour-suggest-rule-selection {
    grid-column: 2 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 4px !important;
  }

  body.modern-v5 .optimize-tour-control-shell,
  body.modern-v5 .curated-layer-control-shell {
    max-width: none !important;
  }

  body.modern-v5 .optimize-tour-rule-row .build-tour-suggest-row-control-km {
    grid-column: 2 / -1 !important;
    justify-self: stretch !important;
    max-width: none !important;
    margin-top: 4px !important;
  }
}

@media (max-width: 560px) {
  body.modern-v5 .optimize-tour-rule-row,
  body.modern-v5 .curated-layer-control-row {
    padding: 16px 16px !important;
    gap: 14px !important;
  }

  body.modern-v5 .optimize-tour-control-shell,
  body.modern-v5 .curated-layer-control-shell {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.modern-v5 .optimize-tour-rule-row .map-menu-row-title,
  body.modern-v5 .curated-layer-control-row .map-menu-row-title {
    font-size: 15px !important;
  }
}

/* ===== V435 OPTIMIZE TOUR RUNTIME RESET ===== */
body.modern-v5 .atg-v435-optimize-list,
body.modern-v5 .optimize-tour-rules-list{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  grid-template-columns:1fr !important;
}
body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row{
  display:grid !important;
  grid-template-columns:56px minmax(0,1fr) minmax(280px,340px) !important;
  gap:16px !important;
  align-items:center !important;
  width:100% !important;
  min-height:104px !important;
  padding:18px 18px !important;
  border-radius:22px !important;
}
body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .map-menu-row-copy,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .map-menu-row-copy{
  min-width:0 !important;
  width:100% !important;
  padding-right:8px !important;
}
body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .map-menu-row-title,
body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .map-menu-row-subtitle,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .map-menu-row-title,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .map-menu-row-subtitle{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .map-menu-row-subtitle,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .map-menu-row-subtitle{
  line-height:1.45 !important;
}
body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .build-tour-suggest-row-control,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .build-tour-suggest-row-control{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
  width:100% !important;
  min-width:0 !important;
  flex-wrap:nowrap !important;
}
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-switch,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-switch{
  flex:0 0 auto !important;
}
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-btn,
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-activate,
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-state,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-btn,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-activate,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-state{
  min-height:50px !important;
  min-width:170px !important;
  width:170px !important;
  max-width:170px !important;
  border-radius:16px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1.25 !important;
  padding:12px 14px !important;
}
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-select,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-select{
  min-height:50px !important;
  min-width:220px !important;
  width:220px !important;
  max-width:220px !important;
  border-radius:16px !important;
}
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-btn::after,
body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-activate::after,
body.modern-v5 .optimize-tour-rules-list .optimize-tour-action-btn::after,
body.modern-v5 .optimize-tour-rules-list .optimize-tour-action-btn::before,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-btn::after,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-activate::after,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .optimize-tour-action-btn::after,
body.modern-v5 .curated-enable-row.optimize-tour-rules-list .optimize-tour-action-btn::before{
  content:none !important;
  display:none !important;
}
@media (max-width: 860px){
  body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row{
    grid-template-columns:52px minmax(0,1fr) !important;
    align-items:start !important;
  }
  body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .build-tour-suggest-row-control,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .build-tour-suggest-row-control{
    grid-column:1 / -1 !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    padding-left:66px !important;
  }
  body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-btn,
  body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-activate,
  body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-rule-state,
  body.modern-v5 .optimize-tour-rules-list .build-tour-suggest-select,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-btn,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-activate,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-rule-state,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list .build-tour-suggest-select{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    flex:1 1 220px !important;
  }
}
@media (max-width: 560px){
  body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row{
    padding:16px 14px !important;
    border-radius:18px !important;
  }
  body.modern-v5 .optimize-tour-rules-list > .optimize-tour-rule-row .build-tour-suggest-row-control,
  body.modern-v5 .curated-enable-row.optimize-tour-rules-list > .curated-layer-control-row .build-tour-suggest-row-control{
    padding-left:0 !important;
  }
}


/* ===== V436 OPTIMIZE TOUR HARD REBUILD ===== */
body.modern-v5 .atg-v436-optimize-list{display:grid !important;grid-template-columns:1fr !important;gap:12px !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row{display:grid !important;grid-template-columns:42px minmax(0,1fr) minmax(260px,340px) !important;align-items:center !important;gap:16px !important;min-height:96px !important;width:100% !important;padding:16px 18px !important;border-radius:24px !important;overflow:visible !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .map-menu-row-icon{display:none !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-icon{width:38px !important;height:38px !important;min-width:38px !important;padding:0 !important;font-size:18px !important;line-height:1 !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-copy{min-width:0 !important;display:grid !important;gap:6px !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-title{margin:0 !important;font-size:17px !important;line-height:1.2 !important;white-space:normal !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-subtitle{margin:0 !important;font-size:13px !important;line-height:1.5 !important;white-space:normal !important;color:rgba(239,226,201,.78) !important;}
body.modern-v5.app-theme-light .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-subtitle{color:rgba(71,85,105,.88) !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-panel{display:flex !important;align-items:center !important;justify-content:flex-end !important;gap:12px !important;min-width:0 !important;width:100% !important;margin-left:0 !important;}
body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-switch-shell{flex:0 0 auto !important;margin:0 !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-action-btn,body.modern-v5 .atg-v436-optimize-list .atg-v436-select,body.modern-v5 .atg-v436-optimize-list .atg-v436-input{min-height:50px !important;border-radius:16px !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-action-btn{display:inline-flex !important;align-items:center !important;justify-content:center !important;width:186px !important;min-width:186px !important;max-width:186px !important;padding:12px 14px !important;text-align:center !important;line-height:1.25 !important;white-space:normal !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-action-btn-wide{width:100% !important;min-width:220px !important;max-width:340px !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-select{width:220px !important;min-width:220px !important;max-width:220px !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-input{width:124px !important;min-width:124px !important;text-align:center !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-inline-unit{min-width:44px !important;text-align:center !important;}
body.modern-v5 .atg-v436-optimize-list .atg-v436-action-btn::after,body.modern-v5 .atg-v436-optimize-list .atg-v436-action-btn::before{content:none !important;display:none !important;}
@media (max-width: 860px){body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row{grid-template-columns:42px minmax(0,1fr) !important;align-items:start !important;}body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-panel{grid-column:1 / -1 !important;justify-content:flex-start !important;flex-wrap:wrap !important;padding-left:54px !important;}body.modern-v5 .atg-v436-optimize-list .atg-v436-action-btn,body.modern-v5 .atg-v436-optimize-list .atg-v436-select,body.modern-v5 .atg-v436-optimize-list .atg-v436-input{width:100% !important;min-width:0 !important;max-width:none !important;flex:1 1 220px !important;}}
@media (max-width: 560px){body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row{padding:14px !important;border-radius:20px !important;}body.modern-v5 .atg-v436-optimize-list > .atg-v436-control-row .atg-v436-control-panel{padding-left:0 !important;}}


/* ===== V438 OPTIMIZE TOUR + CURATED CITY CONSTRAINTS ===== */
body.modern-v5 .atg-v437-settings-list{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:14px !important;
  margin:0 !important;
  padding:0 !important;
}
body.modern-v5 .atg-v437-setting-row{
  display:grid !important;
  grid-template-columns:48px minmax(0,1fr) minmax(280px,340px) !important;
  align-items:center !important;
  gap:16px !important;
  width:100% !important;
  min-height:96px !important;
  padding:18px 18px !important;
  border-radius:24px !important;
  border:1px solid rgba(148,163,184,.16) !important;
  background:rgba(255,255,255,.04) !important;
  box-shadow:0 18px 34px rgba(15,23,42,.14) !important;
  overflow:visible !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-row{
  background:rgba(255,255,255,.92) !important;
  border-color:rgba(203,213,225,.95) !important;
  box-shadow:0 18px 34px rgba(15,23,42,.08) !important;
}
body.modern-v5 .atg-v437-setting-icon{
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
  display:grid !important;
  place-items:center !important;
  font-size:18px !important;
  font-weight:800 !important;
  color:#fde68a !important;
  background:rgba(245,158,11,.12) !important;
  border:1px solid rgba(245,158,11,.24) !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-icon{
  color:#8a5300 !important;
  background:rgba(245,158,11,.12) !important;
}
body.modern-v5 .atg-v437-setting-copy{
  min-width:0 !important;
  display:grid !important;
  gap:6px !important;
}
body.modern-v5 .atg-v437-setting-title{
  margin:0 !important;
  font-size:17px !important;
  line-height:1.22 !important;
  font-weight:800 !important;
  color:#f8fafc !important;
  white-space:normal !important;
}
body.modern-v5 .atg-v437-setting-subtitle{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.5 !important;
  color:rgba(226,232,240,.82) !important;
  white-space:normal !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-title{color:#18212d !important;}
body.modern-v5.app-theme-light .atg-v437-setting-subtitle{color:#556070 !important;}
body.modern-v5 .atg-v437-setting-control{
  min-width:0 !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
}
body.modern-v5 .atg-v437-setting-control-field{justify-content:flex-end !important;}
body.modern-v5 .atg-v437-setting-control-single{justify-content:flex-end !important;}
body.modern-v5 .atg-v437-setting-control-toggle{justify-content:flex-end !important;}
body.modern-v5 .atg-v437-setting-field{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  width:auto !important;
  min-width:0 !important;
}
body.modern-v5 .atg-v437-setting-input,
body.modern-v5 .atg-v437-setting-select,
body.modern-v5 .atg-v437-setting-action{
  appearance:none !important;
  -webkit-appearance:none !important;
  border-radius:16px !important;
  border:1px solid rgba(148,163,184,.20) !important;
  min-height:50px !important;
  font:inherit !important;
}
body.modern-v5 .atg-v437-setting-input,
body.modern-v5 .atg-v437-setting-select{
  background:rgba(15,23,42,.34) !important;
  color:#f8fafc !important;
  box-shadow:none !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-input,
body.modern-v5.app-theme-light .atg-v437-setting-select{
  background:#fff !important;
  color:#18212d !important;
  border-color:rgba(203,213,225,.95) !important;
}
body.modern-v5 .atg-v437-setting-input{
  width:124px !important;
  min-width:124px !important;
  padding:0 14px !important;
  text-align:center !important;
}
body.modern-v5 .atg-v437-setting-select{
  width:280px !important;
  min-width:280px !important;
  max-width:280px !important;
  padding:0 42px 0 14px !important;
  background-image:linear-gradient(45deg, transparent 50%, currentColor 50%),linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position:calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px) !important;
  background-size:6px 6px, 6px 6px !important;
  background-repeat:no-repeat !important;
}
body.modern-v5 .atg-v437-setting-unit{
  min-width:42px !important;
  text-align:center !important;
  font-size:12px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  color:rgba(226,232,240,.76) !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-unit{color:#64748b !important;}
body.modern-v5 .atg-v437-setting-action{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:210px !important;
  min-width:210px !important;
  max-width:210px !important;
  padding:12px 14px !important;
  line-height:1.25 !important;
  text-align:center !important;
  white-space:normal !important;
  cursor:pointer !important;
  box-shadow:none !important;
}
body.modern-v5 .atg-v437-setting-action:hover{transform:none !important;}
body.modern-v5 .atg-v437-setting-action-inactive{
  background:rgba(59,130,246,.12) !important;
  color:#dbeafe !important;
  border-color:rgba(96,165,250,.28) !important;
}
body.modern-v5 .atg-v437-setting-action-active{
  background:rgba(245,158,11,.12) !important;
  color:#fde68a !important;
  border-color:rgba(245,158,11,.26) !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-action-inactive{
  background:rgba(59,130,246,.08) !important;
  color:#1d4ed8 !important;
  border-color:rgba(96,165,250,.32) !important;
}
body.modern-v5.app-theme-light .atg-v437-setting-action-active{
  background:rgba(245,158,11,.10) !important;
  color:#8a5300 !important;
  border-color:rgba(245,158,11,.32) !important;
}
body.modern-v5 .atg-v437-setting-action-wide{
  width:100% !important;
  min-width:240px !important;
  max-width:380px !important;
}
body.modern-v5 .atg-v437-switch{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  width:54px !important;
  height:32px !important;
  cursor:pointer !important;
}
body.modern-v5 .atg-v437-switch input{
  position:absolute !important;
  inset:0 !important;
  opacity:0 !important;
  margin:0 !important;
  cursor:pointer !important;
}
body.modern-v5 .atg-v437-switch-ui{
  position:relative !important;
  width:54px !important;
  height:32px !important;
  border-radius:999px !important;
  background:rgba(100,116,139,.35) !important;
  border:1px solid rgba(148,163,184,.22) !important;
  transition:background .18s ease, border-color .18s ease !important;
}
body.modern-v5 .atg-v437-switch-ui::after{
  content:"" !important;
  position:absolute !important;
  top:3px !important;
  left:3px !important;
  width:24px !important;
  height:24px !important;
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 4px 10px rgba(15,23,42,.18) !important;
  transition:transform .18s ease !important;
}
body.modern-v5 .atg-v437-switch input:checked + .atg-v437-switch-ui{
  background:rgba(245,158,11,.28) !important;
  border-color:rgba(245,158,11,.36) !important;
}
body.modern-v5 .atg-v437-switch input:checked + .atg-v437-switch-ui::after{
  transform:translateX(22px) !important;
}
body.modern-v5 .atg-v437-switch input:focus-visible + .atg-v437-switch-ui,
body.modern-v5 .atg-v437-setting-action:focus-visible,
body.modern-v5 .atg-v437-setting-input:focus-visible,
body.modern-v5 .atg-v437-setting-select:focus-visible{
  outline:2px solid rgba(96,165,250,.70) !important;
  outline-offset:2px !important;
}
@media (max-width: 860px){
  body.modern-v5 .atg-v437-setting-row{
    grid-template-columns:48px minmax(0,1fr) !important;
    align-items:start !important;
  }
  body.modern-v5 .atg-v437-setting-control{
    grid-column:1 / -1 !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    padding-left:64px !important;
  }
  body.modern-v5 .atg-v437-setting-action,
  body.modern-v5 .atg-v437-setting-action-wide,
  body.modern-v5 .atg-v437-setting-select,
  body.modern-v5 .atg-v437-setting-input{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    flex:1 1 220px !important;
  }
}
@media (max-width: 560px){
  body.modern-v5 .atg-v437-setting-row{
    padding:14px !important;
    gap:14px !important;
    border-radius:20px !important;
  }
  body.modern-v5 .atg-v437-setting-control{
    padding-left:0 !important;
  }
  body.modern-v5 .atg-v437-setting-title{font-size:15px !important;}
  body.modern-v5 .atg-v437-setting-subtitle{font-size:12px !important;}
}

body.modern-v5 .atg-v441-setting-stack{display:grid !important; gap:10px !important; width:320px !important; min-width:320px !important; max-width:320px !important;}
body.modern-v5 .atg-v441-setting-search{width:320px !important; min-width:320px !important; max-width:320px !important; padding:0 14px !important; text-align:left !important;}
body.modern-v5 .atg-v441-setting-select-dropdown{width:320px !important; min-width:320px !important; max-width:320px !important; min-height:50px !important; height:50px !important; padding:0 42px 0 14px !important; background-image:linear-gradient(45deg, transparent 50%, currentColor 50%),linear-gradient(135deg, currentColor 50%, transparent 50%) !important; background-position:calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px) !important; background-size:6px 6px, 6px 6px !important; background-repeat:no-repeat !important;}
@media (max-width: 860px){body.modern-v5 .atg-v441-setting-stack,body.modern-v5 .atg-v441-setting-search,body.modern-v5 .atg-v441-setting-select-dropdown{width:100% !important; min-width:0 !important; max-width:none !important;}}
body.modern-v5 .atg-v442-picker-shell{display:grid !important;gap:10px !important;width:320px !important;min-width:320px !important;max-width:320px !important;}
body.modern-v5 .atg-v442-picker-trigger{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:10px !important;width:320px !important;min-width:320px !important;max-width:320px !important;min-height:50px !important;padding:0 14px !important;border-radius:16px !important;border:1px solid rgba(148,163,184,.20) !important;background:rgba(15,23,42,.34) !important;color:#f8fafc !important;font:inherit !important;text-align:left !important;cursor:pointer !important;}
body.modern-v5 .atg-v442-picker-trigger::after{content:"▾" !important;flex:0 0 auto !important;font-size:13px !important;opacity:.85 !important;transition:transform .18s ease !important;}
body.modern-v5 .atg-v442-picker-trigger.is-open::after{transform:rotate(180deg) !important;}
body.modern-v5 .atg-v442-picker-trigger.is-selected{border-color:rgba(245,158,11,.26) !important;}
body.modern-v5.app-theme-light .atg-v442-picker-trigger{background:#fff !important;color:#18212d !important;border-color:rgba(203,213,225,.95) !important;}
body.modern-v5 .atg-v442-picker-panel{display:none !important;grid-template-columns:1fr !important;gap:8px !important;max-height:248px !important;overflow:auto !important;padding:10px !important;border-radius:18px !important;border:1px solid rgba(148,163,184,.20) !important;background:rgba(2,6,23,.82) !important;box-shadow:0 16px 34px rgba(2,6,23,.24) !important;}
body.modern-v5 .atg-v442-picker-panel.is-open{display:grid !important;}
body.modern-v5.app-theme-light .atg-v442-picker-panel{background:#f8fafc !important;border-color:rgba(203,213,225,.95) !important;box-shadow:0 14px 28px rgba(15,23,42,.10) !important;}
body.modern-v5 .atg-v442-picker-option{display:flex !important;align-items:center !important;justify-content:flex-start !important;width:100% !important;padding:12px 14px !important;border-radius:14px !important;border:1px solid rgba(148,163,184,.16) !important;background:rgba(15,23,42,.42) !important;color:#e2e8f0 !important;font:inherit !important;text-align:left !important;cursor:pointer !important;}
body.modern-v5 .atg-v442-picker-option.is-selected{border-color:rgba(245,158,11,.30) !important;background:rgba(245,158,11,.12) !important;color:#fde68a !important;}
body.modern-v5.app-theme-light .atg-v442-picker-option{background:#fff !important;color:#18212d !important;border-color:rgba(203,213,225,.95) !important;}
body.modern-v5.app-theme-light .atg-v442-picker-option.is-selected{background:rgba(245,158,11,.10) !important;color:#8a5300 !important;border-color:rgba(245,158,11,.32) !important;}
body.modern-v5 .atg-v442-picker-empty{padding:12px 14px !important;border-radius:14px !important;border:1px dashed rgba(148,163,184,.24) !important;color:rgba(226,232,240,.78) !important;}
body.modern-v5.app-theme-light .atg-v442-picker-empty{color:#64748b !important;border-color:rgba(203,213,225,.95) !important;}
body.modern-v5 .atg-v442-picker-trigger:focus-visible,body.modern-v5 .atg-v442-picker-option:focus-visible{outline:2px solid rgba(96,165,250,.70) !important;outline-offset:2px !important;}
@media (max-width: 860px){body.modern-v5 .atg-v442-picker-shell,body.modern-v5 .atg-v442-picker-trigger{width:100% !important;min-width:0 !important;max-width:none !important;}}


/* V446 rebuilt constraint rows */
body.modern-v5 .atg-v445-constraint-fields{
  display:grid !important;
  gap:10px !important;
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
}
body.modern-v5 .atg-v445-constraint-select,
body.modern-v5 .atg-v445-constraint-search{
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
}
body.modern-v5 .atg-v445-constraint-select{
  padding:0 42px 0 14px !important;
  text-align:left !important;
}
body.modern-v5 .atg-v445-constraint-search{
  padding:0 14px !important;
  text-align:left !important;
}
body.modern-v5 .atg-v445-constraint-search::-webkit-search-cancel-button{
  -webkit-appearance:none !important;
}
body.modern-v5 .atg-v445-constraint-select:focus-visible,
body.modern-v5 .atg-v445-constraint-search:focus-visible{
  outline:2px solid rgba(96,165,250,.70) !important;
  outline-offset:2px !important;
}
@media (max-width: 860px){
  body.modern-v5 .atg-v445-constraint-fields,
  body.modern-v5 .atg-v445-constraint-select,
  body.modern-v5 .atg-v445-constraint-search{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
}


body.modern-v5 .atg-v447-constraint-control{align-items:flex-start !important;}
body.modern-v5 .atg-v447-constraint-shell{display:grid !important;gap:10px !important;width:320px !important;min-width:320px !important;max-width:320px !important;}
body.modern-v5 .atg-v447-constraint-enable,
body.modern-v5 .atg-v447-constraint-select,
body.modern-v5 .atg-v447-constraint-search{width:320px !important;min-width:320px !important;max-width:320px !important;}
body.modern-v5 .atg-v447-constraint-fields{display:grid !important;gap:10px !important;width:320px !important;min-width:320px !important;max-width:320px !important;}
body.modern-v5 .atg-v447-constraint-select{padding:0 42px 0 14px !important;text-align:left !important;}
body.modern-v5 .atg-v447-constraint-search{padding:0 14px !important;text-align:left !important;}
body.modern-v5 .atg-v447-constraint-search::-webkit-search-cancel-button{-webkit-appearance:none !important;}
body.modern-v5 .atg-v447-constraint-enable:focus-visible,
body.modern-v5 .atg-v447-constraint-select:focus-visible,
body.modern-v5 .atg-v447-constraint-search:focus-visible{outline:2px solid rgba(96,165,250,.70) !important;outline-offset:2px !important;}
@media (max-width: 860px){body.modern-v5 .atg-v447-constraint-shell,body.modern-v5 .atg-v447-constraint-enable,body.modern-v5 .atg-v447-constraint-fields,body.modern-v5 .atg-v447-constraint-select,body.modern-v5 .atg-v447-constraint-search{width:100% !important;min-width:0 !important;max-width:none !important;}}

body.modern-v5 .atg-optimize-constraint-row-v1124ox.is-disabled .atg-v447-constraint-control{
  align-items:center !important;
}
body.modern-v5 .atg-optimize-constraint-row-v1124ox.is-disabled .atg-v447-constraint-shell{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}
body.modern-v5 .atg-optimize-constraint-row-v1124ox.is-disabled .atg-v447-constraint-enable{
  width:210px !important;
  min-width:210px !important;
  max-width:210px !important;
}
@media (max-width:860px){
  body.modern-v5 .atg-optimize-constraint-row-v1124ox.is-disabled .atg-v447-constraint-enable{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
}



/* ===== V449 OPTIMIZE TOUR TOP-HALF ALIGNMENT + CONSTRAINT SEARCH FIX SUPPORT ===== */
body.modern-v5 .atg-v449-suggest-surface,
body.modern-v5 .build-tour-suggest-shell .build-tour-suggest-section-panel{
  border-radius:8px !important;
}
body.modern-v5 .atg-v449-suggest-stop-list{
  display:grid !important;
  gap:14px !important;
  padding:0 !important;
  background:transparent !important;
}
body.modern-v5 .atg-v449-suggest-stop-list .build-tour-suggest-stop-row{
  min-height:88px !important;
  border-radius:7px !important;
  border:1px solid #334155 !important;
  background:#172131 !important;
  box-shadow:none !important;
}
body.modern-v5.app-theme-light .atg-v449-suggest-stop-list .build-tour-suggest-stop-row{
  background:#f8fafc !important;
  border-color:#cbd5e1 !important;
  box-shadow:none !important;
}
body.modern-v5 .atg-v449-suggest-stop-list .build-tour-suggest-stop-row .map-menu-row-copy{
  gap:8px !important;
}
body.modern-v5 .atg-v449-suggest-stop-list .build-tour-suggest-stop-row .map-menu-row-title{
  font-size:17px !important;
  line-height:1.22 !important;
  font-weight:800 !important;
}
body.modern-v5 .atg-v449-suggest-stop-list .build-tour-suggest-stop-row .map-menu-row-subtitle,
body.modern-v5 .atg-v449-suggest-stop-list .build-tour-place-meta,
body.modern-v5 .atg-v449-suggest-stop-list .build-tour-place-secondary{
  font-size:13px !important;
  line-height:1.5 !important;
}


/* ===== V451 OPTIMIZE TOUR HEAD + CONSTRAINT SEARCH POLISH ===== */
body.modern-v5 .build-tour-suggest-head-surface{
  margin:0 22px 16px;
  padding:18px 20px;
  border-radius:8px;
  border:1px solid #334155;
  background:#111827;
  box-shadow:none;
}
body.modern-v5 .build-tour-suggest-head-surface .app-sheet-head{
  margin-bottom:0;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.modern-v5 .build-tour-suggest-head-surface .app-sheet-title{
  font-size:28px !important;
  line-height:1.15 !important;
}
body.modern-v5 .build-tour-suggest-head-surface .app-sheet-copy{
  max-width:78ch;
}
body.modern-v5 .build-tour-suggest-overview-card .build-tour-dashboard-title{
  letter-spacing:.01em;
}
body.modern-v5.app-theme-light .build-tour-suggest-head-surface{
  border-color:#cbd5e1;
  background:#ffffff;
  box-shadow:none;
}
body.modern-v5.app-theme-light .build-tour-suggest-head-surface .app-sheet-title{
  color:#1f2937;
}
body.modern-v5.app-theme-light .build-tour-suggest-head-surface .app-sheet-copy{
  color:#475569;
}
body.modern-v5.app-theme-light .build-tour-suggest-head-surface .app-sheet-kicker{
  color:#9a6700;
}
@media (max-width: 860px){
  body.modern-v5 .build-tour-suggest-head-surface{margin:0 0 14px;padding:16px;}
  body.modern-v5 .build-tour-suggest-head-surface .app-sheet-title{font-size:22px !important;}
}

body.modern-v5 .build-tour-suggest-head-surface.atg-v456-optimize-head-surface,
body.modern-v5 .build-tour-suggest-overview-card.atg-v456-optimize-overview-card{
  border-radius:8px !important;
  border:1px solid #334155 !important;
  background:#111827 !important;
  box-shadow:none !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-head-surface.atg-v456-optimize-head-surface,
body.modern-v5.app-theme-light .build-tour-suggest-overview-card.atg-v456-optimize-overview-card{
  background:#ffffff !important;
  border-color:#cbd5e1 !important;
  box-shadow:none !important;
}
body.modern-v5 .build-tour-suggest-head-surface.atg-v456-optimize-head-surface{
  margin:0 22px 16px !important;
  padding:18px !important;
}
body.modern-v5 .atg-v456-optimize-card-head{
  display:grid !important;
  grid-template-columns:48px minmax(0,1fr) !important;
  align-items:center !important;
  gap:16px !important;
}
body.modern-v5 .atg-v456-optimize-card-copy{
  min-width:0 !important;
  display:grid !important;
  gap:6px !important;
}
body.modern-v5 .atg-v456-optimize-kicker{
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  max-width:100% !important;
  min-height:24px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  border:1px solid rgba(245,158,11,.24) !important;
  background:rgba(245,158,11,.12) !important;
  color:#fde68a !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
}
body.modern-v5.app-theme-light .atg-v456-optimize-kicker{
  color:#8a5300 !important;
}
body.modern-v5 .atg-v456-optimize-head-title,
body.modern-v5 .atg-v456-optimize-overview-card .build-tour-dashboard-title{
  font-size:17px !important;
  line-height:1.22 !important;
  font-weight:800 !important;
  color:#f8fafc !important;
}
body.modern-v5 .atg-v456-optimize-head-note,
body.modern-v5 .atg-v456-optimize-overview-card .build-tour-dashboard-note{
  font-size:13px !important;
  line-height:1.5 !important;
  color:rgba(226,232,240,.82) !important;
  max-width:none !important;
}
body.modern-v5.app-theme-light .atg-v456-optimize-head-title,
body.modern-v5.app-theme-light .atg-v456-optimize-overview-card .build-tour-dashboard-title{color:#18212d !important;}
body.modern-v5.app-theme-light .atg-v456-optimize-head-note,
body.modern-v5.app-theme-light .atg-v456-optimize-overview-card .build-tour-dashboard-note{color:#556070 !important;}
body.modern-v5 .build-tour-suggest-overview-card.atg-v456-optimize-overview-card{
  gap:14px !important;
  padding:18px !important;
}
body.modern-v5 .build-tour-suggest-overview-card.atg-v456-optimize-overview-card .build-tour-dashboard-departure{
  border-radius:16px !important;
  border:1px solid rgba(148,163,184,.20) !important;
  background:rgba(15,23,42,.34) !important;
  min-height:50px !important;
  box-shadow:none !important;
}
body.modern-v5 .build-tour-suggest-overview-card.atg-v456-optimize-overview-card .build-tour-dashboard-departure.is-set{
  background:rgba(245,158,11,.12) !important;
  border-color:rgba(245,158,11,.26) !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-overview-card.atg-v456-optimize-overview-card .build-tour-dashboard-departure{
  background:#fff !important;
  border-color:rgba(203,213,225,.95) !important;
}
body.modern-v5 .atg-v456-optimize-metrics{
  gap:12px !important;
}
body.modern-v5 .atg-v456-optimize-chip{
  min-height:88px !important;
  padding:16px !important;
  border-radius:20px !important;
  border:1px solid rgba(148,163,184,.16) !important;
  background:rgba(255,255,255,.04) !important;
  box-shadow:0 18px 34px rgba(15,23,42,.10) !important;
}
body.modern-v5.app-theme-light .atg-v456-optimize-chip{
  background:rgba(255,255,255,.92) !important;
  border-color:rgba(203,213,225,.95) !important;
  box-shadow:0 18px 34px rgba(15,23,42,.06) !important;
}
body.modern-v5 .atg-v456-optimize-chip span{
  color:rgba(226,232,240,.76) !important;
  font-size:11px !important;
  letter-spacing:.08em !important;
}
body.modern-v5 .atg-v456-optimize-chip strong{
  font-size:16px !important;
  line-height:1.2 !important;
}
body.modern-v5.app-theme-light .atg-v456-optimize-chip span{color:#64748b !important;}
@media (max-width: 860px){
  body.modern-v5 .build-tour-suggest-head-surface.atg-v456-optimize-head-surface{margin:0 0 14px !important;padding:16px !important;}
  body.modern-v5 .atg-v456-optimize-card-head{gap:14px !important;}
}
@media (max-width: 560px){
  body.modern-v5 .atg-v456-optimize-card-head{grid-template-columns:42px minmax(0,1fr) !important;align-items:start !important;}
  body.modern-v5 .atg-v456-optimize-chip{min-height:0 !important;padding:14px !important;}
}

/* ===== V456 MODAL FOOTER NAV + PRESET GPS UI ALIGNMENT ===== */
body.modern-v5 .modal-card{position:relative;}
body.modern-v5 .app-inline-theme-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 10px;width:100%;}
body.modern-v5 .app-inline-theme-head-copy{min-width:0;flex:1 1 auto;display:grid;gap:6px;}
body.modern-v5 .app-inline-theme-row{display:flex;justify-content:flex-end;align-items:center;margin:0 0 14px;}
body.modern-v5 .app-inline-theme-dock{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:14px;border:1px solid rgba(226,232,240,.16);background:rgba(2,6,23,.30);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);margin-left:auto;flex:0 0 auto;}
body.modern-v5 .app-inline-theme-btn{border:0;min-height:40px;padding:0 10px;border-radius:10px;font-size:11px;font-weight:850;letter-spacing:0;cursor:pointer;background:transparent;color:#cbd5e1;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;}
body.modern-v5 .app-inline-theme-btn:hover{background:rgba(255,255,255,.08);color:#fff;}
body.modern-v5 .app-inline-theme-btn.active{background:#f8fafc;border-color:transparent;color:#172033;box-shadow:0 4px 12px rgba(2,6,23,.22);}
body.modern-v5 .app-inline-theme-btn:focus-visible{outline:2px solid var(--gold-accent-highlight);outline-offset:2px;}
@media (pointer:coarse) and (max-width:1024px){
  body.modern-v5 .app-inline-theme-btn{min-height:44px!important;}
  body.modern-v5 .build-tour-plan-action-v659{
    min-height:44px!important;
    height:auto!important;
  }
}
body.modern-v5 .app-sheet-head.centered .app-inline-theme-head-row,
body.modern-v5 .avatar-modal-head.centered .app-inline-theme-head-row{width:100%;justify-content:space-between;text-align:left;}
body.modern-v5 .app-sheet-head.centered .app-inline-theme-head-copy,
body.modern-v5 .avatar-modal-head.centered .app-inline-theme-head-copy{justify-items:start;text-align:left;}
body.modern-v5.app-theme-light .app-inline-theme-dock{border-color:#d9e1eb;background:#eef2f7;box-shadow:inset 0 1px 0 rgba(255,255,255,.92);}
body.modern-v5.app-theme-light .app-inline-theme-btn{color:#64748b;}
body.modern-v5.app-theme-light .app-inline-theme-btn:hover{background:#e2e8f0;color:#1e293b;}
body.modern-v5.app-theme-light .app-inline-theme-btn.active{background:#fff;color:#172033;box-shadow:0 3px 10px rgba(15,23,42,.10);}
body.modern-v5.app-theme-light .app-inline-theme-btn:focus-visible{outline-color:#8a5a00;}

body.modern-v5 .place-detail-topbar-actions{display:flex;justify-self:end;justify-content:flex-end;align-items:center;min-width:0;}
body.modern-v5 .app-modal-nav-stash,
body.modern-v5 .app-nav-source-hidden{display:none !important;}
body.modern-v5 .app-standard-modal-nav{display:grid;gap:12px;width:100%;margin-top:18px;padding:14px 0 0;position:relative;bottom:auto;z-index:8;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(7,16,29,.96) 26%,rgba(7,16,29,.995) 100%);}
body.modern-v5 .app-standard-modal-nav.split{grid-template-columns:1fr 1fr;}
body.modern-v5 .app-standard-modal-nav.single{grid-template-columns:1fr;}
body.modern-v5 .app-standard-modal-nav.stacked{grid-template-columns:1fr;}
body.modern-v5 .app-standard-modal-nav-btn{width:100%;min-height:52px;}
body.modern-v5 .place-detail-shell .app-standard-modal-nav{padding:14px 20px 20px;margin-top:0;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(7,16,29,.92) 30%,rgba(7,16,29,.995) 100%);}
body.modern-v5.app-theme-light .app-standard-modal-nav{background:linear-gradient(180deg,rgba(255,255,255,0),rgba(252,246,236,.95) 28%,rgba(252,246,236,.99) 100%);}
body.modern-v5.app-theme-light .place-detail-shell .app-standard-modal-nav{background:linear-gradient(180deg,rgba(255,255,255,0),rgba(252,246,236,.94) 30%,rgba(252,246,236,.99) 100%);}
@media (max-width:640px){body.modern-v5 .app-standard-modal-nav{gap:10px;}body.modern-v5 .app-standard-modal-nav-btn{min-height:48px;font-size:13px;}}
@media (max-width: 640px){body.modern-v5 .app-inline-theme-head-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;justify-items:stretch;}body.modern-v5 .app-inline-theme-head-copy{grid-row:2;width:100%;min-width:0;}body.modern-v5 .app-inline-theme-head-row .app-inline-theme-dock{grid-row:1;justify-self:end;margin-left:0;}body.modern-v5 .app-inline-theme-row{margin:0 0 12px;}body.modern-v5 .app-inline-theme-dock{padding:3px;gap:2px;}body.modern-v5 .app-inline-theme-btn{min-height:40px!important;padding:0 10px;font-size:11px;}}


/* ===== V457 BUILD YOUR TOUR NAV + TITLE + DEPARTURE BAR FIXES ===== */
body.modern-v5 .build-tour-dashboard-departure,
body.modern-v5 .build-tour-summary-departure{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.modern-v5 .build-tour-dashboard-departure,
body.modern-v5 .build-tour-dashboard-departure-action,
body.modern-v5 .build-tour-summary-departure,
body.modern-v5 .build-tour-summary-departure.build-tour-dashboard-departure-action{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}
body.modern-v5 .build-tour-dashboard-departure-action,
body.modern-v5 .build-tour-summary-departure.build-tour-dashboard-departure-action{
  min-width:0 !important;
  overflow:hidden !important;
}
body.modern-v5 .build-tour-dashboard-departure strong,
body.modern-v5 .build-tour-summary-departure strong{
  text-align:right !important;
  flex:0 0 auto !important;
}
body.modern-v5 .build-tour-dashboard-departure-label,
body.modern-v5 .build-tour-summary-departure .build-tour-dashboard-departure-label{
  min-width:0 !important;
}
body.modern-v5 .build-tour-suggest-overview-card.atg-v456-optimize-overview-card .build-tour-dashboard-departure,
body.modern-v5 .build-tour-summary-departure{
  margin-left:0 !important;
  margin-right:0 !important;
}
body.modern-v5 .build-tour-suggest-head-surface.atg-v457-optimize-head-surface{
  margin:0 22px 16px !important;
  padding:18px 20px !important;
  border-radius:8px !important;
  border:1px solid #334155 !important;
  background:#111827 !important;
  box-shadow:none !important;
}
body.modern-v5 .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-head{
  margin-bottom:0 !important;
}
body.modern-v5 .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-title{
  font-size:28px !important;
  line-height:1.12 !important;
}
body.modern-v5 .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-copy{
  max-width:78ch !important;
}
body.modern-v5.app-theme-light .build-tour-suggest-head-surface.atg-v457-optimize-head-surface{
  background:#ffffff !important;
  border-color:#cbd5e1 !important;
  box-shadow:none !important;
}
body.modern-v5.app-theme-dark .build-tour-summary-hero .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-hero .app-sheet-copy,
body.modern-v5.app-theme-dark .build-tour-summary-hero .app-sheet-kicker{
  opacity:1 !important;
}
body.modern-v5.app-theme-dark .build-tour-summary-hero .app-sheet-title{
  color:#f8fafc !important;
  text-shadow:0 0 18px rgba(15,23,42,.36) !important;
}
body.modern-v5.app-theme-dark .build-tour-summary-hero .app-sheet-copy{
  color:rgba(236,244,255,.82) !important;
}
body.modern-v5.app-theme-dark .build-tour-summary-hero .app-sheet-kicker{
  color:rgba(255,226,163,.90) !important;
}
@media (max-width: 860px){
  body.modern-v5 .build-tour-suggest-head-surface.atg-v457-optimize-head-surface{
    margin:0 0 14px !important;
    padding:16px !important;
  }
  body.modern-v5 .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-title{
    font-size:22px !important;
  }
  body.modern-v5 .build-tour-dashboard-departure,
  body.modern-v5 .build-tour-summary-departure{
    gap:10px !important;
  }
}


/* ===== V459 BUILD YOUR TOUR COPY + DARK TITLE + SUMMARY BACK LABEL FIXES ===== */
body.modern-v5 .build-tour-suggest-empty-map-btn{
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:56px !important;
  border-radius:22px !important;
  text-align:center !important;
  cursor:pointer !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-copy,
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-kicker,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-copy,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-kicker{
  opacity:1 !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-title{
  color:#f8fafc !important;
  text-shadow:0 0 18px rgba(15,23,42,.42) !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-copy,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-copy{
  color:rgba(236,244,255,.90) !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-kicker,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-kicker{
  color:rgba(255,226,163,.94) !important;
}


/* ===== V459 OPTIMIZE / CHECK-EDIT TITLE VISIBILITY REINFORCEMENT ===== */
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-inline-theme-head-row .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-inline-theme-head-row .app-sheet-title{
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
  background:none !important;
  opacity:1 !important;
  visibility:visible !important;
  text-shadow:0 0 18px rgba(15,23,42,.42) !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-copy,
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-inline-theme-head-row + .app-sheet-copy,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-copy{
  color:rgba(236,244,255,.92) !important;
  -webkit-text-fill-color:rgba(236,244,255,.92) !important;
  opacity:1 !important;
  visibility:visible !important;
}
body.modern-v5.app-theme-dark .build-tour-suggest-head-surface.atg-v457-optimize-head-surface .app-sheet-kicker,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-kicker{
  color:rgba(255,226,163,.96) !important;
  -webkit-text-fill-color:rgba(255,226,163,.96) !important;
  opacity:1 !important;
  visibility:visible !important;
}


/* ===== V468 CHECK EDIT TOUR DARK TITLE VISIBILITY REINFORCEMENT ===== */
body.modern-v5.app-theme-dark .build-tour-summary-modal .build-tour-summary-hero .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .build-tour-summary-hero h3.app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-sheet-head .app-sheet-title,
body.modern-v5.app-theme-dark .build-tour-summary-modal .app-inline-theme-head-copy .app-sheet-title{
  display:block !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
  background:none !important;
  opacity:1 !important;
  visibility:visible !important;
  mix-blend-mode:normal !important;
  filter:none !important;
  text-shadow:0 0 18px rgba(15,23,42,.42) !important;
}
body.modern-v5.app-theme-dark .build-tour-summary-modal .build-tour-summary-hero .app-sheet-kicker,
body.modern-v5.app-theme-dark .build-tour-summary-modal .build-tour-summary-hero .app-sheet-copy{
  opacity:1 !important;
  visibility:visible !important;
}

/* V765 — exact 3-second direct Rome map entry with clean neutral map shell. */
html.inbound-map-boot body {
  background:
    radial-gradient(circle at 50% 34%, rgba(64, 166, 255, 0.18), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(var(--gold-accent-rgb), 0.10), transparent 22%),
    linear-gradient(180deg, #020611 0%, #071225 48%, #04070f 100%) !important;
  overflow: hidden !important;
}
html.inbound-map-boot #root,
html.inbound-map-boot .topbar,
html.inbound-map-boot .app-shell-layer,
html.inbound-map-boot .build-pill,
html.inbound-map-boot #themeDock,
html.inbound-map-boot #wizardView,
html.inbound-map-boot body > :not(#cityEntryTransition) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}
html.inbound-map-boot #cityEntryTransition,
html.inbound-map-boot #cityEntryTransition.hidden,
html.inbound-map-boot #cityEntryTransition.visible {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 2147483620 !important;
  background: #101010 !important;
  animation: atgV1334BridgeHideAt5s 1ms steps(1, end) var(--atg-entry-bridge-ms, 15000ms) forwards !important;
}
html.inbound-map-boot #cityEntryTransition .city-entry-transition-video {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* V1334: single attached MP4 map-entry transition. */
html.inbound-map-boot #cityEntryTransition .city-entry-transition-core-video {
  width: 100vw !important;
  height: 100svh !important;
  max-width: 100vw !important;
  max-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  background: #101010 !important;
}
html.inbound-map-boot #cityEntryTransition .city-entry-transition-video {
  width: 100vw !important;
  height: 100svh !important;
  max-width: 100vw !important;
  max-height: 100svh !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  user-select: none !important;
  color: transparent !important;
  font-size: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #101010 !important;
}
html.inbound-map-boot #root,
html.inbound-map-boot body > :not(#cityEntryTransition) {
  animation: atgV1334BridgeRevealAt5s 1ms steps(1, end) var(--atg-entry-bridge-ms, 15000ms) forwards !important;
}
html.inbound-map-boot #tourView,
html.inbound-map-boot #tourView.hidden {
  display: block !important;
  animation: atgV1334BridgeRevealAt5s 1ms steps(1, end) var(--atg-entry-bridge-ms, 15000ms) forwards !important;
}
@keyframes atgV1334BridgeHideAt5s {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@keyframes atgV1334BridgeRevealAt5s {
  to {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}



/* V1366: external stylesheet mirrors session-aware warm preload timing and label; app/index still owns the decision. */
html.inbound-map-boot-warm-v1365 #cityEntryTransition .city-entry-transition-video {
  opacity: .92 !important;
}
html.inbound-map-boot-warm-v1365 #cityEntryTransition::after {
  content: "Preparing your Rome map";
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom, 0px) + 18px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 18px 44px rgba(15,23,42,.18);
  z-index: 2147483621;
}

/* V765: ghost tour controls must never appear during direct Rome map entry. */
html[data-inbound-map-route] #historyBtn,
html[data-inbound-map-route] #skipCurrentMapBtn,
html.inbound-map-boot #historyBtn,
html.inbound-map-boot #skipCurrentMapBtn,
body.tour-mode.map-entry-clean #historyBtn,
body.tour-mode.map-entry-clean #skipCurrentMapBtn,
#historyBtn[data-atg-map-entry-hidden="true"],
#skipCurrentMapBtn[data-atg-map-entry-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ===== V771 Places of Interest image/carousel repair ===== */
body::after {
  content: none;
  display: none !important;
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 99999;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.72);
  color: rgba(255, 226, 163, 0.96);
  border: 1px solid rgba(255, 226, 163, 0.25);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.rome-map-point-shell.is-photo-category-stars-v598 {
  width: var(--atg-map-photo-size, 40px) !important;
  height: var(--atg-map-photo-size, 40px) !important;
  display: grid !important;
  place-items: center !important;
}
.rome-map-point-photo {
  width: var(--atg-map-photo-size, 40px) !important;
  height: var(--atg-map-photo-size, 40px) !important;
  min-width: var(--atg-map-photo-size, 40px) !important;
  min-height: var(--atg-map-photo-size, 40px) !important;
}
.rome-map-point-photo-img,
.atg-rome-marker-hover-photo-v603 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
.place-detail-hero-photo {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.atg-gold-carousel-arrow-v771 {
  position: absolute;
  display: flex;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 226, 163, 0.62);
  border-radius: 999px;
  background: rgba(9, 14, 24, 0.58);
  color: var(--gold-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.12);
  cursor: pointer;
  z-index: 8;
  line-height: 1;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
}
.atg-gold-carousel-arrow-prev-v771 { left: 12px; }
.atg-gold-carousel-arrow-next-v771 { right: 12px; }
.place-detail-hero-media .atg-gold-carousel-arrow-v771,
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771 {
  width: 38px;
  height: 38px;
  font-size: 26px;
}
[data-atg-map-image-carousel-v771] .atg-gold-carousel-arrow-v771 {
  width: 15px;
  height: 15px;
  font-size: 13px;
  border-width: 1px;
  background: rgba(9, 14, 24, 0.46);
  color: var(--gold-accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
}
[data-atg-map-image-carousel-v771] .atg-gold-carousel-arrow-prev-v771 { left: 1px; }
[data-atg-map-image-carousel-v771] .atg-gold-carousel-arrow-next-v771 { right: 1px; }
.atg-gold-carousel-arrow-v771:hover,
.atg-gold-carousel-arrow-v771:focus-visible {
  background: rgba(9, 14, 24, 0.78);
  color: var(--gold-accent-highlight);
  outline: none;
}

/* V772 image-id audit: marker/card carousel arrows kept inside the image area; images use cover; map markers use audited 320x320 thumbnails only. */

/* V782 unified city-scoped image template recheck: V770 baseline restored; LUOGO/EXTRA records use direct audited images; scenic/viewpoint records may reuse a same-real-place canonical record only through explicit alias. */

/* ATG V783 image coherence: DB-matched photos are pre-padded; render them without crop. */
.rome-map-point-photo,
.map-popup-photo-wrap,
.place-detail-hero-media,
body.modern-v5 .build-tour-place-thumb {
  background: #101010 !important;
}

.rome-map-point-photo-img,
.atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .build-tour-place-thumb-image {
  object-fit: contain !important;
  object-position: center center !important;
  background: #101010 !important;
}

.map-popup-photo-wrap {
  aspect-ratio: 3 / 4 !important;
  max-height: min(62vh, 520px) !important;
  overflow: hidden !important;
}

.map-popup-photo,
.place-detail-hero-photo {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #101010 !important;
}

.place-detail-hero-media {
  aspect-ratio: 3 / 4 !important;
  max-height: min(70vh, 680px) !important;
}
/* V787 deterministic Rome image asset contract: map/details/build-tour images render without forced crop. */
.rome-map-point-photo-img,
.atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .build-tour-place-thumb-image {
  object-fit: contain !important;
  object-position: center center !important;
  background: #101010 !important;
}
.map-popup-photo,
.place-detail-hero-photo {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #101010 !important;
}


/* ===== V816 CLEAN QUADRANTS + PREMIUM CAROUSEL CONTRACT =====
   Contract:
   - no carousel controls can render on the tiny external map thumbnails;
   - hover and detail image quadrants keep filled/cropped imagery;
   - carousel controls appear only inside hover/detail image quadrants;
   - hidden state always wins and the previous arrow appears after the first forward click.
*/
.rome-map-point-photo > .atg-gold-carousel-arrow-v771,
.rome-map-point-shell .rome-map-point-photo > .atg-gold-carousel-arrow-v771,
[data-atg-map-image-carousel-v771] > .atg-gold-carousel-arrow-v771,
[data-atg-map-image-carousel-v771] .atg-gold-carousel-arrow-v771 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rome-map-point-photo,
[data-atg-map-image-carousel-v771] {
  position: relative !important;
  overflow: hidden !important;
}

.atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603,
.atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603 {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 10px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate !important;
  background: #101010 !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

.modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
body.modern-v5 .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
.map-popup-photo-wrap {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #101010 !important;
}

.modal-card-place-detail .place-detail-hero-photo,
body.modern-v5 .modal-card-place-detail .place-detail-hero-photo,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-photo,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-photo,
.map-popup-photo {
  position: absolute !important;
  inset: -1px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: calc(100% + 2px) !important;
  min-height: calc(100% + 2px) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #101010 !important;
  border-radius: inherit !important;
  clip-path: inset(0 round 24px) !important;
  z-index: 0 !important;
}

.atg-rome-marker-hover-photo-v603 > img,
.rome-map-point-photo-img,
body.modern-v5 .build-tour-place-thumb-image,
body.modern-v5.app-theme-light .build-tour-place-thumb-image,
body.modern-v5.app-theme-dark .build-tour-place-thumb-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #101010 !important;
}

.atg-rome-marker-hover-photo-v603 > img,
body.modern-v5 .build-tour-place-thumb-image,
body.modern-v5.app-theme-light .build-tour-place-thumb-image,
body.modern-v5.app-theme-dark .build-tour-place-thumb-image {
  border-radius: inherit !important;
}

.place-detail-hero-media .atg-gold-carousel-arrow-v771[aria-hidden="true"],
.place-detail-hero-media .atg-gold-carousel-arrow-v771.is-atg-carousel-hidden-v805,
.place-detail-hero-media .atg-gold-carousel-arrow-v771.is-atg-carousel-hidden-v804,
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771[aria-hidden="true"],
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771.is-atg-carousel-hidden-v805,
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771.is-atg-carousel-hidden-v804 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.place-detail-hero-media .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804),
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) {
  position: absolute !important;
  top: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(244, 196, 78, .96) !important;
  background: rgba(255, 248, 226, .96) !important;
  color: #30220f !important;
  box-shadow:
    0 14px 30px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.92),
    0 0 0 2px rgba(62,43,14,.10) !important;
  backdrop-filter: blur(10px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
  visibility: visible !important;
  opacity: .98 !important;
  pointer-events: auto !important;
  line-height: 1 !important;
  transform: translateY(-50%) translateZ(0) !important;
  z-index: 18 !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.place-detail-hero-media .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
}

.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}

.place-detail-hero-media .atg-gold-carousel-arrow-prev-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) { left: 12px !important; right: auto !important; }
.place-detail-hero-media .atg-gold-carousel-arrow-next-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) { right: 12px !important; left: auto !important; }
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-prev-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) { left: 10px !important; right: auto !important; }
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-next-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) { right: 10px !important; left: auto !important; }

.place-detail-hero-media .atg-gold-carousel-arrow-icon-v805,
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-icon-v805 {
  display: block !important;
  width: 58% !important;
  height: 58% !important;
  color: #30220f !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.76)) drop-shadow(0 3px 7px rgba(88,58,8,.22)) !important;
}

.place-detail-hero-media .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804):hover,
.place-detail-hero-media .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804):focus-visible,
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804):hover,
.atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804):focus-visible {
  filter: brightness(1.03) saturate(1.04) !important;
  border-color: #e7ad28 !important;
  background: #fff3c8 !important;
  box-shadow:
    0 18px 38px rgba(0,0,0,.46),
    0 0 0 3px rgba(245, 205, 121, .18),
    inset 0 1px 0 rgba(255,255,255,.26) !important;
  transform: translateY(-50%) scale(1.045) translateZ(0) !important;
  outline: none !important;
}

@media (max-width: 640px), (pointer: coarse) and (max-width: 1024px) {
  .place-detail-hero-media .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .place-detail-hero-media .atg-gold-carousel-arrow-prev-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804),
  .atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-prev-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) { left: 8px !important; }
  .place-detail-hero-media .atg-gold-carousel-arrow-next-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804),
  .atg-rome-marker-hover-photo-v603 .atg-gold-carousel-arrow-next-v771:not([aria-hidden="true"]):not(.is-atg-carousel-hidden-v805):not(.is-atg-carousel-hidden-v804) { right: 8px !important; }
}
/* ===== END V816 CLEAN QUADRANTS + PREMIUM CAROUSEL CONTRACT ===== */


/* ===== V816 PLACE DETAIL LAYOUT CLEAN CONTRACT =====
   Contract:
   - desktop place-detail cards use the real two-column layout: image quadrant left, title/content/actions right;
   - the Back to map footer is not sticky inside place details, so it never covers title/content;
   - image/carousel controls stay clipped inside the image quadrant;
   - mobile keeps the single-column layout.
*/
body.modern-v5 .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail {
  width: min(1080px, calc(100vw - 32px)) !important;
  max-height: min(94vh, 900px) !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

body.modern-v5 .modal-card-place-detail .place-detail-shell,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

body.modern-v5 .modal-card-place-detail .place-detail-scroll,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-scroll,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-scroll {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

body.modern-v5 .modal-card-place-detail .place-detail-topbar,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar {
  position: relative !important;
  z-index: 4 !important;
}

@media (min-width: 901px) {
  body.modern-v5 .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-scroll {
    display: grid !important;
    grid-template-columns: minmax(340px, 410px) minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 28px !important;
    row-gap: 18px !important;
    padding: 0 24px 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-hero,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    min-width: 0 !important;
    align-self: start !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-body {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: 0 !important;
    padding-top: 2px !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-title,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-title,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-title {
    font-size: clamp(28px, 3vw, 40px) !important;
    line-height: 1.02 !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  body.modern-v5 .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-title-block,
  body.modern-v5 .modal-card-place-detail .place-detail-title-row,
  body.modern-v5 .modal-card-place-detail .place-detail-meta-line,
  body.modern-v5 .modal-card-place-detail .place-detail-disclosure,
  body.modern-v5 .modal-card-place-detail .place-detail-actions,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-title-block,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-title-row,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-meta-line,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-disclosure,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-actions,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-title-block,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-title-row,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-meta-line,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-disclosure,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-actions {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-meta-line,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-meta-line,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-meta-line {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

body.modern-v5 .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing) {
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  max-height: none !important;
  min-height: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
}

body.modern-v5 .modal-card-place-detail .place-detail-hero-photo,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-photo,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-photo {
  clip-path: inset(0 round 24px) !important;
}

body.modern-v5 .place-detail-shell .app-standard-modal-nav,
body.modern-v5.app-theme-light .place-detail-shell .app-standard-modal-nav,
body.modern-v5.app-theme-dark .place-detail-shell .app-standard-modal-nav {
  position: static !important;
  z-index: 2 !important;
  margin-top: 0 !important;
  padding: 8px 24px 24px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body.modern-v5 .modal-card-place-detail .place-detail-actions,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-actions,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-actions {
  padding-bottom: 0 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx,
body.modern-v5.app-theme-light .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx,
body.modern-v5.app-theme-dark .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx {
  width: 100% !important;
  min-height: 240px !important;
  height: auto !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx .place-detail-hero-media-missing,
body.modern-v5.app-theme-light .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx .place-detail-hero-media-missing,
body.modern-v5.app-theme-dark .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx .place-detail-hero-media-missing {
  width: 100% !important;
  min-height: 240px !important;
  height: 240px !important;
  aspect-ratio: auto !important;
  border-radius: 24px !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero-missing-copy {
  display: grid !important;
  justify-items: center !important;
  gap: 5px !important;
  text-align: center !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero-missing-copy > span {
  font-size: 32px !important;
  line-height: 1 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero-missing-copy > strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero-missing-copy > small {
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  opacity: .76 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-kv-list {
  display: grid !important;
  gap: 0 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-kv {
  display: grid !important;
  grid-template-columns: minmax(116px, 28%) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 12px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-kv:last-child {
  border-bottom: 0 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-kv-label {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-kv-value {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 900px) {
  body.modern-v5 .modal-card.modal-card-place-detail,
  body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
  body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-scroll {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 14px 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-hero,
  body.modern-v5 .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-body {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing) {
    max-height: none !important;
  }

  body.modern-v5 .place-detail-shell .app-standard-modal-nav,
  body.modern-v5.app-theme-light .place-detail-shell .app-standard-modal-nav,
  body.modern-v5.app-theme-dark .place-detail-shell .app-standard-modal-nav {
    padding: 6px 14px 18px !important;
  }

  body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx,
  body.modern-v5.app-theme-light .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx,
  body.modern-v5.app-theme-dark .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx,
  body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx .place-detail-hero-media-missing,
  body.modern-v5.app-theme-light .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx .place-detail-hero-media-missing,
  body.modern-v5.app-theme-dark .atg-foodsocial-detail-modal-v648 .place-detail-hero.is-missing-media-v1124nx .place-detail-hero-media-missing {
    min-height: 180px !important;
    height: 180px !important;
    border-radius: 0 !important;
  }

  body.modern-v5 .atg-foodsocial-detail-modal-v648 .place-detail-kv {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
}
/* ===== END V816 PLACE DETAIL LAYOUT CLEAN CONTRACT ===== */

/* ===== V816 MOBILE PLACE DETAIL BACK TO MAP VISIBILITY CONTRACT =====
   Contract:
   - on phone/tablet place-detail quadrants keep Back to Map visible at the bottom;
   - the content scrolls inside the card instead of pushing the navigation outside the viewport;
   - the hidden source close button remains hidden, only the standardized Back to Map control is visible;
   - applies to cultural places, parks, scenic viewpoints and food/social detail cards because they share modal-card-place-detail/place-detail-shell.
*/
@media (max-width: 900px) {
  body.modern-v5 .modal-card.modal-card-place-detail,
  body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
  body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  @supports not (height: 100dvh) {
    body.modern-v5 .modal-card.modal-card-place-detail,
    body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
    body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail {
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
    }
  }

  body.modern-v5 .modal-card-place-detail .place-detail-shell,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-topbar,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar {
    grid-row: 1 !important;
    min-height: 58px !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 30 !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-scroll {
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 14px 18px !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav {
    grid-row: 3 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    min-height: calc(138px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 80 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0), rgba(7,16,29,.94) 18%, rgba(7,16,29,.995) 100%) !important;
    box-shadow: 0 -18px 34px rgba(0,0,0,.18) !important;
  }

  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav {
    background:
      linear-gradient(180deg, rgba(255,255,255,0), rgba(252,246,236,.96) 18%, rgba(252,246,236,.995) 100%) !important;
    box-shadow: 0 -18px 34px rgba(61,44,27,.10) !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav.single,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav.single,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav.single {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav.split,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav.split,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav.split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: auto !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(var(--gold-border-rgb), .46) !important;
    background: linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight)) !important;
    color:var(--gold-btn-ink) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: visible !important;
    box-shadow: 0 14px 28px rgba(var(--gold-rgb),.24) !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
/* ===== END V816 MOBILE PLACE DETAIL BACK TO MAP VISIBILITY CONTRACT ===== */



/* ===== V816 PLACE DETAIL WHITE NAV + GRAPHIC HIERARCHY CLEAN CONTRACT =====
   Contract:
   - Back to Map stays white on desktop and mobile;
   - internal place-detail quadrants use one coherent typographic scale;
   - section labels are compact and action buttons are readable;
   - Entrance Address is not rendered as a separate disclosure and is integrated as an Entrance / access row inside Visit Details.
*/
body.modern-v5 .modal-card-place-detail .place-detail-close-btn,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-close-btn,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-close-btn,
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 58%, #e9eef5 100%) !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, .58) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255,255,255,.92) !important;
  text-shadow: none !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav {
  background: transparent !important;
  box-shadow: none !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-title,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-title,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-title {
  font-size: clamp(24px, 2.45vw, 34px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
  margin: 0 !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-disclosure,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-disclosure,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-disclosure {
  border-radius: 18px !important;
  margin: 0 0 12px !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-disclosure summary,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-disclosure summary,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-disclosure summary {
  min-height: 48px !important;
  padding: 13px 16px !important;
  font-size: 13px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-disclosure summary::after,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-disclosure summary::after,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-disclosure summary::after {
  font-size: 18px !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-disclosure-body,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-disclosure-body,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-disclosure-body {
  padding: 0 16px 16px !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-text,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-text,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-text {
  font-size: 14px !important;
  line-height: 1.62 !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-kv,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-kv,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-kv {
  gap: 8px !important;
  padding: 12px 0 !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-kv-label,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-kv-label,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-kv-label {
  font-size: 11px !important;
  line-height: 1.2 !important;
  letter-spacing: .045em !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-kv-value,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-kv-value,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-kv-value,
body.modern-v5 .modal-card-place-detail .place-detail-meta-line,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-meta-line,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-meta-line {
  font-size: 13px !important;
  line-height: 1.48 !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-actions,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-actions,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin-top: 14px !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-actions .place-detail-action-btn,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-actions .place-detail-action-btn,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-actions .place-detail-action-btn,
body.modern-v5 .modal-card-place-detail .place-detail-action-btn-build,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-action-btn-build,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-action-btn-build,
body.modern-v5 .modal-card-place-detail .place-detail-action-btn-save-v661,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-action-btn-save-v661,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-action-btn-save-v661 {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  height: auto !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  letter-spacing: .012em !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  flex: 0 1 auto !important;
}
body.modern-v5 .modal-card-place-detail .atg-rome-marker-hover-cta-main-v642,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-rome-marker-hover-cta-main-v642,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-rome-marker-hover-cta-main-v642 {
  font-size: 13px !important;
  line-height: 1.16 !important;
  font-weight: 900 !important;
}
body.modern-v5 .modal-card-place-detail .atg-rome-marker-hover-cta-sub-v642,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-rome-marker-hover-cta-sub-v642,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-rome-marker-hover-cta-sub-v642 {
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-entrance-item-v814 + .place-detail-entrance-item-v814,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-entrance-item-v814 + .place-detail-entrance-item-v814,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-entrance-item-v814 + .place-detail-entrance-item-v814 {
  margin-top: 10px !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-entrance-label-v814,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-entrance-label-v814,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-entrance-label-v814 {
  font-weight: 850 !important;
  opacity: .82 !important;
}
@media (max-width: 900px) {
  body.modern-v5 .modal-card-place-detail .place-detail-title,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-title,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-title {
    font-size: clamp(22px, 6vw, 30px) !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-actions,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-actions,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-actions {
    grid-template-columns: 1fr !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav .app-standard-modal-nav-btn {
    min-height: 50px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
  }
}
/* ===== END V816 PLACE DETAIL WHITE NAV + GRAPHIC HIERARCHY CLEAN CONTRACT ===== */

/* V817 canonical image binding package: no layout change; V816 visual contract preserved. */

/* ===== V817 CANONICAL IMAGE BINDING DATA ALIGNMENT =====
   Data/package coherence patch only. Visual contract intentionally preserved.
===== END V817 CANONICAL IMAGE BINDING DATA ALIGNMENT ===== */


/* ===== V856 MOBILE PLACE DETAIL INNER QUADRANT REORDER CONTRACT =====
   Contract:
   - first mobile row: category label + all category emojis + Dark/Light dock;
   - second mobile row: priority stars;
   - after image: title, nickname, avatar/audio buttons, GPS radius left-aligned;
   - no change to image binding or record/photo association logic.
*/
body.modern-v5 .modal-card-place-detail .place-detail-topbar,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  row-gap: 8px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-category-group-v640,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category-group-v640,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category-group-v640 {
  order: 1 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-category,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category {
  min-width: 0 !important;
  flex: 0 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-category-emojis-v640,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category-emojis-v640,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category-emojis-v640 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-topbar-actions,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar-actions,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar-actions,
body.modern-v5 .modal-card-place-detail [data-inline-theme-place-detail],
body.modern-v5.app-theme-light .modal-card-place-detail [data-inline-theme-place-detail],
body.modern-v5.app-theme-dark .modal-card-place-detail [data-inline-theme-place-detail] {
  order: 1 !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-topbar-center,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar-center,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar-center {
  order: 2 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  margin: 0 !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-title-block-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-title-block-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-title-block-v856 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-title-row-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-title-row-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-title-row-v856,
body.modern-v5 .modal-card-place-detail .place-detail-nickname-row-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-nickname-row-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-nickname-row-v856,
body.modern-v5 .modal-card-place-detail .atg-place-detail-play-row-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-play-row-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-play-row-v856,
body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 {
  width: 100% !important;
  min-width: 0 !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-play-row-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-play-row-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-play-row-v856 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  text-align: left !important;
  margin: 0 !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-main,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-main,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-main {
  flex: 0 1 auto !important;
  justify-content: flex-start !important;
  text-align: left !important;
  min-width: 0 !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-actions,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-actions,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-actions {
  flex: 0 1 auto !important;
  justify-content: flex-start !important;
  text-align: left !important;
  min-width: 0 !important;
}
body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856 .atg-place-detail-radius-v674,
body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856 .atg-place-detail-radius-v674,
body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 .atg-place-detail-radius-v674 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 640px) {
  body.modern-v5 .modal-card-place-detail .place-detail-topbar,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar {
    align-items: center !important;
    gap: 6px !important;
    row-gap: 7px !important;
    flex-wrap: wrap !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-category-group-v640,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category-group-v640,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category-group-v640 {
    gap: 4px !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-category,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category {
    font-size: 10.5px !important;
    letter-spacing: .02em !important;
    padding: 7px 8px !important;
    max-width: 100% !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-category-emoji-v640,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category-emoji-v640,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category-emoji-v640 {
    min-width: 22px !important;
    width: 22px !important;
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }
  body.modern-v5 .modal-card-place-detail [data-inline-theme-place-detail] .app-inline-theme-dock,
  body.modern-v5.app-theme-light .modal-card-place-detail [data-inline-theme-place-detail] .app-inline-theme-dock,
  body.modern-v5.app-theme-dark .modal-card-place-detail [data-inline-theme-place-detail] .app-inline-theme-dock {
    padding: 3px !important;
    gap: 2px !important;
  }
  body.modern-v5 .modal-card-place-detail [data-inline-theme-place-detail] .app-inline-theme-btn,
  body.modern-v5.app-theme-light .modal-card-place-detail [data-inline-theme-place-detail] .app-inline-theme-btn,
  body.modern-v5.app-theme-dark .modal-card-place-detail [data-inline-theme-place-detail] .app-inline-theme-btn {
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-priority-star,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-priority-star,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-priority-star {
    font-size: 15px !important;
  }
  body.modern-v5 .modal-card-place-detail .atg-place-detail-title-block-v856,
  body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-title-block-v856,
  body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-title-block-v856 {
    gap: 7px !important;
    margin-bottom: 12px !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-title,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-title,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-title {
    font-size: clamp(21px, 5.8vw, 28px) !important;
    line-height: 1.08 !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-nickname-row-v856 .place-detail-subtitle,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-nickname-row-v856 .place-detail-subtitle,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-nickname-row-v856 .place-detail-subtitle {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body.modern-v5 .modal-card-place-detail .atg-place-detail-play-row-v856,
  body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-play-row-v856,
  body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-play-row-v856 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.modern-v5 .modal-card-place-detail .atg-place-detail-play-row-v856 .place-detail-inline-btn,
  body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-play-row-v856 .place-detail-inline-btn,
  body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-play-row-v856 .place-detail-inline-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856,
  body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856,
  body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  body.modern-v5 .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-main,
  body.modern-v5.app-theme-light .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-main,
  body.modern-v5.app-theme-dark .modal-card-place-detail .atg-place-detail-radius-row-v856 .place-detail-meta-main {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}
@media (max-width: 340px) {
  body.modern-v5 .modal-card-place-detail .place-detail-category-group-v640,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category-group-v640,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category-group-v640 {
    flex: 0 0 100% !important;
    width: 100% !important;
    overflow: visible !important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-category,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-category,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-category {
    flex: 1 1 auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }
}
/* ===== END V856 MOBILE PLACE DETAIL INNER QUADRANT REORDER CONTRACT ===== */



@media (max-width: 380px) {
  body.tour-mode .restaurant-map-filter-bar-v627,
  .restaurant-map-filter-bar-v627[data-places-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-restaurant-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-aperitivo-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-cafe-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-bakery-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-icecream-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-hotel-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-nightlife-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-utility-map-filter-bar-v871] {
    left: 6px !important;
    right: 6px !important;
    padding: 6px !important;
    gap: 5px !important;
  }

  .restaurant-map-filter-bar-v627 .restaurant-map-filter-title-v627 span { font-size: 10.5px !important; }

  .restaurant-map-filter-bar-v627 .restaurant-map-filter-actions-v627 button,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-search-row-v627 button {
    font-size: 9.5px !important;
    padding: 0 6px !important;
  }

  .restaurant-map-filter-bar-v627 .restaurant-map-filter-select-row-v627 { gap: 4px !important; }
  .restaurant-map-filter-bar-v627 .restaurant-map-custom-trigger-v666,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select { font-size: 10px !important; padding: 0 5px !important; }
}


/* =====================================================================
   V890 — DARK MODE RATING SCORE COLOR FIX
   Replaces the brown/orange score text used in Historical value and twin
   rating cards with a cleaner high-contrast light gold tone in dark UI.
   ===================================================================== */
body.app-theme-dark .atg-historical-value-score-v873,
body.app-theme-dark .atg-detail-rating-historical-v877,
body.app-theme-dark .atg-detail-rating-historical-v877 .atg-historical-value-score-v873,
body.app-theme-dark .atg-detail-public-rating-v877 small,
body.app-theme-dark .atg-detail-leave-review-v877 small,
body.app-theme-dark .atg-detail-rating-card-v877 small {
  color: #f8e7b0 !important;
  -webkit-text-fill-color: #f8e7b0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34) !important;
}
body.app-theme-dark .atg-detail-rating-label-v877,
body.app-theme-dark .atg-historical-value-label-v873 {
  color: #e7edf8 !important;
  -webkit-text-fill-color: #e7edf8 !important;
}
body.app-theme-dark .atg-detail-rating-historical-star-v877.atg-half-star-v873,
body.app-theme-dark .place-detail-priority-star.atg-half-star-v873 {
  --atg-star-empty-color: rgba(226, 232, 240, 0.34) !important;
  --atg-star-fill-color: #f6c85f !important;
}




/* =====================================================================
   V890 — FINAL MOBILE FILTER MANAGER POPUP/SHEET
   Single active ruleset. Close only closes the sheet; layer visibility is managed elsewhere.
   ===================================================================== */
.atg-mobile-filter-launcher-v890,
.atg-mobile-filter-backdrop-v890{display:none;}

@media (min-width: 761px){
  body.tour-mode .restaurant-map-filter-bar-v627,
  .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"],
  .restaurant-map-filter-bar-v627[data-places-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-restaurant-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-aperitivo-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-cafe-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-bakery-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-icecream-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-hotel-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-nightlife-map-filter-bar],
  .restaurant-map-filter-bar-v627[data-utility-map-filter-bar-v871]{
    border-radius:28px!important;padding:14px!important;gap:12px!important;
    background:radial-gradient(circle at 18% 0%,rgba(var(--gold-accent-rgb),.14),transparent 34%),linear-gradient(180deg,rgba(11,18,32,.965),rgba(6,13,24,.985))!important;
    border:1px solid rgba(var(--gold-border-rgb),.24)!important;
    box-shadow:0 24px 58px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.075)!important;
    overflow:visible!important;
  }
  body.tour-mode .restaurant-map-filter-title-v627 span,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-title-v627 span{color:#f8fafc!important;font-size:14px!important;font-weight:950!important;}
  body.tour-mode .restaurant-map-filter-title-v627 strong,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-title-v627 strong{color:var(--gold-btn-ink)!important;background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight))!important;border:1px solid rgba(var(--gold-border-rgb),.38)!important;}
  body.tour-mode .restaurant-map-filter-title-v627 em,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-title-v627 em{color:#e7edf8!important;background:rgba(255,255,255,.075)!important;border:1px solid rgba(255,255,255,.12)!important;}
  body.tour-mode .restaurant-map-filter-actions-v627,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-actions-v627{display:flex!important;flex-wrap:wrap!important;gap:7px!important;justify-content:flex-end!important;align-items:center!important;}
  body.tour-mode .restaurant-map-filter-actions-v627 button,
  body.tour-mode .restaurant-map-filter-search-row-v627 button,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-actions-v627 button,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-search-row-v627 button{border-radius:999px!important;color:var(--gold-btn-ink)!important;background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight))!important;border:1px solid rgba(var(--gold-border-rgb),.36)!important;}
  body.tour-mode .restaurant-map-filter-select-row-v627,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-select-row-v627{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important;gap:10px!important;}
  body.tour-mode .restaurant-map-custom-trigger-v666,
  body.tour-mode .restaurant-map-filter-field-v627 select,
  .restaurant-map-filter-bar-v627 .restaurant-map-custom-trigger-v666,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select,
  body.tour-mode .restaurant-map-filter-search-row-v627 input,
  .restaurant-map-filter-bar-v627 .restaurant-map-filter-search-row-v627 input{border-radius:16px!important;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.075))!important;border:1px solid rgba(255,255,255,.16)!important;color:#f8fafc!important;}
  body.tour-mode .restaurant-map-custom-menu-v666,
  .restaurant-map-filter-bar-v627 .restaurant-map-custom-menu-v666{border-radius:18px!important;background:linear-gradient(180deg,rgba(12,18,32,.992),rgba(5,11,22,.998))!important;border:1px solid rgba(var(--gold-border-rgb),.24)!important;}
  body.app-theme-light .restaurant-map-filter-bar-v627{background:linear-gradient(180deg,rgba(255,252,247,.98),rgba(244,236,226,.992))!important;border-color:rgba(143,74,36,.16)!important;box-shadow:0 20px 44px rgba(61,44,27,.16),inset 0 1px 0 rgba(255,255,255,.78)!important;}
  body.app-theme-light .restaurant-map-filter-title-v627 span,
  body.app-theme-light .restaurant-map-custom-trigger-v666,
  body.app-theme-light .restaurant-map-filter-field-v627 select,
  body.app-theme-light .restaurant-map-filter-search-row-v627 input{color:#0f172a!important;}
}

@media (max-width: 760px){
  .atg-mobile-filter-backdrop-v890{
    display:block;position:fixed;inset:0;z-index:2147481700;background:rgba(2,6,23,.34);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .16s ease;
  }
  body.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-backdrop-v890{opacity:1;pointer-events:auto;}
  .atg-mobile-filter-launcher-v890{
    display:inline-flex;position:fixed;left:50%;bottom:max(14px,calc(env(safe-area-inset-bottom,0px) + 14px));transform:translateX(-50%);z-index:2147481690;
    align-items:center;justify-content:center;gap:8px;max-width:calc(100vw - 28px);min-height:44px;padding:0 16px;border-radius:999px;border:1px solid rgba(var(--gold-border-rgb),.34);
    color:var(--gold-btn-ink);background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight));box-shadow:0 16px 34px rgba(2,6,23,.36);font-weight:950;font-size:13px;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .atg-mobile-filter-launcher-v890 strong{display:inline-block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .atg-mobile-filter-launcher-v890 em{font-style:normal;font-size:11px;font-weight:950;padding:3px 7px;border-radius:999px;background:rgba(11,18,32,.14);}
  body.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-launcher-v890{display:none!important;}

  body.tour-mode .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"],
  body.tour-mode #placesMapFilterBarV729,
  body.tour-mode #restaurantMapFilterBarV627,
  body.tour-mode #aperitivoMapFilterBarV679,
  body.tour-mode #cafeMapFilterBarV858,
  body.tour-mode #bakeryMapFilterBarV859,
  body.tour-mode #iceCreamMapFilterBarV860,
  body.tour-mode #hotelMapFilterBarV861,
  body.tour-mode #nightlifeMapFilterBarV866,
  body.tour-mode #pharmacyMapFilterBarV871,
  body.tour-mode #supermarketMapFilterBarV871{
    position:fixed!important;left:max(10px,env(safe-area-inset-left,0px))!important;right:max(10px,env(safe-area-inset-right,0px))!important;top:auto!important;
    bottom:max(10px,calc(env(safe-area-inset-bottom,0px) + 10px))!important;transform:translateY(calc(100% + 28px))!important;width:auto!important;max-width:none!important;
    max-height:min(82dvh,620px)!important;min-height:0!important;padding:10px!important;border-radius:24px 24px 22px 22px!important;display:grid!important;grid-template-rows:auto auto minmax(0,auto) minmax(0,1fr)!important;gap:8px!important;
    background:radial-gradient(circle at 16% 0%,rgba(var(--gold-accent-rgb),.16),transparent 32%),linear-gradient(180deg,rgba(12,18,32,.985),rgba(5,11,22,.998))!important;
    border:1px solid rgba(var(--gold-border-rgb),.28)!important;box-shadow:0 22px 54px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.08)!important;color:#f8fafc!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;overflow:hidden!important;overscroll-behavior:contain!important;touch-action:manipulation!important;contain:none!important;z-index:2147481800!important;transition:transform .18s ease,opacity .18s ease,visibility .18s ease!important;
  }
  body.tour-mode .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"].atg-filter-sheet-open-v890,
  body.tour-mode #placesMapFilterBarV729.atg-filter-sheet-open-v890,
  body.tour-mode #restaurantMapFilterBarV627.atg-filter-sheet-open-v890,
  body.tour-mode #aperitivoMapFilterBarV679.atg-filter-sheet-open-v890,
  body.tour-mode #cafeMapFilterBarV858.atg-filter-sheet-open-v890,
  body.tour-mode #bakeryMapFilterBarV859.atg-filter-sheet-open-v890,
  body.tour-mode #iceCreamMapFilterBarV860.atg-filter-sheet-open-v890,
  body.tour-mode #hotelMapFilterBarV861.atg-filter-sheet-open-v890,
  body.tour-mode #nightlifeMapFilterBarV866.atg-filter-sheet-open-v890,
  body.tour-mode #pharmacyMapFilterBarV871.atg-filter-sheet-open-v890,
  body.tour-mode #supermarketMapFilterBarV871.atg-filter-sheet-open-v890{
    transform:translateY(0)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
  body.tour-mode .restaurant-map-filter-bar-v627::before{content:""!important;justify-self:center;width:42px;height:4px;margin:0 auto 1px;border-radius:999px;background:rgba(255,226,163,.48);}
  body.tour-mode .restaurant-map-filter-top-v627{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;}
  body.tour-mode .restaurant-map-filter-title-v627{min-width:0!important;flex:1 1 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title count" "active active"!important;align-items:center!important;gap:4px 7px!important;}
  body.tour-mode .restaurant-map-filter-title-v627 span{grid-area:title!important;min-width:0!important;font-size:13px!important;line-height:1.14!important;font-weight:950!important;color:#f8fafc!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  body.tour-mode .restaurant-map-filter-title-v627 strong{grid-area:count!important;align-self:start!important;color:var(--gold-btn-ink)!important;background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight))!important;border:1px solid rgba(var(--gold-border-rgb),.38)!important;border-radius:999px!important;padding:4px 8px!important;font-size:11px!important;white-space:nowrap!important;}
  body.tour-mode .restaurant-map-filter-title-v627 em{grid-area:active!important;width:max-content!important;max-width:100%!important;color:#e7edf8!important;background:rgba(255,255,255,.075)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:999px!important;padding:3px 7px!important;font-size:10.5px!important;white-space:nowrap!important;}
  body.tour-mode .restaurant-map-filter-actions-v627{flex:0 1 auto!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:flex-start!important;justify-content:flex-end!important;max-width:46%!important;min-width:104px!important;}
  body.tour-mode .restaurant-map-filter-actions-v627 button,
  body.tour-mode .restaurant-map-filter-search-row-v627 button{min-height:34px!important;border-radius:999px!important;padding:0 9px!important;font-size:11px!important;font-weight:950!important;color:var(--gold-btn-ink)!important;background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight))!important;border:1px solid rgba(var(--gold-border-rgb),.36)!important;}
  body.tour-mode .restaurant-map-filter-actions-v627 button[data-atg-filter-hide-layer-v890]{background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.08))!important;color:#f8fafc!important;border-color:rgba(255,255,255,.18)!important;}
  body.tour-mode .restaurant-map-filter-search-row-v627{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;min-width:0!important;}
  body.tour-mode .restaurant-map-filter-search-row-v627 input{min-width:0!important;min-height:40px!important;border-radius:16px!important;font-size:16px!important;}
  body.tour-mode .restaurant-map-filter-results-v649{max-height:min(16dvh,124px)!important;overflow-x:hidden!important;overflow-y:auto!important;}
  body.tour-mode .restaurant-map-filter-select-row-v627{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-width:0!important;max-height:min(48dvh,360px)!important;overflow-x:hidden!important;overflow-y:auto!important;padding-right:2px!important;overscroll-behavior:contain!important;}
  body.tour-mode .restaurant-map-filter-field-v627{min-width:0!important;display:grid!important;gap:4px!important;}
  body.tour-mode .restaurant-map-filter-field-v627>span,
  body.tour-mode .restaurant-filter-chip-title{font-size:10px!important;line-height:1.15!important;color:#cbd5e1!important;letter-spacing:.07em!important;text-transform:uppercase!important;}
  body.tour-mode .restaurant-map-custom-select-v666{position:relative!important;min-width:0!important;max-width:100%!important;}
  body.tour-mode .restaurant-map-custom-trigger-v666,
  body.tour-mode .restaurant-map-filter-field-v627 select{width:100%!important;min-width:0!important;min-height:42px!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.075))!important;border:1px solid rgba(255,255,255,.16)!important;color:#f8fafc!important;font-size:13px!important;line-height:1.2!important;}
  body.tour-mode .restaurant-map-custom-trigger-v666>span:first-child,
  body.tour-mode .restaurant-map-custom-trigger-v666 [id^="restaurantMapFilterCustomTriggerLabelV667_"],
  body.tour-mode .restaurant-map-custom-trigger-v666 [id^="placesMapFilterCustomTriggerLabelV731_"]{min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.18!important;}
  body.tour-mode .restaurant-map-custom-menu-v666{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;max-height:min(32dvh,260px)!important;margin-top:6px!important;padding:6px!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(12,18,32,.996),rgba(5,11,22,1))!important;border:1px solid rgba(var(--gold-border-rgb),.24)!important;box-shadow:none!important;overflow-x:hidden!important;overflow-y:auto!important;}
  body.tour-mode .restaurant-map-custom-menu-v666.is-open{display:grid!important;gap:4px!important;}
  body.tour-mode .restaurant-map-custom-option-v666{min-height:38px!important;padding:9px 10px!important;border-radius:13px!important;font-size:13px!important;line-height:1.18!important;display:flex!important;align-items:flex-start!important;gap:8px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:left!important;}
  body.tour-mode .restaurant-map-custom-option-text-v666{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.2!important;}
  body.app-theme-light .atg-mobile-filter-backdrop-v890{background:rgba(30,41,59,.22);}
  body.app-theme-light .restaurant-map-filter-bar-v627{background:linear-gradient(180deg,rgba(255,252,247,.992),rgba(244,236,226,.998))!important;color:#0f172a!important;border-color:rgba(143,74,36,.18)!important;}
  body.app-theme-light .restaurant-map-filter-title-v627 span,
  body.app-theme-light .restaurant-map-custom-trigger-v666,
  body.app-theme-light .restaurant-map-filter-field-v627 select,
  body.app-theme-light .restaurant-map-filter-search-row-v627 input{color:#0f172a!important;}
  body.app-theme-light .restaurant-map-filter-field-v627>span,
  body.app-theme-light .restaurant-filter-chip-title{color:#5b6472!important;}
  body.app-theme-light .restaurant-map-filter-actions-v627 button[data-atg-filter-hide-layer-v890]{background:linear-gradient(180deg,rgba(15,23,42,.075),rgba(15,23,42,.045))!important;color:#0f172a!important;border-color:rgba(15,23,42,.14)!important;}
  body.app-theme-light .restaurant-map-custom-menu-v666{background:linear-gradient(180deg,rgba(255,252,247,.996),rgba(244,236,226,1))!important;color:#111827!important;border-color:rgba(143,74,36,.18)!important;}
}

@media (max-width: 380px){
  body.tour-mode .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890{left:8px!important;right:8px!important;max-height:84dvh!important;padding:8px!important;}
  body.tour-mode .restaurant-map-filter-title-v627 em{display:none!important;}
  .atg-mobile-filter-launcher-v890{max-width:calc(100vw - 18px);font-size:12px;padding:0 12px;}
}

/* V1120ZI — POI dock inline filters stay on one horizontal row under Search by name. */
body.tour-mode #atgPoiDockV1090 #placesMapFilterBarV729,
body.tour-mode #atgPoiDockV1090 #restaurantMapFilterBarV627,
body.tour-mode #atgPoiDockV1090 #aperitivoMapFilterBarV679,
body.tour-mode #atgPoiDockV1090 #cafeMapFilterBarV858,
body.tour-mode #atgPoiDockV1090 #bakeryMapFilterBarV859,
body.tour-mode #atgPoiDockV1090 #iceCreamMapFilterBarV860,
body.tour-mode #atgPoiDockV1090 #hotelMapFilterBarV861,
body.tour-mode #atgPoiDockV1090 #nightlifeMapFilterBarV866,
body.tour-mode #atgPoiDockV1090 #pharmacyMapFilterBarV871,
body.tour-mode #atgPoiDockV1090 #supermarketMapFilterBarV871{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-height:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  overflow:visible!important;
  z-index:auto!important;
  display:grid!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627,
body.modern-v5 #atgPoiDockV1090[data-atg-poi-state-v1090="open"] .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627,
body.modern-v5 #atgPoiDockV1090[data-atg-poi-state-v1090="half"] .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627{
  display:flex!important;
  grid-template-columns:none!important;
  grid-auto-flow:column!important;
  flex-wrap:nowrap!important;
  align-items:end!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  padding:0 2px 5px 0!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627{
  flex:0 0 clamp(132px,18vw,196px)!important;
  min-width:132px!important;
  max-width:196px!important;
  width:auto!important;
  display:grid!important;
  gap:4px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-select-v666,
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-trigger-v666,
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627 select,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-select-v666,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-trigger-v666,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627 select{
  width:100%!important;
  min-width:0!important;
}
@media (max-width:760px){
  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627{
    flex-basis:min(44vw,168px)!important;
    min-width:132px!important;
    max-width:168px!important;
  }
}


/* V927 — active polished Map Legend + Places of Interest sheet graphics. */
body.modern-v5 .modal-card.atg-map-legend-v927,
body.modern-v5 .modal-card.atg-curated-sheet-v927 {
  width: min(920px, calc(100vw - 28px)) !important;
  max-height: min(92dvh, 820px) !important;
  padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(16px, 2.4vw, 34px) calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.12), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.11), transparent 30%),
    linear-gradient(140deg,#07111f 0%,#0b1730 54%,#09101d 100%) !important;
}

body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 {
  color: #0f172a !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.18), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,253,.98)) !important;
}

body.modern-v5 .atg-legend-inner-v927,
body.modern-v5 .atg-curated-inner-v927 {
  width: min(820px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 0 !important;
  overflow-x: hidden !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head {
  gap: 8px !important;
  margin-bottom: 18px !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .app-inline-theme-head-row,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-inline-theme-head-row {
  align-items: center !important;
  margin: 0 0 6px !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .app-inline-theme-head-copy,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-inline-theme-head-copy {
  min-width: 0 !important;
  display: block !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title {
  margin: 0 !important;
  font-size: clamp(30px, 4.4vw, 40px) !important;
  line-height: 1.03 !important;
  letter-spacing: .01em !important;
  overflow-wrap: anywhere !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-kicker,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-kicker,
body.modern-v5 .atg-legend-section-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-curated-section-title-v675 {
  color: rgba(255, 226, 163, 0.92) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
}

body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-kicker,
body.modern-v5.app-theme-light .atg-legend-section-v927,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-curated-section-title-v675 {
  color: #8a5a00 !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-copy,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-copy {
  max-width: 62ch !important;
  color: rgba(236, 244, 255, 0.82) !important;
  overflow-wrap: anywhere !important;
}

body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-copy {
  color: #475569 !important;
}

body.modern-v5 .atg-legend-list-v927 {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.modern-v5 .atg-map-legend-category-v1124ne,
body.modern-v5 .atg-map-legend-category-rows-v1124ne {
  min-width: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

body.modern-v5 .atg-map-legend-category-v1124ne + .atg-map-legend-category-v1124ne {
  margin-top: 8px !important;
}

body.modern-v5 .atg-map-legend-category-v1124ne > .map-legend-section-title {
  gap: 7px !important;
}

body.modern-v5:has(.modal-layer.atg-map-legend-layer-v927:not(.hidden)) #atgPoiDockV1090 {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body.modern-v5 .atg-legend-visual-group-v1124ne {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1px !important;
  padding: 3px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

body.modern-v5 .atg-legend-visual-group-v1124ne > span {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

body.modern-v5 .atg-legend-flags-v1124ne .restaurant-cuisine-flag-icon-v666 {
  width: 12px !important;
  min-width: 12px !important;
  height: 8px !important;
  border-radius: 1px !important;
}

body.modern-v5 .atg-legend-plate-v1124ne .restaurant-main-plate-symbol-v671,
body.modern-v5 .atg-legend-plate-v1124ne .restaurant-main-plate-svg-v671 {
  width: 32px !important;
  height: 32px !important;
}

body.modern-v5 .atg-legend-contract-swatch-v1124ne {
  box-sizing: border-box !important;
}

body.modern-v5 .atg-legend-section-v927 {
  display: block !important;
  width: 100% !important;
  margin: 16px 0 8px !important;
  padding: 0 !important;
  text-align: left !important;
}

body.modern-v5 .atg-legend-list-v927 .atg-legend-section-v927:first-child {
  margin-top: 0 !important;
}

body.modern-v5 .atg-legend-item-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-row-curated {
  min-height: 72px !important;
  display: grid !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96)) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.035) !important;
  overflow: hidden !important;
}

body.modern-v5.app-theme-light .atg-legend-item-v927,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-v437-setting-row-curated {
  border-color: rgba(15, 23, 42, 0.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,253,0.96)) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.75) !important;
}

body.modern-v5 .atg-legend-item-v927 {
  grid-template-columns: 44px minmax(0, 1fr) !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v437-settings-list-curated {
  margin-top: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-row-curated {
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
}

body.modern-v5 .atg-legend-emoji-v927,
body.modern-v5 .atg-legend-swatch-v927,
body.modern-v5 .atg-legend-stars-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}

body.modern-v5 .atg-legend-emoji-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-icon {
  border-color: rgba(var(--gold-shadow-rgb), 0.30) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 226, 163, 0.96) !important;
  font-size: 20px !important;
  text-shadow: none !important;
}

body.modern-v5.app-theme-light .atg-legend-emoji-v927,
body.modern-v5.app-theme-light .atg-legend-stars-v927,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-v437-setting-icon {
  border-color: rgba(var(--gold-rgb), 0.30) !important;
  background: rgba(255, 248, 228, 0.96) !important;
  color: #8a5a00 !important;
  text-shadow: none !important;
}

body.modern-v5 .atg-legend-swatch-v927.place-standard {
  background: var(--poi-place, #D7A15A) !important;
  border-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 4px var(--poi-place-outline, rgba(215, 161, 90, 0.52)), 0 10px 22px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}

body.modern-v5 .atg-legend-swatch-v927.place-internal {
  background: var(--poi-internal, #2FA8C0) !important;
  border-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 4px var(--poi-internal-outline, rgba(47, 168, 192, 0.60)), 0 10px 22px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}

body.modern-v5 .atg-legend-swatch-v927.extra {
  background: var(--poi-extra, #6F757A) !important;
  border-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 4px var(--poi-extra-outline, rgba(111, 117, 122, 0.60)), 0 10px 22px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}

body.modern-v5 .atg-legend-stars-v927 {
  border-color: rgba(var(--gold-shadow-rgb), 0.34) !important;
  background: linear-gradient(180deg, rgba(var(--gold-shadow-rgb),0.24), rgba(var(--gold-shadow-rgb),0.12)) !important;
  color: var(--gold-accent) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45) !important;
}

body.modern-v5 .atg-legend-copy-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
  color: #f8fafc !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

body.modern-v5 .atg-legend-copy-v927 strong,
body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-title {
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.modern-v5 .atg-legend-copy-v927 em,
body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-subtitle {
  color: rgba(236, 244, 255, 0.74) !important;
  font-size: 12.5px !important;
  font-style: normal !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

body.modern-v5.app-theme-light .atg-legend-copy-v927 strong,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-v437-setting-title {
  color: #09111f !important;
}

body.modern-v5.app-theme-light .atg-legend-copy-v927 em,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-v437-setting-subtitle {
  color: #475569 !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-control {
  justify-self: end !important;
  min-width: 0 !important;
  width: auto !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v447-constraint-shell {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-action {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v437-switch {
  flex: 0 0 auto !important;
}

body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-row-disabled {
  opacity: .72 !important;
}

body.modern-v5 .atg-legend-actions-v927,
body.modern-v5 .atg-curated-actions-v927 {
  justify-content: flex-start !important;
  margin-top: 16px !important;
  padding-top: 0 !important;
}

body.modern-v5 .atg-legend-actions-v927 .app-sheet-back,
body.modern-v5 .atg-curated-actions-v927 .app-sheet-back {
  min-height: 44px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

@media (max-width: 640px) {
  body.modern-v5 .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 {
    width: 100% !important;
    max-height: 100dvh !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-inline-theme-head-row,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-inline-theme-head-row {
    align-items: center !important;
    gap: 10px !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-inline-theme-dock,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-inline-theme-dock {
    transform: none !important;
    transform-origin: right center !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title {
    font-size: 28px !important;
  }

  body.modern-v5 .atg-legend-item-v927,
  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-row-curated {
    min-height: 68px !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 19px !important;
  }

  body.modern-v5 .atg-legend-item-v927 {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-row-curated {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  body.modern-v5 .atg-legend-emoji-v927,
  body.modern-v5 .atg-legend-swatch-v927,
  body.modern-v5 .atg-legend-stars-v927,
  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body.modern-v5 .atg-legend-copy-v927 strong,
  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-title {
    font-size: 14px !important;
  }

  body.modern-v5 .atg-legend-copy-v927 em,
  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-subtitle {
    font-size: 12px !important;
  }

  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-control {
    grid-column: 2 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body.modern-v5 .atg-curated-sheet-v927 .atg-v447-constraint-shell {
    justify-content: space-between !important;
    width: 100% !important;
  }

  body.modern-v5 .atg-legend-actions-v927,
  body.modern-v5 .atg-curated-actions-v927 {
    position: sticky !important;
    bottom: -14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 0 0 !important;
    background: linear-gradient(180deg, rgba(7,16,29,0), rgba(7,16,29,0.98) 34%, rgba(7,16,29,0.995)) !important;
  }

  body.modern-v5.app-theme-light .atg-legend-actions-v927,
  body.modern-v5.app-theme-light .atg-curated-actions-v927 {
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(248,250,253,0.98) 34%, rgba(248,250,253,0.995)) !important;
  }

  body.modern-v5 .atg-legend-actions-v927 .app-sheet-back,
  body.modern-v5 .atg-curated-actions-v927 .app-sheet-back {
    width: 100% !important;
  }
}

@media (max-width: 360px) {
  body.modern-v5 .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title {
    font-size: 26px !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-inline-theme-dock,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-inline-theme-dock {
    transform: none !important;
  }

  body.modern-v5 .atg-legend-item-v927 {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-row-curated {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.modern-v5 .atg-legend-emoji-v927,
  body.modern-v5 .atg-legend-swatch-v927,
  body.modern-v5 .atg-legend-stars-v927,
  body.modern-v5 .atg-curated-sheet-v927 .atg-v437-setting-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 17px !important;
  }
}


/* V927 — Places of Interest live filters use the same visual family as Map Legend and Places of Interest. */
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] {
  position: absolute !important;
  width: min(980px, calc(100vw - 28px)) !important;
  max-width: 980px !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(var(--gold-shadow-rgb), 0.28) !important;
  background: radial-gradient(circle at 18% 0%, rgba(var(--gold-shadow-rgb),0.18), transparent 28%), linear-gradient(180deg, rgba(10, 18, 40, 0.985), rgba(4, 10, 24, 0.995)) !important;
  color: #f8fafc !important;
  box-shadow: 0 28px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.055) !important;
  overflow: visible !important;
  backdrop-filter: blur(20px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.18) !important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] {
  background: radial-gradient(circle at 18% 0%, rgba(var(--gold-shadow-rgb),0.18), transparent 30%), linear-gradient(180deg, rgba(255,252,247,0.992), rgba(244,236,226,0.998)) !important;
  color: #09111f !important;
  border-color: rgba(143,74,36,0.20) !important;
  box-shadow: 0 24px 58px rgba(61,44,27,0.18), inset 0 1px 0 rgba(255,255,255,0.84) !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-top-v627,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-top-v627 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627 span,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 span {
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627 span,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 span {
  color: #09111f !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627 strong,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 strong {
  min-height: 24px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  color:var(--gold-btn-ink) !important;
  background: linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight)) !important;
  border: 1px solid rgba(var(--gold-border-rgb),0.42) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627 em,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 em {
  min-height: 24px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  color: rgba(236,244,255,0.78) !important;
  background: rgba(255,255,255,0.075) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 850 !important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627 em,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 em {
  color: #475569 !important;
  background: rgba(15,23,42,0.055) !important;
  border-color: rgba(15,23,42,0.10) !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-actions-v627,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-actions-v627 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-actions-v627 button,
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-search-row-v627 button,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-actions-v627 button,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-search-row-v627 button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color:var(--gold-btn-ink) !important;
  background: linear-gradient(135deg, var(--gold-accent-deep), var(--gold-accent) 58%, var(--gold-accent-highlight)) !important;
  border: 1px solid rgba(var(--gold-border-rgb),0.38) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22) !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-search-row-v627,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-search-row-v627 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-select-row-v627,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-select-row-v627 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
  gap: 10px !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-custom-trigger-v666,
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-field-v627 select,
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-search-row-v627 input,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-custom-trigger-v666,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-field-v627 select,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-search-row-v627 input {
  min-height: 38px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.075)) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #f8fafc !important;
  font-weight: 800 !important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-custom-trigger-v666,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-field-v627 select,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-search-row-v627 input,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-custom-trigger-v666,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-field-v627 select,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-search-row-v627 input {
  background: rgba(255,255,255,0.86) !important;
  border-color: rgba(15,23,42,0.12) !important;
  color: #09111f !important;
}
/* Long Places-filter labels remain readable instead of ending underneath the caret. */
body.modern-v5 #placesMapFilterCustomTriggerV731_family_age_band {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-height: 44px !important;
  height: auto !important;
  align-items: center !important;
  overflow: visible !important;
  text-align: left !important;
}
body.modern-v5 #placesMapFilterCustomTriggerV731_family_age_band > #placesMapFilterCustomTriggerLabelV731_family_age_band,
body.modern-v5 #placesMapFilterCustomTriggerV731_family_age_band > #placesMapFilterCustomTriggerLabelV731_family_age_band .restaurant-map-custom-option-text-v666 {
  display: block !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  line-height: 1.2 !important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-custom-menu-v666,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-custom-menu-v666 {
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(12,18,32,0.992), rgba(5,11,22,0.998)) !important;
  border: 1px solid rgba(var(--gold-border-rgb),0.24) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,0.40) !important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-custom-menu-v666,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-custom-menu-v666 {
  background: rgba(255,252,247,0.98) !important;
  border-color: rgba(143,74,36,0.18) !important;
}
@media (max-width: 760px) {
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: 82dvh !important;
    padding: 10px !important;
    border-radius: 22px !important;
    transform: none !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-top-v627,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-top-v627 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-actions-v627,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-actions-v627 {
    justify-content: flex-start !important;
  }
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-select-row-v627,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-select-row-v627 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}
@media (max-width: 380px) {
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] {
    left: 6px !important;
    right: 6px !important;
    padding: 8px !important;
  }
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-title-v627 span,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-title-v627 span {
    font-size: 13px !important;
  }
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-actions-v627 button,
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-search-row-v627 button,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-actions-v627 button,
  body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-search-row-v627 button {
    font-size: 10px !important;
    padding: 0 8px !important;
  }
}

/* V927 — definitive Map Legend + Places of Interest modal geometry.
   One clean layout model: desktop/tablet cards are centered by the overlay;
   phones stay full-width and never use transform-based centering. */
@media (min-width: 641px) {
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden),
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(18px, 2.2vw, 32px) !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden) > .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) > .modal-card.atg-curated-sheet-v927 {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 1 auto !important;
    display: block !important;
    width: min(960px, calc(100vw - 64px)) !important;
    max-width: min(960px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 64px) !important;
    margin: 0 auto !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    contain: layout paint !important;
  }

  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) > .modal-card.atg-curated-sheet-v927 {
    width: min(920px, calc(100vw - 64px)) !important;
    max-width: min(920px, calc(100vw - 64px)) !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-inline-theme-head-row,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-inline-theme-head-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 18px !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head,
  body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-list,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-v437-settings-list-curated,
  body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-inner-v927,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-inner-v927 {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-inner-v927,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-inner-v927 {
    width: min(820px, 100%) !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }
}

@media (max-width: 640px) {
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden),
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden) > .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) > .modal-card.atg-curated-sheet-v927 {
    position: fixed !important;
    inset: 8px !important;
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
}

/* V927 — unified app modal visual language: same family as Map Legend and Places of Interest. */
body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) {
  width: min(920px, calc(100vw - 28px)) !important;
  max-height: min(92dvh, 820px) !important;
  padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(16px, 2.4vw, 34px) calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.12), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.11), transparent 30%),
    linear-gradient(140deg,#07111f 0%,#0b1730 54%,#09101d 100%) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.05) !important;
  box-sizing: border-box !important;
}

body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) {
  color: #0f172a !important;
  border-color: rgba(15,23,42,.10) !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.18), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,253,.98)) !important;
  box-shadow: 0 28px 90px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.75) !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-head {
  gap: 8px !important;
  margin-bottom: 18px !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-kicker,
body.modern-v5 .experience-shell-kicker,
body.modern-v5 .preset-detail-section-title,
body.modern-v5 .app-sheet-section-title {
  color: rgba(255,226,163,.92) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-kicker,
body.modern-v5.app-theme-light .experience-shell-kicker,
body.modern-v5.app-theme-light .preset-detail-section-title,
body.modern-v5.app-theme-light .app-sheet-section-title {
  color: #8a5a00 !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-title,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) h3 {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: clamp(30px, 4.4vw, 40px) !important;
  line-height: 1.03 !important;
  letter-spacing: .01em !important;
  overflow-wrap: anywhere !important;
}

body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) h3 {
  color: #09111f !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-copy,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .hint,
body.modern-v5 .experience-shell-card p,
body.modern-v5 .experience-shell-card li,
body.modern-v5 .preset-detail-note,
body.modern-v5 .app-sheet-note {
  color: rgba(236,244,255,.74) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
}

body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .hint,
body.modern-v5.app-theme-light .experience-shell-card p,
body.modern-v5.app-theme-light .experience-shell-card li,
body.modern-v5.app-theme-light .preset-detail-note,
body.modern-v5.app-theme-light .app-sheet-note {
  color: #475569 !important;
}

body.modern-v5 .experience-shell-grid,
body.modern-v5 .experience-shell-grid.compact {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

body.modern-v5 .experience-shell-card,
body.modern-v5 .preset-detail-panel,
body.modern-v5 .preset-detail-hero,
body.modern-v5 .build-tour-suggest-empty-panel,
body.modern-v5 .profile-dashboard-card,
body.modern-v5 .plan-card {
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: linear-gradient(180deg, rgba(19,25,63,.92), rgba(12,18,48,.96)) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035) !important;
  color: #f8fafc !important;
  overflow: hidden !important;
}
body.modern-v5 .preset-detail-panel{
  border-radius:8px !important;
}

body.modern-v5 .experience-shell-card {
  min-height: 0 !important;
  padding: 18px !important;
  display: grid !important;
  align-content: start !important;
  gap: 12px !important;
}

body.modern-v5.app-theme-light .experience-shell-card,
body.modern-v5.app-theme-light .preset-detail-panel,
body.modern-v5.app-theme-light .preset-detail-hero,
body.modern-v5.app-theme-light .build-tour-suggest-empty-panel,
body.modern-v5.app-theme-light .profile-dashboard-card,
body.modern-v5.app-theme-light .plan-card {
  border-color: rgba(15,23,42,.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,253,.96)) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.75) !important;
  color: #09111f !important;
}

body.modern-v5 .experience-shell-card h4,
body.modern-v5 .preset-detail-panel h4,
body.modern-v5 .preset-detail-hero h4 {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: clamp(21px, 2.3vw, 28px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

body.modern-v5.app-theme-light .experience-shell-card h4,
body.modern-v5.app-theme-light .preset-detail-panel h4,
body.modern-v5.app-theme-light .preset-detail-hero h4 {
  color: #09111f !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .btn,
body.modern-v5 .experience-inline-actions .btn {
  min-height: 44px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
  letter-spacing: .01em !important;
  box-shadow: none !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .btn.primary,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-primary,
body.modern-v5 .experience-inline-actions .btn.primary {
  color: var(--cta-action-ink) !important;
  border: 1px solid var(--cta-action-border) !important;
  background: var(--cta-action-bg) !important;
  box-shadow: var(--cta-action-shadow), inset 0 1px 0 rgba(255,255,255,.16) !important;
  font-family: var(--cta-action-font) !important;
  font-weight: var(--cta-action-weight) !important;
  letter-spacing: var(--cta-action-tracking) !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-back,
body.modern-v5 .experience-inline-actions .app-sheet-back {
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.075) !important;
}

body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-back,
body.modern-v5.app-theme-light .experience-inline-actions .app-sheet-back {
  color: #0f172a !important;
  border-color: rgba(15,23,42,.12) !important;
  background: rgba(15,23,42,.055) !important;
}

body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-actions,
body.modern-v5 .step-actions.app-sheet-actions {
  gap: 12px !important;
  margin-top: 16px !important;
  padding-top: 0 !important;
}

@media (max-width: 760px) {
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 .experience-shell-grid,
  body.modern-v5 .experience-shell-grid.compact {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body.modern-v5 .experience-shell-card {
    padding: 16px !important;
    border-radius: 20px !important;
  }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .app-sheet-title,
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) h3 {
    font-size: 28px !important;
  }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface:not(.atg-map-legend-v927):not(.atg-curated-sheet-v927) .btn,
  body.modern-v5 .experience-inline-actions .btn,
  body.modern-v5 .step-actions.app-sheet-actions .btn {
    width: 100% !important;
  }
}


/* V927 — stable geometry for the rest of the app sheets.
   Map Legend and Places of Interest already have their own verified geometry; all other
   app modal sheets use the same centered, professional shell on desktop and
   full-screen readable layout on phones. */
@media (min-width: 641px) {
  body.modern-v5 .modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(18px, 2.2vw, 32px) !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) > .modal-card.app-sheet.app-sheet-surface {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 1 auto !important;
    display: block !important;
    width: min(920px, calc(100vw - 64px)) !important;
    max-width: min(920px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 64px) !important;
    margin: 0 auto !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 640px) {
  body.modern-v5 .modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.modern-v5 .modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) > .modal-card.app-sheet.app-sheet-surface {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
}

/* V934: Build Your Own Tour top-right controls fixed inside the dashboard on desktop and mobile. */
.build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  overflow:visible!important;
}
.build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-copy{
  min-width:0!important;
  flex:1 1 auto!important;
}
.build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  z-index:50!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:74px!important;
  margin-left:8px!important;
  overflow:visible!important;
}
.build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions .build-tour-dashboard-hide,
.build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions .build-tour-dashboard-close,
.build-tour-dashboard-hide,
.build-tour-dashboard-close{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0!important;
  margin:0!important;
  border-radius:10px!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  transform:none!important;
}
.build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions .build-tour-dashboard-close,
.build-tour-dashboard-close{
  font-size:17px!important;
}
@media (max-width:700px){
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-title{
    font-size:14px!important;
    line-height:1.12!important;
  }
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-note{
    font-size:11px!important;
    line-height:1.25!important;
  }
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions{
    justify-content:flex-end!important;
    margin-left:6px!important;
    gap:5px!important;
    max-width:65px!important;
  }
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions .build-tour-dashboard-hide,
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions .build-tour-dashboard-close,
  .build-tour-dashboard-hide,
  .build-tour-dashboard-close{
    flex-basis:28px!important;
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    border-radius:9px!important;
    font-size:14px!important;
  }
  .build-tour-tray:not(.hidden) .build-tour-dashboard-shell .build-tour-dashboard-head-actions .build-tour-dashboard-close,
  .build-tour-dashboard-close{
    font-size:16px!important;
  }
}


/* V934 — universal app modal layout: Tour-menu shell + single central BACK TO MAP. */
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet.app-sheet-surface,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.map-menu-sheet.app-sheet,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.build-tour-suggest-modal.app-sheet,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.plan-compare-modal.app-sheet,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.modal-card-avatar-picker.app-sheet {
  width: min(920px, calc(100vw - 48px)) !important;
  max-width: min(920px, calc(100vw - 48px)) !important;
  max-height: calc(100dvh - 48px) !important;
  margin: 0 auto !important;
  border-radius: 28px !important;
  padding: clamp(20px, 2.4vw, 34px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.12), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.11), transparent 30%),
    linear-gradient(140deg,#07111f 0%,#0b1730 54%,#09101d 100%) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04) !important;
  transform: none !important;
}
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.app-sheet,
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.app-sheet.app-sheet-surface,
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.map-menu-sheet.app-sheet,
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.build-tour-suggest-modal.app-sheet,
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.plan-compare-modal.app-sheet,
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.modal-card-avatar-picker.app-sheet {
  color: #09111f !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.18), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,253,.98)) !important;
  border-color: rgba(15,23,42,.10) !important;
  box-shadow: 0 22px 56px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.78) !important;
}
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet .app-sheet-head,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.map-menu-sheet.app-sheet .app-sheet-head {
  margin-bottom: 18px !important;
  gap: 8px !important;
}
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet .app-sheet-title,
body.modern-v5 .modal-layer:not(.hidden) > .modal-card.map-menu-sheet.app-sheet .app-sheet-title {
  font-size: clamp(30px, 4.4vw, 40px) !important;
  line-height: 1.03 !important;
  letter-spacing: .01em !important;
  overflow-wrap: anywhere !important;
}
body.modern-v5 .app-standard-modal-nav,
body.modern-v5 .app-standard-modal-nav.single,
body.modern-v5 .app-standard-modal-nav.split,
body.modern-v5 .app-standard-modal-nav.atg-v934-back-to-map-only {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 18px auto 0 !important;
  padding: 14px 0 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  background: linear-gradient(180deg, rgba(7,16,29,0), rgba(7,16,29,.96) 30%, rgba(7,16,29,.995) 100%) !important;
}
body.modern-v5.app-theme-light .app-standard-modal-nav,
body.modern-v5.app-theme-light .app-standard-modal-nav.single,
body.modern-v5.app-theme-light .app-standard-modal-nav.split,
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-back-to-map-only {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(248,250,253,.96) 30%, rgba(248,250,253,.995) 100%) !important;
}
body.modern-v5 .modal-card.atg-map-legend-per-category-v1124ne {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}
body.modern-v5 .modal-card.atg-map-legend-per-category-v1124ne > .atg-legend-inner-v927 {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
body.modern-v5 .modal-card.atg-map-legend-per-category-v1124ne > .atg-legend-inner-v927 > .atg-legend-head-v927,
body.modern-v5 .modal-card.atg-map-legend-per-category-v1124ne > .atg-legend-inner-v927 > .atg-legend-list-v927 {
  flex: 0 0 auto !important;
}
body.modern-v5 .modal-card.atg-map-legend-per-category-v1124ne > .app-standard-modal-nav.atg-v934-standard-nav {
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}
body.modern-v5 .app-standard-modal-nav-btn,
body.modern-v5 .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  min-height: 56px !important;
  border-radius: 999px !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  text-transform: none !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.09) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.18) !important;
}
body.modern-v5.app-theme-light .app-standard-modal-nav-btn,
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn {
  color: #0f172a !important;
  border-color: rgba(15,23,42,.14) !important;
  background: rgba(15,23,42,.055) !important;
  box-shadow: 0 14px 28px rgba(15,23,42,.08) !important;
}
body.modern-v5 .app-standard-modal-nav [data-standard-modal-action="back"] {
  display: none !important;
}
@media (max-width: 640px) {
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet.app-sheet-surface,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.map-menu-sheet.app-sheet,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.build-tour-suggest-modal.app-sheet,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.plan-compare-modal.app-sheet,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.modal-card-avatar-picker.app-sheet {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet .app-sheet-title,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.map-menu-sheet.app-sheet .app-sheet-title {
    font-size: 28px !important;
  }
  body.modern-v5 .app-standard-modal-nav,
  body.modern-v5 .app-standard-modal-nav.single,
  body.modern-v5 .app-standard-modal-nav.split,
  body.modern-v5 .app-standard-modal-nav.atg-v934-back-to-map-only {
    margin-top: 14px !important;
    padding-top: 12px !important;
  }
  body.modern-v5 .app-standard-modal-nav-btn,
  body.modern-v5 .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;
    font-size: 13px !important;
  }
}


/* V934 — modal navigation contract + Tour-layout margins for Map Legend / Places of Interest.
   One screen from map = one central BACK TO MAP. Deeper screens = BACK + BACK TO MAP on one row. */
body.modern-v5 .app-nav-source-hidden,
body.modern-v5.app-theme-light .app-nav-source-hidden,
body.modern-v5.app-theme-dark .app-nav-source-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
body.modern-v5 .map-legend-actions:has(.app-nav-source-hidden),
body.modern-v5 .atg-legend-actions-v927:has(.app-nav-source-hidden),
body.modern-v5 .atg-curated-actions-v927:has(.app-nav-source-hidden),
body.modern-v5 .experience-hub-utility-row:has(> .app-nav-source-hidden:only-child),
body.modern-v5 .step-actions.app-sheet-actions:has(> .app-nav-source-hidden:only-child) {
  display: none !important;
  visibility: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  height: 0 !important;
}
body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5 .app-standard-modal-nav.single.atg-v934-standard-nav,
body.modern-v5 .app-standard-modal-nav.split.atg-v934-standard-nav,
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav {
  width: 100% !important;
  margin: 18px auto 0 !important;
  padding: 14px 0 0 !important;
  position: relative !important;
  bottom: auto !important;
  z-index: 30 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
body.modern-v5 .app-standard-modal-nav.single.atg-v934-standard-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
}
body.modern-v5 .app-standard-modal-nav.split.atg-v934-standard-nav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}
body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn {
  min-height: 56px !important;
  border-radius: 999px !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}
body.modern-v5 .app-standard-modal-nav.single.atg-v934-standard-nav .app-standard-modal-nav-btn {
  width: 100% !important;
  max-width: none !important;
}
body.modern-v5 .app-standard-modal-nav.split.atg-v934-standard-nav .app-standard-modal-nav-btn {
  width: 100% !important;
  max-width: none !important;
}
body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav [data-standard-modal-action="back"] {
  display: inline-flex !important;
}
body.modern-v5 .app-standard-modal-nav.single.atg-v934-standard-nav [data-standard-modal-action="back"] {
  display: none !important;
}
body.modern-v5 .atg-legend-actions-v927,
body.modern-v5 .atg-curated-actions-v927,
body.modern-v5.app-theme-light .atg-legend-actions-v927,
body.modern-v5.app-theme-light .atg-curated-actions-v927,
body.modern-v5.app-theme-dark .atg-legend-actions-v927,
body.modern-v5.app-theme-dark .atg-curated-actions-v927 {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
@media (min-width: 641px) {
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden),
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(18px, 2.2vw, 32px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden) > .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) > .modal-card.atg-curated-sheet-v927 {
    position: relative !important;
    inset: auto !important;
    width: min(920px, calc(100vw - 48px)) !important;
    max-width: min(920px, calc(100vw - 48px)) !important;
    max-height: calc(100dvh - 48px) !important;
    margin: 0 auto !important;
    border-radius: 28px !important;
    padding: clamp(20px, 2.4vw, 34px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden),
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden) > .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) > .modal-card.atg-curated-sheet-v927 {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
  body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-inner-v927,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-inner-v927 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav,
  body.modern-v5 .app-standard-modal-nav.single.atg-v934-standard-nav,
  body.modern-v5 .app-standard-modal-nav.split.atg-v934-standard-nav,
  body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav,
  body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 10px 0 max(2px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav {
    background: transparent !important;
    box-shadow: none !important;
  }
  body.modern-v5 #buildTourTray:not(.hidden):has(.app-standard-modal-nav.single.atg-v934-standard-nav) {
    bottom: max(8px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 #buildTourTray:not(.hidden):has(.app-standard-modal-nav.single.atg-v934-standard-nav) .build-tour-dashboard-shell {
    max-height: 100% !important;
    overflow-y: auto !important;
    contain: none !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn {
    min-height: 54px !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }
  body.modern-v5 .app-standard-modal-nav.single.atg-v934-standard-nav .app-standard-modal-nav-btn {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.modern-v5 .app-standard-modal-nav.split.atg-v934-standard-nav {
    gap: 10px !important;
  }
  body.modern-v5 .modal-card:has(.app-standard-modal-nav.single.atg-v934-standard-nav) {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 .modal-card:has(.app-standard-modal-nav.split.atg-v934-standard-nav) {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 .modal-layer:not(.hidden) .modal-card :is(
    button,
    a[href],
    [role="button"],
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ) {
    min-height: 44px !important;
  }
  body.modern-v5 .modal-layer:not(.hidden) .modal-card :is(button, a[href], [role="button"]) {
    min-width: 44px !important;
  }
  body.modern-v5 #atgPoiDockV1090 :is(
    button,
    a[href],
    [role="button"],
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ) {
    min-height: 44px !important;
  }
  body.modern-v5 #atgPoiDockV1090 :is(button, a[href], [role="button"]) {
    min-width: 44px !important;
  }
}
@media (max-height: 430px) and (max-width: 900px) {
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet,
  body.modern-v5 .modal-layer:not(.hidden) > .modal-card.app-sheet.app-sheet-surface,
  body.modern-v5 .modal-layer:not(.hidden) > .atg-customer-hub-v1124sl {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.modern-v5 .modal-layer:not(.hidden) .modal-card :is(
    button,
    a[href],
    [role="button"],
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ),
  body.modern-v5 #atgPoiDockV1090 :is(
    button,
    a[href],
    [role="button"],
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ) {
    min-height: 44px !important;
  }
  body.modern-v5 .modal-layer:not(.hidden) .modal-card :is(button, a[href], [role="button"]),
  body.modern-v5 #atgPoiDockV1090 :is(button, a[href], [role="button"]) {
    min-width: 44px !important;
  }
}
@media (max-width: 360px) {
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-legend-layer-v927:not(.hidden) > .modal-card.atg-map-legend-v927,
  body.modern-v5 .modal-layer.modal-layer-surface.atg-map-layers-layer-v927:not(.hidden) > .modal-card.atg-curated-sheet-v927 {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 .app-standard-modal-nav.split.atg-v934-standard-nav {
    gap: 8px !important;
  }
  body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn {
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }
}


/* V938 — Build Your Tour dark dashboard aligned with Places of Interest row blue. */
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-shell,
body.modern-v5.app-theme-dark .build-tour-dashboard-shell{
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.10), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.12), transparent 30%),
    linear-gradient(180deg, rgba(19,25,63,.94), rgba(12,18,48,.97)) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035) !important;
  color: #f8fafc !important;
}
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-chip,
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-departure,
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-stop,
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-empty,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure,
body.modern-v5.app-theme-dark .build-tour-dashboard-stop,
body.modern-v5.app-theme-dark .build-tour-dashboard-empty{
  background: linear-gradient(180deg, rgba(19,25,63,.92), rgba(12,18,48,.96)) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035) !important;
  color: #f8fafc !important;
}
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-departure.is-set,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure.is-set{
  background: linear-gradient(180deg, rgba(24,31,72,.94), rgba(14,20,54,.97)) !important;
  border-color: rgba(var(--gold-accent-rgb),.24) !important;
}
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-title,
body.modern-v5.app-theme-dark .build-tour-dashboard-title{
  color:#f8fafc !important;
}
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-note,
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-leg-value,
body.modern-v5.app-theme-dark .build-tour-dashboard-note,
body.modern-v5.app-theme-dark .build-tour-dashboard-leg-label,
body.modern-v5.app-theme-dark .build-tour-dashboard-leg-value{
  color: rgba(236,244,255,.78) !important;
}
/* V938 — Build Your Tour visual system applied to every dark-mode app menu/sheet. */
body.modern-v5.app-theme-dark{
  --atg-v938-build-surface-bg:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.10), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.12), transparent 30%),
    linear-gradient(180deg, rgba(19,25,63,.94), rgba(12,18,48,.97));
  --atg-v938-build-row-bg:linear-gradient(180deg, rgba(19,25,63,.92), rgba(12,18,48,.96));
  --atg-v938-build-row-bg-strong:linear-gradient(180deg, rgba(24,31,72,.94), rgba(14,20,54,.97));
  --atg-v938-build-border:rgba(255,255,255,.10);
  --atg-v938-build-border-strong:rgba(var(--gold-accent-rgb),.24);
  --atg-v938-build-shadow:0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
  --atg-v938-build-text:#f8fafc;
  --atg-v938-build-muted:rgba(236,244,255,.78);
  --atg-v938-build-kicker:#f7d58b;
}
body.modern-v5.app-theme-dark :is(
  .modal-card.app-sheet,
  .modal-card.app-sheet.app-sheet-surface,
  .modal-card.map-menu-sheet,
  .modal-card.map-legend-sheet,
  .modal-card.atg-map-legend-v927,
  .modal-card.atg-curated-sheet-v927,
  .modal-card.atg-tour-sheet-v927,
  .modal-card.atg-unified-sheet-v927,
  .modal-card.build-tour-suggest-modal,
  .modal-card.plan-compare-modal.build-tour-summary-modal,
  .modal-card.map-mode-modal,
  .modal-card.map-feature-modal,
  .modal-card.modal-card-avatar-picker,
  .modal-card.avatar-grid-modal,
  .modal-card.build-tour-time-modal,
  .restaurant-map-filter-bar-v627,
  .atg-restaurant-popup-v567,
  .atg-restaurant-popup-v594,
  .atg-foodsocial-detail-modal-v647,
  .atg-foodsocial-detail-modal-v650,
  .app-user-menu,
  .hero-language-panel,
  .avatar-panel,
  .build-tour-dashboard-shell
){
  background:var(--atg-v938-build-surface-bg) !important;
  border-color:var(--atg-v938-build-border) !important;
  box-shadow:var(--atg-v938-build-shadow) !important;
  color:var(--atg-v938-build-text) !important;
}
body.modern-v5.app-theme-dark :is(
  .experience-shell-card,
  .map-menu-row,
  .atg-v437-setting-row-curated,
  .atg-legend-section-v927,
  .atg-legend-item-v927,
  .build-tour-dashboard-chip,
  .build-tour-dashboard-departure,
  .build-tour-dashboard-stop,
  .build-tour-dashboard-empty,
  .build-tour-unified-plan-card,
  .build-tour-plan-item,
  .build-tour-plan-suggestion,
  .build-tour-suggest-proposal-summary,
  .build-tour-suggest-empty-panel,
  .build-tour-summary-hero,
  .build-tour-summary-panel-v657,
  .build-tour-summary-count-card-v655,
  .build-tour-summary-count-card-v657,
  .build-tour-summary-timing-card-v655,
  .build-tour-summary-command-v657,
  .build-tour-summary-command-v659,
  .restaurant-map-filter-field-v627,
  .restaurant-map-custom-trigger-v666,
  .restaurant-map-filter-search-row-v627,
  .atg-restaurant-popup-head,
  .atg-restaurant-popup-section,
  .atg-restaurant-popup-chip,
  .atg-restaurant-popup-badge,
  .atg-restaurant-popup-status
){
  background:var(--atg-v938-build-row-bg) !important;
  border-color:var(--atg-v938-build-border) !important;
  box-shadow:var(--atg-v938-build-shadow) !important;
  color:var(--atg-v938-build-text) !important;
}
body.modern-v5.app-theme-dark :is(
  .map-menu-row:hover,
  .atg-v437-setting-row-curated:hover,
  .experience-shell-card:hover,
  .build-tour-dashboard-departure.is-set,
  .build-tour-plan-item.is-food,
  .build-tour-plan-item.is-social,
  .build-tour-plan-item.is-nightlife,
  .build-tour-plan-item.is-park
){
  background:var(--atg-v938-build-row-bg-strong) !important;
  border-color:var(--atg-v938-build-border-strong) !important;
}
body.modern-v5.app-theme-dark :is(
  .app-sheet-title,
  .app-sheet h3,
  .map-menu-sheet h3,
  .map-legend-sheet h3,
  .atg-map-legend-v927 .app-sheet-title,
  .atg-curated-sheet-v927 .app-sheet-title,
  .experience-shell-card h3,
  .experience-shell-card h4,
  .map-menu-row-title,
  .atg-restaurant-popup-title,
  .atg-restaurant-popup-section-title,
  .build-tour-dashboard-title,
  .build-tour-plan-item-title,
  .build-tour-plan-suggestions-title
){
  color:var(--atg-v938-build-text) !important;
}
body.modern-v5.app-theme-dark :is(
  .app-sheet-copy,
  .app-sheet-note,
  .modal-card.app-sheet .hint,
  .map-menu-sheet .hint,
  .map-menu-row-subtitle,
  .map-menu-row-copy,
  .atg-legend-copy-v927,
  .experience-shell-card p,
  .experience-shell-card li,
  .build-tour-dashboard-note,
  .build-tour-dashboard-leg-label,
  .build-tour-dashboard-leg-value,
  .build-tour-plan-item-meta,
  .build-tour-plan-suggestion span,
  .build-tour-suggest-section-note,
  .build-tour-summary-modal .app-sheet-copy,
  .atg-restaurant-popup-summary,
  .atg-restaurant-popup-grid,
  .atg-restaurant-popup-grid strong
){
  color:var(--atg-v938-build-muted) !important;
}
body.modern-v5.app-theme-dark :is(
  .app-sheet-kicker,
  .experience-shell-kicker,
  .atg-curated-section-title-v675,
  .map-legend-section-title,
  .atg-legend-stars-v927,
  .build-tour-summary-modal .app-sheet-kicker
){
  color:var(--atg-v938-build-kicker) !important;
}
body.modern-v5.app-theme-dark :is(
  .app-standard-modal-nav-btn,
  .map-menu-sheet-back,
  .app-sheet-back,
  .app-sheet-secondary,
  .build-tour-dashboard-btn,
  .build-tour-suggest-rule-btn,
  .build-tour-suggest-rule-state,
  .build-tour-suggest-rule-activate
){
  border-color:var(--atg-v938-build-border) !important;
  background:var(--atg-v938-build-row-bg) !important;
  color:var(--atg-v938-build-text) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
}
body.modern-v5.app-theme-dark :is(
  .app-standard-modal-nav-btn:hover,
  .map-menu-sheet-back:hover,
  .app-sheet-back:hover,
  .app-sheet-secondary:hover,
  .build-tour-dashboard-btn:hover,
  .build-tour-suggest-rule-btn:hover,
  .build-tour-suggest-rule-activate:hover
){
  background:var(--atg-v938-build-row-bg-strong) !important;
  border-color:var(--atg-v938-build-border-strong) !important;
}
body.modern-v5.app-theme-dark .app-sheet-primary {
  color:var(--cta-action-ink) !important;
  background:var(--cta-action-bg) !important;
  border-color:var(--cta-action-border) !important;
  box-shadow:var(--cta-action-shadow), inset 0 1px 0 rgba(255,255,255,.16) !important;
  font-family:var(--cta-action-font) !important;
  font-weight:var(--cta-action-weight) !important;
  letter-spacing:var(--cta-action-tracking) !important;
}
body.modern-v5.app-theme-dark .app-sheet-primary:hover {
  filter:brightness(1.06) saturate(.96) !important;
  border-color:rgba(147,197,253,.68) !important;
}
/* V938 — Place internal cards + external place hover quadrants use the Build Your Tour visual system. */
body.modern-v5.app-theme-dark :is(
  .modal-card.modal-card-place-detail,
  .modal-card-place-detail,
  .leaflet-popup.atg-rome-marker-hover-popup-v645 .leaflet-popup-content-wrapper,
  .atg-rome-marker-hover-preview-v596,
  .atg-rome-marker-hover-preview-v659,
  .map-popup
){
  background: var(--atg-v938-build-surface-bg) !important;
  border-color: var(--atg-v938-build-border) !important;
  box-shadow: var(--atg-v938-build-shadow) !important;
  color: var(--atg-v938-build-text) !important;
}
body.modern-v5.app-theme-dark :is(
  .modal-card-place-detail .place-detail-hero-media,
  .modal-card-place-detail .place-detail-disclosure,
  .modal-card-place-detail .place-detail-inline-btn,
  .modal-card-place-detail .place-detail-kv,
  .modal-card-place-detail .place-detail-category-group-v640,
  .modal-card-place-detail .place-detail-actions,
  .modal-card-place-detail .place-detail-action-btn-build,
  .modal-card-place-detail .place-detail-action-btn-save-v661,
  .modal-card-place-detail .place-detail-entrance-item-v814,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-top-v603,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-top-v603,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-cta-wrap-v642,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-cta-wrap-v642,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-photo-v603,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-photo-v603,
  .map-popup-photo-wrap
){
  background: var(--atg-v938-build-row-bg) !important;
  border-color: var(--atg-v938-build-border) !important;
  box-shadow: var(--atg-v938-build-shadow) !important;
  color: var(--atg-v938-build-text) !important;
}
body.modern-v5.app-theme-dark :is(
  .modal-card-place-detail .place-detail-disclosure[open],
  .modal-card-place-detail .place-detail-inline-btn:hover,
  .modal-card-place-detail .place-detail-action-btn-build:hover,
  .modal-card-place-detail .place-detail-action-btn-save-v661:hover,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-open-v645:hover,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-cta-v642:hover,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-open-v645:hover,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-cta-v642:hover
){
  background: var(--atg-v938-build-row-bg-strong) !important;
  border-color: var(--atg-v938-build-border-strong) !important;
}
body.modern-v5.app-theme-dark :is(
  .modal-card-place-detail .place-detail-title,
  .modal-card-place-detail .place-detail-subtitle,
  .modal-card-place-detail .place-detail-disclosure summary,
  .modal-card-place-detail .place-detail-inline-btn,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-title-v596,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-title-v596
){
  color: var(--atg-v938-build-text) !important;
}
body.modern-v5.app-theme-dark :is(
  .modal-card-place-detail .place-detail-text,
  .modal-card-place-detail .place-detail-empty,
  .modal-card-place-detail .place-detail-kv-value,
  .modal-card-place-detail .place-detail-meta-line,
  .modal-card-place-detail .place-detail-hero-missing-copy,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-meta-v596,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-meta-v596,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-cta-sub-v642,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-cta-sub-v642
){
  color: var(--atg-v938-build-muted) !important;
}
body.modern-v5.app-theme-dark :is(
  .modal-card-place-detail .place-detail-kv-label,
  .modal-card-place-detail .place-detail-inline-btn-icon,
  .modal-card-place-detail .inline-contact-link,
  .atg-rome-marker-hover-preview-v596 .atg-rome-hover-star-v596,
  .atg-rome-marker-hover-preview-v659 .atg-rome-hover-star-v596,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-cta-main-v642,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-cta-main-v642
){
  color: var(--atg-v938-build-kicker) !important;
}

body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-disclosure summary::after{
  color: var(--atg-v938-build-kicker) !important;
}
body.modern-v5.app-theme-dark :is(
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-open-v645,
  .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-cta-v642,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-open-v645,
  .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-cta-v642
){
  background: var(--atg-v938-build-row-bg) !important;
  border: 1px solid var(--atg-v938-build-border) !important;
  color: var(--atg-v938-build-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
body.modern-v5.app-theme-dark .leaflet-popup.atg-rome-marker-hover-popup-v645 .leaflet-popup-tip{
  background: rgba(12,18,48,.97) !important;
  border: 1px solid var(--atg-v938-build-border) !important;
}
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
body.modern-v5.app-theme-dark .atg-rome-marker-hover-preview-v596 .atg-rome-marker-hover-photo-v603,
body.modern-v5.app-theme-dark .atg-rome-marker-hover-preview-v659 .atg-rome-marker-hover-photo-v603{
  border: 1px solid var(--atg-v938-build-border-strong) !important;
}
@media (max-width: 760px){
  body.modern-v5.app-theme-dark .leaflet-popup.atg-rome-marker-hover-popup-v645{
    z-index: 9800 !important;
  }
  body.modern-v5.app-theme-dark .atg-rome-marker-hover-preview-v596,
  body.modern-v5.app-theme-dark .atg-rome-marker-hover-preview-v659{
    width: min(286px, calc(100vw - 44px)) !important;
    max-width: min(286px, calc(100vw - 44px)) !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* V941 — Place detail BACK TO MAP + Map Legend section headings visual pass retained.
   Keeps the Build Your Tour blue family; removes the old place-detail footer bar and the long blue bars behind Icons/Colors. */
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5 .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  position:relative !important;
  bottom:auto !important;
  width:100% !important;
  margin:18px auto 0 !important;
  padding:14px 0 0 !important;
  z-index:40 !important;
}
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn{
  background:linear-gradient(135deg,#ffffff 0%,#f6f8fb 58%,#e9eef5 100%) !important;
  border:1px solid rgba(148,163,184,.58) !important;
  box-shadow:0 12px 24px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.92) !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  border-radius:999px !important;
}
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn:hover,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn:hover{
  background:linear-gradient(135deg,#ffffff 0%,#eef2f7 100%) !important;
  border-color:rgba(100,116,139,.72) !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
}
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn{
  background:linear-gradient(135deg,#21484a,#153638) !important;
  border:1px solid #12393b !important;
  box-shadow:0 12px 26px rgba(18,53,55,.22), inset 0 1px 0 rgba(255,255,255,.13) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-radius:999px !important;
}
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-section-v927,
body.modern-v5.app-theme-dark .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927{
  display:block !important;
  width:100% !important;
  min-height:0 !important;
  margin:18px auto 10px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  text-align:center !important;
  justify-content:center !important;
  align-items:center !important;
  color:var(--atg-v938-build-kicker,#f7d58b) !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:950 !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
}
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .atg-legend-section-v927{
  color:#b7791f !important;
}
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-list.atg-legend-list-v927{
  align-items:stretch !important;
}
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927:first-child{
  margin-top:4px !important;
}
@media (max-width:640px){
  body.modern-v5 .modal-card-place-detail .app-standard-modal-nav.atg-v934-standard-nav,
  body.modern-v5 .modal-card-place-detail .place-detail-shell .app-standard-modal-nav.atg-v934-standard-nav{
    margin-top:14px !important;
    padding-top:12px !important;
  }
  body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
  body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-section-v927{
    margin:16px auto 9px !important;
    font-size:12.5px !important;
  }
}



/* V941 — Confirm Tour / Shared Tour final flow uses the existing Build Your Tour visual system through app-sheet surfaces and action buttons. */

/* V944 — lightweight distant map markers, park legend color, and stable user zoom. */
body.modern-v5 .atg-legend-swatch-v927.park {
  background:#34A853 !important;
  border-color:rgba(255,255,255,.98) !important;
  box-shadow:0 0 0 4px rgba(52,168,83,.58),0 10px 22px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.30) !important;
}
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-section-v927,
body.modern-v5.app-theme-dark .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927 {
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  min-height:0 !important;
  margin:18px auto 10px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  text-align:center !important;
  justify-content:center !important;
  align-items:center !important;
}
body.modern-v5 .rome-map-point-shell.is-dot.visible-cultural-fallback-v567 {
  will-change:transform !important;
}
body.modern-v5 .rome-map-point-shell.is-dot.visible-cultural-fallback-v567 .rome-map-category-stars-above-v598 {
  display:none !important;
}

/* V1124DB - Dynamic Map Legend copy rows do not use icon-grid columns. */
body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-copy-item-v1124db {
  grid-template-columns:minmax(0,1fr) !important;
  align-items:start !important;
  min-height:0 !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-copy-item-v1124db .atg-legend-copy-v927 {
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:100% !important;
}

body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-copy-item-v1124db .atg-legend-copy-v927 strong,
body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-copy-item-v1124db .atg-legend-copy-v927 em {
  max-width:100% !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}

body.modern-v5.atg-map-legend-open-v1124db .leaflet-popup,
body.modern-v5.atg-map-legend-open-v1124db [data-atg-external-card-overlay-v970="1"],
body.modern-v5.atg-map-legend-open-v1124db .atg-rome-marker-hover-popup-v645,
body.modern-v5.atg-map-legend-open-v1124db .atg-foodsocial-hover-preview-v647 {
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}


/* V948 — Build Mode external filter isolation. */
body.atg-build-filter-lock-v948 .atg-mobile-filter-launcher-v890,
body.atg-build-filter-lock-v948 .atg-mobile-filter-backdrop-v890,
body.atg-build-filter-lock-v948 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"],
body.atg-build-filter-lock-v948 .atg-map-layer-filter-bar-v927,
body.atg-build-filter-lock-v948 [data-places-map-filter-bar],
body.atg-build-filter-lock-v948 [data-restaurant-map-filter-bar],
body.atg-build-filter-lock-v948 [data-aperitivo-map-filter-bar],
body.atg-build-filter-lock-v948 [data-cafe-map-filter-bar],
body.atg-build-filter-lock-v948 [data-bakery-map-filter-bar],
body.atg-build-filter-lock-v948 [data-icecream-map-filter-bar],
body.atg-build-filter-lock-v948 [data-hotel-map-filter-bar],
body.atg-build-filter-lock-v948 [data-nightlife-map-filter-bar],
body.atg-build-filter-lock-v948 [data-utility-map-filter-bar-v871],
body.atg-build-filter-lock-v948 #placesMapFilterBarV729,
body.atg-build-filter-lock-v948 #restaurantMapFilterBarV627,
body.atg-build-filter-lock-v948 #aperitivoMapFilterBarV679,
body.atg-build-filter-lock-v948 #cafeMapFilterBarV858,
body.atg-build-filter-lock-v948 #bakeryMapFilterBarV859,
body.atg-build-filter-lock-v948 #iceCreamMapFilterBarV860,
body.atg-build-filter-lock-v948 #hotelMapFilterBarV861,
body.atg-build-filter-lock-v948 #nightlifeMapFilterBarV866,
body.atg-build-filter-lock-v948 #pharmacyMapFilterBarV871,
body.atg-build-filter-lock-v948 #supermarketMapFilterBarV871{display:none!important;pointer-events:none!important;}
body.atg-build-filter-lock-v948{--atg-build-external-filter-lock-v948:1;}

/* V960 — rechecked external map cards + capped nearby photo markers. */
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content-wrapper,
body.modern-v5.app-theme-light .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content-wrapper,
body.modern-v5.app-theme-dark .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content-wrapper{
  width:auto !important;
  max-width:none !important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content{
  width:min(340px, calc(100vw - 56px)) !important;
  max-width:min(340px, calc(100vw - 56px)) !important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-preview-v659{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-photo-v603{
  display:block !important;
  width:100% !important;
  aspect-ratio:4 / 3 !important;
  min-height:128px !important;
  max-height:206px !important;
  margin-top:9px !important;
  background:#101010 !important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-photo-v603 > img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
body.modern-v5 .rome-map-point-shell.is-dot.visible-cultural-fallback-v567,
body.modern-v5 .rome-map-point-shell.is-dot.visible-cultural-fallback-v567 .rome-map-point-dot{
  opacity:.92 !important;
}
@media (max-width: 760px){
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content{
    width:min(236px, calc(100vw - 40px)) !important;
    max-width:min(236px, calc(100vw - 40px)) !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-preview-v659{
    width:100% !important;
    max-width:100% !important;
    padding:10px !important;
    border-radius:18px !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-top-v603{
    padding:8px 9px !important;
    border-radius:14px !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-title-v596{
    font-size:12px !important;
    line-height:1.16 !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-meta-v596{
    font-size:10px !important;
    line-height:1.18 !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-photo-v603{
    aspect-ratio:4 / 3 !important;
    min-height:96px !important;
    max-height:132px !important;
    margin-top:7px !important;
    border-radius:14px !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-cta-wrap-v642{
    gap:6px !important;
    margin-top:7px !important;
    padding:7px !important;
    border-radius:14px !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-open-v645,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-cta-v642{
    padding:8px 9px !important;
    border-radius:12px !important;
    font-size:10px !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-cta-main-v642{
    font-size:10px !important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-cta-sub-v642{
    font-size:9px !important;
  }
}

/* V960 — Build Your Tour real tabs + internal Add Stops control center. */
body.modern-v5 .build-tour-dashboard-shell-v960{
  background:linear-gradient(135deg,rgba(219,234,254,.98),rgba(191,219,254,.96))!important;
  border:1px solid rgba(96,165,250,.55)!important;
  box-shadow:0 22px 52px rgba(15,23,42,.22)!important;
}
body.modern-v5.app-theme-dark .build-tour-dashboard-shell-v960{
  background:linear-gradient(135deg,rgba(30,64,175,.96),rgba(37,99,235,.94))!important;
  border-color:rgba(147,197,253,.48)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.45)!important;
}
body.modern-v5 .build-tour-tabs-v960{
  display:flex!important;
  flex-flow:row nowrap!important;
  gap:8px!important;
  margin:10px 0 12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:none!important;
}
body.modern-v5 .build-tour-tabs-v960::-webkit-scrollbar{display:none!important;}
@media (min-width:761px){
  body.modern-v5 #buildTourTray .build-tour-tabs-v960{
    justify-content:center!important;
  }
}
body.modern-v5 .build-tour-tab-v960{
  appearance:none!important;
  border:1px solid rgba(37,99,235,.24)!important;
  background:rgba(255,255,255,.55)!important;
  color:#0f172a!important;
  border-radius:16px!important;
  padding:9px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  flex:0 0 auto!important;
  min-width:124px!important;
  scroll-snap-align:start!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  cursor:pointer!important;
  box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
}
body.modern-v5 .build-tour-tab-v960.is-active{
  background:#ffffff!important;
  border-color:rgba(37,99,235,.62)!important;
  color:#1d4ed8!important;
  box-shadow:0 12px 24px rgba(37,99,235,.16)!important;
}
body.modern-v5.app-theme-dark .build-tour-tab-v960{
  background:rgba(255,255,255,.12)!important;
  border-color:rgba(191,219,254,.28)!important;
  color:#eff6ff!important;
}
body.modern-v5.app-theme-dark .build-tour-tab-v960.is-active{
  background:rgba(255,255,255,.94)!important;
  border-color:rgba(255,255,255,.78)!important;
  color:#1d4ed8!important;
}
body.modern-v5 .build-tour-tab-panel-v960{
  display:block!important;
  min-width:0!important;
}
body.modern-v5 .build-tour-add-head-v960,
body.modern-v5 .build-tour-optimize-card-v960,
body.modern-v5 .build-tour-optimize-status-v960{
  border:1px solid rgba(37,99,235,.16)!important;
  background:rgba(255,255,255,.58)!important;
  border-radius:18px!important;
  padding:12px!important;
  box-shadow:0 10px 22px rgba(15,23,42,.08)!important;
}
body.modern-v5.app-theme-dark .build-tour-add-head-v960,
body.modern-v5.app-theme-dark .build-tour-optimize-card-v960,
body.modern-v5.app-theme-dark .build-tour-optimize-status-v960{
  background:rgba(15,23,42,.22)!important;
  border-color:rgba(191,219,254,.22)!important;
}
body.modern-v5 .build-tour-add-head-v960 strong,
body.modern-v5 .build-tour-optimize-card-v960 strong{
  display:block!important;
  color:#0f172a!important;
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:950!important;
}
body.modern-v5 .build-tour-add-head-v960 span,
body.modern-v5 .build-tour-optimize-card-v960 span,
body.modern-v5 .build-tour-optimize-status-v960 em{
  display:block!important;
  color:#475569!important;
  font-size:12px!important;
  line-height:1.3!important;
  margin-top:3px!important;
  font-style:normal!important;
}
body.modern-v5.app-theme-dark .build-tour-add-head-v960 strong,
body.modern-v5.app-theme-dark .build-tour-optimize-card-v960 strong{color:#eff6ff!important;}
body.modern-v5.app-theme-dark .build-tour-add-head-v960 span,
body.modern-v5.app-theme-dark .build-tour-optimize-card-v960 span,
body.modern-v5.app-theme-dark .build-tour-optimize-status-v960 em{color:#dbeafe!important;}
body.modern-v5 .build-tour-add-search-v960{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:8px!important;
  margin:10px 0!important;
}
body.modern-v5 .build-tour-add-search-v960 input{
  width:100%!important;
  border:1px solid rgba(37,99,235,.28)!important;
  border-radius:14px!important;
  padding:10px 12px!important;
  background:rgba(255,255,255,.94)!important;
  color:#0f172a!important;
  font-weight:800!important;
  outline:none!important;
}
body.modern-v5 .build-tour-add-search-v960 button,
body.modern-v5 .build-tour-add-row-btn-v960{
  appearance:none!important;
  border:0!important;
  border-radius:14px!important;
  padding:10px 12px!important;
  background:#1d4ed8!important;
  color:#fff!important;
  font-weight:950!important;
  cursor:pointer!important;
  box-shadow:0 10px 22px rgba(37,99,235,.22)!important;
}
body.modern-v5 .build-tour-add-filters-v960{
  display:flex!important;
  gap:8px!important;
  overflow-x:auto!important;
  padding:1px 0 8px!important;
  scrollbar-width:thin!important;
}
body.modern-v5 .build-tour-add-filter-v960{
  flex:0 0 auto!important;
  appearance:none!important;
  border:1px solid rgba(37,99,235,.18)!important;
  background:rgba(255,255,255,.55)!important;
  color:#0f172a!important;
  border-radius:999px!important;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
body.modern-v5 .build-tour-add-filter-v960.is-active{
  background:#fff!important;
  border-color:rgba(37,99,235,.62)!important;
  color:#1d4ed8!important;
}
body.modern-v5.app-theme-dark .build-tour-add-filter-v960{
  background:rgba(255,255,255,.12)!important;
  border-color:rgba(219,234,254,.22)!important;
  color:#eff6ff!important;
}
body.modern-v5.app-theme-dark .build-tour-add-filter-v960.is-active{
  background:rgba(255,255,255,.94)!important;
  color:#1d4ed8!important;
}
body.modern-v5 .build-tour-add-results-v960{
  display:grid!important;
  gap:8px!important;
  max-height:min(34vh,310px)!important;
  overflow:auto!important;
  padding-right:3px!important;
}
body.modern-v5 .build-tour-add-row-v960{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid rgba(37,99,235,.14)!important;
  background:rgba(255,255,255,.72)!important;
  border-radius:16px!important;
  padding:9px!important;
}
body.modern-v5.app-theme-dark .build-tour-add-row-v960{
  background:rgba(15,23,42,.24)!important;
  border-color:rgba(219,234,254,.18)!important;
}
body.modern-v5 .build-tour-add-row-main-v960{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
body.modern-v5 .build-tour-add-row-icon-v960{
  width:32px!important;
  height:32px!important;
  border-radius:12px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(37,99,235,.10)!important;
  flex:0 0 auto!important;
}
body.modern-v5 .build-tour-add-row-main-v960 strong{
  display:block!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.modern-v5 .build-tour-add-row-main-v960 em{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-style:normal!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin-top:2px!important;
}
body.modern-v5.app-theme-dark .build-tour-add-row-main-v960 strong{color:#f8fafc!important;}
body.modern-v5.app-theme-dark .build-tour-add-row-main-v960 em{color:#dbeafe!important;}
body.modern-v5 .build-tour-add-empty-v960{
  border:1px dashed rgba(37,99,235,.32)!important;
  color:#334155!important;
  background:rgba(255,255,255,.55)!important;
  border-radius:16px!important;
  padding:14px!important;
  font-weight:800!important;
  text-align:center!important;
}
body.modern-v5.app-theme-dark .build-tour-add-empty-v960{color:#eff6ff!important;background:rgba(15,23,42,.20)!important;border-color:rgba(219,234,254,.28)!important;}
body.modern-v5 .build-tour-optimize-card-v960{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:12px!important;
  margin-bottom:10px!important;
}
body.modern-v5 .build-tour-optimize-status-v960{
  display:grid!important;
  grid-template-columns:auto auto 1fr!important;
  align-items:center!important;
  gap:8px!important;
}
body.modern-v5 .build-tour-optimize-status-v960 span{font-size:12px!important;font-weight:900!important;color:#475569!important;}
body.modern-v5 .build-tour-optimize-status-v960 strong{font-size:18px!important;font-weight:950!important;color:#1d4ed8!important;}
body.modern-v5.app-theme-dark .build-tour-optimize-status-v960 span{color:#dbeafe!important;}
body.modern-v5.app-theme-dark .build-tour-optimize-status-v960 strong{color:#fff!important;}
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960 .leaflet-popup-content-wrapper{border-radius:20px!important;overflow:hidden!important;}
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960 .leaflet-popup-content{margin:0!important;width:min(340px,calc(100vw - 32px))!important;}
@media (max-width:760px){
  body.modern-v5 .build-tour-dashboard-shell-v960{max-height:74vh!important;overflow:auto!important;}
  body.modern-v5 .build-tour-tabs-v960{gap:6px!important;}
  body.modern-v5 .build-tour-tab-v960{padding:8px 6px!important;font-size:12px!important;}
  body.modern-v5 .build-tour-add-results-v960{max-height:31vh!important;}
  body.modern-v5 .build-tour-add-row-v960{grid-template-columns:1fr auto!important;padding:8px!important;}
  body.modern-v5 .build-tour-add-row-main-v960 strong{max-width:58vw!important;}
  body.modern-v5 .build-tour-optimize-card-v960{grid-template-columns:1fr!important;}
  body.modern-v5 .build-tour-optimize-status-v960{grid-template-columns:auto auto!important;}
  body.modern-v5 .build-tour-optimize-status-v960 em{grid-column:1 / -1!important;}
}

/* V960 — unified Back to map button contract + hover popup stability. */
body.modern-v5 :is(
  .map-menu-sheet-back,
  .atg-curated-actions-v927 .app-sheet-back,
  .atg-legend-actions-v927 .app-sheet-back,
  #curatedUsefulCloseBtn,
  #foodSocialFilterCloseV567,
  .app-modal-nav-control:not(.app-nav-source-hidden),
  .app-standard-modal-nav-btn,
  .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn,
  .modal-card-place-detail .place-detail-close-btn,
  .modal-card-place-detail .app-standard-modal-nav-btn[data-standard-modal-action="map"]
){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:132px!important;
  max-width:none!important;
  min-height:44px!important;
  height:auto!important;
  padding:0 18px!important;
  border-radius:999px!important;
  border:1px solid rgba(148,163,184,.58)!important;
  background:linear-gradient(135deg,#ffffff 0%,#f6f8fb 58%,#e9eef5 100%)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  box-shadow:0 12px 24px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.92)!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-align:center!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
body.modern-v5 :is(
  .map-menu-sheet-back:hover,
  .atg-curated-actions-v927 .app-sheet-back:hover,
  .atg-legend-actions-v927 .app-sheet-back:hover,
  #curatedUsefulCloseBtn:hover,
  #foodSocialFilterCloseV567:hover,
  .app-modal-nav-control:not(.app-nav-source-hidden):hover,
  .app-standard-modal-nav-btn:hover,
  .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn:hover,
  .modal-card-place-detail .place-detail-close-btn:hover,
  .modal-card-place-detail .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover
){
  background:linear-gradient(135deg,#ffffff 0%,#eef2f7 100%)!important;
  border-color:rgba(100,116,139,.72)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}
body.modern-v5.app-theme-light :is(
  .map-menu-sheet-back,
  .atg-curated-actions-v927 .app-sheet-back,
  .atg-legend-actions-v927 .app-sheet-back,
  #curatedUsefulCloseBtn,
  #foodSocialFilterCloseV567,
  .app-modal-nav-control:not(.app-nav-source-hidden),
  .app-standard-modal-nav-btn,
  .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn,
  .modal-card-place-detail .place-detail-close-btn,
  .modal-card-place-detail .app-standard-modal-nav-btn[data-standard-modal-action="map"]
){
  border-color:#12393b!important;
  background:linear-gradient(135deg,#21484a,#153638)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:0 12px 26px rgba(18,53,55,.22), inset 0 1px 0 rgba(255,255,255,.13)!important;
}
body.modern-v5.app-theme-light :is(
  .map-menu-sheet-back:hover,
  .atg-curated-actions-v927 .app-sheet-back:hover,
  .atg-legend-actions-v927 .app-sheet-back:hover,
  #curatedUsefulCloseBtn:hover,
  #foodSocialFilterCloseV567:hover,
  .app-modal-nav-control:not(.app-nav-source-hidden):hover,
  .app-standard-modal-nav-btn:hover,
  .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn:hover,
  .modal-card-place-detail .place-detail-close-btn:hover,
  .modal-card-place-detail .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover
){
  background:linear-gradient(135deg,#28575a,#1b4244)!important;
  border-color:#17494c!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-close-btn{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  flex:0 0 auto!important;
}
body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5 .app-standard-modal-nav.atg-v934-back-to-map-only{
  justify-content:flex-start!important;
  gap:10px!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960{
  pointer-events:auto!important;
  z-index:9800!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content-wrapper,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960 .leaflet-popup-content-wrapper,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960 .leaflet-popup-content,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960 .leaflet-popup-content{
  pointer-events:auto!important;
  backface-visibility:hidden!important;
  transform:translateZ(0)!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960 .atg-rome-marker-hover-open-v645,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960 .atg-foodsocial-hover-open-v647{
  pointer-events:auto!important;
}
@media (max-width:640px){
  body.modern-v5 :is(
    .map-menu-sheet-back,
    .atg-curated-actions-v927 .app-sheet-back,
    .atg-legend-actions-v927 .app-sheet-back,
    #curatedUsefulCloseBtn,
    #foodSocialFilterCloseV567,
    .app-modal-nav-control:not(.app-nav-source-hidden),
    .app-standard-modal-nav-btn,
    .app-standard-modal-nav.atg-v934-back-to-map-only .app-standard-modal-nav-btn,
    .modal-card-place-detail .place-detail-close-btn,
    .modal-card-place-detail .app-standard-modal-nav-btn[data-standard-modal-action="map"]
  ){
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    padding:0 14px!important;
  }
  body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav,
  body.modern-v5 .app-standard-modal-nav.atg-v934-back-to-map-only{
    justify-content:stretch!important;
  }
}

/* ===== V964 CLEAN LAYER + MOBILE CONTRACT =====
   One final stack: map < external preview cards < map controls < internal detail/modals.
   Earlier duplicate layer overrides are intentionally collapsed here. */
:root{
  --atg-layer-external-card-v964:3100;
  --atg-layer-map-controls-v964:3300;
  --atg-layer-modal-v964:4000;
}
body.modern-v5.tour-mode #tourView.view-map{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5.tour-mode #map{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
#map .leaflet-marker-icon.atg-rome-marker-hitarea-v960{
  pointer-events:auto!important;
  touch-action:manipulation!important;
  cursor:pointer!important;
}
#map .atg-rome-marker-hitarea-shell-v960,
#map .atg-rome-marker-hitarea-shell-v960 *{
  pointer-events:none!important;
}
#map .atg-rome-marker-hitarea-shell-v960 .rome-map-point-dot,
#map .atg-rome-marker-hitarea-shell-v960 .rome-map-category-stars-above-v598{
  pointer-events:none!important;
}
body.modern-v5.tour-mode .map-fab-row,
body.modern-v5.app-theme-light.tour-mode .map-fab-row,
body.modern-v5.app-theme-dark.tour-mode .map-fab-row{
  position:fixed!important;
  left:max(8px,env(safe-area-inset-left,0px))!important;
  right:max(8px,env(safe-area-inset-right,0px))!important;
  bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:none!important;
  z-index:var(--atg-layer-map-controls-v964)!important;
}
body.modern-v5.tour-mode .map-fab-row .map-fab-group,
body.modern-v5.tour-mode .map-fab-row .map-fab-anchor{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #fountainToggleBtn,
body.modern-v5.tour-mode #mapMenuBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:relative!important;
  z-index:1!important;
}
body.modern-v5 #modalLayer.modal-layer:not(.hidden),
body.modern-v5 .modal-layer:not(.hidden){
  position:fixed!important;
  z-index:var(--atg-layer-modal-v964)!important;
  pointer-events:auto!important;
}
body.modern-v5 #modalLayer.modal-layer:not(.hidden) > .modal-card,
body.modern-v5 #modalLayer.modal-layer:not(.hidden) .modal-card-place-detail{
  position:relative!important;
  z-index:1!important;
}
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #atgPoiDockV1090,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) .map-fab-row,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) .map-fab-group-left,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) .map-fab-group-right,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) .map-fab-anchor,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #mapMenuBtn,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #mapAvatarToggleBtn,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #legendToggleBtn,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #mapGpsLocateBtn,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #mapSettingsToggleBtnV993,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #todayDealsToggleBtn,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #fountainToggleBtn,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #mapRightsControl,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #buildTourTray,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) #buildTourTrayToggle,
body.modern-v5.tour-mode:has(#modalLayer:not(.hidden) > .modal-card) .atg-external-card-overlay-v043{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-topbar{
  position:sticky!important;
  top:0!important;
  z-index:80!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-category-group-v640,
body.modern-v5 .modal-card-place-detail .place-detail-topbar-center{
  min-width:0!important;
  flex:1 1 auto!important;
}
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:118px!important;
  max-width:min(220px,48vw)!important;
  min-height:42px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
  position:relative!important;
  z-index:90!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-standard-modal-nav='1']{
  display:none!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v643,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v644,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645,
body.modern-v5 .leaflet-popup.atg-restaurant-leaflet-popup-v594,
body.modern-v5 .leaflet-popup.atg-foodsocial-leaflet-popup-v594,
body.modern-v5 .leaflet-popup.atg-unified-hover-popup-v647,
body.modern-v5 .leaflet-popup.atg-unified-hover-popup-v648,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960{
  z-index:var(--atg-layer-external-card-v964)!important;
  pointer-events:auto!important;
}
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-rome-marker-hover-popup-v643,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-rome-marker-hover-popup-v644,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-rome-marker-hover-popup-v645,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-foodsocial-hover-popup-v645,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-restaurant-leaflet-popup-v594,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-foodsocial-leaflet-popup-v594,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-unified-hover-popup-v647,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-unified-hover-popup-v648,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960,
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960{
  display:none!important;
  pointer-events:none!important;
}
@media(max-width:760px){
  body.modern-v5.tour-mode .map-fab-row{
    left:8px!important;
    right:8px!important;
    bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
  }
  body.modern-v5.tour-mode .map-fab-group-right{
    margin-left:auto!important;
    gap:7px!important;
  }
  body.modern-v5.tour-mode #legendToggleBtn,
  body.modern-v5.tour-mode #fountainToggleBtn,
  body.modern-v5.tour-mode #mapMenuBtn,
  body.modern-v5.tour-mode #mapGpsLocateBtn{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    padding:0!important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v643 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v644 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-restaurant-leaflet-popup-v594 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-foodsocial-leaflet-popup-v594 .leaflet-popup-content{
    width:min(246px,calc(100vw - 36px))!important;
    max-width:min(246px,calc(100vw - 36px))!important;
    margin:0!important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .atg-rome-marker-hover-preview-v659,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .atg-foodsocial-hover-preview-v647{
    width:min(246px,calc(100vw - 36px))!important;
    max-width:min(246px,calc(100vw - 36px))!important;
    max-height:min(58dvh,420px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .atg-foodsocial-hover-photo-v647{
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-topbar{
    flex-wrap:nowrap!important;
    align-items:center!important;
  }
  body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail .place-detail-close-btn{
    min-width:108px!important;
    max-width:44vw!important;
    padding:0 10px!important;
    margin-left:6px!important;
    font-size:11px!important;
  }
}
/* ===== END V964 CLEAN LAYER + MOBILE CONTRACT ===== */

/* ===== V964 DOMINANT LAYER CONTRACT — overrides legacy 214748 stacks =====
   This block intentionally uses the same numeric range as older ATG layers because
   previous 3300/4000 contracts were below legacy popups/filter sheets and could not win. */
:root{
  --atg-layer-external-card-v964:2147482100;
  --atg-layer-map-secondary-v964:2147482400;
  --atg-layer-map-controls-v964:2147483620;
  --atg-layer-modal-v964:2147483500;
  --atg-layer-modal-card-v964:2147483520;
  --atg-layer-modal-nav-v964:2147483580;
}
html:not(.inbound-map-boot) #cityEntryTransition{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5 .leaflet-popup,
body.modern-v5 .leaflet-tooltip,
body.modern-v5 .atg-rome-marker-hover-tooltip-v596,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v643,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v644,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645,
body.modern-v5 .leaflet-popup.atg-restaurant-leaflet-popup-v594,
body.modern-v5 .leaflet-popup.atg-foodsocial-leaflet-popup-v594,
body.modern-v5 .leaflet-popup.atg-unified-hover-popup-v647,
body.modern-v5 .leaflet-popup.atg-unified-hover-popup-v648,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v960,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v960{
  z-index:var(--atg-layer-external-card-v964)!important;
}
body.modern-v5 #restaurantMapFilterBarV627,
body.modern-v5 .restaurant-map-filter-bar-v627,
body.modern-v5 .atg-mobile-filter-backdrop-v890,
body.modern-v5 .atg-mobile-filter-sheet-v890,
body.modern-v5 .build-tour-tray-toggle,
body.modern-v5 .build-tour-tray:not(.hidden) .build-tour-dashboard-hide{
  z-index:var(--atg-layer-map-secondary-v964)!important;
}
body.modern-v5.tour-mode .map-fab-row,
body.modern-v5.app-theme-light.tour-mode .map-fab-row,
body.modern-v5.app-theme-dark.tour-mode .map-fab-row{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:none!important;
  z-index:var(--atg-layer-map-controls-v964)!important;
}
body.modern-v5.tour-mode .map-fab-row .map-fab-group,
body.modern-v5.tour-mode .map-fab-row .map-fab-anchor,
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #fountainToggleBtn,
body.modern-v5.tour-mode #mapMenuBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #fountainToggleBtn,
body.modern-v5.tour-mode #mapMenuBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn{
  display:inline-flex!important;
}
body.modern-v5 #modalLayer.modal-layer:not(.hidden),
body.modern-v5 .modal-layer:not(.hidden){
  position:fixed!important;
  z-index:var(--atg-layer-modal-v964)!important;
  pointer-events:auto!important;
}
body.modern-v5 #modalLayer.modal-layer:not(.hidden) > .modal-card,
body.modern-v5 #modalLayer.modal-layer:not(.hidden) .modal-card,
body.modern-v5 #modalLayer.modal-layer:not(.hidden) .modal-card-place-detail{
  position:relative!important;
  z-index:var(--atg-layer-modal-card-v964)!important;
}
body.modern-v5.atg-modal-open-v964 .map-fab-row,
body.modern-v5.atg-place-detail-open-v645 .map-fab-row{
  z-index:var(--atg-layer-map-secondary-v964)!important;
}
body.modern-v5.atg-place-detail-open-v645 .leaflet-popup,
body.modern-v5.atg-place-detail-open-v645 .leaflet-tooltip,
body.modern-v5.atg-place-detail-open-v645 #restaurantMapFilterBarV627,
body.modern-v5.atg-place-detail-open-v645 .restaurant-map-filter-bar-v627{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-topbar{
  position:sticky!important;
  top:0!important;
  z-index:var(--atg-layer-modal-nav-v964)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:relative!important;
  z-index:var(--atg-layer-modal-nav-v964)!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-standard-modal-nav='1']{
  display:none!important;
}
@media(max-width:760px){
  body.modern-v5.tour-mode .map-fab-row{
    left:8px!important;
    right:8px!important;
    bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
  }
  body.modern-v5.tour-mode .map-fab-group-right{
    margin-left:auto!important;
    gap:7px!important;
  }
  body.modern-v5.tour-mode #legendToggleBtn,
  body.modern-v5.tour-mode #fountainToggleBtn,
  body.modern-v5.tour-mode #mapMenuBtn,
  body.modern-v5.tour-mode #mapGpsLocateBtn{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    padding:0!important;
  }
  body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail .place-detail-close-btn{
    min-width:108px!important;
    max-width:44vw!important;
    padding:0 10px!important;
    margin-left:6px!important;
    font-size:11px!important;
    min-height:42px!important;
  }
  body.modern-v5 .leaflet-popup .leaflet-popup-content{
    max-width:calc(100vw - 36px)!important;
  }
}
/* ===== END V964 DOMINANT LAYER CONTRACT ===== */


/* ===== V964 STABLE CENTERED MARKER PREVIEW =====
   Contract: after a valid 2s desktop hover or a mobile touch, the map recenters the real marker
   to one fixed screen coordinate and then opens the external card on that marker LatLng. */
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964{
  z-index:var(--atg-layer-external-card-v964)!important;
  pointer-events:auto!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .leaflet-popup-content,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .leaflet-popup-content{
  margin:0!important;
  width:auto!important;
  max-width:min(340px, calc(100vw - 32px))!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .leaflet-popup-content-wrapper,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .leaflet-popup-content-wrapper{
  overflow:visible!important;
  border-radius:22px!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .leaflet-popup-tip-container,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .leaflet-popup-tip-container{
  pointer-events:none!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v659,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
  width:min(322px, calc(100vw - 32px))!important;
  min-width:min(260px, calc(100vw - 32px))!important;
  max-width:min(322px, calc(100vw - 32px))!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
  height:118px!important;
  min-height:118px!important;
  max-height:118px!important;
}
@media (max-width: 700px){
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .leaflet-popup-content{
    max-width:min(246px, calc(100vw - 28px))!important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v659,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
    width:min(246px, calc(100vw - 28px))!important;
    min-width:min(214px, calc(100vw - 28px))!important;
    max-width:min(246px, calc(100vw - 28px))!important;
    max-height:min(58dvh, 420px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
  }
}
/* ===== END V964 STABLE CENTERED MARKER PREVIEW ===== */


/* ===== V965 THUMBNAIL BARYCENTER + RESTORED PLACE BACK TO MAP ===== */
:root{
  --atg-layer-external-card-v965:2147482100;
  --atg-layer-map-controls-v965:2147483620;
  --atg-layer-modal-v965:2147483500;
  --atg-layer-modal-nav-v965:2147483580;
}
body.modern-v5 #modalLayer.modal-layer:not(.hidden),
body.modern-v5 .modal-layer:not(.hidden){
  z-index:var(--atg-layer-modal-v965)!important;
  pointer-events:auto!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-topbar{
  position:sticky!important;
  top:0!important;
  min-height:60px!important;
  padding:10px 12px 10px 142px!important;
  z-index:var(--atg-layer-modal-nav-v965)!important;
  overflow:visible!important;
}
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.atg-back-to-map-restored-v970{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:absolute!important;
  left:12px!important;
  top:10px!important;
  right:auto!important;
  bottom:auto!important;
  z-index:var(--atg-layer-modal-nav-v965)!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:116px!important;
  max-width:128px!important;
  min-height:40px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn.hidden,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn.hidden,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-category-group-v640,
body.modern-v5 .modal-card-place-detail .place-detail-topbar-center,
body.modern-v5 .modal-card-place-detail .place-detail-topbar-actions{
  min-width:0!important;
}
body.modern-v5.atg-modal-open-v965 .map-fab-row,
body.modern-v5.atg-place-detail-open-v645 .map-fab-row{
  z-index:2147482400!important;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964{
  z-index:var(--atg-layer-external-card-v965)!important;
}
@media(max-width:760px){
  body.modern-v5 .modal-card-place-detail .place-detail-topbar{
    min-height:58px!important;
    padding:9px 10px 9px 126px!important;
  }
  body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail .place-detail-close-btn.atg-back-to-map-restored-v970{
    left:10px!important;
    top:9px!important;
    min-width:104px!important;
    max-width:112px!important;
    min-height:40px!important;
    padding:0 9px!important;
    margin-left:0!important;
    font-size:11px!important;
  }
}
/* ===== END V965 THUMBNAIL BARYCENTER + RESTORED PLACE BACK TO MAP ===== */

/* ===== V966 EXTERNAL CARD VISIBILITY + BUILD YOUR TOUR CURATED STYLE ===== */
:root{
  --atg-layer-external-card-v966:2147482200;
  --atg-layer-modal-v966:2147483500;
  --atg-layer-modal-nav-v966:2147483580;
}
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964{
  z-index:var(--atg-layer-external-card-v966)!important;
  pointer-events:auto!important;
}
body.modern-v5.app-theme-dark .build-tour-dashboard-shell-v960,
body.modern-v5.app-theme-dark .build-tour-tray:not(.hidden) .build-tour-dashboard-shell-v960{
  background:var(--atg-v938-build-surface-bg, radial-gradient(circle at 12% 9%, rgba(248,217,144,.10), transparent 28%), radial-gradient(circle at 88% 13%, rgba(147,197,253,.12), transparent 30%), linear-gradient(180deg, rgba(19,25,63,.94), rgba(12,18,48,.97)))!important;
  border-color:var(--atg-v938-build-border, rgba(255,255,255,.10))!important;
  box-shadow:var(--atg-v938-build-shadow, 0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035))!important;
  color:var(--atg-v938-build-text, #f8fafc)!important;
}
body.modern-v5.app-theme-dark :is(
  .build-tour-tab-v960,
  .build-tour-add-head-v960,
  .build-tour-optimize-card-v960,
  .build-tour-optimize-status-v960,
  .build-tour-add-filter-v960,
  .build-tour-add-row-v960,
  .build-tour-add-empty-v960,
  .build-tour-add-row-icon-v960
){
  background:var(--atg-v938-build-row-bg, linear-gradient(180deg, rgba(19,25,63,.92), rgba(12,18,48,.96)))!important;
  border-color:var(--atg-v938-build-border, rgba(255,255,255,.10))!important;
  box-shadow:var(--atg-v938-build-shadow, 0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035))!important;
  color:var(--atg-v938-build-text, #f8fafc)!important;
}
body.modern-v5.app-theme-dark :is(
  .build-tour-tab-v960.is-active,
  .build-tour-add-filter-v960.is-active,
  .build-tour-add-row-btn-v960,
  .build-tour-add-search-v960 button,
  .build-tour-dashboard-btn,
  .build-tour-suggest-rule-btn,
  .build-tour-suggest-rule-state,
  .build-tour-suggest-rule-activate
){
  background:var(--atg-v938-build-row-bg-strong, linear-gradient(180deg, rgba(24,31,72,.94), rgba(14,20,54,.97)))!important;
  border:1px solid var(--atg-v938-build-border-strong, rgba(var(--gold-accent-rgb),.24))!important;
  box-shadow:var(--atg-v938-build-shadow, 0 18px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035))!important;
  color:var(--atg-v938-build-text, #f8fafc)!important;
}
body.modern-v5.app-theme-dark :is(
  .build-tour-add-search-v960 input,
  .build-tour-suggest-search,
  .build-tour-suggest-number,
  .build-tour-suggest-select,
  .build-tour-time-field input[type="date"],
  .build-tour-time-field input[type="time"]
){
  background:var(--atg-v938-build-row-bg, linear-gradient(180deg, rgba(19,25,63,.92), rgba(12,18,48,.96)))!important;
  border-color:var(--atg-v938-build-border, rgba(255,255,255,.10))!important;
  box-shadow:inset 3px 0 0 rgba(247,213,139,.62), inset 0 1px 0 rgba(255,255,255,.035)!important;
  color:var(--atg-v938-build-text, #f8fafc)!important;
}
body.modern-v5.app-theme-dark :is(
  .build-tour-add-head-v960 strong,
  .build-tour-optimize-card-v960 strong,
  .build-tour-add-row-main-v960 strong,
  .build-tour-tab-v960 strong,
  .build-tour-optimize-status-v960 strong
){
  color:var(--atg-v938-build-text, #f8fafc)!important;
}
body.modern-v5.app-theme-dark :is(
  .build-tour-add-head-v960 span,
  .build-tour-optimize-card-v960 span,
  .build-tour-optimize-status-v960 em,
  .build-tour-optimize-status-v960 span,
  .build-tour-add-row-main-v960 em
){
  color:var(--atg-v938-build-muted, rgba(236,244,255,.78))!important;
}
body.modern-v5.app-theme-dark .build-tour-add-row-icon-v960,
body.modern-v5.app-theme-dark .build-tour-dashboard-chip span,
body.modern-v5.app-theme-dark .build-tour-dashboard-departure-label,
body.modern-v5.app-theme-dark .build-tour-suggest-card-kicker,
body.modern-v5.app-theme-dark .build-tour-suggest-proposal-kicker{
  color:var(--atg-v938-build-kicker, #f7d58b)!important;
}
@media(max-width:760px){
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .leaflet-popup-content,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .leaflet-popup-content{
    max-width:min(246px, calc(100vw - 28px))!important;
  }
}
/* ===== END V966 EXTERNAL CARD VISIBILITY + BUILD YOUR TOUR CURATED STYLE ===== */



/* ===== V970 REAL PLACE BACK TO MAP + EXTERNAL CARD DOM OVERLAY ===== */
:root{
  --atg-layer-external-card-v970:2147482200;
  --atg-layer-modal-v970:2147483500;
  --atg-layer-modal-nav-v970:2147483580;
}
body.modern-v5 #map .leaflet-popup-pane,
body.modern-v5 #map .leaflet-map-pane .leaflet-popup-pane{
  z-index:var(--atg-layer-external-card-v970)!important;
  pointer-events:none!important;
}
body.modern-v5 #map .leaflet-popup-pane .leaflet-popup,
body.modern-v5 #map .atg-external-card-overlay-v970{
  pointer-events:auto!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970{
  position:absolute!important;
  left:0!important;
  top:0!important;
  bottom:auto!important;
  right:auto!important;
  margin:0!important;
  z-index:var(--atg-layer-external-card-v970)!important;
  transform-origin:top left!important;
  will-change:transform,opacity!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970 .leaflet-popup-content,
body.modern-v5 #map .atg-external-card-overlay-v970 .leaflet-popup-content-wrapper{
  margin:0!important;
  overflow:visible!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-standard-modal-nav='1'],
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-standard-modal-nav='1'],
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-standard-modal-nav='1']{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:var(--atg-layer-modal-nav-v970)!important;
}
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:900px){
  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav{
    grid-row:3!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    width:100%!important;
    min-height:calc(138px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    padding:10px 14px calc(14px + env(safe-area-inset-bottom,0px))!important;
    align-items:center!important;
    background:linear-gradient(180deg,rgba(255,255,255,0),rgba(7,16,29,.94) 18%,rgba(7,16,29,.995) 100%)!important;
    box-shadow:0 -18px 34px rgba(0,0,0,.18)!important;
    box-sizing:border-box!important;
  }
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav{
    background:linear-gradient(180deg,rgba(255,255,255,0),rgba(252,246,236,.96) 18%,rgba(252,246,236,.995) 100%)!important;
    box-shadow:0 -18px 34px rgba(61,44,27,.10)!important;
  }
}
/* ===== END V970 REAL PLACE BACK TO MAP + EXTERNAL CARD DOM OVERLAY ===== */

/* ===== V970 PLACE DETAIL TOPBAR BACK TO MAP — FINAL OVERRIDE ===== */
body.modern-v5 .modal-card-place-detail .place-detail-topbar{
  position:sticky!important;
  top:0!important;
  z-index:var(--atg-layer-modal-nav-v970,2147483580)!important;
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn,
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-close-btn.app-nav-source-hidden{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  z-index:var(--atg-layer-modal-nav-v970,2147483580)!important;
  width:auto!important;
  min-width:118px!important;
  max-width:min(220px,48vw)!important;
  min-height:42px!important;
  padding:0 12px!important;
  margin-left:8px!important;
  white-space:nowrap!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-standard-modal-nav='1'],
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:760px){
  body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
  body.modern-v5 .modal-card-place-detail .place-detail-close-btn{
    min-width:108px!important;
    max-width:44vw!important;
    min-height:40px!important;
    padding:0 10px!important;
    margin-left:6px!important;
    font-size:11px!important;
  }
}
/* ===== END V970 PLACE DETAIL TOPBAR BACK TO MAP — FINAL OVERRIDE ===== */


/* ===== V970 STANDARD PLACE DETAIL BACK TO MAP — CURATED PLACES MATCH ===== */
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn,
body.modern-v5 .modal-card-place-detail .place-detail-close-btn.atg-back-to-map-source-v970,
body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-close-btn.atg-back-to-map-source-v970,
body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-close-btn.atg-back-to-map-source-v970{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1']{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;
  position:relative!important;
  z-index:var(--atg-layer-modal-nav-v970,2147483580)!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav[data-place-detail-standard-nav-v970='1']{
  padding:10px 24px 24px!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn,
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn,
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:52px!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  white-space:nowrap!important;
}
@media (max-width:760px), (pointer:coarse) and (max-height:520px){
  body.modern-v5:has(.modal-card-place-detail) #modalLayer:not(.hidden),
  body.modern-v5:has(.modal-card-place-detail) .modal-layer:not(.hidden){
    padding:0!important;
  }
  body.modern-v5 .modal-card-place-detail{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav[data-place-detail-standard-nav-v970='1']{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    min-height:calc(138px + env(safe-area-inset-bottom,0px))!important;
    padding:10px 14px calc(14px + env(safe-area-inset-bottom,0px))!important;
    align-items:center!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell > .app-standard-modal-nav[data-place-detail-standard-nav-v970='1']{
    background:transparent!important;
    box-shadow:none!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-scroll{
    padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
  }
}
/* ===== END V970 STANDARD PLACE DETAIL BACK TO MAP — CURATED PLACES MATCH ===== */

/* V970 specificity lock: source topbar buttons stay hidden; the standard Curated-style nav is the visible control. */
body.modern-v5 .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden.atg-back-to-map-source-v970,
body.modern-v5 .modal-card-place-detail #foodSocialDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden.atg-back-to-map-source-v970,
body.modern-v5.app-theme-light .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden.atg-back-to-map-source-v970,
body.modern-v5.app-theme-dark .modal-card-place-detail #placeDetailCloseBtn.place-detail-close-btn.app-nav-source-hidden.atg-back-to-map-source-v970{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* ===== V975 PLACE DETAIL BACK TO MAP — EXACT CURATED PLACES READABILITY LOCK =====
   Contract: the visible Back to map control inside place detail must use the same readable
   visual system as Places of Interest / Map Legend buttons, especially in dark mode.
*/
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'],
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1']{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  grid-template-columns:minmax(0,1fr)!important;
}
body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"],
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"],
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:52px!important;
  height:auto!important;
  padding:0 18px!important;
  border-radius:999px!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-align:center!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  text-shadow:none!important;
}
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
  border:1px solid rgba(148,163,184,.58)!important;
  background:linear-gradient(135deg,#ffffff 0%,#f6f8fb 58%,#e9eef5 100%)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  box-shadow:0 12px 24px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover,
body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]:focus-visible{
  background:linear-gradient(135deg,#ffffff 0%,#eef2f7 100%)!important;
  border-color:rgba(100,116,139,.72)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
  border:1px solid #12393b!important;
  background:linear-gradient(135deg,#21484a,#153638)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:0 12px 26px rgba(18,53,55,.22), inset 0 1px 0 rgba(255,255,255,.13)!important;
}
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover,
body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]:focus-visible{
  background:linear-gradient(135deg,#28575a,#1b4244)!important;
  border-color:#17494c!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
@media(max-width:640px){
  body.modern-v5 .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"],
  body.modern-v5.app-theme-light .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"],
  body.modern-v5.app-theme-dark .modal-card-place-detail .app-standard-modal-nav[data-place-detail-standard-nav-v970='1'] .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    padding:0 14px!important;
    font-size:13px!important;
  }
}
/* ===== END V975 PLACE DETAIL BACK TO MAP — EXACT CURATED PLACES READABILITY LOCK ===== */


/* ===== V977 MOBILE EXTERNAL CARD CLEAN BODY + FULL OPENING HOURS =====
   Contract:
   - one single visible external-card body on mobile, no extra right-side Leaflet skin/tip;
   - no internal right scrollbar on place/food external cards;
   - opening-hours cards grow upward and show the information immediately;
   - the card remains horizontally centered over the selected thumbnail. */
:root{
  --atg-layer-external-card-v977:2147482200;
}
body.modern-v5 #map .atg-external-card-overlay-v977,
body.modern-v5.app-theme-light #map .atg-external-card-overlay-v977,
body.modern-v5.app-theme-dark #map .atg-external-card-overlay-v977{
  width:max-content!important;
  max-width:calc(100vw - 18px)!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  z-index:var(--atg-layer-external-card-v977)!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 > .atg-external-card-overlay-inner-v977{
  display:block!important;
  width:max-content!important;
  max-width:calc(100vw - 18px)!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 .leaflet-popup-content-wrapper,
body.modern-v5 #map .atg-external-card-overlay-v977 .leaflet-popup-content,
body.modern-v5 #map .atg-external-card-overlay-v977 .leaflet-popup-tip-container,
body.modern-v5 #map .atg-external-card-overlay-v977 .leaflet-popup-tip,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .leaflet-popup-tip-container,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .leaflet-popup-tip,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .leaflet-popup-tip-container,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .leaflet-popup-tip{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  width:0!important;
  height:0!important;
  pointer-events:none!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v659,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-foodsocial-hover-preview-v647,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-foodsocial-hover-preview-v651{
  overflow:visible!important;
  max-height:none!important;
  scrollbar-width:none!important;
  box-sizing:border-box!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596::-webkit-scrollbar,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v659::-webkit-scrollbar,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-foodsocial-hover-preview-v647::-webkit-scrollbar,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-foodsocial-hover-preview-v651::-webkit-scrollbar,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .atg-rome-marker-hover-preview-v596::-webkit-scrollbar,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645 .atg-rome-marker-hover-preview-v659::-webkit-scrollbar,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .atg-foodsocial-hover-preview-v647::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
@media(max-width:760px){
  body.modern-v5 #map .atg-external-card-overlay-v977,
  body.modern-v5 #map .atg-external-card-overlay-v977 > .atg-external-card-overlay-inner-v977{
    max-width:calc(100vw - 18px)!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v659,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v659{
    width:min(236px,calc(100vw - 28px))!important;
    min-width:min(218px,calc(100vw - 28px))!important;
    max-width:min(236px,calc(100vw - 28px))!important;
    max-height:none!important;
    overflow:visible!important;
    padding:8px!important;
    border-radius:18px!important;
    scrollbar-width:none!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603{
    height:92px!important;
    min-height:92px!important;
    max-height:92px!important;
    margin-top:6px!important;
    border-radius:13px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-top-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-top-v603{
    padding:7px 8px!important;
    border-radius:13px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-title-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-title-v596{
    font-size:11.5px!important;
    line-height:1.12!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-meta-v596,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-cta-sub-v642,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-meta-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-cta-sub-v642{
    font-size:9.5px!important;
    line-height:1.12!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-cta-wrap-v642,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-cta-wrap-v642{
    gap:5px!important;
    margin-top:6px!important;
    padding:6px!important;
    border-radius:13px!important;
    overflow:visible!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-open-v645,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-cta-v642,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-open-v645,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-cta-v642{
    padding:7px 8px!important;
    border-radius:11px!important;
    font-size:9.5px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-hover-status-v647,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-hover-status-v647,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .atg-hover-status-v647{
    overflow:visible!important;
    max-height:none!important;
    white-space:normal!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-hover-status-hours-v651,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645.atg-rome-marker-hover-popup-stable-v964 .atg-hover-status-hours-v651,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 .atg-hover-status-hours-v651{
    display:block!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-height:none!important;
    line-height:1.14!important;
  }
}
/* ===== END V977 MOBILE EXTERNAL CARD CLEAN BODY + FULL OPENING HOURS ===== */


/* ===== V978 EXTERNAL CARD TALL PHOTO + MOBILE TOP SAFE LOCK ===== */
:root{--atg-layer-external-card-v978:2147482200;}
body.modern-v5 #map .atg-external-card-overlay-v977,
body.modern-v5 #map .atg-external-card-overlay-v978,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964{
  z-index:var(--atg-layer-external-card-v978)!important;
  overflow:visible!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
  width:min(340px,calc(100vw - 32px))!important;
  min-width:min(286px,calc(100vw - 32px))!important;
  max-width:min(340px,calc(100vw - 32px))!important;
  max-height:none!important;
  overflow:visible!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
  height:255px!important;
  min-height:255px!important;
  max-height:255px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#101010!important;
}
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647 img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#101010!important;
}
@media(max-width:760px){
  body.modern-v5 #map .atg-external-card-overlay-v977,
  body.modern-v5 #map .atg-external-card-overlay-v978{
    max-width:calc(100vw - 20px)!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
    width:min(244px,calc(100vw - 28px))!important;
    min-width:min(224px,calc(100vw - 28px))!important;
    max-width:min(244px,calc(100vw - 28px))!important;
    max-height:calc(100dvh - max(104px,calc(env(safe-area-inset-top,0px) + 104px)) - 12px)!important;
    overflow:visible!important;
    padding:8px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
    height:168px!important;
    min-height:168px!important;
    max-height:168px!important;
    margin-top:7px!important;
    border-radius:14px!important;
  }
}
@media(max-height:680px) and (max-width:760px){
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }
}
/* ===== END V978 EXTERNAL CARD TALL PHOTO + MOBILE TOP SAFE LOCK ===== */


/* ===== V985 EXTERNAL CARD SINGLE OVERLAY CENTRAL CLOSE PC MOBILE ===== */
:root{--atg-layer-external-card-v979:2147482300;}
body.modern-v5 #map .atg-external-card-overlay-v970,
body.modern-v5 #map .atg-external-card-overlay-v977,
body.modern-v5 #map .atg-external-card-overlay-v978,
body.modern-v5 #map .atg-external-card-overlay-v979,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964{
  z-index:var(--atg-layer-external-card-v979)!important;
  overflow:visible!important;
  pointer-events:auto!important;
}
body.modern-v5 #map .atg-external-card-overlay-v979,
body.modern-v5 #map .atg-external-card-overlay-v979 > .atg-external-card-overlay-inner-v979{
  width:max-content!important;
  max-width:calc(100vw - 20px)!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-preview-v596,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-preview-v596,
body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
  width:min(374px,calc(100vw - 34px))!important;
  min-width:min(318px,calc(100vw - 34px))!important;
  max-width:min(374px,calc(100vw - 34px))!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#101010!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647 img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#101010!important;
}
@media(max-width:760px){
  body.modern-v5 #map .atg-external-card-overlay-v970,
  body.modern-v5 #map .atg-external-card-overlay-v977,
  body.modern-v5 #map .atg-external-card-overlay-v978,
  body.modern-v5 #map .atg-external-card-overlay-v979{
    max-width:calc(100vw - 18px)!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
    width:min(274px,calc(100vw - 24px))!important;
    min-width:min(246px,calc(100vw - 24px))!important;
    max-width:min(274px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - max(124px,calc(env(safe-area-inset-top,0px) + 124px)) - 16px)!important;
    overflow:visible!important;
    padding:8px!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
    height:214px!important;
    min-height:214px!important;
    max-height:214px!important;
    margin-top:7px!important;
    border-radius:14px!important;
  }
}
@media(max-height:680px) and (max-width:760px){
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
    height:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }
}
/* ===== END V985 EXTERNAL CARD SINGLE OVERLAY CENTRAL CLOSE PC MOBILE ===== */


/* ===== V998 DESKTOP + MOBILE BOTTOM CONTROLS CONTRACT ===== */
@media (max-width:760px){
  body.modern-v5.tour-mode .app-shell-layer{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
  body.modern-v5.tour-mode .app-shell-right,
  body.modern-v5.tour-mode .app-user-menu,
  body.modern-v5.tour-mode .app-shell-map-tools{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
  body.modern-v5.tour-mode .map-fab-row{left:max(8px,env(safe-area-inset-left,0px))!important;right:max(8px,env(safe-area-inset-right,0px))!important;bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;align-items:flex-end!important;}
  body.modern-v5.tour-mode .map-fab-group-right{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin-left:auto!important;}
  body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;}
  body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#fountainToggleBtn){order:1!important;}
  body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn){order:2!important;}
  body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){order:3!important;}
  body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapMenuBtn){display:none!important;}
  body.modern-v5.tour-mode #fountainToggleBtn,
  body.modern-v5.tour-mode #legendToggleBtn,
  body.modern-v5.tour-mode #mapGpsLocateBtn,
  body.modern-v5.tour-mode .map-rights-toggle,
  body.modern-v5.tour-mode .map-settings-toggle-v993{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;font-size:18px!important;}
  body.modern-v5.tour-mode #mapMenuBtn{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
  body.modern-v5.tour-mode .map-rights-control{left:max(8px,env(safe-area-inset-left,0px))!important;bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;z-index:var(--atg-layer-map-controls-v964,2147483620)!important;}
  body.modern-v5.tour-mode .map-rights-shell{display:grid!important;gap:6px!important;justify-items:start!important;}
  body.modern-v5.tour-mode .map-rights-actions-v993{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;pointer-events:auto!important;}
  body.modern-v5.tour-mode .map-settings-toggle-v993{display:inline-grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(15,23,42,.84)!important;color:#fff!important;box-shadow:0 10px 20px rgba(15,23,42,.28)!important;cursor:pointer!important;}
  body.modern-v5.app-theme-light.tour-mode .map-settings-toggle-v993{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(241,233,222,.995))!important;color:#1f2937!important;border-color:rgba(143,74,36,.16)!important;box-shadow:0 10px 22px rgba(61,44,27,.12)!important;}
  body.modern-v5.tour-mode .atg-curated-minimized-filter-shelf-v991{top:max(10px,calc(env(safe-area-inset-top,0px) + 10px))!important;right:max(10px,env(safe-area-inset-right,0px))!important;left:auto!important;bottom:auto!important;align-items:flex-end!important;flex-direction:column!important;z-index:var(--atg-layer-map-controls-v964,2147483620)!important;}
}
/* ===== END V998 DESKTOP + MOBILE BOTTOM CONTROLS CONTRACT ===== */


/* ===== V998 DESKTOP + MOBILE MAP CONTROL FINAL CONTRACT ===== */
body.modern-v5.tour-mode .app-shell-right,
body.modern-v5.tour-mode .app-user-menu,
body.modern-v5.tour-mode .app-shell-map-tools{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5.tour-mode .map-fab-row{
  left:max(8px,env(safe-area-inset-left,0px))!important;
  right:max(8px,env(safe-area-inset-right,0px))!important;
  bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
  align-items:flex-end!important;
  z-index:var(--atg-layer-map-controls-v964,2147483620)!important;
}
body.modern-v5.tour-mode .map-fab-group-right{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  margin-left:auto!important;
}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#fountainToggleBtn){order:1!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn){order:2!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){order:3!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapMenuBtn){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.modern-v5.tour-mode #mapMenuBtn{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.modern-v5.tour-mode #fountainToggleBtn,
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn,
body.modern-v5.tour-mode .map-rights-toggle,
body.modern-v5.tour-mode .map-settings-toggle-v993{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:18px!important;
}
body.modern-v5.tour-mode .map-rights-control{
  left:max(8px,env(safe-area-inset-left,0px))!important;
  bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
  z-index:var(--atg-layer-map-controls-v964,2147483620)!important;
}
body.modern-v5.tour-mode .map-rights-shell{display:grid!important;gap:6px!important;justify-items:start!important;}
body.modern-v5.tour-mode .map-rights-actions-v993{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-settings-toggle-v993{display:inline-grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(15,23,42,.84)!important;color:#fff!important;box-shadow:0 10px 20px rgba(15,23,42,.28)!important;cursor:pointer!important;}
body.modern-v5.app-theme-light.tour-mode .map-settings-toggle-v993{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(241,233,222,.995))!important;color:#1f2937!important;border-color:rgba(143,74,36,.16)!important;box-shadow:0 10px 22px rgba(61,44,27,.12)!important;}
body.modern-v5.tour-mode .atg-curated-minimized-filter-shelf-v991{
  top:max(10px,calc(env(safe-area-inset-top,0px) + 10px))!important;
  right:max(10px,env(safe-area-inset-right,0px))!important;
  left:auto!important;
  bottom:auto!important;
  align-items:flex-end!important;
  flex-direction:column!important;
  z-index:var(--atg-layer-map-controls-v964,2147483620)!important;
}
@media (max-width:760px){
  body.modern-v5.tour-mode .app-shell-layer{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
}
/* ===== END V998 DESKTOP + MOBILE MAP CONTROL FINAL CONTRACT ===== */

/* ===== V998 TOP-RIGHT TOOL REMOVAL OVERRIDE ===== */
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn),
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
/* ===== END V998 TOP-RIGHT TOOL REMOVAL OVERRIDE ===== */


/* ===== V998 MOBILE IMAGE QUADRANTS + ROUTE REMOVE PROMPT CONTRACT ===== */
@media (max-width:760px), (pointer:coarse) and (max-height:520px){
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-preview-v647{
    width:min(286px,calc(100vw - 24px))!important;
    min-width:min(258px,calc(100vw - 24px))!important;
    max-width:min(286px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - max(98px,calc(env(safe-area-inset-top,0px) + 98px)) - 14px)!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    padding:8px!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647{
    --atg-hover-photo-fit:contain;
    width:100%!important;
    height:clamp(286px,calc(100dvh - 316px),360px)!important;
    min-height:clamp(286px,calc(100dvh - 316px),360px)!important;
    max-height:clamp(286px,calc(100dvh - 316px),360px)!important;
    aspect-ratio:auto!important;
    margin-top:7px!important;
    border-radius:14px!important;
    overflow:hidden!important;
    background:#101010!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603 img,
  body.modern-v5 #map .atg-external-card-overlay-v977 .atg-rome-marker-hover-photo-v603 img,
  body.modern-v5 #map .atg-external-card-overlay-v978 .atg-rome-marker-hover-photo-v603 img,
  body.modern-v5 #map .atg-external-card-overlay-v979 .atg-rome-marker-hover-photo-v603 img,
  body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603 img,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-rome-marker-hover-photo-v603 img,
  body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964 .atg-foodsocial-hover-photo-v647 img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    background:#101010!important;
  }
  body.modern-v5 .modal-card.modal-card-place-detail,
  body.modern-v5.app-theme-light .modal-card.modal-card-place-detail,
  body.modern-v5.app-theme-dark .modal-card.modal-card-place-detail{
    position:relative!important;
    inset:auto!important;
    width:100vw!important;
    min-width:100vw!important;
    max-width:100vw!important;
    grid-column:1 / -1!important;
    justify-self:stretch!important;
    height:100%!important;
    min-height:100%!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
    overflow-y:hidden!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-shell,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-shell,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-shell{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    overflow:hidden!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-topbar,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-topbar,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-topbar{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-scroll,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-scroll{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    grid-row:2!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-hero,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing),
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-media:not(.place-detail-hero-media-missing){
    --atg-detail-hero-inset:0;
    --atg-detail-hero-min-width:100%;
    --atg-detail-hero-min-height:100%;
    --atg-detail-hero-bg-size:cover;
    --atg-detail-hero-clip:inset(0);
    width:100%!important;
    max-width:100%!important;
    height:clamp(180px,34dvh,300px)!important;
    min-height:180px!important;
    max-height:300px!important;
    aspect-ratio:16 / 10!important;
    margin:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#101010!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-hero-photo,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-hero-photo,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-hero-photo{
    border-radius:0!important;
  }
  body.modern-v5 .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-body,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-body,
  body.modern-v5 .modal-card-place-detail .place-detail-actions,
  body.modern-v5.app-theme-light .modal-card-place-detail .place-detail-actions,
  body.modern-v5.app-theme-dark .modal-card-place-detail .place-detail-actions{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
    box-sizing:border-box!important;
  }
}
/* ===== END V998 MOBILE IMAGE QUADRANTS + ROUTE REMOVE PROMPT CONTRACT ===== */


/* ===== V998 COPYRIGHT COMPACT + BUILD YOUR TOUR SPACE RECOVERY ===== */
body.modern-v5.tour-mode .map-rights-toggle{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  text-transform:lowercase!important;
  letter-spacing:0!important;
}
body.modern-v5.tour-mode .map-rights-shell{gap:4px!important;}
body.modern-v5.tour-mode .map-rights-actions-v993,
body.modern-v5.tour-mode .map-rights-actions-v995{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  pointer-events:auto!important;
}
body.modern-v5 .build-tour-tabs-v960{gap:7px!important;margin:8px 0 10px!important;}
body.modern-v5 .build-tour-tab-v960{
  min-width:124px!important;
  min-height:44px!important;
  padding:8px 7px!important;
  gap:5px!important;
  line-height:1.05!important;
}
body.modern-v5 .build-tour-tab-v960 > span{flex:0 0 auto!important;line-height:1!important;}
body.modern-v5 .build-tour-tab-v960 strong{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:11px!important;
  line-height:1.08!important;
  letter-spacing:0!important;
}
body.modern-v5 .build-tour-tab-v960[data-build-tour-tab-v960="add_places"]{min-width:188px!important;}
body.modern-v5 .build-tour-plan-line-v996{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 10px!important;
  margin:0!important;
}
body.modern-v5 .build-tour-plan-line-v996 .build-tour-dashboard-leg-label{white-space:nowrap!important;}
body.modern-v5 .build-tour-plan-line-v996 .build-tour-dashboard-leg-value{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  text-align:right!important;
  font-size:11px!important;
  line-height:1.15!important;
}
body.modern-v5 .build-tour-dashboard-last-row-v996{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  padding:4px 2px!important;
  margin-bottom:0!important;
}
body.modern-v5 .build-tour-dashboard-last-value-v996{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:right!important;
}
body.modern-v5 .build-tour-clear-inline-v996{
  min-height:30px!important;
  height:30px!important;
  padding:0 10px!important;
  border-radius:11px!important;
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
body.modern-v5 .build-tour-dashboard-shell-v960 .build-tour-dashboard-actions:empty{display:none!important;}
@media (max-width:760px){
  body.modern-v5 .build-tour-dashboard-shell-v960{max-height:70vh!important;}
  body.modern-v5 .build-tour-tab-v960{min-width:124px!important;padding:7px 8px!important;gap:5px!important;overflow:visible!important;}
  body.modern-v5 .build-tour-tab-v960 strong{font-size:9.6px!important;}
  body.modern-v5 .build-tour-plan-line-v996{gap:5px!important;padding:6px 7px!important;}
  body.modern-v5 .build-tour-plan-line-v996 .build-tour-dashboard-leg-label{font-size:9.5px!important;letter-spacing:.03em!important;}
  body.modern-v5 .build-tour-plan-line-v996 .build-tour-dashboard-leg-value{font-size:9.5px!important;}
  body.modern-v5 .build-tour-dashboard-last-row-v996{grid-template-columns:auto minmax(0,1fr) auto!important;gap:6px!important;}
  body.modern-v5 .build-tour-dashboard-last-row-v996 .build-tour-dashboard-leg-label{font-size:9.5px!important;letter-spacing:.03em!important;}
  body.modern-v5 .build-tour-dashboard-last-value-v996{font-size:10px!important;}
  body.modern-v5 .build-tour-clear-inline-v996{min-height:28px!important;height:28px!important;padding:0 8px!important;font-size:10px!important;}
}
/* ===== END V998 COPYRIGHT COMPACT + BUILD YOUR TOUR SPACE RECOVERY ===== */

/* ===== V998 MAP CONTROLS FINAL NAMING + ORDER ===== */
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#fountainToggleBtn){order:1!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapMenuBtn){order:2!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn){order:3!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){order:4!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode #fountainToggleBtn,
body.modern-v5.tour-mode #mapMenuBtn,
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn{display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;font-size:18px!important;}
body.modern-v5.tour-mode #fountainToggleBtn .map-icon-btn-icon::before{content:"🌍";}
body.modern-v5.tour-mode #legendToggleBtn .map-icon-btn-icon::before{content:"🗺️";}
body.modern-v5.tour-mode #fountainToggleBtn .map-icon-btn-icon,
body.modern-v5.tour-mode #legendToggleBtn .map-icon-btn-icon{font-size:0!important;}
body.modern-v5.tour-mode #fountainToggleBtn .map-icon-btn-icon::before,
body.modern-v5.tour-mode #legendToggleBtn .map-icon-btn-icon::before{font-size:18px!important;line-height:1;}
/* ===== END V998 MAP CONTROLS FINAL NAMING + ORDER ===== */


/* ===== V999 UNIFIED MODERN MENU TITLES + SUBTITLES ===== */
body.modern-v5 .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5 .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5 .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head {
  position: relative !important;
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
  padding: 18px 18px 16px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--gold-accent-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(64, 166, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(15, 24, 41, 0.94), rgba(8, 15, 28, 0.985)) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  overflow: hidden !important;
}
body.modern-v5 .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head::before,
body.modern-v5 .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head::before,
body.modern-v5 .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head::before,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head::before,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(var(--gold-accent-rgb),0.30), rgba(64,166,255,0.16), rgba(255,255,255,0.02)) !important;
  opacity: 0.42 !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), transparent 70%) !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-head > *,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-head > *,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-head > *,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head > *,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head > * {
  position: relative !important;
  z-index: 1 !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-kicker,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-kicker,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-kicker,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-kicker,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-kicker {
  width: max-content !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.34) !important;
  background: linear-gradient(180deg, rgba(var(--gold-accent-rgb),0.18), rgba(var(--gold-accent-rgb),0.075)) !important;
  color: var(--gold-accent) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-title,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-title,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-title,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface h3 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(28px, 4.5vw, 42px) !important;
  font-weight: 950 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  text-shadow: 0 14px 30px rgba(0,0,0,0.28) !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-copy,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-copy,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-copy,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-copy,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-copy,
body.modern-v5 .modal-card.app-sheet .app-sheet-note,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-note,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-note {
  max-width: 70ch !important;
  margin: 0 !important;
  color: rgba(236, 244, 255, 0.82) !important;
  font-size: 14px !important;
  font-weight: 680 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.005em !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-head.centered,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-head.centered {
  justify-items: center !important;
  text-align: center !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-head.centered .app-sheet-kicker,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-head.centered .app-sheet-kicker {
  justify-self: center !important;
}
body.modern-v5 .atg-legend-section-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-curated-section-title-v675,
body.modern-v5 .map-legend-section-title,
body.modern-v5 .app-sheet-section-title,
body.modern-v5 .experience-shell-kicker,
body.modern-v5 .preset-detail-section-title {
  width: max-content !important;
  max-width: 100% !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 18px 0 10px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.22) !important;
  background: rgba(var(--gold-accent-rgb), 0.075) !important;
  color: var(--gold-accent) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}
body.modern-v5 .map-menu-row-title,
body.modern-v5 .atg-v437-setting-title,
body.modern-v5 .atg-legend-copy-v927 strong {
  color: #f8fafc !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}
body.modern-v5 .map-menu-row-subtitle,
body.modern-v5 .atg-v437-setting-subtitle,
body.modern-v5 .atg-legend-copy-v927 em {
  color: rgba(236, 244, 255, 0.74) !important;
  font-weight: 650 !important;
  line-height: 1.42 !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-head {
  border-color: rgba(143, 74, 36, 0.14) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--gold-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(64, 166, 255, 0.11), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.985), rgba(246,239,229,0.995)) !important;
  box-shadow: 0 18px 38px rgba(61,44,27,0.10), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-kicker,
body.modern-v5.app-theme-light .atg-legend-section-v927,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-curated-section-title-v675,
body.modern-v5.app-theme-light .map-legend-section-title,
body.modern-v5.app-theme-light .app-sheet-section-title,
body.modern-v5.app-theme-light .experience-shell-kicker,
body.modern-v5.app-theme-light .preset-detail-section-title {
  border-color: rgba(143, 74, 36, 0.16) !important;
  background: rgba(var(--gold-rgb), 0.105) !important;
  color: #8f4a24 !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface h3,
body.modern-v5.app-theme-light .map-menu-row-title,
body.modern-v5.app-theme-light .atg-v437-setting-title,
body.modern-v5.app-theme-light .atg-legend-copy-v927 strong {
  color: #09111f !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-note,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-note,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-note,
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .atg-v437-setting-subtitle,
body.modern-v5.app-theme-light .atg-legend-copy-v927 em {
  color: #4b5563 !important;
}
@media (max-width: 640px) {
  body.modern-v5 .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
  body.modern-v5 .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
  body.modern-v5 .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head {
    margin-bottom: 14px !important;
    padding: 15px 14px 14px !important;
    border-radius: 22px !important;
    gap: 8px !important;
  }
  body.modern-v5 .modal-card.app-sheet .app-sheet-title,
  body.modern-v5 .modal-card.map-menu-sheet .app-sheet-title,
  body.modern-v5 .modal-card.app-sheet-surface .app-sheet-title,
  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title,
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface h3 {
    font-size: clamp(24px, 8.6vw, 34px) !important;
    line-height: 1.02 !important;
  }
  body.modern-v5 .modal-card.app-sheet .app-sheet-copy,
  body.modern-v5 .modal-card.map-menu-sheet .app-sheet-copy,
  body.modern-v5 .modal-card.app-sheet-surface .app-sheet-copy,
  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-copy,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-copy,
  body.modern-v5 .modal-card.app-sheet .app-sheet-note,
  body.modern-v5 .modal-card.map-menu-sheet .app-sheet-note,
  body.modern-v5 .modal-card.app-sheet-surface .app-sheet-note {
    font-size: 13px !important;
    line-height: 1.42 !important;
  }
}
/* ===== END V999 UNIFIED MODERN MENU TITLES + SUBTITLES ===== */


/* ===== V1000 PREMIUM MENU TITLE SYSTEM ===== */
body.modern-v5 .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5 .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5 .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head,
body.modern-v5 .map-menu-sheet-head {
  position: relative !important;
  display: grid !important;
  align-items: start !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  padding: 18px 18px 18px 20px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(148, 163, 184, 0.13) !important;
  background:
    linear-gradient(90deg, rgba(var(--gold-accent-rgb), 0.18) 0 3px, transparent 3px 100%),
    radial-gradient(circle at 12% 0%, rgba(var(--gold-accent-rgb), 0.18), transparent 31%),
    radial-gradient(circle at 92% 8%, rgba(64, 166, 255, 0.14), transparent 31%),
    linear-gradient(135deg, rgba(13, 22, 38, 0.98), rgba(6, 12, 22, 0.99)) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
body.modern-v5 .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head::before,
body.modern-v5 .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head::before,
body.modern-v5 .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head::before,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head::before,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head::before,
body.modern-v5 .map-menu-sheet-head::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(var(--gold-accent-rgb), 0.08)) !important;
  opacity: 0.75 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  mask-image: none !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-head > *,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-head > *,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-head > *,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head > *,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head > *,
body.modern-v5 .map-menu-sheet-head > * {
  position: relative !important;
  z-index: 1 !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-kicker,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-kicker,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-kicker,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-kicker,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-kicker,
body.modern-v5 .map-menu-sheet-kicker {
  width: max-content !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.28) !important;
  background: rgba(var(--gold-accent-rgb), 0.105) !important;
  color: #f4cf84 !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-title,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-title,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-title,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface h3,
body.modern-v5 .modal-card.map-menu-sheet h3,
body.modern-v5 .map-menu-sheet-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(26px, 3.8vw, 38px) !important;
  font-weight: 950 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.24) !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
body.modern-v5 .modal-card.app-sheet .app-sheet-copy,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-copy,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-copy,
body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-copy,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-copy,
body.modern-v5 .modal-card.app-sheet .app-sheet-note,
body.modern-v5 .modal-card.map-menu-sheet .app-sheet-note,
body.modern-v5 .modal-card.app-sheet-surface .app-sheet-note,
body.modern-v5 .modal-card.map-menu-sheet .hint {
  max-width: 62ch !important;
  margin: 0 !important;
  color: rgba(231, 238, 248, 0.80) !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.003em !important;
  text-shadow: none !important;
}
body.modern-v5 .atg-legend-section-v927,
body.modern-v5 .atg-curated-sheet-v927 .atg-curated-section-title-v675,
body.modern-v5 .map-legend-section-title,
body.modern-v5 .app-sheet-section-title,
body.modern-v5 .experience-shell-kicker,
body.modern-v5 .preset-detail-section-title {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 16px 0 10px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(var(--gold-accent-rgb), 0.20) !important;
  background: rgba(var(--gold-accent-rgb), 0.08) !important;
  color: #f4cf84 !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
body.modern-v5 .map-menu-row-title,
body.modern-v5 .atg-v437-setting-title,
body.modern-v5 .atg-legend-copy-v927 strong,
body.modern-v5 .build-tour-suggest-section-title,
body.modern-v5 .build-tour-suggest-card-title,
body.modern-v5 .build-tour-summary-title {
  color: #f8fafc !important;
  font-weight: 900 !important;
  letter-spacing: -0.012em !important;
}
body.modern-v5 .map-menu-row-subtitle,
body.modern-v5 .atg-v437-setting-subtitle,
body.modern-v5 .atg-legend-copy-v927 em,
body.modern-v5 .build-tour-suggest-section-note,
body.modern-v5 .build-tour-suggest-card-note,
body.modern-v5 .build-tour-summary-note {
  color: rgba(231, 238, 248, 0.74) !important;
  font-weight: 640 !important;
  line-height: 1.42 !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-head,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-head,
body.modern-v5.app-theme-light .map-menu-sheet-head {
  border-color: rgba(143, 74, 36, 0.14) !important;
  background:
    linear-gradient(90deg, rgba(143, 74, 36, 0.25) 0 3px, transparent 3px 100%),
    radial-gradient(circle at 12% 0%, rgba(var(--gold-rgb), 0.17), transparent 31%),
    radial-gradient(circle at 92% 8%, rgba(64, 166, 255, 0.11), transparent 31%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.99), rgba(245, 237, 226, 0.995)) !important;
  box-shadow: 0 18px 38px rgba(61, 44, 27, 0.10), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-kicker,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-kicker,
body.modern-v5.app-theme-light .map-menu-sheet-kicker,
body.modern-v5.app-theme-light .atg-legend-section-v927,
body.modern-v5.app-theme-light .atg-curated-sheet-v927 .atg-curated-section-title-v675,
body.modern-v5.app-theme-light .map-legend-section-title,
body.modern-v5.app-theme-light .app-sheet-section-title,
body.modern-v5.app-theme-light .experience-shell-kicker,
body.modern-v5.app-theme-light .preset-detail-section-title {
  border-color: rgba(143, 74, 36, 0.16) !important;
  background: rgba(var(--gold-rgb), 0.11) !important;
  color: #8f4a24 !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-title,
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface h3,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet h3,
body.modern-v5.app-theme-light .map-menu-sheet-title,
body.modern-v5.app-theme-light .map-menu-row-title,
body.modern-v5.app-theme-light .atg-v437-setting-title,
body.modern-v5.app-theme-light .atg-legend-copy-v927 strong,
body.modern-v5.app-theme-light .build-tour-suggest-section-title,
body.modern-v5.app-theme-light .build-tour-suggest-card-title,
body.modern-v5.app-theme-light .build-tour-summary-title {
  color: #09111f !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card.app-sheet .app-sheet-note,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .app-sheet-note,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .app-sheet-note,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .hint,
body.modern-v5.app-theme-light .map-menu-row-subtitle,
body.modern-v5.app-theme-light .atg-v437-setting-subtitle,
body.modern-v5.app-theme-light .atg-legend-copy-v927 em,
body.modern-v5.app-theme-light .build-tour-suggest-section-note,
body.modern-v5.app-theme-light .build-tour-suggest-card-note,
body.modern-v5.app-theme-light .build-tour-summary-note {
  color: #4b5563 !important;
}
@media (max-width: 640px) {
  body.modern-v5 .modal-card.app-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
  body.modern-v5 .modal-card.map-menu-sheet:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
  body.modern-v5 .modal-card.app-sheet-surface:not(.build-tour-suggest-modal):not(.atg-tour-preference-modal-v1124pg):not(.atg-settings-surface-v1124ql):not(.atg-customer-hub-v1124sl) .app-sheet-head,
  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-head,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-head,
  body.modern-v5 .map-menu-sheet-head {
    margin-bottom: 13px !important;
    padding: 15px 14px 15px 16px !important;
    border-radius: 21px !important;
    gap: 7px !important;
  }
  body.modern-v5 .modal-card.app-sheet .app-sheet-title,
  body.modern-v5 .modal-card.map-menu-sheet .app-sheet-title,
  body.modern-v5 .modal-card.app-sheet-surface .app-sheet-title,
  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-title,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-title,
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface h3,
  body.modern-v5 .modal-card.map-menu-sheet h3,
  body.modern-v5 .map-menu-sheet-title {
    font-size: clamp(23px, 7.6vw, 32px) !important;
    line-height: 1.03 !important;
  }
  body.modern-v5 .modal-card.app-sheet .app-sheet-copy,
  body.modern-v5 .modal-card.map-menu-sheet .app-sheet-copy,
  body.modern-v5 .modal-card.app-sheet-surface .app-sheet-copy,
  body.modern-v5 .modal-card.atg-map-legend-v927 .app-sheet-copy,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-copy,
  body.modern-v5 .modal-card.app-sheet .app-sheet-note,
  body.modern-v5 .modal-card.map-menu-sheet .app-sheet-note,
  body.modern-v5 .modal-card.app-sheet-surface .app-sheet-note,
  body.modern-v5 .modal-card.map-menu-sheet .hint {
    font-size: 12.75px !important;
    line-height: 1.38 !important;
  }
}
/* ===== END V1000 PREMIUM MENU TITLE SYSTEM ===== */


/* ===== V1008 PLACES OF INTEREST / BUILD YOUR TOURS COEXISTENCE ===== */
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#fountainToggleBtn){order:1!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapMenuBtn){order:2!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapAvatarToggleBtn){order:3!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn){order:4!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){order:5!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode #fountainToggleBtn,
body.modern-v5.tour-mode #mapMenuBtn,
body.modern-v5.tour-mode #mapAvatarToggleBtn,
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn{display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;font-size:18px!important;}
body.modern-v5.tour-mode #fountainToggleBtn .map-icon-btn-icon::before{content:"🌍";}
body.modern-v5.tour-mode #legendToggleBtn .map-icon-btn-icon::before{content:"🗺️";}
body.modern-v5.tour-mode #mapAvatarToggleBtn .map-icon-btn-icon::before{content:"🤖";}
body.modern-v5.tour-mode #fountainToggleBtn .map-icon-btn-icon,
body.modern-v5.tour-mode #legendToggleBtn .map-icon-btn-icon,
body.modern-v5.tour-mode #mapAvatarToggleBtn .map-icon-btn-icon{font-size:0!important;}
body.modern-v5.tour-mode #fountainToggleBtn .map-icon-btn-icon::before,
body.modern-v5.tour-mode #legendToggleBtn .map-icon-btn-icon::before,
body.modern-v5.tour-mode #mapAvatarToggleBtn .map-icon-btn-icon::before{font-size:18px!important;line-height:1;}
body.modern-v5 .build-tour-add-results-v960{max-height:min(42vh,360px)!important;overflow:auto!important;overscroll-behavior:contain!important;}
body.modern-v5 .build-tour-add-empty-v960.is-research-idle-v1001{padding:16px 14px!important;text-align:center!important;line-height:1.45!important;}
/* ===== END V1008 PLACES OF INTEREST / BUILD YOUR TOURS COEXISTENCE ===== */


/* ===== V1008 PROFESSIONAL POI / BUILD COEXISTENCE ===== */
body.modern-v5 .build-tour-add-panel-v1003{
  display:grid!important;
  gap:10px!important;
}
body.modern-v5 .build-tour-research-hero-v1003{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(64,166,255,.18)!important;
  background:
    radial-gradient(circle at 12% 0%, rgba(64,166,255,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(238,246,255,.66))!important;
  box-shadow:0 14px 34px rgba(15,23,42,.10)!important;
}
body.modern-v5.app-theme-dark .build-tour-research-hero-v1003{
  background:
    radial-gradient(circle at 12% 0%, rgba(96,165,250,.22), transparent 34%),
    linear-gradient(180deg, rgba(15,23,42,.56), rgba(8,15,28,.74))!important;
  border-color:rgba(191,219,254,.22)!important;
}
body.modern-v5 .build-tour-research-hero-v1003 small{
  display:inline-flex!important;
  width:max-content!important;
  margin:0 0 6px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:rgba(37,99,235,.10)!important;
  color:#1d4ed8!important;
  font-size:10px!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
}
body.modern-v5.app-theme-dark .build-tour-research-hero-v1003 small{
  background:rgba(147,197,253,.16)!important;
  color:#bfdbfe!important;
}
body.modern-v5 .build-tour-research-scope-v1003{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:8px!important;
  border:1px solid rgba(37,99,235,.14)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.58)!important;
}
body.modern-v5.app-theme-dark .build-tour-research-scope-v1003{
  background:rgba(15,23,42,.24)!important;
  border-color:rgba(219,234,254,.18)!important;
}
body.modern-v5 .build-tour-research-scope-v1003 > span{
  color:#475569!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
body.modern-v5.app-theme-dark .build-tour-research-scope-v1003 > span{color:#dbeafe!important;}
body.modern-v5 .build-tour-research-scope-actions-v1003{
  display:flex!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:0!important;
  overflow-x:auto!important;
}
body.modern-v5 .build-tour-research-scope-actions-v1003 button,
body.modern-v5 .build-tour-research-count-v1003 button{
  appearance:none!important;
  border:1px solid rgba(37,99,235,.18)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.72)!important;
  color:#0f172a!important;
  padding:7px 10px!important;
  font-size:11px!important;
  font-weight:950!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
body.modern-v5 .build-tour-research-scope-actions-v1003 button.is-active,
body.modern-v5 .build-tour-research-count-v1003 button{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(37,99,235,.20)!important;
}
body.modern-v5.app-theme-dark .build-tour-research-scope-actions-v1003 button{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(219,234,254,.20)!important;
  color:#eff6ff!important;
}
body.modern-v5.app-theme-dark .build-tour-research-scope-actions-v1003 button.is-active,
body.modern-v5.app-theme-dark .build-tour-research-count-v1003 button{
  background:#dbeafe!important;
  border-color:#dbeafe!important;
  color:#1d4ed8!important;
}
body.modern-v5 .build-tour-research-count-v1003{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:900!important;
  padding:0 2px!important;
}
body.modern-v5.app-theme-dark .build-tour-research-count-v1003{color:#dbeafe!important;}
body.modern-v5 .build-tour-active-layers-v987{
  border-radius:16px!important;
  border:1px solid rgba(37,99,235,.13)!important;
  background:rgba(255,255,255,.48)!important;
  padding:8px!important;
}
body.modern-v5.app-theme-dark .build-tour-active-layers-v987{
  background:rgba(15,23,42,.20)!important;
  border-color:rgba(219,234,254,.16)!important;
}
body.modern-v5 .build-tour-active-layers-v987 > span{
  color:#475569!important;
  font-size:11px!important;
  font-weight:900!important;
}
body.modern-v5.app-theme-dark .build-tour-active-layers-v987 > span{color:#dbeafe!important;}
@media (max-width:760px){
  body.modern-v5 .build-tour-research-scope-v1003{grid-template-columns:1fr!important;gap:7px!important;}
  body.modern-v5 .build-tour-research-scope-actions-v1003{justify-content:flex-start!important;}
  body.modern-v5 .build-tour-research-count-v1003{align-items:flex-start!important;}
}
/* ===== END V1008 PROFESSIONAL POI / BUILD COEXISTENCE ===== */


/* ===== V1008 OFFICIAL PLACES OF INTEREST FILTERS + CLEAN RESEARCH ===== */
body.modern-v5 .build-tour-add-panel-v1004{
  display:grid!important;
  gap:10px!important;
}
body.modern-v5 .build-tour-research-hero-v1004{
  border-radius:18px!important;
  border:1px solid rgba(14,165,233,.18)!important;
  background:
    radial-gradient(circle at 10% 0%, rgba(14,165,233,.20), transparent 36%),
    radial-gradient(circle at 95% 0%, rgba(var(--gold-shadow-rgb),.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(238,246,255,.72))!important;
  box-shadow:0 14px 34px rgba(15,23,42,.10)!important;
}
body.modern-v5.app-theme-dark .build-tour-research-hero-v1004{
  background:
    radial-gradient(circle at 10% 0%, rgba(56,189,248,.18), transparent 36%),
    radial-gradient(circle at 95% 0%, rgba(var(--gold-shadow-rgb),.14), transparent 34%),
    linear-gradient(180deg, rgba(15,23,42,.58), rgba(8,15,28,.78))!important;
  border-color:rgba(191,219,254,.18)!important;
}
body.modern-v5 .build-tour-poi-source-v1004,
body.modern-v5 .build-tour-manual-search-v1004{
  display:grid!important;
  gap:8px!important;
  padding:10px!important;
  border-radius:18px!important;
  border:1px solid rgba(37,99,235,.12)!important;
  background:rgba(255,255,255,.62)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62)!important;
}
body.modern-v5.app-theme-dark .build-tour-poi-source-v1004,
body.modern-v5.app-theme-dark .build-tour-manual-search-v1004{
  background:rgba(15,23,42,.28)!important;
  border-color:rgba(219,234,254,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.modern-v5 .build-tour-poi-source-head-v1004{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
body.modern-v5 .build-tour-poi-source-head-v1004 span,
body.modern-v5 .build-tour-manual-search-v1004 label span{
  color:#475569!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}
body.modern-v5.app-theme-dark .build-tour-poi-source-head-v1004 span,
body.modern-v5.app-theme-dark .build-tour-manual-search-v1004 label span{color:#dbeafe!important;}
body.modern-v5 .build-tour-poi-source-head-v1004 button{
  appearance:none!important;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:999px!important;
  background:#1d4ed8!important;
  color:#fff!important;
  min-height:30px!important;
  padding:0 10px!important;
  font-size:11px!important;
  font-weight:950!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
body.modern-v5.app-theme-dark .build-tour-poi-source-head-v1004 button{
  background:#dbeafe!important;
  color:#1d4ed8!important;
  border-color:#dbeafe!important;
}
body.modern-v5 .build-tour-poi-source-chips-v1004{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
body.modern-v5 .build-tour-poi-source-chip-v1004{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:34px!important;
  max-width:100%!important;
  padding:0 10px!important;
  border-radius:999px!important;
  border:1px solid rgba(37,99,235,.14)!important;
  background:rgba(255,255,255,.78)!important;
  color:#0f172a!important;
  box-shadow:0 8px 16px rgba(15,23,42,.07)!important;
  cursor:pointer!important;
}
body.modern-v5.app-theme-dark .build-tour-poi-source-chip-v1004{
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(219,234,254,.18)!important;
  color:#f8fafc!important;
}
body.modern-v5 .build-tour-poi-source-chip-v1004 span{font-size:18px!important;line-height:1!important;}
body.modern-v5 .build-tour-poi-source-chip-v1004 strong{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  font-weight:900!important;
}
body.modern-v5 .build-tour-poi-source-chip-v1004 em{
  font-style:normal!important;
  color:#1d4ed8!important;
  font-size:11px!important;
  font-weight:950!important;
}
body.modern-v5.app-theme-dark .build-tour-poi-source-chip-v1004 em{color:#bfdbfe!important;}
body.modern-v5 .build-tour-poi-source-empty-v1004{
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:750!important;
}
body.modern-v5.app-theme-dark .build-tour-poi-source-empty-v1004{color:#cbd5e1!important;}
body.modern-v5 .build-tour-manual-search-v1004 label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
body.modern-v5 .build-tour-manual-search-v1004 label em{
  min-width:0!important;
  color:#64748b!important;
  font-size:11px!important;
  font-style:normal!important;
  line-height:1.35!important;
  text-align:right!important;
}
body.modern-v5.app-theme-dark .build-tour-manual-search-v1004 label em{color:#cbd5e1!important;}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-search-v960{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:7px!important;
  margin:0!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-search-v960 input{
  min-height:42px!important;
  border-radius:14px!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-search-v960 button{
  min-height:42px!important;
  border-radius:14px!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-filters-v960,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-research-scope-v1003,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-active-layers-v987{
  display:none!important;
}
body.modern-v5 .build-tour-research-count-v1003{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:900!important;
  padding:0 2px!important;
}
body.modern-v5.app-theme-dark .build-tour-research-count-v1003{color:#dbeafe!important;}
@media (max-width:760px){
  body.modern-v5 .build-tour-poi-source-head-v1004,
  body.modern-v5 .build-tour-manual-search-v1004 label{align-items:flex-start!important;}
  body.modern-v5 .build-tour-manual-search-v1004 label{flex-direction:column!important;}
  body.modern-v5 .build-tour-manual-search-v1004 label em{text-align:left!important;}
  body.modern-v5 .build-tour-poi-source-chip-v1004 strong{max-width:170px!important;}
}
/* ===== END V1008 OFFICIAL PLACES OF INTEREST FILTERS + CLEAN RESEARCH ===== */


/* ===== V1008 PC + MOBILE BUILD / POI PROFESSIONAL SYNC ===== */
body.modern-v5 .build-tour-add-panel-v1004,
body.modern-v5 .build-tour-optimize-panel-v960{
  min-width:0!important;
  width:100%!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-research-hero-v1004,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-poi-source-v1004,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-manual-search-v1004,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-results-v960{
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-results-v960{
  contain:content!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-row-v960{
  min-width:0!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-row-main-v960,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-row-main-v960 > div{
  min-width:0!important;
}
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-filters-v960,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-research-scope-v1003,
body.modern-v5 .build-tour-add-panel-v1004 .build-tour-active-layers-v987{
  display:none!important;
}
@media (min-width:761px){
  body.modern-v5 .build-tour-add-panel-v1004{
    gap:12px!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-poi-source-head-v1004,
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-manual-search-v1004 label{
    flex-direction:row!important;
    align-items:center!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-manual-search-v1004 label em{
    text-align:right!important;
    max-width:min(58%,520px)!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-results-v960{
    max-height:min(46vh,420px)!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-row-main-v960 strong{
    max-width:min(44vw,560px)!important;
  }
}
@media (max-width:760px){
  body.modern-v5 .build-tour-add-panel-v1004{
    gap:9px!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-research-hero-v1004{
    padding:10px!important;
    border-radius:16px!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-poi-source-v1004,
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-manual-search-v1004{
    padding:9px!important;
    border-radius:16px!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-poi-source-head-v1004,
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-manual-search-v1004 label{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-poi-source-head-v1004 button{
    width:100%!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-manual-search-v1004 label em{
    text-align:left!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-results-v960{
    max-height:30vh!important;
  }
  body.modern-v5 .build-tour-add-panel-v1004 .build-tour-add-row-main-v960 strong{
    max-width:54vw!important;
  }
  body.modern-v5 .atg-curated-minimized-filter-shelf-v991{
    right:10px!important;
    top:calc(10px + env(safe-area-inset-top,0px))!important;
  }
}
/* ===== END V1008 PC + MOBILE BUILD / POI PROFESSIONAL SYNC ===== */


/* ===== V1008 RESEARCH LAZY LOAD CONTROL ===== */
body.modern-v5 .build-tour-add-panel-v1006 .build-tour-research-load-v1006{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:16px!important;
  border:1px solid rgba(37,99,235,.12)!important;
  background:rgba(255,255,255,.56)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6)!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1006 .build-tour-research-load-v1006{
  background:rgba(15,23,42,.28)!important;
  border-color:rgba(219,234,254,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.modern-v5 .build-tour-add-panel-v1006 .build-tour-research-load-v1006 button{
  min-height:38px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  border:1px solid rgba(var(--gold-shadow-rgb),.28)!important;
  background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight))!important;
  color:var(--gold-btn-ink)!important;
  font-size:12px!important;
  font-weight:950!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:0 10px 22px rgba(var(--gold-rgb),.18)!important;
}
body.modern-v5 .build-tour-add-panel-v1006 .build-tour-research-load-v1006 span{
  min-width:0!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:750!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1006 .build-tour-research-load-v1006 span{color:#cbd5e1!important;}
@media (max-width:760px){
  body.modern-v5 .build-tour-add-panel-v1006 .build-tour-research-load-v1006{grid-template-columns:1fr!important;gap:7px!important;}
  body.modern-v5 .build-tour-add-panel-v1006 .build-tour-research-load-v1006 button{width:100%!important;}
}
/* ===== END V1008 RESEARCH LAZY LOAD CONTROL ===== */


/* V1014 keeps Offers standalone beside Settings; Back to map popups unified globally. */
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#fountainToggleBtn){order:1!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapMenuBtn){order:2!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapAvatarToggleBtn){order:3!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn){order:4!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){order:5!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
.atg-today-deals-card-v1008{display:grid;gap:14px;padding:16px;border-radius:22px;border:1px solid rgba(var(--gold-shadow-rgb),.24);background:linear-gradient(180deg,rgba(255,248,230,.98),rgba(255,255,255,.96));box-shadow:0 16px 34px rgba(61,44,27,.12);}
body.app-theme-dark .atg-today-deals-card-v1008{background:linear-gradient(180deg,rgba(16,24,42,.96),rgba(8,14,26,.98));border-color:rgba(var(--gold-accent-rgb),.22);box-shadow:0 18px 42px rgba(0,0,0,.28);}
.atg-today-deals-head-v1008{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.atg-today-deals-title-v1008{display:grid;gap:4px;min-width:0;}
.atg-today-deals-title-v1008 small{font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#8f4a24;}
body.app-theme-dark .atg-today-deals-title-v1008 small{color:var(--gold-accent);}
.atg-today-deals-title-v1008 strong{font-size:20px;line-height:1.08;color:#18212d;}
body.app-theme-dark .atg-today-deals-title-v1008 strong{color:#f8fafc;}
.atg-today-deals-title-v1008 span,.atg-today-deals-empty-v1008{font-size:13px;line-height:1.5;color:#556070;}
body.app-theme-dark .atg-today-deals-title-v1008 span,body.app-theme-dark .atg-today-deals-empty-v1008{color:rgba(226,232,240,.78);}
.atg-today-deals-pill-v1008{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:8px 12px;border-radius:999px;border:1px solid rgba(143,74,36,.16);background:rgba(255,255,255,.78);font-size:12px;font-weight:900;color:#8f4a24;white-space:nowrap;}
body.app-theme-dark .atg-today-deals-pill-v1008{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);color:var(--gold-accent);}
.atg-today-deals-actions-v1008{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.atg-today-deals-actions-v1008 .btn{min-height:42px;}
.atg-today-deals-filter-row-v1008 .atg-v437-setting-action{min-width:92px;}
.build-tour-poi-source-chip-v1004.is-today-deals-v1008{border-color:rgba(var(--gold-shadow-rgb),.34)!important;background:rgba(var(--gold-shadow-rgb),.12)!important;}
.build-tour-poi-source-chip-v1004.is-today-deals-v1008.is-active{box-shadow:0 0 0 2px rgba(var(--gold-shadow-rgb),.32)!important;}
@media (max-width:760px){.atg-today-deals-head-v1008{display:grid;}.atg-today-deals-pill-v1008{justify-self:start}.atg-today-deals-actions-v1008 .btn{flex:1 1 100%;}}


/* ===== V1008 TODAY'S DEALS REAL DATA RENDERER ===== */
.atg-today-deals-list-v1008{display:grid;gap:12px;max-height:min(52vh,560px);overflow:auto;padding:2px 2px 4px;overscroll-behavior:contain;}
.atg-today-deals-row-v1008{display:grid;gap:10px;padding:13px;border-radius:18px;border:1px solid rgba(var(--gold-shadow-rgb),.18);background:rgba(255,255,255,.74);box-shadow:0 10px 22px rgba(15,23,42,.06);}
body.app-theme-dark .atg-today-deals-row-v1008{background:rgba(15,23,42,.52);border-color:rgba(var(--gold-accent-rgb),.18);box-shadow:0 12px 28px rgba(0,0,0,.18);}
.atg-today-deals-row-top-v1008{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;}
.atg-today-deals-row-emoji-v1008{width:38px;height:38px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(var(--gold-shadow-rgb),.2),rgba(255,255,255,.82));border:1px solid rgba(var(--gold-shadow-rgb),.24);font-size:19px;}
body.app-theme-dark .atg-today-deals-row-emoji-v1008{background:rgba(var(--gold-shadow-rgb),.12);border-color:rgba(var(--gold-accent-rgb),.18);}
.atg-today-deals-row-top-v1008 strong{display:block;color:#172033;font-size:15px;line-height:1.18;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.app-theme-dark .atg-today-deals-row-top-v1008 strong{color:#f8fafc;}
.atg-today-deals-row-top-v1008 em{display:block;margin-top:3px;color:#64748b;font-size:12px;line-height:1.25;font-style:normal;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.app-theme-dark .atg-today-deals-row-top-v1008 em{color:#cbd5e1;}
.atg-today-deals-row-body-v1008{display:grid;gap:5px;padding:10px 11px;border-radius:15px;background:rgba(255,248,230,.78);border:1px solid rgba(var(--gold-shadow-rgb),.16);}
body.app-theme-dark .atg-today-deals-row-body-v1008{background:rgba(var(--gold-shadow-rgb),.08);border-color:rgba(var(--gold-accent-rgb),.16);}
.atg-today-deals-row-body-v1008 b{color:#8f4a24;font-size:13px;line-height:1.25;font-weight:950;}
body.app-theme-dark .atg-today-deals-row-body-v1008 b{color:var(--gold-accent);}
.atg-today-deals-row-body-v1008 span,.atg-today-deals-row-body-v1008 small,.atg-today-deals-terms-v1008{color:#475569;font-size:12px;line-height:1.35;font-weight:750;}
body.app-theme-dark .atg-today-deals-row-body-v1008 span,body.app-theme-dark .atg-today-deals-row-body-v1008 small,body.app-theme-dark .atg-today-deals-terms-v1008{color:#dbeafe;}
.atg-today-deals-row-actions-v1008{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.atg-today-deals-row-actions-v1008 .btn{min-height:36px;padding:0 12px;font-size:12px;font-weight:900;}
.build-tour-add-row-v960.has-today-deal-v1008{border-color:rgba(var(--gold-shadow-rgb),.32)!important;background:rgba(255,248,230,.52)!important;}
body.app-theme-dark .build-tour-add-row-v960.has-today-deal-v1008{background:rgba(var(--gold-shadow-rgb),.08)!important;border-color:rgba(var(--gold-accent-rgb),.22)!important;}
.build-tour-add-row-deal-v1008{display:inline-flex;margin-top:5px;max-width:100%;width:max-content;padding:4px 8px;border-radius:999px;background:rgba(var(--gold-shadow-rgb),.14);border:1px solid rgba(var(--gold-shadow-rgb),.22);color:#8f4a24;font-size:11px;line-height:1.1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.app-theme-dark .build-tour-add-row-deal-v1008{color:var(--gold-accent);background:rgba(var(--gold-shadow-rgb),.1);border-color:rgba(var(--gold-accent-rgb),.18);}
@media (max-width:760px){.atg-today-deals-list-v1008{max-height:46vh;}.atg-today-deals-row-v1008{padding:11px;border-radius:16px;}.atg-today-deals-row-actions-v1008{display:grid;grid-template-columns:1fr;}.atg-today-deals-row-actions-v1008 .btn{width:100%;}.atg-today-deals-row-top-v1008 strong,.atg-today-deals-row-top-v1008 em{white-space:normal;}.build-tour-add-row-deal-v1008{white-space:normal;width:fit-content;}}
/* ===== END V1008 TODAY'S DEALS REAL DATA RENDERER ===== */


/* ===== V1009 OFFERS CONTROL BESIDE SETTINGS ===== */
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#todayDealsToggleBtn){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.modern-v5.tour-mode .map-rights-actions-v993 #todayDealsToggleBtn.map-today-deals-toggle-v1009{display:inline-grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;font-size:18px!important;line-height:1!important;}
body.modern-v5.tour-mode .map-rights-actions-v993 #todayDealsToggleBtn.map-today-deals-toggle-v1009.is-active{box-shadow:0 0 0 2px rgba(var(--gold-shadow-rgb),.45),0 10px 20px rgba(15,23,42,.28)!important;border-color:rgba(var(--gold-accent-rgb),.62)!important;}
/* ===== END V1009 OFFERS CONTROL BESIDE SETTINGS ===== */


/* ===== V1014 GLOBAL BACK TO MAP POPUPS — MATCH INTERNAL CARD STYLE =====
   Scope: standard popup navigation BACK TO MAP buttons only. Ordinary map menu icons/buttons are not restyled here. */
body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"],
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"],
body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:52px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  font-size:14px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  line-height:1!important;
  text-align:center!important;
  text-transform:none!important;
  white-space:nowrap!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  text-shadow:none!important;
  transform:none!important;
  box-sizing:border-box!important;
}
body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"],
body.modern-v5:not(.app-theme-light) .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
  border:1px solid rgba(148,163,184,.58)!important;
  background:linear-gradient(135deg,#ffffff 0%,#f6f8fb 58%,#e9eef5 100%)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  box-shadow:0 12px 24px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover,
body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]:focus-visible,
body.modern-v5:not(.app-theme-light) .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover,
body.modern-v5:not(.app-theme-light) .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]:focus-visible{
  background:linear-gradient(135deg,#ffffff 0%,#eef2f7 100%)!important;
  border-color:rgba(100,116,139,.72)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  outline:none!important;
}
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
  border:1px solid #12393b!important;
  background:linear-gradient(135deg,#21484a,#153638)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:0 12px 26px rgba(18,53,55,.22), inset 0 1px 0 rgba(255,255,255,.13)!important;
}
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]:hover,
body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]:focus-visible{
  background:linear-gradient(135deg,#28575a,#1b4244)!important;
  border-color:#17494c!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  outline:none!important;
}
body.modern-v5 .modal-card-avatar-picker .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-light .modal-card-avatar-picker .app-standard-modal-nav.atg-v934-standard-nav,
body.modern-v5.app-theme-dark .modal-card-avatar-picker .app-standard-modal-nav.atg-v934-standard-nav{
  display:flex!important;
  grid-template-columns:none!important;
  justify-content:center!important;
  align-items:center!important;
  gap:0!important;
}
body.modern-v5 .modal-card-avatar-picker .app-standard-modal-nav.atg-v934-standard-nav [data-standard-modal-action="back"],
body.modern-v5.app-theme-light .modal-card-avatar-picker .app-standard-modal-nav.atg-v934-standard-nav [data-standard-modal-action="back"],
body.modern-v5.app-theme-dark .modal-card-avatar-picker .app-standard-modal-nav.atg-v934-standard-nav [data-standard-modal-action="back"]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  overflow:hidden!important;
}
@media(max-width:640px){
  body.modern-v5 .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"],
  body.modern-v5.app-theme-light .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"],
  body.modern-v5.app-theme-dark .app-standard-modal-nav.atg-v934-standard-nav .app-standard-modal-nav-btn[data-standard-modal-action="map"]{
    width:100%!important;
    max-width:100%!important;
    min-height:48px!important;
    padding:0 14px!important;
    font-size:13px!important;
  }
}
/* ===== END V1014 GLOBAL BACK TO MAP POPUPS ===== */


/* ===== V1014 OFFERS STANDALONE CRASH-SAFE OVERRIDES ===== */
body.modern-v5.tour-mode .map-rights-actions-v993 #todayDealsToggleBtn.map-today-deals-toggle-v1009{
  display:inline-grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;font-size:18px!important;line-height:1!important;
}
body.modern-v5.tour-mode .map-rights-actions-v993 #todayDealsToggleBtn.map-today-deals-toggle-v1009.is-active{
  box-shadow:0 10px 20px rgba(15,23,42,.20)!important;border-color:rgba(15,23,42,.12)!important;
}
.atg-offers-standalone-sheet-v1011 .atg-today-deals-actions-v1008{justify-content:flex-start!important;}
.atg-offers-standalone-sheet-v1011 .atg-today-deals-list-v1008{max-height:min(44vh,480px)!important;}
@media (max-width:760px){
  .atg-offers-standalone-sheet-v1011 .atg-today-deals-card-v1008{padding:13px!important;border-radius:18px!important;}
}
/* ===== END V1014 OFFERS STANDALONE CRASH-SAFE OVERRIDES ===== */


/* ===== V1014 MAP CORNERS + AVATAR ICON CONTRACT ===== */
body.modern-v5.tour-mode .map-fab-row{
  left:max(8px,env(safe-area-inset-left,0px))!important;
  right:max(8px,env(safe-area-inset-right,0px))!important;
  bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
  align-items:flex-end!important;
  pointer-events:none!important;
}
body.modern-v5.tour-mode .map-fab-group-right{
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:7px!important;
  margin-left:auto!important;
  pointer-events:auto!important;
}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#fountainToggleBtn){order:1!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapMenuBtn){order:2!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapAvatarToggleBtn){order:3!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#legendToggleBtn),
body.modern-v5.tour-mode .map-fab-group-right > .map-fab-anchor:has(#mapGpsLocateBtn){display:contents!important;visibility:visible!important;opacity:1!important;pointer-events:none!important;}
body.modern-v5.tour-mode #legendToggleBtn,
body.modern-v5.tour-mode #mapGpsLocateBtn{
  position:fixed!important;
  top:max(10px,calc(env(safe-area-inset-top,0px) + 10px))!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:18px!important;
  line-height:1!important;
  z-index:2147483405!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  transform:none!important;
}
body.modern-v5.tour-mode #legendToggleBtn{left:max(10px,env(safe-area-inset-left,0px))!important;right:auto!important;}
body.modern-v5.tour-mode #mapGpsLocateBtn{right:max(10px,env(safe-area-inset-right,0px))!important;left:auto!important;}
body.modern-v5.tour-mode #mapAvatarToggleBtn .map-icon-btn-icon::before{content:"🤖"!important;}
body.modern-v5.tour-mode #mapAvatarToggleBtn .map-icon-btn-icon{font-size:0!important;}
body.modern-v5.tour-mode #mapAvatarToggleBtn .map-icon-btn-icon::before{font-size:18px!important;line-height:1!important;}
body.modern-v5.tour-mode .atg-curated-minimized-filter-shelf-v991{
  top:max(62px,calc(env(safe-area-inset-top,0px) + 62px))!important;
  right:max(10px,env(safe-area-inset-right,0px))!important;
  left:auto!important;
  bottom:auto!important;
}
@media(max-width:760px){
  body.modern-v5.tour-mode #legendToggleBtn,
  body.modern-v5.tour-mode #mapGpsLocateBtn{top:max(8px,calc(env(safe-area-inset-top,0px) + 8px))!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;font-size:17px!important;}
  body.modern-v5.tour-mode #legendToggleBtn{left:max(8px,env(safe-area-inset-left,0px))!important;}
  body.modern-v5.tour-mode #mapGpsLocateBtn{right:max(8px,env(safe-area-inset-right,0px))!important;}
  body.modern-v5.tour-mode .atg-curated-minimized-filter-shelf-v991{top:max(58px,calc(env(safe-area-inset-top,0px) + 58px))!important;right:max(8px,env(safe-area-inset-right,0px))!important;}
}
/* ===== END V1014 MAP CORNERS + AVATAR ICON CONTRACT ===== */

/* ===== V1014 CHOOSE YOUR AVATAR LIGHT THEME ALIGNMENT =====
   Contract: the light avatar picker must use the same light visual language as the rest of the app sheets.
   Scope: only Choose Your Avatar / avatar picker light mode. Dark mode and map layout are untouched. */
body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.modal-card-avatar-picker.app-sheet,
body.modern-v5.app-theme-light .modal-card.modal-card-avatar-picker.app-sheet,
body.modern-v5.app-theme-light .modal-card-avatar-picker.app-sheet {
  color: #09111f !important;
  background:
    radial-gradient(circle at 12% 9%, rgba(248,217,144,.18), transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(147,197,253,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,253,.98)) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow: 0 22px 56px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.78) !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-modal-head,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-modal-head.centered,
body.modern-v5.app-theme-light .modal-card-avatar-picker .app-inline-theme-head-row {
  color: #09111f !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-modal-head h3,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-modal-head .app-inline-theme-title,
body.modern-v5.app-theme-light .modal-card-avatar-picker h3,
body.modern-v5.app-theme-light .modal-card-avatar-picker .app-sheet-title {
  color: #09111f !important;
  -webkit-text-fill-color: #09111f !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-modal-head p,
body.modern-v5.app-theme-light .modal-card-avatar-picker .app-inline-theme-subtitle,
body.modern-v5.app-theme-light .modal-card-avatar-picker .app-sheet-copy,
body.modern-v5.app-theme-light .modal-card-avatar-picker .hint {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-grid-modal .avatar-card,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-grid-inline .avatar-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #09111f !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-preview-box,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-grid-modal .avatar-preview-box,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-preview-shell,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-preview-fallback {
  background: linear-gradient(180deg, rgba(255,255,255,.992), rgba(245,248,252,.975)) !important;
  border-color: rgba(15,23,42,.10) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.78) !important;
  color: #09111f !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-card.active .avatar-preview-box,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-grid-modal .avatar-card.active .avatar-preview-box {
  border-color: rgba(var(--gold-rgb),.58) !important;
  box-shadow:
    inset 0 0 0 2px rgba(var(--gold-rgb),.52),
    inset 0 1px 0 rgba(255,255,255,.88),
    0 16px 34px rgba(var(--gold-rgb),.16),
    0 12px 26px rgba(15,23,42,.10) !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-meta-row,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-name-stack,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-role-stack,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-name-line,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-name,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-role-line,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-role {
  color: #09111f !important;
  -webkit-text-fill-color: #09111f !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-role-line,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-role,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-card small {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-plan-badge,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-fallback-badge {
  color: #8a5a00 !important;
  background: linear-gradient(180deg, rgba(255,248,225,.98), rgba(255,241,200,.96)) !important;
  border-color: rgba(var(--gold-rgb),.34) !important;
  box-shadow: 0 10px 18px rgba(var(--gold-rgb),.12), inset 0 1px 0 rgba(255,255,255,.78) !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-audio-toggle,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-choice-btn {
  color: #09111f !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,253,.965)) !important;
  border-color: rgba(15,23,42,.12) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.10) !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-audio-toggle.active,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-choice-btn-yes,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-modal-actions .btn.primary {
  color:var(--gold-btn-ink) !important;
  -webkit-text-fill-color:var(--gold-btn-ink) !important;
  background: var(--cta-action-bg) !important;
  border-color: var(--cta-action-border) !important;
  box-shadow: var(--cta-action-shadow), inset 0 1px 0 rgba(255,255,255,.16) !important;
  font-family: var(--cta-action-font) !important;
  font-weight: var(--cta-action-weight) !important;
  letter-spacing: var(--cta-action-tracking) !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker #closeMapAvatarModalBtn {
  color:var(--secondary-btn-ink) !important;
  -webkit-text-fill-color:var(--secondary-btn-ink) !important;
  background:var(--secondary-btn-bg) !important;
  border-color:var(--secondary-btn-border) !important;
  box-shadow:var(--secondary-btn-shadow) !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-choice-prompt,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-choice-prompt-copy,
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-choice-prompt-line {
  color: #09111f !important;
  -webkit-text-fill-color: #09111f !important;
  text-shadow: none !important;
}
body.modern-v5.app-theme-light .modal-card-avatar-picker .avatar-choice-prompt-kicker {
  color: #8a5a00 !important;
  -webkit-text-fill-color: #8a5a00 !important;
  text-shadow: none !important;
}
@media (max-width: 760px) {
  body.modern-v5.app-theme-light .modal-layer:not(.hidden) > .modal-card.modal-card-avatar-picker.app-sheet,
  body.modern-v5.app-theme-light .modal-card.modal-card-avatar-picker.app-sheet {
    background:
      radial-gradient(circle at 10% 8%, rgba(248,217,144,.16), transparent 26%),
      linear-gradient(180deg, rgba(255,255,255,.992), rgba(248,250,253,.986)) !important;
    border-color: rgba(15,23,42,.10) !important;
  }
}
/* ===== END V1014 CHOOSE YOUR AVATAR LIGHT THEME ALIGNMENT ===== */



/* ===== V1014 DIRECT ROME MOBILE ENTRY CLEANUP =====
   Contract: after the approved logo/bridge, direct Rome map entry must never reveal the old You shell,
   version pill, Dark/Light dock, wizard entry page or topbar while the map/runtime finishes mounting. */
body.modern-v5.tour-mode #wizardView,
body.modern-v5.tour-mode .wizard-view,
body.modern-v5.tour-mode .topbar,
body.modern-v5.tour-mode #themeDock,
body.modern-v5.tour-mode .theme-dock,
body.modern-v5.tour-mode .build-pill,
body.modern-v5.tour-mode #appShellLayer,
body.modern-v5.tour-mode .app-shell-layer,
body.modern-v5.tour-mode #appUserMenu,
body.modern-v5.tour-mode .app-user-menu,
body.modern-v5.map-entry-clean #wizardView,
body.modern-v5.map-entry-clean .wizard-view,
body.modern-v5.map-entry-clean .topbar,
body.modern-v5.map-entry-clean #themeDock,
body.modern-v5.map-entry-clean .theme-dock,
body.modern-v5.map-entry-clean .build-pill,
body.modern-v5.map-entry-clean #appShellLayer,
body.modern-v5.map-entry-clean .app-shell-layer,
body.modern-v5.tour-entry-clean-v1014 #wizardView,
body.modern-v5.tour-entry-clean-v1014 .wizard-view,
body.modern-v5.tour-entry-clean-v1014 .topbar,
body.modern-v5.tour-entry-clean-v1014 #themeDock,
body.modern-v5.tour-entry-clean-v1014 .theme-dock,
body.modern-v5.tour-entry-clean-v1014 .build-pill,
body.modern-v5.tour-entry-clean-v1014 #appShellLayer,
body.modern-v5.tour-entry-clean-v1014 .app-shell-layer,
body.modern-v5.tour-entry-clean-v1014 #appUserMenu,
body.modern-v5.tour-entry-clean-v1014 .app-user-menu{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  animation:none!important;
  transform:none!important;
}
body.modern-v5.tour-mode #root,
body.modern-v5.map-entry-clean #root,
body.modern-v5.tour-entry-clean-v1014 #root{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5.tour-mode #tourView,
body.modern-v5.tour-mode #tourView.hidden,
body.modern-v5.map-entry-clean #tourView,
body.modern-v5.map-entry-clean #tourView.hidden,
body.modern-v5.tour-entry-clean-v1014 #tourView,
body.modern-v5.tour-entry-clean-v1014 #tourView.hidden{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.modern-v5.tour-mode #cityEntryTransition:not(.visible),
body.modern-v5.map-entry-clean #cityEntryTransition:not(.visible),
body.modern-v5.tour-entry-clean-v1014 #cityEntryTransition:not(.visible){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5.tour-mode #map,
body.modern-v5.map-entry-clean #map,
body.modern-v5.tour-entry-clean-v1014 #map{
  min-height:100dvh!important;
  height:100dvh!important;
}
@media(max-width:760px){
  body.modern-v5.tour-mode #tourView,
  body.modern-v5.map-entry-clean #tourView,
  body.modern-v5.tour-entry-clean-v1014 #tourView{
    min-height:100dvh!important;
  }
}
/* ===== END V1014 DIRECT ROME MOBILE ENTRY CLEANUP ===== */


/* ===== V1014 EARLY BODY CLASS FALLBACK BEFORE modern-v5 ===== */
body.tour-mode #wizardView,
body.tour-mode .wizard-view,
body.tour-mode .topbar,
body.tour-mode #themeDock,
body.tour-mode .theme-dock,
body.tour-mode .build-pill,
body.tour-mode #appShellLayer,
body.tour-mode .app-shell-layer,
body.tour-mode #appUserMenu,
body.tour-mode .app-user-menu,
body.map-entry-clean #wizardView,
body.map-entry-clean .wizard-view,
body.map-entry-clean .topbar,
body.map-entry-clean #themeDock,
body.map-entry-clean .theme-dock,
body.map-entry-clean .build-pill,
body.map-entry-clean #appShellLayer,
body.map-entry-clean .app-shell-layer,
body.map-entry-clean #appUserMenu,
body.map-entry-clean .app-user-menu,
body.tour-entry-clean-v1014 #wizardView,
body.tour-entry-clean-v1014 .wizard-view,
body.tour-entry-clean-v1014 .topbar,
body.tour-entry-clean-v1014 #themeDock,
body.tour-entry-clean-v1014 .theme-dock,
body.tour-entry-clean-v1014 .build-pill,
body.tour-entry-clean-v1014 #appShellLayer,
body.tour-entry-clean-v1014 .app-shell-layer,
body.tour-entry-clean-v1014 #appUserMenu,
body.tour-entry-clean-v1014 .app-user-menu{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.tour-mode #root,
body.map-entry-clean #root,
body.tour-entry-clean-v1014 #root,
body.tour-mode #tourView,
body.tour-mode #tourView.hidden,
body.map-entry-clean #tourView,
body.map-entry-clean #tourView.hidden,
body.tour-entry-clean-v1014 #tourView,
body.tour-entry-clean-v1014 #tourView.hidden{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
/* ===== END V1014 EARLY BODY CLASS FALLBACK BEFORE modern-v5 ===== */


/* ===== V1016 MOBILE FILTER AUTOPEN + OFFERS MINI + BUILD TOUR MOBILE FIT ===== */
body.modern-v5 .atg-filter-offers-mini-v1016{
  appearance:none!important;
  border:1px solid rgba(245,158,11,.55)!important;
  background:linear-gradient(135deg,rgba(255,251,235,.98),rgba(254,243,199,.96))!important;
  color:#92400e!important;
  border-radius:999px!important;
  min-height:28px!important;
  padding:0 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
  box-shadow:0 8px 18px rgba(146,64,14,.14)!important;
  cursor:pointer!important;
}
body.modern-v5 .atg-filter-offers-mini-v1016.is-active{
  background:linear-gradient(135deg,#f59e0b,#facc15)!important;
  color:#111827!important;
  border-color:rgba(146,64,14,.78)!important;
  box-shadow:0 10px 24px rgba(245,158,11,.28)!important;
}
body.modern-v5.app-theme-dark .atg-filter-offers-mini-v1016{
  background:linear-gradient(135deg,rgba(120,53,15,.92),rgba(146,64,14,.88))!important;
  color:#fff7ed!important;
  border-color:rgba(251,191,36,.48)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.32)!important;
}
body.modern-v5.app-theme-dark .atg-filter-offers-mini-v1016.is-active{
  background:linear-gradient(135deg,#f59e0b,#fde68a)!important;
  color:#1f2937!important;
  border-color:rgba(254,243,199,.88)!important;
}
body.modern-v5 .restaurant-map-filter-actions-v627{align-items:center!important;gap:6px!important;flex-wrap:wrap!important;}
@media (max-width:760px){
  body.modern-v5 .restaurant-map-filter-actions-v627{gap:5px!important;justify-content:flex-end!important;}
  body.modern-v5 .atg-filter-offers-mini-v1016{min-height:26px!important;padding:0 8px!important;font-size:10px!important;}
  body.modern-v5 .build-tour-dashboard-shell-v960{max-height:68vh!important;overflow:auto!important;}
  body.modern-v5 .build-tour-dashboard-head{grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:6px!important;}
  body.modern-v5 .build-tour-dashboard-copy{min-width:0!important;overflow:hidden!important;}
  body.modern-v5 .build-tour-dashboard-title{font-size:12px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
  body.modern-v5 .build-tour-dashboard-note{font-size:10px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
  body.modern-v5 .build-tour-dashboard-head-actions{gap:4px!important;flex:0 0 auto!important;align-items:flex-start!important;}
  body.modern-v5 #buildTourTrayEditBtn{
    width:148px!important;
    max-width:148px!important;
    min-height:32px!important;
    height:32px!important;
    padding:3px 8px!important;
    border-radius:10px!important;
    font-size:9px!important;
    line-height:1.05!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.modern-v5 #buildTourTrayHideBtn,
  body.modern-v5 #buildTourTrayCloseBtn{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    max-width:24px!important;
    max-height:24px!important;
    padding:0!important;
    border-radius:9px!important;
    font-size:15px!important;
    line-height:22px!important;
  }
  body.modern-v5 .build-tour-tabs-v960{gap:8px!important;margin:6px 0 8px!important;padding:0 2px!important;}
  body.modern-v5 .build-tour-tab-v960{min-width:124px!important;padding:8px!important;gap:6px!important;overflow:visible!important;}
  body.modern-v5 .build-tour-tab-v960[data-build-tour-tab-v960="add_places"]{min-width:188px!important;}
  body.modern-v5 .build-tour-tab-v960 strong{font-size:10.5px!important;line-height:1.08!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:0!important;}
  body.modern-v5 .build-tour-tab-v960 > span{display:inline!important;font-size:16px!important;line-height:1!important;}
}
@media (max-width:390px){
  body.modern-v5 #buildTourTrayEditBtn{width:148px!important;max-width:148px!important;font-size:9px!important;padding:3px 8px!important;}
  body.modern-v5 .build-tour-tab-v960 strong{font-size:10px!important;}
  body.modern-v5 .build-tour-tab-v960 > span{display:inline!important;font-size:15px!important;}
}
/* ===== END V1016 MOBILE FILTER AUTOPEN + OFFERS MINI + BUILD TOUR MOBILE FIT ===== */


/* ===== V1018 VERIFIED BUILD TOUR RESEARCH MAP PREVIEW CONTRACT =====
   Contract:
   1) external map quadrants stay above Build Your Tour on desktop and mobile;
   2) mobile external quadrants open centered inside the map, fully visible, with smaller image;
   3) Build Your Tour open tray never covers map popups/controls by z-index;
   4) permanent My Tour shortcut sits top-left immediately after Map Legend with polished light/dark style. */
:root{
  --atg-layer-build-tour-v1016:2147482300;
  --atg-layer-build-toggle-v1016:2147483410;
  --atg-layer-external-card-v1016:2147483460;
}
body.modern-v5 .build-tour-tray,
body.modern-v5 .build-tour-preview-tray,
body.modern-v5 .build-tour-dashboard-shell,
body.modern-v5 .build-tour-dashboard-shell-v960{
  z-index:var(--atg-layer-build-tour-v1016)!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970,
body.modern-v5 #map .atg-external-card-overlay-v1016,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645{
  z-index:var(--atg-layer-external-card-v1016)!important;
  pointer-events:auto!important;
}
body.modern-v5 #map .atg-external-card-overlay-v970,
body.modern-v5 #map .atg-external-card-overlay-v1016{
  max-height:calc(100dvh - 24px)!important;
  overflow:visible!important;
}
@media (max-width:760px){
  body.modern-v5 #map .atg-external-card-overlay-v970,
  body.modern-v5 #map .atg-external-card-overlay-v1016{
    left:0!important;
    top:0!important;
    right:auto!important;
    bottom:auto!important;
    margin:0!important;
    z-index:var(--atg-layer-external-card-v1016)!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .leaflet-popup-content,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .leaflet-popup-content,
  body.modern-v5 #map .atg-external-card-overlay-v970 .leaflet-popup-content-wrapper,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .leaflet-popup-content-wrapper{
    width:min(252px,calc(100vw - 34px))!important;
    max-width:min(252px,calc(100vw - 34px))!important;
    margin:0!important;
    overflow:visible!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-preview-v659,
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-foodsocial-hover-preview-v647,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-preview-v659,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-foodsocial-hover-preview-v647{
    width:min(252px,calc(100vw - 34px))!important;
    min-width:min(220px,calc(100vw - 34px))!important;
    max-width:min(252px,calc(100vw - 34px))!important;
    max-height:none!important;
    overflow:visible!important;
    padding:9px!important;
    border-radius:18px!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-top-v603,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-top-v603{
    padding:7px 8px!important;
    border-radius:13px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-title-v596,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-title-v596{
    font-size:11.4px!important;
    line-height:1.12!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-meta-v596,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-meta-v596{
    font-size:9.4px!important;
    line-height:1.12!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-foodsocial-hover-photo-v647,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-foodsocial-hover-photo-v647{
    height:92px!important;
    min-height:92px!important;
    max-height:92px!important;
    aspect-ratio:auto!important;
    margin-top:6px!important;
    border-radius:13px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-cta-wrap-v642,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-cta-wrap-v642{
    gap:5px!important;
    margin-top:6px!important;
    padding:6px!important;
    border-radius:13px!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-open-v645,
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-cta-v642,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-open-v645,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-cta-v642{
    min-height:29px!important;
    padding:6px 7px!important;
    border-radius:11px!important;
    font-size:9.4px!important;
    line-height:1.05!important;
  }
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-cta-main-v642,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-cta-main-v642{font-size:9.5px!important;line-height:1.05!important;}
  body.modern-v5 #map .atg-external-card-overlay-v970 .atg-rome-marker-hover-cta-sub-v642,
  body.modern-v5 #map .atg-external-card-overlay-v1016 .atg-rome-marker-hover-cta-sub-v642{font-size:8.4px!important;line-height:1.05!important;}
}
body.modern-v5 .build-tour-tray-toggle{
  position:fixed!important;
  top:max(10px,calc(env(safe-area-inset-top,0px) + 10px))!important;
  left:max(60px,calc(env(safe-area-inset-left,0px) + 60px))!important;
  right:auto!important;
  bottom:auto!important;
  z-index:var(--atg-layer-build-toggle-v1016)!important;
  pointer-events:none!important;
  display:block!important;
}
body.modern-v5 .build-tour-tray-toggle.hidden{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.modern-v5 .build-tour-tray-toggle-btn{
  pointer-events:auto!important;
  width:auto!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:999px!important;
  border:1px solid rgba(146,64,14,.22)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,247,237,.96))!important;
  color:#111827!important;
  box-shadow:0 16px 36px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.82)!important;
  backdrop-filter:blur(16px)!important;
}
body.modern-v5 .build-tour-tray-toggle-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#f59e0b,#facc15)!important;
  color:#111827!important;
  font-size:13px!important;
  line-height:1!important;
  box-shadow:0 7px 16px rgba(245,158,11,.25)!important;
}
body.modern-v5 .build-tour-tray-toggle-text{
  display:inline!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
body.modern-v5.app-theme-dark .build-tour-tray-toggle-btn{
  border-color:rgba(250,204,21,.34)!important;
  background:linear-gradient(135deg,rgba(12,22,38,.96),rgba(30,41,59,.94))!important;
  color:#f8fafc!important;
  box-shadow:0 18px 40px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body.modern-v5.app-theme-dark .build-tour-tray-toggle-icon{
  background:linear-gradient(135deg,#facc15,#f59e0b)!important;
  color:#101827!important;
}
@media(max-width:760px){
  body.modern-v5 .build-tour-tray-toggle{
    top:max(8px,calc(env(safe-area-inset-top,0px) + 8px))!important;
    left:max(54px,calc(env(safe-area-inset-left,0px) + 54px))!important;
  }
  body.modern-v5 .build-tour-tray-toggle-btn{
    height:40px!important;
    min-height:40px!important;
    padding:0 10px!important;
    gap:6px!important;
  }
  body.modern-v5 .build-tour-tray-toggle-icon{width:22px!important;height:22px!important;font-size:12px!important;}
  body.modern-v5 .build-tour-tray-toggle-text{font-size:10px!important;letter-spacing:.035em!important;}
  body.modern-v5 .build-tour-tray:not(.hidden){
    z-index:var(--atg-layer-build-tour-v1016)!important;
  }
}
/* ===== END V1018 VERIFIED BUILD TOUR RESEARCH MAP PREVIEW CONTRACT ===== */


/* ===== V1018 BUILD YOUR TOUR RESEARCH CLEAN MAP PREVIEW ===== */
body.modern-v5 .build-tour-add-panel-v1018{
  gap:10px!important;
}
body.modern-v5 .build-tour-add-panel-v1018 .build-tour-research-hero-v1003,
body.modern-v5 .build-tour-add-panel-v1018 .build-tour-research-hero-v1004,
body.modern-v5 .build-tour-add-panel-v1018 .build-tour-research-load-v1006{
  display:none!important;
}
body.modern-v5 .build-tour-add-row-title-v1018{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  color:#0f172a!important;
  display:block!important;
  max-width:min(44vw,560px)!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:left!important;
  font:inherit!important;
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:950!important;
  cursor:pointer!important;
}
body.modern-v5 .build-tour-add-row-title-v1018:hover,
body.modern-v5 .build-tour-add-row-title-v1018:focus-visible{
  color:#1d4ed8!important;
  text-decoration:underline!important;
  outline:0!important;
}
body.modern-v5.app-theme-dark .build-tour-add-row-title-v1018{
  color:#f8fafc!important;
}
body.modern-v5.app-theme-dark .build-tour-add-row-title-v1018:hover,
body.modern-v5.app-theme-dark .build-tour-add-row-title-v1018:focus-visible{
  color:#93c5fd!important;
}
body.modern-v5 .build-tour-add-row-v1018{
  position:relative!important;
  z-index:1!important;
}
body.modern-v5 .build-tour-add-row-v1018 .build-tour-add-row-main-v960 > div{
  min-width:0!important;
}
@media (max-width:760px){
  body.modern-v5 .build-tour-add-panel-v1018{gap:8px!important;}
  body.modern-v5 .build-tour-add-row-title-v1018{max-width:48vw!important;font-size:12px!important;}
  body.modern-v5 .build-tour-add-panel-v1018 .build-tour-add-results-v960{max-height:32vh!important;}
}
/* ===== END V1018 BUILD YOUR TOUR RESEARCH CLEAN MAP PREVIEW ===== */


/* ===== V1019 BUILD YOUR TOUR RESEARCH NO INTERNAL POPUP ===== */
body.modern-v5 .build-tour-add-panel-v1019 .build-tour-poi-source-v1004,
body.modern-v5 .build-tour-add-panel-v1019 .build-tour-research-hero-v1003,
body.modern-v5 .build-tour-add-panel-v1019 .build-tour-research-hero-v1004,
body.modern-v5 .build-tour-add-panel-v1019 .build-tour-research-load-v1006,
body.modern-v5 .build-tour-add-panel-v1019 #buildTourLoadResearchResultsV1008{
  display:none!important;
}
body.modern-v5 .build-tour-add-panel-v1019{
  padding-top:0!important;
  gap:10px!important;
}
body.modern-v5 .build-tour-add-panel-v1019 .build-tour-manual-search-v1004{
  margin-top:0!important;
}
/* ===== END V1019 BUILD YOUR TOUR RESEARCH NO INTERNAL POPUP ===== */


/* ===== V1020 UNIFIED MENU SUBTITLE / KICKER GRAPHICS =====
   Keeps My Tours + Settings as the visual reference and syncs
   Places of Interest section labels and Map Legend section labels. */
body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-section-title-v675,
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title,
body.modern-v5 .modal-card.app-sheet .experience-shell-kicker,
body.modern-v5 .modal-card.map-menu-sheet .experience-shell-kicker,
body.modern-v5 .modal-card.app-sheet-surface .experience-shell-kicker{
  width:max-content!important;
  max-width:100%!important;
  min-height:26px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:18px 0 10px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  border:1px solid rgba(var(--gold-accent-rgb),.22)!important;
  background:rgba(var(--gold-accent-rgb),.075)!important;
  color:var(--gold-accent)!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1.15!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  text-shadow:none!important;
  box-shadow:none!important;
  filter:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .atg-curated-section-title-v675,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title,
body.modern-v5.app-theme-light .modal-card.app-sheet .experience-shell-kicker,
body.modern-v5.app-theme-light .modal-card.map-menu-sheet .experience-shell-kicker,
body.modern-v5.app-theme-light .modal-card.app-sheet-surface .experience-shell-kicker{
  border-color:rgba(143,74,36,.16)!important;
  background:rgba(var(--gold-rgb),.105)!important;
  color:#8f4a24!important;
  text-shadow:none!important;
  box-shadow:none!important;
}
@media(max-width:760px){
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-section-title-v675,
  body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
  body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title,
  body.modern-v5 .modal-card.app-sheet .experience-shell-kicker,
  body.modern-v5 .modal-card.map-menu-sheet .experience-shell-kicker,
  body.modern-v5 .modal-card.app-sheet-surface .experience-shell-kicker{
    min-height:25px!important;
    padding:6px 9px!important;
    font-size:10.5px!important;
    letter-spacing:.13em!important;
    margin:14px 0 8px!important;
  }
}
/* ===== END V1020 UNIFIED MENU SUBTITLE / KICKER GRAPHICS ===== */

/* ===== V1023 BUILD YOUR TOUR RESEARCH CATEGORY + PREFERENCES ===== */
body.modern-v5 .build-tour-add-panel-v1021{
  display:grid!important;
  gap:10px!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-manual-search-v1021,
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-preferences-search-v1021{
  display:grid!important;
  gap:8px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(37,99,235,.20)!important;
  background:#ffffff!important;
  box-shadow:0 12px 28px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.82)!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-manual-search-v1021,
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-preferences-search-v1021{
  background:#0f172a!important;
  border-color:rgba(147,197,253,.24)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-manual-search-v1021 label,
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-preferences-head-v1021{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin:0!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-manual-search-v1021 label span,
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-preferences-head-v1021 span,
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 span{
  color:#475569!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
  line-height:1.15!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-manual-search-v1021 label span,
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-preferences-head-v1021 span,
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 span{
  color:#dbeafe!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-manual-search-v1021 label em{
  color:#64748b!important;font-size:12px!important;font-weight:750!important;letter-spacing:0!important;text-align:right!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-manual-search-v1021 label em{color:#cbd5e1!important;}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select{
  width:100%!important;
  min-height:42px!important;
  border-radius:14px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.94))!important;
  color:#0f172a!important;
  padding:0 12px!important;
  font-size:13px!important;
  font-weight:900!important;
  outline:none!important;
  box-shadow:0 8px 18px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.72)!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select{
  background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(30,41,59,.88))!important;
  color:#f8fafc!important;
  border-color:rgba(219,234,254,.18)!important;
  box-shadow:0 10px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select:focus-visible{
  border-color:rgba(37,99,235,.50)!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.16),0 8px 18px rgba(15,23,42,.07)!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select:focus-visible{
  border-color:rgba(147,197,253,.62)!important;
  box-shadow:0 0 0 3px rgba(147,197,253,.18),0 10px 20px rgba(0,0,0,.22)!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-preferences-search-v1021{
  border-color:rgba(var(--gold-shadow-rgb),.20)!important;
  background:
    radial-gradient(circle at 0% 0%,rgba(var(--gold-shadow-rgb),.14),transparent 34%),
    rgba(255,255,255,.64)!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-preferences-search-v1021{
  border-color:rgba(var(--gold-accent-rgb),.20)!important;
  background:
    radial-gradient(circle at 0% 0%,rgba(var(--gold-accent-rgb),.12),transparent 34%),
    rgba(15,23,42,.30)!important;
}
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-results-v960{
  max-height:min(38vh,360px)!important;
  overflow:auto!important;
}
@media (min-width:761px){
  body.modern-v5 .build-tour-add-panel-v1021{gap:12px!important;}
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-results-v960{max-height:min(44vh,420px)!important;}
}
@media (max-width:760px){
  body.modern-v5 .build-tour-add-panel-v1021{gap:8px!important;}
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-manual-search-v1021,
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-preferences-search-v1021{padding:9px!important;border-radius:16px!important;}
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select,
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-search-v960 input,
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-search-v960 button{min-height:40px!important;border-radius:13px!important;font-size:12px!important;}
  body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-results-v960{max-height:30vh!important;}
}
/* ===== END V1023 BUILD YOUR TOUR RESEARCH CATEGORY + PREFERENCES ===== */

/* ===== V1025 DARK/LIGHT DROPDOWN READABILITY HARDENING =====
   Native select popups can ignore parent gradients in some browsers.
   This block explicitly sets select + option foreground/background for
   Build Research, official map filter bars, Settings and all modern selects. */
body.modern-v5.app-theme-dark select,
body.modern-v5.app-theme-dark select option,
body.modern-v5.app-theme-dark select optgroup,
body.modern-v5.app-theme-dark .language-select,
body.modern-v5.app-theme-dark .language-select option,
body.modern-v5.app-theme-dark .settings-select,
body.modern-v5.app-theme-dark .settings-select option{
  background-color:#0f172a!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  caret-color:#f8fafc!important;
  color-scheme:dark!important;
}
body.modern-v5.app-theme-light select,
body.modern-v5.app-theme-light select option,
body.modern-v5.app-theme-light select optgroup,
body.modern-v5.app-theme-light .language-select,
body.modern-v5.app-theme-light .language-select option,
body.modern-v5.app-theme-light .settings-select,
body.modern-v5.app-theme-light .settings-select option{
  background-color:#ffffff!important;
  color:#09111f!important;
  -webkit-text-fill-color:#09111f!important;
  caret-color:#09111f!important;
  color-scheme:light!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select{
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(30,41,59,.94))!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  border-color:rgba(219,234,254,.24)!important;
}
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select option,
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select optgroup{
  background:#0f172a!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
}
body.modern-v5.app-theme-light .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select{
  background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,250,252,.96))!important;
  color:#09111f!important;
  -webkit-text-fill-color:#09111f!important;
  border-color:rgba(37,99,235,.18)!important;
}
body.modern-v5.app-theme-light .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select option,
body.modern-v5.app-theme-light .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select optgroup{
  background:#ffffff!important;
  color:#09111f!important;
  -webkit-text-fill-color:#09111f!important;
}
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select,
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-field-v627 select,
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-field-v627 select,
body.app-theme-dark.tour-mode .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select{
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(30,41,59,.92))!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  border-color:rgba(219,234,254,.20)!important;
}
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select option,
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-field-v627 select option,
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-field-v627 select option,
body.app-theme-dark.tour-mode .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select option{
  background:#0f172a!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-field-v627 select,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-field-v627 select,
body.app-theme-light.tour-mode .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select{
  background:rgba(255,255,255,.94)!important;
  color:#09111f!important;
  -webkit-text-fill-color:#09111f!important;
  border-color:rgba(15,23,42,.14)!important;
}
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select option,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927 .restaurant-map-filter-field-v627 select option,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"] .restaurant-map-filter-field-v627 select option,
body.app-theme-light.tour-mode .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select option{
  background:#ffffff!important;
  color:#09111f!important;
  -webkit-text-fill-color:#09111f!important;
}
body.modern-v5.app-theme-dark .restaurant-map-custom-menu-v666,
body.modern-v5.app-theme-dark .restaurant-map-custom-option-v666,
body.modern-v5.app-theme-dark .restaurant-map-custom-option-v666 *,
body.app-theme-dark.tour-mode .restaurant-map-custom-menu-v666,
body.app-theme-dark.tour-mode .restaurant-map-custom-option-v666,
body.app-theme-dark.tour-mode .restaurant-map-custom-option-v666 *{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
}
body.modern-v5.app-theme-light .restaurant-map-custom-menu-v666,
body.modern-v5.app-theme-light .restaurant-map-custom-option-v666,
body.modern-v5.app-theme-light .restaurant-map-custom-option-v666 *,
body.app-theme-light.tour-mode .restaurant-map-custom-menu-v666,
body.app-theme-light.tour-mode .restaurant-map-custom-option-v666,
body.app-theme-light.tour-mode .restaurant-map-custom-option-v666 *{
  color:#09111f!important;
  -webkit-text-fill-color:#09111f!important;
}
body.modern-v5.app-theme-dark select option:disabled,
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select option:disabled,
body.modern-v5.app-theme-dark .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select option:disabled{
  background:#0f172a!important;
  color:#cbd5e1!important;
  -webkit-text-fill-color:#cbd5e1!important;
}
body.modern-v5.app-theme-light select option:disabled,
body.modern-v5.app-theme-light .build-tour-add-panel-v1021 .build-tour-research-select-field-v1021 select option:disabled,
body.modern-v5.app-theme-light .restaurant-map-filter-bar-v627 .restaurant-map-filter-field-v627 select option:disabled{
  background:#ffffff!important;
  color:#475569!important;
  -webkit-text-fill-color:#475569!important;
}
/* ===== END V1025 DARK/LIGHT DROPDOWN READABILITY HARDENING ===== */


/* ===== V1025 EXTERNAL CARD GLOBAL OVERLAY ABOVE BUILD TOUR =====
   External quadrants are portaled outside #map so Build Your Tour cannot cut them.
   The JS still sizes and clamps them against the real map viewport. */
:root{
  --atg-layer-build-tour-v1025:2147482300;
  --atg-layer-build-toggle-v1025:2147483410;
  --atg-layer-external-card-v1025:2147483600;
}
body.modern-v5 .build-tour-tray,
body.modern-v5 .build-tour-preview-tray,
body.modern-v5 .build-tour-dashboard-shell,
body.modern-v5 .build-tour-dashboard-shell-v960{
  z-index:var(--atg-layer-build-tour-v1025)!important;
}
body.modern-v5 .build-tour-tray-toggle{
  z-index:var(--atg-layer-build-toggle-v1025)!important;
}
body.modern-v5 .atg-external-card-overlay-v1025,
body.modern-v5.app-theme-light .atg-external-card-overlay-v1025,
body.modern-v5.app-theme-dark .atg-external-card-overlay-v1025{
  position:fixed!important;
  left:0!important;
  top:0!important;
  right:auto!important;
  bottom:auto!important;
  width:max-content!important;
  max-width:calc(100vw - 16px)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  pointer-events:auto!important;
  z-index:var(--atg-layer-external-card-v1025)!important;
  isolation:isolate!important;
}
body.modern-v5 .atg-external-card-overlay-v1025 > .atg-external-card-overlay-inner-v977,
body.modern-v5 .atg-external-card-overlay-v1025 > .atg-external-card-overlay-inner-v978,
body.modern-v5 .atg-external-card-overlay-v1025 > .atg-external-card-overlay-inner-v979{
  width:max-content!important;
  max-width:calc(100vw - 16px)!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.modern-v5 .atg-external-card-overlay-v1025 .leaflet-popup-content-wrapper,
body.modern-v5 .atg-external-card-overlay-v1025 .leaflet-popup-content,
body.modern-v5 .atg-external-card-overlay-v1025 .leaflet-popup-tip-container,
body.modern-v5 .atg-external-card-overlay-v1025 .leaflet-popup-tip{
  width:max-content!important;
  max-width:calc(100vw - 16px)!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-preview-v659,
body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-preview-v647,
body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-preview-v651{
  width:min(374px,calc(100vw - 34px))!important;
  min-width:min(318px,calc(100vw - 34px))!important;
  max-width:min(374px,calc(100vw - 34px))!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-photo-v603,
body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-photo-v647{
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#101010!important;
}
body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-photo-v647 img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#101010!important;
}
@media(max-width:760px){
  body.modern-v5 .atg-external-card-overlay-v1025,
  body.modern-v5 .atg-external-card-overlay-v1025 > .atg-external-card-overlay-inner-v977,
  body.modern-v5 .atg-external-card-overlay-v1025 .leaflet-popup-content-wrapper,
  body.modern-v5 .atg-external-card-overlay-v1025 .leaflet-popup-content{
    max-width:calc(100vw - 18px)!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-preview-v659,
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-preview-v647,
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-preview-v651{
    width:min(252px,calc(100vw - 34px))!important;
    min-width:min(220px,calc(100vw - 34px))!important;
    max-width:min(252px,calc(100vw - 34px))!important;
    max-height:calc(100dvh - max(104px,calc(env(safe-area-inset-top,0px) + 104px)) - 12px)!important;
    overflow:visible!important;
    padding:9px!important;
    border-radius:18px!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-top-v603{
    padding:7px 8px!important;
    border-radius:13px!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-title-v596{
    font-size:11.4px!important;
    line-height:1.12!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-meta-v596{
    font-size:9.4px!important;
    line-height:1.12!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-photo-v647{
    height:92px!important;
    min-height:92px!important;
    max-height:92px!important;
    aspect-ratio:auto!important;
    margin-top:6px!important;
    border-radius:13px!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-cta-wrap-v642{
    gap:5px!important;
    margin-top:6px!important;
    padding:6px!important;
    border-radius:13px!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-open-v645,
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-cta-v642{
    min-height:29px!important;
    padding:6px 7px!important;
    border-radius:11px!important;
    font-size:9.4px!important;
    line-height:1.05!important;
  }
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-cta-main-v642{font-size:9.5px!important;line-height:1.05!important;}
  body.modern-v5 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-cta-sub-v642{font-size:8.4px!important;line-height:1.05!important;}
}
/* ===== END V1025 EXTERNAL CARD GLOBAL OVERLAY ABOVE BUILD TOUR ===== */


/* ===== V1033 VISIBLE FILTER POPUPS + MOBILE POI SWITCH QA ===== */
:root{--atg-layer-filter-panel-v1027:2147483500;--atg-layer-filter-backdrop-v1027:2147483450;--atg-layer-filter-menu-v1027:2147483520;}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"],
body.modern-v5 #placesMapFilterBarV729,
body.modern-v5 #restaurantMapFilterBarV627,
body.modern-v5 #aperitivoMapFilterBarV679,
body.modern-v5 #cafeMapFilterBarV858,
body.modern-v5 #bakeryMapFilterBarV859,
body.modern-v5 #iceCreamMapFilterBarV860,
body.modern-v5 #hotelMapFilterBarV861,
body.modern-v5 #nightlifeMapFilterBarV866,
body.modern-v5 #pharmacyMapFilterBarV871,
body.modern-v5 #supermarketMapFilterBarV871{z-index:var(--atg-layer-filter-panel-v1027)!important;pointer-events:auto!important;}
body.modern-v5 .restaurant-map-custom-menu-v666{z-index:var(--atg-layer-filter-menu-v1027)!important;}
body.modern-v5 .atg-mobile-filter-backdrop-v890{z-index:var(--atg-layer-filter-backdrop-v1027)!important;}
body.modern-v5 .atg-mobile-filter-launcher-v890{z-index:var(--atg-layer-filter-panel-v1027)!important;}
body.modern-v5.atg-build-filter-lock-v948 .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
body.modern-v5.atg-build-filter-lock-v948 .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"]{pointer-events:none!important;}
body.modern-v5:not(.atg-build-filter-lock-v948) .restaurant-map-filter-bar-v627.atg-map-layer-filter-bar-v927,
body.modern-v5:not(.atg-build-filter-lock-v948) .restaurant-map-filter-bar-v627[data-atg-curated-single-filter-panel-v869="1"]{pointer-events:auto!important;}
@media (max-width:760px){body.modern-v5 .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890{z-index:var(--atg-layer-filter-panel-v1027)!important;pointer-events:auto!important;}}
/* ===== END V1033 VISIBLE FILTER POPUPS + MOBILE POI SWITCH QA ===== */


/* ===== V1033 VISIBLE FILTER POPUPS + MOBILE POI SWITCH QA ===== */
body.modern-v5 .atg-curated-minimized-filter-shelf-v991.atg-visible-filter-popup-shelf-v1027,
body.modern-v5 .atg-visible-filter-popup-shelf-v1027{
  position:fixed!important;
  top:calc(10px + env(safe-area-inset-top,0px))!important;
  right:62px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:2147483420!important;
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  pointer-events:none!important;
  max-width:calc(100vw - 126px)!important;
  overflow:visible!important;
}
body.modern-v5 .atg-visible-filter-popup-tab-v1027,
body.modern-v5 .atg-curated-minitab-v991.atg-visible-filter-popup-tab-v1027{
  pointer-events:auto!important;
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  border-radius:999px!important;
  border:1px solid rgba(var(--gold-border-rgb),.32)!important;
  background:linear-gradient(180deg,rgba(8,13,30,.94),rgba(5,10,20,.98))!important;
  color:#ffffff!important;
  box-shadow:0 14px 32px rgba(2,6,23,.38), inset 0 1px 0 rgba(255,255,255,.08)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji','Segoe UI Symbol',Arial,sans-serif!important;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer!important;
  transform:translateZ(0)!important;
  -webkit-tap-highlight-color:transparent!important;
}
body.modern-v5.app-theme-light .atg-visible-filter-popup-tab-v1027,
body.modern-v5.app-theme-light .atg-curated-minitab-v991.atg-visible-filter-popup-tab-v1027{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.96))!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.16)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.9)!important;
}
body.modern-v5 .atg-visible-filter-popup-tab-v1027:hover,
body.modern-v5 .atg-visible-filter-popup-tab-v1027:focus-visible{
  transform:translateY(-1px) translateZ(0)!important;
  outline:3px solid rgba(251,191,36,.72)!important;
  outline-offset:2px!important;
}
body.modern-v5 .restaurant-map-filter-bar-v627.atg-visible-filter-popup-v1027,
body.modern-v5.atg-build-filter-lock-v948 .restaurant-map-filter-bar-v627.atg-visible-filter-popup-v1027,
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-filter-popup-index-v1027]{
  pointer-events:auto!important;
  z-index:2147483500!important;
}
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-filter-popup-index-v1027="1"]{z-index:2147483501!important;}
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-filter-popup-index-v1027="2"]{z-index:2147483502!important;}
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-filter-popup-index-v1027="3"]{z-index:2147483503!important;}
@media (max-width:760px){
  body.modern-v5 .atg-curated-minimized-filter-shelf-v991.atg-visible-filter-popup-shelf-v1027,
  body.modern-v5 .atg-visible-filter-popup-shelf-v1027{
    top:calc(8px + env(safe-area-inset-top,0px))!important;
    right:58px!important;
    gap:5px!important;
    max-width:calc(100vw - 116px)!important;
  }
  body.modern-v5 .atg-visible-filter-popup-tab-v1027,
  body.modern-v5 .atg-curated-minitab-v991.atg-visible-filter-popup-tab-v1027{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    font-size:18px!important;
    box-shadow:0 10px 24px rgba(2,6,23,.34)!important;
  }
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-visible-filter-popup-v1027.atg-filter-sheet-open-v890{
    pointer-events:auto!important;
    z-index:2147483500!important;
  }
}
/* ===== END V1033 VISIBLE FILTER POPUPS + MOBILE POI SWITCH QA ===== */


/* ===== V1033 ALWAYS-ON MY TOUR SHORTCUT GRAPHICS =====
   Permanent My Tour shortcut: visible from Rome map open, polished in light/dark,
   and placed top-left after Map Legend without blocking filter popups. */
body.modern-v5 .build-tour-tray-toggle{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:fixed!important;
  top:max(10px,calc(env(safe-area-inset-top,0px) + 10px))!important;
  left:max(62px,calc(env(safe-area-inset-left,0px) + 62px))!important;
  right:auto!important;
  bottom:auto!important;
  z-index:2147483420!important;
  pointer-events:none!important;
}
body.modern-v5 .build-tour-tray-toggle.hidden{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5 .build-tour-tray-toggle-btn{
  pointer-events:auto!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:999px!important;
  border:1px solid rgba(180,83,9,.24)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.99),rgba(255,247,237,.97) 48%,rgba(254,243,199,.96))!important;
  color:#111827!important;
  box-shadow:0 16px 38px rgba(15,23,42,.18),0 4px 10px rgba(180,83,9,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  cursor:pointer!important;
  transform:translateZ(0)!important;
}
body.modern-v5 .build-tour-tray-toggle-btn:hover,
body.modern-v5 .build-tour-tray-toggle-btn:focus-visible{
  transform:translateY(-1px) translateZ(0)!important;
  border-color:rgba(217,119,6,.42)!important;
  box-shadow:0 20px 42px rgba(15,23,42,.22),0 7px 16px rgba(217,119,6,.14),inset 0 1px 0 rgba(255,255,255,.96)!important;
  outline:0!important;
}
body.modern-v5 .build-tour-tray-toggle-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#facc15,#f59e0b)!important;
  color:#101827!important;
  font-size:13px!important;
  line-height:1!important;
  box-shadow:0 8px 18px rgba(245,158,11,.27)!important;
}
body.modern-v5 .build-tour-tray-toggle-text{
  display:inline!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:1000!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
body.modern-v5 .build-tour-tray-toggle.is-open .build-tour-tray-toggle-btn{
  border-color:rgba(37,99,235,.28)!important;
  background:linear-gradient(135deg,rgba(239,246,255,.99),rgba(255,255,255,.98) 52%,rgba(255,251,235,.96))!important;
}
body.modern-v5.app-theme-dark .build-tour-tray-toggle-btn{
  border-color:rgba(250,204,21,.38)!important;
  background:linear-gradient(135deg,rgba(8,16,30,.98),rgba(15,23,42,.97) 46%,rgba(30,41,59,.95))!important;
  color:#f8fafc!important;
  box-shadow:0 18px 44px rgba(0,0,0,.42),0 5px 16px rgba(250,204,21,.10),inset 0 1px 0 rgba(255,255,255,.09)!important;
}
body.modern-v5.app-theme-dark .build-tour-tray-toggle-btn:hover,
body.modern-v5.app-theme-dark .build-tour-tray-toggle-btn:focus-visible{
  border-color:rgba(250,204,21,.58)!important;
  box-shadow:0 22px 48px rgba(0,0,0,.50),0 8px 18px rgba(250,204,21,.14),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
body.modern-v5.app-theme-dark .build-tour-tray-toggle-icon{
  background:linear-gradient(135deg,#facc15,#f59e0b)!important;
  color:#101827!important;
}
@media(max-width:760px){
  body.modern-v5 .build-tour-tray-toggle{
    top:max(8px,calc(env(safe-area-inset-top,0px) + 8px))!important;
    left:max(54px,calc(env(safe-area-inset-left,0px) + 54px))!important;
  }
  body.modern-v5 .build-tour-tray-toggle-btn{
    height:40px!important;
    min-height:40px!important;
    padding:0 11px!important;
    gap:6px!important;
  }
  body.modern-v5 .build-tour-tray-toggle-icon{width:22px!important;height:22px!important;font-size:12px!important;}
  body.modern-v5 .build-tour-tray-toggle-text{font-size:10px!important;letter-spacing:.045em!important;}
}
/* ===== END V1033 ALWAYS-ON MY TOUR SHORTCUT GRAPHICS ===== */


/* ===== V1033 MAP LEGEND SUBTITLES = PLACES OF INTEREST STYLE =====
   The Map Legend section subtitles must use the same visual class and computed
   pill geometry as Places of Interest subtitles: no transparent centered legacy bars. */
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-curated-section-title-v675,
body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-section-v927{
  width:max-content!important;
  max-width:100%!important;
  min-height:26px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:18px 0 10px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  border:1px solid rgba(var(--gold-accent-rgb),.22)!important;
  background:rgba(var(--gold-accent-rgb),.075)!important;
  background-image:none!important;
  color:var(--gold-accent)!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1.15!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  text-align:left!important;
  text-shadow:none!important;
  box-shadow:none!important;
  filter:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-curated-section-title-v675,
body.modern-v5.app-theme-light .modal-card.atg-map-legend-v927 .atg-legend-section-v927{
  border-color:rgba(143,74,36,.16)!important;
  background:rgba(var(--gold-rgb),.105)!important;
  background-image:none!important;
  color:#8f4a24!important;
  text-shadow:none!important;
  box-shadow:none!important;
}
body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927:first-child{
  margin-top:4px!important;
}
@media(max-width:760px){
  body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-legend-section-v927,
  body.modern-v5 .modal-card.atg-map-legend-v927 .map-legend-section-title.atg-curated-section-title-v675,
  body.modern-v5 .modal-card.atg-map-legend-v927 .atg-legend-section-v927{
    min-height:25px!important;
    padding:6px 9px!important;
    font-size:10.5px!important;
    letter-spacing:.13em!important;
    margin:14px 0 8px!important;
  }
}
/* ===== END V1033 MAP LEGEND SUBTITLES = PLACES OF INTEREST STYLE ===== */


/* ===== V1033 MOBILE PLACES OF INTEREST INLINE ON/OFF CONTROLS =====
   Mobile Places of Interest rows must keep the ON/OFF control beside the category name,
   not pushed under the subtitle. This override is scoped to the Places of Interest sheet. */
@media (max-width: 640px){
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-row-curated{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) auto!important;
    grid-template-areas:"icon copy control"!important;
    align-items:start!important;
    column-gap:8px!important;
    row-gap:0!important;
    min-height:0!important;
    padding:10px 8px!important;
    border-radius:18px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-icon{
    grid-area:icon!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    font-size:17px!important;
    border-radius:13px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-copy{
    grid-area:copy!important;
    min-width:0!important;
    display:grid!important;
    gap:3px!important;
    padding-top:1px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-title{
    display:block!important;
    max-width:100%!important;
    font-size:13.4px!important;
    line-height:1.16!important;
    font-weight:950!important;
    letter-spacing:-.01em!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-subtitle{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    max-height:34px!important;
    overflow:hidden!important;
    font-size:11px!important;
    line-height:1.35!important;
    font-weight:650!important;
    overflow-wrap:anywhere!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-control{
    grid-area:control!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:start!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding-left:0!important;
    margin:0!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v447-constraint-shell{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch{
    width:42px!important;
    height:26px!important;
    min-width:42px!important;
    flex:0 0 42px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch-ui{
    width:42px!important;
    height:26px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch-ui::after{
    top:3px!important;
    left:3px!important;
    width:18px!important;
    height:18px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch input:checked + .atg-v437-switch-ui::after{
    transform:translateX(16px)!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-action{
    width:auto!important;
    min-width:42px!important;
    max-width:54px!important;
    height:26px!important;
    min-height:26px!important;
    padding:0 7px!important;
    border-radius:999px!important;
    font-size:10.5px!important;
    line-height:1!important;
    letter-spacing:.01em!important;
    font-weight:950!important;
    white-space:nowrap!important;
    flex:0 0 auto!important;
  }
}
@media (max-width: 380px){
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-row-curated{
    grid-template-columns:32px minmax(0,1fr) auto!important;
    column-gap:7px!important;
    padding:9px 7px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-icon{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    font-size:16px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-title{
    font-size:12.8px!important;
    line-height:1.14!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-subtitle{
    font-size:10.4px!important;
    line-height:1.3!important;
    max-height:28px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch{
    width:38px!important;
    height:24px!important;
    min-width:38px!important;
    flex-basis:38px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch-ui{
    width:38px!important;
    height:24px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch-ui::after{
    width:16px!important;
    height:16px!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-switch input:checked + .atg-v437-switch-ui::after{
    transform:translateX(14px)!important;
  }
  body.modern-v5 .modal-card.atg-curated-sheet-v927 [data-atg-settings-list^="curated-"] .atg-v437-setting-action{
    min-width:38px!important;
    max-width:48px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0 6px!important;
    font-size:9.8px!important;
  }
}
/* ===== END V1033 MOBILE PLACES OF INTEREST INLINE ON/OFF CONTROLS ===== */


/* ===== V1033 SINGLE OPEN FILTER / BUILD SURFACE CONTRACT ===== */
body.atg-single-map-surface-v1032 .atg-visible-filter-popup-v1027,
body.atg-single-map-surface-v1032 .atg-map-layer-filter-bar-v927{
  z-index:2147483600!important;
}
body.atg-single-map-surface-v1032 .atg-single-open-filter-v1032{
  z-index:2147483600!important;
  pointer-events:auto!important;
}
body.atg-single-map-surface-v1032 .atg-visible-filter-popup-shelf-v1027,
body.atg-single-map-surface-v1032 .atg-curated-minimized-filter-shelf-v991{
  z-index:2147483550!important;
}
/* ===== END V1033 SINGLE OPEN FILTER / BUILD SURFACE CONTRACT ===== */

/* ===== V1033 UNIFIED MANUAL RESEARCH CONTROL CONTRACT =====
   One visual/interaction contract for:
   1) Build Your Tour > Research
   2) Places of Interest filter search rows
   3) Optimize Tour constraint searches. */
body.modern-v5 .atg-unified-manual-search-v1033{
  display:grid!important;
  gap:10px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(37,99,235,.20)!important;
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.09),inset 0 1px 0 rgba(255,255,255,.86)!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.modern-v5.app-theme-dark .atg-unified-manual-search-v1033{
  background:linear-gradient(180deg,#111827,#0b1220)!important;
  border-color:rgba(147,197,253,.24)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.modern-v5 .build-tour-manual-search-v1021>label{display:grid!important;gap:2px!important;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;font-size:13px!important;line-height:1.3!important;font-weight:950!important;letter-spacing:0!important;}
body.modern-v5 .build-tour-manual-search-v1021>label em{color:#64748b!important;-webkit-text-fill-color:#64748b!important;font-size:11px!important;font-style:normal!important;font-weight:750!important;letter-spacing:0!important;}
body.modern-v5.app-theme-dark .build-tour-manual-search-v1021>label{color:#f8fafc!important;-webkit-text-fill-color:#f8fafc!important;}
body.modern-v5.app-theme-dark .build-tour-manual-search-v1021>label em{color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important;}
body.modern-v5 .atg-unified-manual-search-row-v1033,
body.modern-v5 .build-tour-add-search-v960.atg-unified-manual-search-row-v1033,
body.modern-v5 .restaurant-map-filter-search-row-v627.atg-unified-manual-search-row-v1033,
body.modern-v5 .restaurant-filter-search-v612.atg-unified-manual-search-row-v1033{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.modern-v5 .atg-unified-manual-search-row-v1033 input[type="search"],
body.modern-v5 .atg-unified-manual-search-row-v1033 input:not([type]),
body.modern-v5 .atg-unified-manual-search-input-v1033,
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-search-v960.atg-unified-manual-search-row-v1033 input,
body.modern-v5 .restaurant-map-filter-search-row-v627.atg-unified-manual-search-row-v1033 input,
body.modern-v5 .restaurant-filter-search-v612.atg-unified-manual-search-row-v1033 input,
body.modern-v5 .atg-v437-setting-field.atg-unified-manual-search-row-v1033 input{
  min-width:0!important;
  width:100%!important;
  min-height:42px!important;
  border-radius:14px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.94))!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  padding:0 12px!important;
  font-size:13px!important;
  font-weight:900!important;
  outline:none!important;
  box-shadow:0 8px 18px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.72)!important;
  caret-color:#0f172a!important;
}
body.modern-v5.app-theme-dark .atg-unified-manual-search-row-v1033 input[type="search"],
body.modern-v5.app-theme-dark .atg-unified-manual-search-row-v1033 input:not([type]),
body.modern-v5.app-theme-dark .atg-unified-manual-search-input-v1033,
body.modern-v5.app-theme-dark .build-tour-add-panel-v1021 .build-tour-add-search-v960.atg-unified-manual-search-row-v1033 input,
body.modern-v5.app-theme-dark .restaurant-map-filter-search-row-v627.atg-unified-manual-search-row-v1033 input,
body.modern-v5.app-theme-dark .restaurant-filter-search-v612.atg-unified-manual-search-row-v1033 input,
body.modern-v5.app-theme-dark .atg-v437-setting-field.atg-unified-manual-search-row-v1033 input{
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(30,41,59,.94))!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  border-color:rgba(219,234,254,.24)!important;
  box-shadow:0 10px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05)!important;
  caret-color:#f8fafc!important;
}
body.modern-v5 .atg-unified-manual-search-row-v1033 input::placeholder{color:rgba(71,85,105,.72)!important;-webkit-text-fill-color:rgba(71,85,105,.72)!important;}
body.modern-v5.app-theme-dark .atg-unified-manual-search-row-v1033 input::placeholder{color:rgba(226,232,240,.62)!important;-webkit-text-fill-color:rgba(226,232,240,.62)!important;}
body.modern-v5 .atg-unified-manual-search-row-v1033 button,
body.modern-v5 .atg-unified-manual-clear-v1033,
body.modern-v5 .build-tour-add-panel-v1021 .build-tour-add-search-v960.atg-unified-manual-search-row-v1033 button,
body.modern-v5 .restaurant-map-filter-search-row-v627.atg-unified-manual-search-row-v1033 button{
  appearance:none!important;
  min-height:42px!important;
  border-radius:14px!important;
  border:1px solid rgba(var(--gold-border-rgb),.36)!important;
  background:linear-gradient(135deg,var(--gold-accent-deep),var(--gold-accent) 58%,var(--gold-accent-highlight))!important;
  color:var(--gold-btn-ink)!important;
  -webkit-text-fill-color:var(--gold-btn-ink)!important;
  padding:0 12px!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  box-shadow:0 8px 16px rgba(15,23,42,.10)!important;
  cursor:pointer!important;
}
body.modern-v5 .atg-unified-manual-search-row-v1033 input:focus-visible,
body.modern-v5 .atg-unified-manual-select-v1033:focus-visible,
body.modern-v5 .build-tour-research-select-field-v1021.atg-unified-manual-select-field-v1033 select:focus-visible{
  border-color:rgba(37,99,235,.50)!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.16),0 8px 18px rgba(15,23,42,.07)!important;
}
body.modern-v5.app-theme-dark .atg-unified-manual-search-row-v1033 input:focus-visible,
body.modern-v5.app-theme-dark .atg-unified-manual-select-v1033:focus-visible,
body.modern-v5.app-theme-dark .build-tour-research-select-field-v1021.atg-unified-manual-select-field-v1033 select:focus-visible{
  border-color:rgba(147,197,253,.62)!important;
  box-shadow:0 0 0 3px rgba(147,197,253,.18),0 10px 20px rgba(0,0,0,.22)!important;
}
body.modern-v5 .atg-unified-manual-select-v1033,
body.modern-v5 .build-tour-research-select-field-v1021.atg-unified-manual-select-field-v1033 select,
body.modern-v5 .atg-v447-constraint-selected{
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  border-radius:14px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.94))!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  padding:0 12px!important;
  font-size:13px!important;
  font-weight:900!important;
  outline:none!important;
  box-shadow:0 8px 18px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.72)!important;
  color-scheme:light!important;
}
body.modern-v5.app-theme-dark .atg-unified-manual-select-v1033,
body.modern-v5.app-theme-dark .build-tour-research-select-field-v1021.atg-unified-manual-select-field-v1033 select,
body.modern-v5.app-theme-dark .atg-v447-constraint-selected{
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(30,41,59,.94))!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  border-color:rgba(219,234,254,.24)!important;
  box-shadow:0 10px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05)!important;
  color-scheme:dark!important;
}
body.modern-v5 .atg-v447-constraint-fields.atg-unified-optimize-search-v1033{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
body.modern-v5 .atg-v447-constraint-fields.atg-unified-optimize-search-v1033 .atg-v447-constraint-selected,
body.modern-v5 .atg-v447-constraint-fields.atg-unified-optimize-search-v1033 .atg-v447-constraint-search,
body.modern-v5 .atg-v447-constraint-fields.atg-unified-optimize-search-v1033 .atg-unified-manual-clear-v1033{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
body.modern-v5 .atg-v447-constraint-results{
  display:grid!important;gap:6px!important;max-height:220px!important;overflow:auto!important;padding:6px!important;border-radius:14px!important;border:1px solid rgba(37,99,235,.18)!important;background:rgba(248,250,252,.96)!important;
}
body.modern-v5 .atg-v447-constraint-results[hidden]{display:none!important;}
body.modern-v5.app-theme-dark .atg-v447-constraint-results{background:#0b1220!important;border-color:rgba(147,197,253,.22)!important;}
body.modern-v5 .atg-v447-constraint-result{
  appearance:none!important;width:100%!important;min-height:40px!important;padding:9px 11px!important;border-radius:10px!important;border:1px solid rgba(148,163,184,.24)!important;background:#fff!important;color:#0f172a!important;text-align:left!important;font-size:12px!important;line-height:1.3!important;font-weight:850!important;letter-spacing:0!important;cursor:pointer!important;
}
body.modern-v5 .atg-v447-constraint-result:hover,body.modern-v5 .atg-v447-constraint-result[aria-selected="true"]{border-color:#2563eb!important;background:#eff6ff!important;}
body.modern-v5.app-theme-dark .atg-v447-constraint-result{background:#172033!important;color:#f8fafc!important;border-color:rgba(203,213,225,.18)!important;}
body.modern-v5.app-theme-dark .atg-v447-constraint-result:hover,body.modern-v5.app-theme-dark .atg-v447-constraint-result[aria-selected="true"]{border-color:#60a5fa!important;background:#1e3a5f!important;}
body.modern-v5 .atg-v447-constraint-no-results{padding:10px!important;color:#64748b!important;font-size:12px!important;font-weight:750!important;}
body.modern-v5.app-theme-dark .atg-v447-constraint-no-results{color:#cbd5e1!important;}
body.modern-v5 .atg-v447-constraint-selected{
  display:flex!important;align-items:center!important;min-height:42px!important;cursor:default!important;letter-spacing:0!important;
}
body.modern-v5 .atg-v447-constraint-selected:not(.has-value){color:#64748b!important;-webkit-text-fill-color:#64748b!important;}
body.modern-v5.app-theme-dark .atg-v447-constraint-selected:not(.has-value){color:#94a3b8!important;-webkit-text-fill-color:#94a3b8!important;
}
@media (max-width:760px){
  body.modern-v5 .atg-unified-manual-search-v1033{padding:9px!important;border-radius:16px!important;}
  body.modern-v5 .atg-unified-manual-search-row-v1033 input[type="search"],
  body.modern-v5 .atg-unified-manual-search-row-v1033 button,
  body.modern-v5 .atg-unified-manual-select-v1033,
  body.modern-v5 .build-tour-research-select-field-v1021.atg-unified-manual-select-field-v1033 select{
    min-height:40px!important;
    border-radius:13px!important;
    font-size:12px!important;
  }
  body.modern-v5 .atg-unified-manual-search-row-v1033 button{padding:0 10px!important;}
}
/* ===== END V1033 UNIFIED MANUAL RESEARCH CONTROL CONTRACT ===== */
/* ===== V1056 OPTIMIZE TOUR FINAL USER QA =====
   All remaining manual search surfaces use the Research-style row: input + Clear, same dark/light sizing.
===== */
body.modern-v5 .atg-v437-setting-field.atg-unified-manual-search-row-v1033{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
}
body.modern-v5 .atg-v437-setting-field.atg-unified-manual-search-row-v1033 button{
  min-height:38px!important;
  border-radius:12px!important;
}
@media (max-width: 720px){
  body.modern-v5 .atg-v437-setting-field.atg-unified-manual-search-row-v1033{gap:6px!important;}
  body.modern-v5 .atg-v437-setting-field.atg-unified-manual-search-row-v1033 button{min-height:34px!important;padding:0 10px!important;}
}
/* ===== END V1056 OPTIMIZE TOUR FINAL USER QA ===== */



/* ===== V1056 OPTIMIZE TOUR FINAL USER QA ===== */
.atg-optimize-experience-panel-v1038{
  border:1px solid rgba(125,211,252,.28)!important;
  background:linear-gradient(135deg,rgba(8,47,73,.42),rgba(15,23,42,.72))!important;
  box-shadow:0 18px 46px rgba(2,6,23,.22)!important;
}
body.app-theme-light .atg-optimize-experience-panel-v1038{
  background:linear-gradient(135deg,rgba(239,246,255,.98),rgba(255,255,255,.98))!important;
  border-color:rgba(14,165,233,.26)!important;
  box-shadow:0 18px 44px rgba(15,23,42,.12)!important;
}
.atg-optimize-experience-list-v1038{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.atg-optimize-experience-row-v1038{
  min-height:74px!important;
  border-radius:18px!important;
  background:rgba(15,23,42,.48)!important;
  border:1px solid rgba(148,163,184,.18)!important;
  align-items:center!important;
}
body.app-theme-light .atg-optimize-experience-row-v1038{
  background:rgba(255,255,255,.92)!important;
  border-color:rgba(15,23,42,.10)!important;
}
.atg-optimize-experience-row-v1038 .atg-v437-setting-title{
  font-weight:900!important;
  letter-spacing:.01em!important;
}
.atg-optimize-experience-row-v1038 .atg-v437-setting-subtitle{
  opacity:.86!important;
  line-height:1.24!important;
}
.build-tour-suggest-proposal-block.is-experience{
  border-color:rgba(251,191,36,.35)!important;
  box-shadow:0 20px 54px rgba(180,83,9,.20)!important;
}
.build-tour-suggest-proposal-block.is-experience .build-tour-suggest-proposal-kicker{
  color:#fbbf24!important;
}
@media (max-width: 720px){
  .atg-optimize-experience-list-v1038{
    grid-template-columns:1fr!important;
  }
  .atg-optimize-experience-row-v1038{
    min-height:64px!important;
    padding:10px!important;
  }
  .atg-optimize-experience-row-v1038 .atg-v437-setting-control{
    flex-shrink:0!important;
  }
}
/* ===== END V1056 OPTIMIZE TOUR FINAL USER QA ===== */

/* ===== V1124OU OPTIMIZE BREAKS POPUP ===== */
.atg-optimize-experience-compact-v1124ou{
  position:relative!important;
  width:100%!important;
  z-index:2!important;
}
.atg-optimize-experience-open-v1124ou{
  width:100%!important;
  min-height:92px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px 18px!important;
  border-radius:20px!important;
  border:1px solid rgba(125,211,252,.30)!important;
  background:linear-gradient(135deg,rgba(14,116,144,.30),rgba(15,23,42,.70))!important;
  color:#eef7ff!important;
  box-shadow:0 18px 44px rgba(2,6,23,.22)!important;
  cursor:pointer!important;
  text-align:left!important;
}
body.app-theme-light .atg-optimize-experience-open-v1124ou{
  border-color:rgba(14,165,233,.28)!important;
  background:linear-gradient(135deg,rgba(236,254,255,.96),rgba(255,255,255,.98))!important;
  color:#0f172a!important;
  box-shadow:0 18px 40px rgba(15,23,42,.12)!important;
}
.atg-optimize-experience-open-v1124ou:hover,
.atg-optimize-experience-open-v1124ou.is-open{
  border-color:rgba(251,191,36,.56)!important;
  transform:translateY(-1px)!important;
}
.atg-optimize-experience-open-v1124ou:focus-visible{
  outline:3px solid rgba(251,191,36,.72)!important;
  outline-offset:3px!important;
}
.atg-optimize-experience-open-copy-v1124ou{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}
.atg-optimize-experience-open-title-v1124ou{
  color:inherit!important;
  font-weight:950!important;
  font-size:1.04rem!important;
  line-height:1.12!important;
  letter-spacing:0!important;
}
.atg-optimize-experience-open-note-v1124ou{
  color:rgba(226,232,240,.86)!important;
  font-weight:750!important;
  line-height:1.28!important;
  overflow-wrap:anywhere!important;
}
body.app-theme-light .atg-optimize-experience-open-note-v1124ou{
  color:#475569!important;
}
.atg-optimize-experience-open-summary-v1124ou{
  width:100%!important;
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  background:rgba(2,6,23,.22)!important;
  color:#f8fafc!important;
  font-weight:850!important;
  line-height:1.24!important;
  overflow-wrap:anywhere!important;
}
body.app-theme-light .atg-optimize-experience-open-summary-v1124ou{
  background:rgba(248,250,252,.96)!important;
  border-color:rgba(15,23,42,.10)!important;
  color:#1e293b!important;
}
.atg-optimize-experience-open-action-v1124ou{
  min-width:168px!important;
  min-height:48px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 18px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#fde68a,#f59e0b)!important;
  color:#111827!important;
  font-weight:950!important;
  line-height:1.1!important;
  box-shadow:0 12px 28px rgba(245,158,11,.24)!important;
}
.atg-optimize-experience-popup-scrim-v1124ou{
  position:fixed!important;
  inset:0!important;
  z-index:2147483400!important;
  background:rgba(2,6,23,.58)!important;
  backdrop-filter:blur(8px)!important;
}
body.app-theme-light .atg-optimize-experience-popup-scrim-v1124ou{
  background:rgba(15,23,42,.30)!important;
}
.atg-optimize-experience-popup-v1124ou{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:min(780px,calc(100vw - 36px))!important;
  max-height:min(76dvh,720px)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:14px!important;
  padding:18px!important;
  border-radius:24px!important;
  border:1px solid rgba(125,211,252,.30)!important;
  background:linear-gradient(145deg,#0f172a,#111827 52%,#082f49)!important;
  color:#f8fafc!important;
  box-shadow:0 34px 92px rgba(2,6,23,.58)!important;
  z-index:2147483410!important;
  overflow:hidden!important;
}
body.app-theme-light .atg-optimize-experience-popup-v1124ou{
  border-color:rgba(14,165,233,.26)!important;
  background:linear-gradient(145deg,#ffffff,#f8fafc 54%,#ecfeff)!important;
  color:#0f172a!important;
  box-shadow:0 34px 90px rgba(15,23,42,.26)!important;
}
.atg-optimize-experience-popup-head-v1124ou{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-width:0!important;
}
.atg-optimize-experience-popup-kicker-v1124ou{
  color:#fbbf24!important;
  font-weight:950!important;
  font-size:.78rem!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
}
.atg-optimize-experience-popup-title-v1124ou{
  margin-top:6px!important;
  color:inherit!important;
  font-weight:950!important;
  font-size:1.18rem!important;
  line-height:1.12!important;
  letter-spacing:0!important;
  overflow-wrap:anywhere!important;
}
.atg-optimize-experience-popup-close-v1124ou{
  min-width:128px!important;
  min-height:42px!important;
  border:1px solid rgba(251,191,36,.44)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#fde68a,#f59e0b)!important;
  color:#111827!important;
  font-weight:950!important;
  cursor:pointer!important;
}
.atg-optimize-experience-popup-list-v1124ou{
  max-height:calc(min(76dvh,720px) - 112px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding:2px 6px 2px 2px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-content:start!important;
}
@media (max-width: 720px){
  .atg-optimize-experience-open-v1124ou{
    grid-template-columns:1fr!important;
    min-height:0!important;
    gap:10px!important;
    padding:12px!important;
    border-radius:18px!important;
  }
  .atg-optimize-experience-open-note-v1124ou{
    display:none!important;
  }
  .atg-optimize-experience-open-summary-v1124ou{
    min-height:30px!important;
    padding:7px 9px!important;
    font-size:.9rem!important;
  }
  .atg-optimize-experience-open-action-v1124ou{
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
  }
  .atg-optimize-experience-popup-v1124ou{
    width:calc(100vw - 18px)!important;
    max-height:82dvh!important;
    padding:14px!important;
    border-radius:20px!important;
  }
  .atg-optimize-experience-popup-head-v1124ou{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  .atg-optimize-experience-popup-close-v1124ou{
    width:100%!important;
  }
  .atg-optimize-experience-popup-list-v1124ou{
    grid-template-columns:1fr!important;
    max-height:calc(82dvh - 132px)!important;
  }
}
/* ===== END V1124OU OPTIMIZE BREAKS POPUP ===== */


/* ===== V1056 OPTIMIZE TOUR FINAL USER QA =====
   Optimize Tour final user-facing coherence: Tour rules/Tour proposals language, no Mandatory GPS/base placeholder, Hotel & B&B remains Start/End/Base only.
===== END V1056 OPTIMIZE TOUR FINAL USER QA ===== */

/* ===== V1056 SETTINGS FINAL USER QA ===== */
body.modern-v5 .settings-select:disabled,
body.modern-v5 .settings-select[data-settings-language-locked="1"]{
  cursor:not-allowed!important;
  opacity:.82!important;
  border-style:dashed!important;
}
body.modern-v5.app-theme-dark .settings-select:disabled,
body.modern-v5.app-theme-dark .settings-select[data-settings-language-locked="1"]{
  background-color:rgba(15,23,42,.82)!important;
  color:#cbd5e1!important;
  -webkit-text-fill-color:#cbd5e1!important;
}
body.modern-v5.app-theme-light .settings-select:disabled,
body.modern-v5.app-theme-light .settings-select[data-settings-language-locked="1"]{
  background-color:rgba(248,250,252,.96)!important;
  color:#475569!important;
  -webkit-text-fill-color:#475569!important;
}
/* ===== END V1056 SETTINGS FINAL USER QA ===== */

/* ===== V1056 SETTINGS + APP SHEET LAYOUT RENDER FINAL QA =====
   Final rendering guard for desktop and mobile: Settings cards, selects, checkbox rows, action buttons and modal sheets stay readable, wrapped and inside the viewport.
===== */
body.modern-v5 .modal-card.app-sheet.app-sheet-wide.app-sheet-surface{
  width:min(980px,calc(100vw - 48px))!important;
  max-width:min(980px,calc(100vw - 48px))!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-wide.app-sheet-surface *,
body.modern-v5 .experience-shell-grid,
body.modern-v5 .experience-shell-card,
body.modern-v5 .settings-field,
body.modern-v5 .settings-select,
body.modern-v5 .settings-checkbox-row{
  box-sizing:border-box!important;
  min-width:0!important;
}
body.modern-v5 .experience-shell-grid.compact{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
}
body.modern-v5 .experience-shell-card{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5 .experience-shell-card h4,
body.modern-v5 .experience-shell-card p,
body.modern-v5 .experience-shell-card li,
body.modern-v5 .settings-field-label,
body.modern-v5 .settings-field-copy,
body.modern-v5 .app-sheet-note{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.modern-v5 .experience-inline-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
  width:100%!important;
}
body.modern-v5 .experience-inline-actions .btn{
  flex:1 1 180px!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  text-align:center!important;
  justify-content:center!important;
  line-height:1.18!important;
}
body.modern-v5 .experience-inline-actions.stacked .btn{
  flex-basis:100%!important;
  width:100%!important;
}
body.modern-v5 .settings-field{
  display:grid!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}
body.modern-v5 .settings-select{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-height:46px!important;
  line-height:1.25!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.modern-v5 .settings-checkbox-row{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5 .settings-checkbox-row input{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  margin-top:2px!important;
}
body.modern-v5.app-theme-light .app-user-trigger-subtitle,
body.modern-v5.app-theme-light .app-user-profile-meta,
body.modern-v5.app-theme-light .app-user-city-meta,
body.modern-v5.app-theme-light .app-user-action small,
body.modern-v5.app-theme-light .app-user-section-meta{
  color:var(--ui-ink-2,#66584b)!important;
}
@media (max-width:760px){
  body.modern-v5 .modal-card.app-sheet.app-sheet-wide.app-sheet-surface{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    padding:calc(14px + env(safe-area-inset-top,0px)) 12px calc(14px + env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  body.modern-v5 .experience-shell-grid,
  body.modern-v5 .experience-shell-grid.compact,
  body.modern-v5 .atg-optimize-experience-list-v1038{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body.modern-v5 .experience-shell-card{
    padding:16px!important;
    border-radius:20px!important;
  }
  body.modern-v5 .experience-inline-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.modern-v5 .experience-inline-actions .btn,
  body.modern-v5 .settings-select,
  body.modern-v5 .settings-checkbox-row{
    width:100%!important;
    flex-basis:auto!important;
  }
  body.modern-v5 .app-sheet-note{
    font-size:13px!important;
    line-height:1.45!important;
  }
}
/* ===== END V1056 SETTINGS + APP SHEET LAYOUT RENDER FINAL QA ===== */

/* ===== V1056 OPTIMIZE TOUR FINAL USER FLOW ===== */
body.modern-v5 .build-tour-suggest-final-note-v1051{
  width:100%!important;
  margin:14px 0 0!important;
  padding:13px 15px!important;
  border-radius:18px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  background:rgba(15,23,42,.28)!important;
  color:rgba(239,246,255,.86)!important;
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:760!important;
  letter-spacing:.01em!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5.app-theme-light .build-tour-suggest-final-note-v1051{
  background:rgba(255,255,255,.78)!important;
  border-color:rgba(148,163,184,.34)!important;
  color:#334155!important;
  box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
}
body.modern-v5 .build-tour-suggest-proposal-actions .build-tour-suggest-use-btn,
body.modern-v5 .build-tour-suggest-proposal-actions .build-tour-suggest-preview-btn{
  min-height:48px!important;
  white-space:normal!important;
  line-height:1.2!important;
}
@media (max-width:760px){
  body.modern-v5 .build-tour-suggest-final-note-v1051{
    margin-top:12px!important;
    padding:12px 13px!important;
    border-radius:16px!important;
    font-size:12.5px!important;
  }
  body.modern-v5 .build-tour-suggest-proposal-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.modern-v5 .build-tour-suggest-proposal-actions .btn{
    width:100%!important;
  }
}
/* ===== END V1056 OPTIMIZE TOUR FINAL USER FLOW ===== */


/* ===== V1056 SHARED + CONFIRM TOUR FINAL USER FLOW ===== */
body.modern-v5 .atg-final-tour-flow-v1056{
  overflow-x:hidden!important;
}
body.modern-v5 .atg-final-flow-grid-v1056{
  margin:0 0 14px!important;
}
body.modern-v5 .atg-final-flow-note-v1056{
  width:100%!important;
  margin:14px 0 0!important;
  padding:13px 15px!important;
  border-radius:18px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  background:rgba(15,23,42,.30)!important;
  color:rgba(239,246,255,.88)!important;
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:760!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5.app-theme-light .atg-final-flow-note-v1056{
  background:rgba(255,255,255,.84)!important;
  border-color:rgba(148,163,184,.34)!important;
  color:#334155!important;
  box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
}
body.modern-v5 .atg-final-flow-actions-v1056{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:stretch!important;
  justify-content:flex-end!important;
}
body.modern-v5 .atg-final-flow-actions-v1056 .btn{
  min-height:48px!important;
  white-space:normal!important;
  line-height:1.18!important;
  text-align:center!important;
  justify-content:center!important;
  flex:1 1 190px!important;
}
body.modern-v5 .atg-final-flow-actions-v1056 .app-modal-nav-control:not(.app-nav-source-hidden){
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  flex:1 0 100%!important;
  font-size:13px!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body.modern-v5 .atg-private-tour-confirm-v1056 .build-tour-plan-card-v567,
body.modern-v5 .atg-private-tour-confirm-v1056 .build-tour-summary-card-v567{
  max-width:100%!important;
  overflow:hidden!important;
}
@media (max-width:760px){
  body.modern-v5 .atg-final-flow-actions-v1056{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.modern-v5 .atg-final-flow-actions-v1056 .btn{
    width:100%!important;
    flex-basis:auto!important;
  }
  body.modern-v5 .atg-final-flow-note-v1056{
    font-size:12.5px!important;
    border-radius:16px!important;
    padding:12px 13px!important;
  }
}
/* ===== END V1056 SHARED + CONFIRM TOUR FINAL USER FLOW ===== */

/* ===== V1056 SHARED TOUR ROUTE PREVIEW FINAL USER QA ===== */
body.modern-v5 .atg-shared-route-preview-v1056{
  width:100%!important;
  margin:14px 0!important;
  overflow:hidden!important;
}
body.modern-v5 .atg-shared-route-preview-v1056 h4{
  margin:4px 0 6px!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5 .atg-shared-route-preview-v1056 p{
  margin:0 0 10px!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5 .atg-shared-route-list-v1056{
  margin:10px 0 0!important;
  padding-left:22px!important;
  display:grid!important;
  gap:6px!important;
  max-width:100%!important;
}
body.modern-v5 .atg-shared-route-list-v1056 li{
  padding-left:2px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
@media (max-width:760px){
  body.modern-v5 .atg-shared-route-preview-v1056{
    margin:12px 0!important;
    border-radius:16px!important;
  }
  body.modern-v5 .atg-shared-route-list-v1056{
    padding-left:20px!important;
    gap:5px!important;
  }
}
/* ===== END V1056 SHARED TOUR ROUTE PREVIEW FINAL USER QA ===== */


/* ===== V1056 SHARED + CONFIRM TOUR USER LAYOUT HARDENING ===== */
body.modern-v5 .experience-shell-note{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:12px 0!important;
  padding:13px 15px!important;
  border-radius:18px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  background:rgba(15,23,42,.28)!important;
  color:rgba(239,246,255,.88)!important;
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:760!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.modern-v5.app-theme-light .experience-shell-note{
  background:rgba(255,255,255,.86)!important;
  color:#334155!important;
  border-color:rgba(148,163,184,.34)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
}
body.modern-v5 .build-tour-time-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:14px 0 0!important;
}
body.modern-v5 .build-tour-time-field{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.modern-v5 .build-tour-time-field input[type="text"],
body.modern-v5 .build-tour-time-field input[type="date"],
body.modern-v5 .build-tour-time-field input[type="time"],
body.modern-v5 .build-tour-time-field select,
body.modern-v5 .build-tour-suggest-select{
  width:100%!important;
  max-width:100%!important;
  min-height:46px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.modern-v5 .build-tour-time-label{
  display:block!important;
  max-width:100%!important;
  margin:0 0 7px!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
body.modern-v5 .atg-shared-tour-success-v1056,
body.modern-v5 .atg-private-tour-success-v1056,
body.modern-v5 .atg-private-tour-confirm-v1056{
  max-width:min(940px,calc(100vw - 28px))!important;
  overflow-x:hidden!important;
}
body.modern-v5 .atg-shared-route-preview-v1056.compact{
  margin:12px 0!important;
}
body.modern-v5 .atg-shared-route-preview-v1056 .experience-shell-kicker,
body.modern-v5 .atg-final-tour-flow-v1056 .experience-shell-kicker{
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
body.modern-v5 .atg-shared-route-list-v1056{
  box-sizing:border-box!important;
}
body.modern-v5 .atg-shared-route-list-v1056 li:last-child{
  font-weight:800!important;
  color:rgba(226,232,240,.82)!important;
}
body.modern-v5.app-theme-light .atg-shared-route-list-v1056 li:last-child{
  color:#475569!important;
}
@media (max-width:760px){
  body.modern-v5 .build-tour-time-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:12px!important;
  }
  body.modern-v5 .experience-shell-note{
    padding:12px 13px!important;
    border-radius:16px!important;
    font-size:12.5px!important;
  }
  body.modern-v5 .atg-shared-tour-success-v1056,
  body.modern-v5 .atg-private-tour-success-v1056,
  body.modern-v5 .atg-private-tour-confirm-v1056{
    max-width:100%!important;
    width:100%!important;
  }
}
/* ===== END V1056 SHARED + CONFIRM TOUR USER LAYOUT HARDENING ===== */


/* ===== V1056 MAP FILTER + EXTERNAL CARD FINAL FIX =====
   No mobile fog/backdrop; filter Hide Menu is a real close; external cards stay usable above Build my tour. */
body.modern-v5.atg-v1056-map-filter-final-fix .atg-mobile-filter-backdrop-v890,
body.modern-v5 .atg-mobile-filter-backdrop-v890{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.modern-v5.atg-v1056-map-filter-final-fix.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1056-map-filter-final-fix.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1056-map-filter-final-fix.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1056-map-filter-final-fix.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1056-map-filter-final-fix.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;
  opacity:1!important;
  visibility:visible!important;
}
body.modern-v5 .restaurant-map-filter-bar-v627[aria-hidden="true"],
body.modern-v5 .restaurant-map-filter-bar-v627:not(.atg-filter-sheet-open-v890)[data-atg-user-hidden-filter-v1056="1"]{
  display:none!important;
  pointer-events:none!important;
}
@media (min-width:761px){
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-overlay-v1025,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-overlay-v1025,
  body.modern-v5.atg-build-tour-tray-open-v871 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
  body.modern-v5.atg-build-tour-panel-open-v869 .leaflet-popup.atg-rome-marker-hover-popup-stable-v964,
  body.modern-v5.atg-build-tour-tray-open-v871 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964,
  body.modern-v5.atg-build-tour-panel-open-v869 .leaflet-popup.atg-foodsocial-hover-popup-stable-v964{
    z-index:2147483600!important;
    pointer-events:auto!important;
  }
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-preview-v596,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-preview-v596,
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-preview-v647,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-preview-v647{
    width:min(342px,calc(100vw - 34px))!important;
    min-width:min(292px,calc(100vw - 34px))!important;
    max-width:min(342px,calc(100vw - 34px))!important;
    max-height:min(58vh,520px)!important;
    overflow:auto!important;
  }
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-photo-v603,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-overlay-v1025 .atg-rome-marker-hover-photo-v603,
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-photo-v647,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-overlay-v1025 .atg-foodsocial-hover-photo-v647{
    height:min(238px,34vh)!important;
    min-height:150px!important;
    max-height:238px!important;
  }
}
@media (max-width:760px){
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890{
    box-shadow:0 18px 38px rgba(15,23,42,.22)!important;
  }
  body.modern-v5.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-launcher-v890{
    display:none!important;
  }
}
/* ===== END V1056 MAP FILTER + EXTERNAL CARD FINAL FIX ===== */


/* ===== V1057 MAP FILTER + EXTERNAL CARD HARDENING =====
   User-final fixes: no mobile fog, no forced startup sheet, persistent Hide Menu, Build my tour external card fitting. */
body.modern-v5.atg-v1057-map-filter-final-hardening .atg-mobile-filter-backdrop-v890,
body.modern-v5 .atg-mobile-filter-backdrop-v890{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.modern-v5.atg-v1057-map-filter-final-hardening.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1057-map-filter-final-hardening.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1057-map-filter-final-hardening.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1057-map-filter-final-hardening.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1057-map-filter-final-hardening.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body.modern-v5 .restaurant-map-filter-bar-v627[data-atg-user-hidden-filter-v1056="1"],
body.modern-v5 .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-filter-sheet-open-v890){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media (max-width:760px){
  body.modern-v5.atg-v1057-map-filter-final-hardening .restaurant-map-filter-bar-v627:not(.atg-filter-sheet-open-v890){
    transform:translateY(calc(100% + 32px))!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.modern-v5.atg-v1057-map-filter-final-hardening .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    box-shadow:0 18px 38px rgba(15,23,42,.22)!important;
  }
  body.modern-v5.atg-v1057-map-filter-final-hardening.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-launcher-v890{
    display:none!important;
  }
}
@media (min-width:761px){
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-build-fit-v1057,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-build-fit-v1057{
    z-index:2147483630!important;
    pointer-events:auto!important;
    overflow:visible!important;
  }
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-build-fit-v1057 .atg-rome-marker-hover-preview-v596,
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-build-fit-v1057 .atg-rome-marker-hover-preview-v659,
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-build-fit-v1057 .atg-foodsocial-hover-preview-v647,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-build-fit-v1057 .atg-rome-marker-hover-preview-v596,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-build-fit-v1057 .atg-rome-marker-hover-preview-v659,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-build-fit-v1057 .atg-foodsocial-hover-preview-v647{
    width:min(332px,calc(100vw - 36px))!important;
    max-width:min(332px,calc(100vw - 36px))!important;
    max-height:min(52vh,500px)!important;
    overflow:auto!important;
  }
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-build-fit-v1057 .atg-rome-marker-hover-photo-v603,
  body.modern-v5.atg-build-tour-tray-open-v871 .atg-external-card-build-fit-v1057 .atg-foodsocial-hover-photo-v647,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-build-fit-v1057 .atg-rome-marker-hover-photo-v603,
  body.modern-v5.atg-build-tour-panel-open-v869 .atg-external-card-build-fit-v1057 .atg-foodsocial-hover-photo-v647{
    height:min(218px,30vh)!important;
    min-height:138px!important;
    max-height:218px!important;
  }
}
/* ===== END V1057 MAP FILTER + EXTERNAL CARD HARDENING ===== */


/* ===== V1058 BUILD TOUR CATEGORY SUMMARY + RESEARCH DROPDOWN HARDENING ===== */
body.modern-v5 .build-tour-plan-line-v1058{
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:flex-start!important;
}
body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  text-align:right!important;
  line-height:1.28!important;
}
body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value strong{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:3px 6px!important;
  min-width:0!important;
}
body.modern-v5 .build-tour-plan-token-v1058{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:3px!important;
  white-space:nowrap!important;
  min-width:0!important;
}
body.modern-v5 .build-tour-plan-token-v1058 em{
  font-style:normal!important;
  opacity:.86!important;
}
body.modern-v5 .build-tour-plan-separator-v1058{
  opacity:.48!important;
}
body.modern-v5 .build-tour-research-select-field-v1021 select option[value="pharmacies"],
body.modern-v5 .build-tour-research-select-field-v1021 select option[value="supermarkets"]{
  display:none!important;
}
@media (max-width:760px){
  body.modern-v5 .build-tour-plan-line-v1058{
    grid-template-columns:1fr!important;
    gap:3px!important;
  }
  body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-label{
    white-space:normal!important;
  }
  body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value{
    width:100%!important;
    text-align:left!important;
    font-size:9.3px!important;
  }
  body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value strong{
    justify-content:flex-start!important;
    gap:2px 5px!important;
  }
}
/* ===== END V1058 BUILD TOUR CATEGORY SUMMARY + RESEARCH DROPDOWN HARDENING ===== */


/* ===== V1060 BUILD TOUR PLAN + RESEARCH LAYOUT FINAL QA ===== */
body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value strong{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(104px,max-content))!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:5px!important;
}
body.modern-v5 .build-tour-plan-token-v1058{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:5px!important;
  min-height:22px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  border:1px solid rgba(125,211,252,.24)!important;
  background:rgba(125,211,252,.10)!important;
  color:inherit!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
body.modern-v5.app-theme-light .build-tour-plan-token-v1058{
  border-color:rgba(14,165,233,.18)!important;
  background:rgba(14,165,233,.08)!important;
}
body.modern-v5 .build-tour-plan-separator-v1058{
  display:none!important;
}
body.modern-v5 .build-tour-research-count-v1003{
  contain:layout paint!important;
}
body.modern-v5 .build-tour-add-results-v960{
  contain:layout paint!important;
  content-visibility:auto!important;
  contain-intrinsic-size:420px!important;
}
body.modern-v5 .build-tour-add-row-v960,
body.modern-v5 .build-tour-add-row-v1018{
  contain:layout paint!important;
}
@media (max-width:760px){
  body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value{
    font-size:10.4px!important;
    line-height:1.25!important;
  }
  body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value strong{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:4px!important;
  }
  body.modern-v5 .build-tour-plan-token-v1058{
    width:100%!important;
    min-width:0!important;
    min-height:25px!important;
    padding:4px 6px!important;
    white-space:normal!important;
  }
  body.modern-v5 .build-tour-plan-token-v1058 em{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
}
@media (max-width:380px){
  body.modern-v5 .build-tour-plan-line-v1058 .build-tour-dashboard-leg-value strong{
    grid-template-columns:1fr!important;
  }
}
/* ===== END V1060 BUILD TOUR PLAN + RESEARCH LAYOUT FINAL QA ===== */

/* ===== V1060 SINGLE FILTER SURFACE FINAL QA =====
   One full filter panel at a time. Every non-active filter panel is forced back to icon/minitab state.
   PC: one fixed popup. Mobile: one sheet, no backdrop, no fog. */
body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-v1060-filter-closed,
body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1060-filter-open){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-v1060-filter-open,
body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-single-open-filter-v1032.atg-v1060-filter-open{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:fixed!important;
  top:calc(72px + env(safe-area-inset-top,0px))!important;
  right:14px!important;
  left:auto!important;
  bottom:auto!important;
  width:min(448px,calc(100vw - 28px))!important;
  max-width:min(448px,calc(100vw - 28px))!important;
  max-height:calc(100dvh - 102px)!important;
  overflow:auto!important;
  transform:none!important;
  z-index:2147483620!important;
  box-sizing:border-box!important;
  overscroll-behavior:contain!important;
}
body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-v1060-filter-open .restaurant-map-custom-menu-v666{
  z-index:2147483620!important;
  max-height:min(260px,45dvh)!important;
  overflow:auto!important;
}
body.modern-v5.atg-v1060-single-filter-surface-final .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1060-single-filter-surface-final #atgMobileFilterBackdropV890{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.modern-v5.atg-v1060-single-filter-surface-final.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1060-single-filter-surface-final.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1060-single-filter-surface-final.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1060-single-filter-surface-final.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1060-single-filter-surface-final.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
@media (max-width:760px){
  body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-v1060-filter-open,
  body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-v1060-filter-open.atg-filter-sheet-open-v890{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(72dvh,620px)!important;
    overflow:auto!important;
    transform:none!important;
    border-radius:22px!important;
    z-index:2147483620!important;
    pointer-events:auto!important;
    box-sizing:border-box!important;
  }
  body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627.atg-v1060-filter-open .restaurant-map-filter-top-v627{
    position:sticky!important;
    top:0!important;
    z-index:2!important;
  }
  body.modern-v5.atg-v1060-single-filter-surface-final .restaurant-map-filter-bar-v627:not(.atg-v1060-filter-open){
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
}
@media (min-width:761px){
  body.modern-v5.atg-v1060-single-filter-surface-final.atg-build-tour-tray-open-v871 .restaurant-map-filter-bar-v627.atg-v1060-filter-open,
  body.modern-v5.atg-v1060-single-filter-surface-final.atg-build-tour-panel-open-v869 .restaurant-map-filter-bar-v627.atg-v1060-filter-open{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}
/* ===== END V1060 SINGLE FILTER SURFACE FINAL QA ===== */

/* ===== V1062 SINGLE SURFACE NO-OVERLAP HARDLOCK =====
   Final rule: one full filter panel, no stacked PC popups, no stacked mobile sheets, no mobile fog. */
body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-closed,
body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1062-filter-open){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:2147483620!important;
}
body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open .restaurant-map-custom-menu-v666{
  z-index:2147483621!important;
}
body.modern-v5.atg-v1062-single-surface-hardlock .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1062-single-surface-hardlock #atgMobileFilterBackdropV890{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.modern-v5.atg-v1062-single-surface-hardlock.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1062-single-surface-hardlock.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1062-single-surface-hardlock.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1062-single-surface-hardlock.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1062-single-surface-hardlock.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;
  opacity:1!important;
  pointer-events:auto!important;
}
@media (max-width:760px){
  body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627:not(.atg-v1062-filter-open){
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open,
  body.modern-v5.atg-v1062-single-surface-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open.atg-filter-sheet-open-v890{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(72dvh,620px)!important;
    overflow:auto!important;
    transform:none!important;
    border-radius:22px 22px 18px 18px!important;
  }
}
/* ===== END V1062 SINGLE SURFACE NO-OVERLAP HARDLOCK ===== */


/* ===== V1062 FINAL SINGLE SURFACE CSS HARDLOCK =====
   This block intentionally comes after previous V1060/V1062 rules and wins the cascade. */
body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-closed,
body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1062-filter-open){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:2147483620!important;
}
body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open .restaurant-map-custom-menu-v666{
  z-index:2147483621!important;
}
body.modern-v5.atg-v1062-single-surface-final-hardlock .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1062-single-surface-final-hardlock #atgMobileFilterBackdropV890,
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 #atgMobileFilterBackdropV890{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1062-single-surface-final-hardlock.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;
  opacity:1!important;
  pointer-events:auto!important;
}
@media (max-width:760px){
  body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627:not(.atg-v1062-filter-open){
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open,
  body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open.atg-filter-sheet-open-v890{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(72dvh,620px)!important;
    overflow:auto!important;
    transform:none!important;
    border-radius:22px 22px 18px 18px!important;
  }
}
@media (min-width:761px){
  body.modern-v5.atg-v1062-single-surface-final-hardlock .restaurant-map-filter-bar-v627.atg-v1062-filter-open{
    max-width:min(420px,calc(100vw - 32px))!important;
    max-height:calc(100vh - 112px)!important;
    overflow:auto!important;
  }
}
/* ===== END V1062 FINAL SINGLE SURFACE CSS HARDLOCK ===== */


/* ===== V1064 SINGLE SURFACE DOMINANT CSS SEAL ===== */
body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-closed,
body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1063-filter-open){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:2147483620!important;}
body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open .restaurant-map-custom-menu-v666{z-index:2147483621!important;}
body.modern-v5.atg-v1063-single-surface-seal .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1063-single-surface-seal #atgMobileFilterBackdropV890,
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 #atgMobileFilterBackdropV890{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1063-single-surface-seal.atg-mobile-filter-sheet-open-v890 #tourView{filter:none!important;opacity:1!important;pointer-events:auto!important;}
@media (max-width:760px){body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627:not(.atg-v1063-filter-open){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open,body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open.atg-filter-sheet-open-v890{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:calc(100vw - 16px)!important;max-height:min(72dvh,620px)!important;overflow:auto!important;transform:none!important;border-radius:22px 22px 18px 18px!important;}}
@media (min-width:761px){body.modern-v5.atg-v1063-single-surface-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open{max-width:min(420px,calc(100vw - 32px))!important;max-height:calc(100vh - 112px)!important;overflow:auto!important;}}
/* ===== END V1064 SINGLE SURFACE DOMINANT CSS SEAL ===== */


/* ===== V1064 SINGLE SURFACE MOUNT GUARD CSS SEAL ===== */
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1063-filter-closed:not(.atg-v1064-filter-open),
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1062-filter-closed:not(.atg-v1064-filter-open),
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1064-filter-open):not(.atg-v1063-filter-open){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1064-filter-open,
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1063-filter-open{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:2147483620!important;}
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1064-filter-open .restaurant-map-custom-menu-v666,
body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1063-filter-open .restaurant-map-custom-menu-v666{z-index:2147483621!important;}
body.modern-v5.atg-v1064-single-surface-mount-guard .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1064-single-surface-mount-guard #atgMobileFilterBackdropV890,
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 #atgMobileFilterBackdropV890{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1064-single-surface-mount-guard.atg-mobile-filter-sheet-open-v890 #tourView{filter:none!important;opacity:1!important;pointer-events:auto!important;}
@media (max-width:760px){body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627:not(.atg-v1064-filter-open):not(.atg-v1063-filter-open){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1064-filter-open,body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1063-filter-open,body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:calc(100vw - 16px)!important;max-height:min(72dvh,620px)!important;overflow:auto!important;transform:none!important;border-radius:22px 22px 18px 18px!important;}}
@media (min-width:761px){body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1064-filter-open,body.modern-v5.atg-v1064-single-surface-mount-guard .restaurant-map-filter-bar-v627.atg-v1063-filter-open{max-width:min(420px,calc(100vw - 32px))!important;max-height:calc(100vh - 112px)!important;overflow:auto!important;}}
/* ===== END V1064 SINGLE SURFACE MOUNT GUARD CSS SEAL ===== */


/* ===== V1065 FINAL SINGLE SURFACE CSS SEAL ===== */
body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1065-filter-open,
body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1064-filter-open,
body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open{
  display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:2147483620!important;
}
body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1065-filter-open .restaurant-map-custom-menu-v666,
body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1064-filter-open .restaurant-map-custom-menu-v666,
body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open .restaurant-map-custom-menu-v666{
  z-index:2147483621!important;
}
body.modern-v5.atg-v1065-single-surface-final-seal .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1065-single-surface-final-seal #atgMobileFilterBackdropV890{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.modern-v5.atg-v1065-single-surface-final-seal.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1065-single-surface-final-seal.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1065-single-surface-final-seal.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1065-single-surface-final-seal.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1065-single-surface-final-seal.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;opacity:1!important;pointer-events:auto!important;
}
@media (min-width:761px){
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1065-filter-open,
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1064-filter-open,
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open{
    max-width:min(420px,calc(100vw - 32px))!important;max-height:calc(100vh - 32px)!important;overflow:auto!important;
  }
}
@media (max-width:760px){
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627:not(.atg-v1065-filter-open):not(.atg-v1064-filter-open):not(.atg-v1063-filter-open){
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  }
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1065-filter-open,
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1064-filter-open,
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-v1063-filter-open,
  body.modern-v5.atg-v1065-single-surface-final-seal .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:calc(100vw - 16px)!important;max-height:min(72dvh,620px)!important;overflow:auto!important;transform:none!important;border-radius:22px 22px 18px 18px!important;
  }
}
/* ===== END V1065 FINAL SINGLE SURFACE CSS SEAL ===== */

/* ===== V1066 FINAL CLEAN SINGLE SURFACE CSS GUARD ===== */
body.modern-v5.atg-v1066-final-single-surface-route-guard .atg-mobile-filter-backdrop-v890,
body.modern-v5.atg-v1066-final-single-surface-route-guard #atgMobileFilterBackdropV890{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.modern-v5.atg-v1066-final-single-surface-route-guard.atg-mobile-filter-sheet-open-v890 #map,
body.modern-v5.atg-v1066-final-single-surface-route-guard.atg-mobile-filter-sheet-open-v890 .leaflet-container,
body.modern-v5.atg-v1066-final-single-surface-route-guard.atg-mobile-filter-sheet-open-v890 .map-canvas,
body.modern-v5.atg-v1066-final-single-surface-route-guard.atg-mobile-filter-sheet-open-v890 .tour-map,
body.modern-v5.atg-v1066-final-single-surface-route-guard.atg-mobile-filter-sheet-open-v890 #tourView{
  filter:none!important;opacity:1!important;pointer-events:auto!important;
}
body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627.atg-v1066-filter-closed,
body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1066-filter-open){
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627.atg-v1066-filter-open{
  display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:2147483000!important;
}
body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627.atg-v1066-filter-open .restaurant-map-custom-menu-v666{
  z-index:2147483001!important;
}
@media (min-width:761px){
  body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627.atg-v1066-filter-open{
    max-width:min(420px,calc(100vw - 32px))!important;max-height:calc(100vh - 32px)!important;overflow:auto!important;
  }
}
@media (max-width:760px){
  body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627:not(.atg-v1066-filter-open){
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  }
  body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627.atg-v1066-filter-open,
  body.modern-v5.atg-v1066-final-single-surface-route-guard .restaurant-map-filter-bar-v627.atg-v1066-filter-open.atg-filter-sheet-open-v890{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:calc(100vw - 16px)!important;max-height:min(72dvh,620px)!important;overflow:auto!important;transform:none!important;border-radius:22px 22px 18px 18px!important;
  }
}
/* ===== END V1066 FINAL CLEAN SINGLE SURFACE CSS GUARD ===== */


/* V1068: Research category split sealed; Parks and Scenic viewpoints are selectable in both Research dropdowns, while Pharmacies/Supermarkets remain map-only utilities. */


/* V1068: final Research select/layout seal for PC and mobile. */
.build-tour-research-select-field-v1021.atg-research-select-v1068,
.build-tour-research-select-field-v1021 {
  min-width: 0;
  max-width: 100%;
}
.build-tour-research-select-field-v1021.atg-research-select-v1068 select,
.build-tour-research-select-field-v1021 select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.build-tour-preferences-search-v1021,
.build-tour-manual-search-v1021 {
  max-width: 100%;
  min-width: 0;
}
.build-tour-research-count-v1003 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.build-tour-research-count-v1003 button {
  flex: 0 0 auto;
  max-width: 100%;
}
@media (max-width: 720px) {
  .build-tour-research-count-v1003,
  .build-tour-preferences-search-v1021,
  .build-tour-manual-search-v1021 {
    width: 100%;
  }
  .build-tour-research-select-field-v1021.atg-research-select-v1068,
  .build-tour-research-select-field-v1021 {
    width: 100%;
  }
}


/* V1069: final Research structured classification seal. Layout unchanged; select fields remain responsive and viewport-safe. */
.build-tour-research-select-field-v1021.atg-research-select-v1068 select {
  text-overflow: ellipsis;
}


/* V1070: final Tour plan / Research metadata seal. Keeps tokens readable on desktop and mobile. */
.build-tour-plan-line-v1070 .build-tour-dashboard-leg-value,
.build-tour-plan-line-v1070 .build-tour-dashboard-leg-value strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  min-width: 0;
  max-width: 100%;
}
.build-tour-plan-line-v1070 .build-tour-plan-token-v1058 {
  white-space: nowrap;
  line-height: 1.45;
}
.atg-research-select-v1070 select {
  max-width: 100%;
}
@media (max-width: 720px) {
  .build-tour-plan-line-v1070 .build-tour-dashboard-leg-value,
  .build-tour-plan-line-v1070 .build-tour-dashboard-leg-value strong {
    align-items: flex-start;
    gap: 4px 6px;
  }
  .build-tour-plan-line-v1070 .build-tour-plan-token-v1058 {
    white-space: normal;
  }
}


/* V1072 final stylesheet CSS dominance seal: Tour plan + Research select layout, after all legacy inline blocks. */
.build-tour-plan-line-v1072,
.build-tour-plan-line-v1072.build-tour-plan-line-v1058,
.build-tour-unified-plan-card.build-tour-plan-line-v1072 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.build-tour-plan-line-v1072 .build-tour-dashboard-leg-label {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.build-tour-plan-line-v1072 .build-tour-dashboard-leg-value,
.build-tour-plan-line-v1072 .build-tour-dashboard-leg-value strong {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}
.build-tour-plan-line-v1072 .build-tour-plan-token-v1072,
.build-tour-plan-line-v1072 .build-tour-plan-token-v1058 {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
}
.build-tour-plan-line-v1072 .build-tour-plan-separator-v1072,
.build-tour-plan-line-v1072 .build-tour-plan-separator-v1058 {
  display: none !important;
}
.atg-research-select-v1072,
.atg-research-select-v1072 select {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.atg-research-select-v1072 select {
  width: 100% !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 760px) {
  .build-tour-plan-line-v1072,
  .build-tour-plan-line-v1072.build-tour-plan-line-v1058 {
    padding: 9px 10px !important;
    gap: 6px !important;
  }
  .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value,
  .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value strong {
    gap: 4px 7px !important;
    font-size: clamp(11px, 3.05vw, 13px) !important;
  }
}


/* ===== V1401 USER RUNTIME COHERENCE REBUILD: single deploy seal ===== */
html,
body {
  overscroll-behavior: none;
}
body.modern-v5 .modal-layer:not(.hidden) {
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}
body.modern-v5 .modal-layer:not(.hidden) .modal-card.map-menu-sheet.app-sheet,
body.modern-v5 .modal-layer:not(.hidden) .modal-card.app-sheet.app-sheet-surface,
body.modern-v5 .modal-layer:not(.hidden) .modal-card.build-tour-suggest-modal,
body.modern-v5 .modal-layer:not(.hidden) .modal-card.atg-curated-sheet-v927 {
  width: min(920px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}
@media (min-width: 761px) {
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) > .modal-card.app-sheet.app-sheet-surface {
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden):not(.atg-map-legend-layer-v927):not(.atg-map-layers-layer-v927) > .modal-card.app-sheet.app-sheet-surface > * {
    max-width: none !important;
  }
}
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .atg-curated-inner-v927,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-inner-v927,
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .build-tour-suggest-section-panel,
body.modern-v5 .modal-card.build-tour-suggest-modal .build-tour-suggest-section-panel {
  max-height: calc(100dvh - 72px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable both-edges !important;
  box-sizing: border-box !important;
}
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .atg-v437-settings-list,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-v437-settings-list {
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
body.modern-v5 .modal-card.map-menu-sheet.app-sheet .app-sheet-actions,
body.modern-v5 .modal-card.atg-curated-sheet-v927 .app-sheet-actions {
  position: relative !important;
  bottom: auto !important;
  z-index: 5 !important;
  padding-top: 10px !important;
  padding-bottom: 4px !important;
  background: linear-gradient(180deg, rgba(12,18,48,0), rgba(12,18,48,.96) 22%, rgba(12,18,48,.98)) !important;
}
body.modern-v5.app-theme-light .modal-card.map-menu-sheet.app-sheet .app-sheet-actions,
body.modern-v5.app-theme-light .modal-card.atg-curated-sheet-v927 .app-sheet-actions {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 22%, rgba(255,255,255,.98)) !important;
}
body.modern-v5 .atg-v437-setting-row-disabled .atg-v437-setting-action[disabled],
body.modern-v5 .atg-v437-setting-row-disabled .atg-v437-switch input[disabled] + .atg-v437-switch-ui {
  opacity: .72 !important;
}
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  body.modern-v5 .modal-layer:not(.hidden) {
    padding: 8px !important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden):has(> .modal-card.app-sheet.app-sheet-surface .app-standard-modal-nav.single.atg-v934-standard-nav) {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 8px !important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden):has(> .modal-card.app-sheet.app-sheet-surface .app-standard-modal-nav.split.atg-v934-standard-nav) {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 8px !important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface:has(.app-standard-modal-nav.single.atg-v934-standard-nav) {
    height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface:has(.app-standard-modal-nav.split.atg-v934-standard-nav) {
    height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
  }
  /* V1140A: the preference wizard owns its in-card primary actions; reserve
     real scroll space instead of letting the standard return control cover it. */
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.atg-tour-preference-modal-v1124pg:has(.app-standard-modal-nav.single.atg-v934-standard-nav),
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.atg-tour-preference-modal-v1124pg:has(.app-standard-modal-nav.split.atg-v934-standard-nav) {
    height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
  }
  /* The Tour wizard owns its primary action. Its return control follows in the
     scroll flow and cannot cover a choice, field, or Continue action. */
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.atg-tour-preference-modal-v1124pg .app-standard-modal-nav.atg-v934-standard-nav {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 10px 0 max(2px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.modern-v5 #modalLayer.modal-layer:not(.hidden):has(> .modal-card-place-detail) {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
  }
  body.modern-v5 #modalLayer.modal-layer:not(.hidden):has(> .modal-card-place-detail) > .modal-card-place-detail {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
  }
  body.modern-v5 .modal-layer:not(.hidden) .modal-card.map-menu-sheet.app-sheet,
  body.modern-v5 .modal-layer:not(.hidden) .modal-card.app-sheet.app-sheet-surface,
  body.modern-v5 .modal-layer:not(.hidden) .modal-card.build-tour-suggest-modal,
  body.modern-v5 .modal-layer:not(.hidden) .modal-card.atg-curated-sheet-v927 {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 22px !important;
  }
  body.modern-v5 .modal-card.map-menu-sheet.app-sheet .atg-curated-inner-v927,
  body.modern-v5 .modal-card.atg-curated-sheet-v927 .atg-curated-inner-v927 {
    max-height: calc(100dvh - 52px) !important;
  }
}



/* ===== V1401 USER RUNTIME COHERENCE REBUILD: final viewport/filter containment guard ===== */
html, body { overscroll-behavior: none !important; }

/* ===== V1124QL SETTINGS / PRIVACY COMPLETE SURFACES ===== */
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql {
  --settings-panel:#111a24;
  --settings-control:#172131;
  --settings-line:#334155;
  --settings-ink:#f8fafc;
  --settings-muted:#cbd5e1;
  --settings-accent:#e1b64f;
}
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql {
  --settings-panel:#fff;
  --settings-control:#f8fafc;
  --settings-line:#cbd5e1;
  --settings-ink:#172033;
  --settings-muted:#526075;
  --settings-accent:#b88416;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql>.app-sheet-head {
  padding:16px!important;
  border:1px solid var(--settings-line)!important;
  border-radius:8px!important;
  background:var(--settings-panel)!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql>.app-sheet-head::before { display:none!important; }
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql][hidden] {
  display: none !important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-shell-grid.compact {
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:12px!important;
  align-items: stretch !important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql] {
  grid-column:span 6!important;
  padding:16px!important;
  border:1px solid var(--settings-line)!important;
  border-radius:8px!important;
  background:var(--settings-control)!important;
  background-image:none!important;
  color:var(--settings-ink)!important;
  box-shadow:none!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql].is-wide-v1135a { grid-column:1/-1!important; }
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql] h4 {
  margin:0!important;
  color:var(--settings-ink)!important;
  font-size:18px!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql] p {
  margin:0 0 14px!important;
  color:var(--settings-muted)!important;
  font-size:12.5px!important;
  line-height:1.45!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-shell-kicker {
  width:max-content!important;
  max-width:100%!important;
  padding:5px 8px!important;
  border:1px solid var(--settings-line)!important;
  border-radius:6px!important;
  background:transparent!important;
  color:var(--settings-accent)!important;
  font-size:9px!important;
  letter-spacing:0!important;
}
body.modern-v5 .atg-settings-summary-v1135a {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0 0 12px!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql[data-atg-settings-nav-surface-v1119d="privacy"] .atg-settings-summary-v1135a {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.modern-v5 .atg-settings-summary-v1135a span {
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  min-height:44px!important;
  padding:8px 10px!important;
  border:1px solid var(--settings-line)!important;
  border-radius:6px!important;
  background:var(--settings-control)!important;
  color:var(--settings-muted)!important;
  font-size:10.5px!important;
  line-height:1.25!important;
  font-weight:800!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions.stacked {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(136px,1fr))!important;
  gap:6px!important;
  align-items:stretch!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions .btn {
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  margin:0!important;
  padding:9px 10px!important;
  border:1px solid var(--settings-line)!important;
  border-radius:6px!important;
  background:var(--settings-panel)!important;
  background-image:none!important;
  color:var(--settings-ink)!important;
  box-shadow:none!important;
  font-size:11px!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions .btn[aria-pressed="true"] {
  border-color:var(--settings-accent)!important;
  background:#e1b64f!important;
  color:#211603!important;
}
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions .btn[aria-pressed="true"] { background:#f1c75b!important; }
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .settings-field-label { color:var(--settings-ink)!important;letter-spacing:0!important; }
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .settings-field-copy { color:var(--settings-muted)!important; }
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .settings-select,
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .settings-checkbox-row {
  min-height:44px!important;
  border:1px solid var(--settings-line)!important;
  border-radius:6px!important;
  background:var(--settings-panel)!important;
  color:var(--settings-ink)!important;
  box-shadow:none!important;
}
body.modern-v5 [data-atg-settings-nav-surface-v1119d] .experience-inline-actions.stacked {
  flex-wrap: nowrap !important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .app-standard-modal-nav.atg-v934-standard-nav.split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql[data-atg-settings-nav-surface-v1119d="privacy"] .app-standard-modal-nav.atg-v934-standard-nav.split {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .app-standard-modal-nav.atg-v934-standard-nav.split .app-standard-modal-nav-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
@media (max-width: 480px) {
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-shell-grid.compact { grid-template-columns:minmax(0,1fr)!important; }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql],
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql].is-wide-v1135a { grid-column:1!important; }
  body.modern-v5 .atg-settings-summary-v1135a,
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql[data-atg-settings-nav-surface-v1119d="privacy"] .atg-settings-summary-v1135a { grid-template-columns:minmax(0,1fr)!important; }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions,
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .experience-inline-actions.stacked { grid-template-columns:minmax(0,1fr)!important; }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql [data-settings-section-v1124ql] { padding:14px!important; }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .app-standard-modal-nav.atg-v934-standard-nav.split {
    gap: 8px !important;
  }
  body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-settings-surface-v1124ql .app-standard-modal-nav.atg-v934-standard-nav.split .app-standard-modal-nav-btn {
    min-height: 44px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }
}
/* ===== END V1124QL SETTINGS / PRIVACY COMPLETE SURFACES ===== */

/* ===== V1137A OPERATIONAL SURFACES ===== */
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-user-dashboard-v1137a {
  --atg-dashboard-panel:#111a24;
  --atg-dashboard-control:#172131;
  --atg-dashboard-line:#334155;
  --atg-dashboard-ink:#f8fafc;
  --atg-dashboard-muted:#cbd5e1;
  --atg-dashboard-accent:#e1b64f;
}
body.modern-v5.app-theme-light .modal-card.app-sheet.app-sheet-surface.atg-user-dashboard-v1137a {
  --atg-dashboard-panel:#ffffff;
  --atg-dashboard-control:#f8fafc;
  --atg-dashboard-line:#cbd5e1;
  --atg-dashboard-ink:#172033;
  --atg-dashboard-muted:#526075;
  --atg-dashboard-accent:#b88416;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-user-dashboard-v1137a>.app-sheet-head {
  padding:16px!important;
  border:1px solid var(--atg-dashboard-line)!important;
  border-radius:8px!important;
  background:var(--atg-dashboard-panel)!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.modern-v5 .modal-card.app-sheet.app-sheet-surface.atg-user-dashboard-v1137a>.app-sheet-head::before { display:none!important; }
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-grid.compact {
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card {
  grid-column:span 4!important;
  display:grid!important;
  align-content:start!important;
  gap:10px!important;
  min-width:0!important;
  margin:0!important;
  padding:14px!important;
  border:1px solid var(--atg-dashboard-line)!important;
  border-radius:8px!important;
  background:var(--atg-dashboard-control)!important;
  background-image:none!important;
  color:var(--atg-dashboard-ink)!important;
  box-shadow:none!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .atg-rfp-dashboard-card-v1118t { grid-column:span 5!important; }
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card:nth-child(1) { grid-column:span 7!important; }
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-kicker {
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;
  padding:4px 7px!important;
  border:1px solid var(--atg-dashboard-line)!important;
  border-radius:6px!important;
  color:var(--atg-dashboard-accent)!important;
  background:transparent!important;
  font-size:9px!important;
  letter-spacing:0!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card h4 {
  margin:0!important;
  color:var(--atg-dashboard-ink)!important;
  font-size:16px!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card p {
  display:none!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card ul {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card li {
  min-width:0!important;
  padding:7px 8px!important;
  border:1px solid var(--atg-dashboard-line)!important;
  border-radius:6px!important;
  color:var(--atg-dashboard-muted)!important;
  background:var(--atg-dashboard-panel)!important;
  font-size:10.5px!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-inline-actions,
body.modern-v5 .atg-user-dashboard-v1137a .experience-inline-actions.stacked {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important;
  gap:6px!important;
  margin:0!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-inline-actions .btn {
  min-height:42px!important;
  margin:0!important;
  border:1px solid var(--atg-dashboard-line)!important;
  border-radius:6px!important;
  background:var(--atg-dashboard-panel)!important;
  background-image:none!important;
  color:var(--atg-dashboard-ink)!important;
  box-shadow:none!important;
  font-size:11px!important;
}
body.modern-v5 .atg-user-dashboard-v1137a .experience-inline-actions .btn.primary {
  border-color:var(--atg-dashboard-accent)!important;
  background:var(--atg-dashboard-accent)!important;
  color:#211603!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-advanced-filters-v1137a {
  display:grid!important;
  gap:10px!important;
  padding:10px!important;
  border:1px solid rgba(148,163,184,.28)!important;
  border-radius:8px!important;
  background:rgba(15,23,42,.16)!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-advanced-filters-v1137a summary {
  color:#e2e8f0!important;
  -webkit-text-fill-color:#e2e8f0!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:0!important;
  cursor:pointer!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-business-advanced-filters-v1137a {
  border-color:#cbd5e1!important;
  background:#f8fafc!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-business-advanced-filters-v1137a summary {
  color:#334155!important;
  -webkit-text-fill-color:#334155!important;
}
@media (max-width:760px) {
  body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-grid.compact { grid-template-columns:minmax(0,1fr)!important; }
  body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card,
  body.modern-v5 .atg-user-dashboard-v1137a .atg-rfp-dashboard-card-v1118t,
  body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card:nth-child(1) { grid-column:1!important; }
  body.modern-v5 .atg-user-dashboard-v1137a .experience-shell-card ul { grid-template-columns:minmax(0,1fr)!important; }
}
/* ===== END V1137A OPERATIONAL SURFACES ===== */

@media (max-width:760px) {
  body.modern-v5 .modal-layer:not(.hidden)>.modal-card.atg-customer-hub-v1124sl,
  body.modern-v5 .modal-layer:not(.hidden)>.modal-card.atg-settings-surface-v1124ql {
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    border-radius:8px!important;
  }
}

body.modern-v5 .restaurant-map-filter-bar-v627[aria-hidden="true"]:not(.atg-v1066-filter-open):not(.atg-v1065-filter-open):not(.atg-v1064-filter-open):not(.atg-v1063-filter-open):not(.atg-visible-filter-popup-v1027) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.modern-v5 .modal-layer:not(.hidden),
body.modern-v5 .atg-external-card-overlay-v970,
body.modern-v5 .leaflet-popup.atg-rome-marker-hover-popup-v645,
body.modern-v5 .leaflet-popup.atg-foodsocial-hover-popup-v645 {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
body.modern-v5 .modal-card,
body.modern-v5 .app-sheet,
body.modern-v5 .atg-curated-sheet-v927,
body.modern-v5 .build-tour-suggest-modal {
  max-width: calc(100vw - 16px) !important;
  max-height: calc(100dvh - 16px) !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-v1066-filter-open,
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-v1065-filter-open,
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-v1064-filter-open,
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-v1063-filter-open,
  body.modern-v5 .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890 {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: min(72dvh, 620px) !important;
    overflow: auto !important;
  }
}
/* ===== END V1401 USER RUNTIME COHERENCE REBUILD ===== */

/* FIX-APP-001/002: hide internal build badge and use controlled onboarding media fallbacks without logo placeholders. */
body.modern-v5 .build-pill,
.build-pill.atg-build-pill-hidden-v1417 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body:not(.modern-v5) .theme-dock {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.modern-v5.wizard-onboarding-mode .country-card-media-fallback,
body.modern-v5.wizard-onboarding-mode .city-card-media-fallback,
body.modern-v5.wizard-onboarding-mode .entry-city-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .20);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 204, 21, .22), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(59, 130, 246, .22), transparent 30%),
    linear-gradient(135deg, rgba(10, 18, 37, .96), rgba(17, 24, 54, .96));
}

/* V1120ZK: POI dock Places filters stay readable on desktop and open as a real sheet on mobile. */
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 {
  position: relative !important;
  overflow: visible !important;
  z-index: 24 !important;
}

body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-bar-v627,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-bar-v627 {
  overflow: visible !important;
}

body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627 > span,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627 > span {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-select-v666,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-select-v666 {
  position: relative !important;
  overflow: visible !important;
}

body.modern-v5 .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk,
body.tour-mode .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk {
  position: fixed !important;
  display: none !important;
  min-width: 0 !important;
  max-width: calc(100vw - 16px) !important;
  padding: 7px !important;
  border-radius: 16px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  z-index: 2147483640 !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .22) !important;
}

body.modern-v5 .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk.is-open,
body.tour-mode .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk.is-open {
  display: grid !important;
  gap: 4px !important;
}

body.modern-v5.app-theme-light .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk {
  color: #111827 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 249, 252, .99)) !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
}

body.modern-v5.app-theme-dark .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk,
body.app-theme-dark.tour-mode .places-map-filter-bar-v729 .restaurant-map-custom-menu-v666.is-floating-v1120zk {
  color: #f8fafc !important;
  background: linear-gradient(180deg, rgba(12, 18, 32, .995), rgba(5, 11, 22, .998)) !important;
  border: 1px solid rgba(var(--gold-border-rgb), .24) !important;
}

body.modern-v5 .places-map-filter-bar-v729 .restaurant-map-custom-select-v666.is-open-v1120zk,
body.tour-mode .places-map-filter-bar-v729 .restaurant-map-custom-select-v666.is-open-v1120zk {
  z-index: 2147483003 !important;
}

@media (min-width: 761px) {
  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627 {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(110px, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    align-items: end !important;
    scrollbar-gutter: auto !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627 {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex: 1 1 0 !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-trigger-v666,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-custom-trigger-v666 {
    min-height: 48px !important;
  }
}

@media (max-width: 760px) {
  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 {
    position: static !important;
    display: block !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-bar-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-bar-v627 {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: min(76dvh, 620px) !important;
    padding: 12px !important;
    overflow: auto !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(14px) !important;
    z-index: 2147483620 !important;
    border-radius: 20px !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-bar-v627.atg-filter-sheet-open-v890 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-search-row-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-search-row-v627 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-select-row-v627 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px 6px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-gutter: stable !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-field-v627 {
    flex: 0 0 min(52vw, 184px) !important;
    min-width: min(52vw, 184px) !important;
    max-width: min(52vw, 184px) !important;
  }

  body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-actions-v627,
  body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-actions-v627 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
}

/* V1120ZK final close control override: legacy inline dock CSS hides Hide* buttons. */
body.modern-v5 #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-actions-v627 #placesMapFilterHideV729,
body.tour-mode #atgPoiDockV1090 .atg-poi-layer-inline-filter-v1100 .restaurant-map-filter-actions-v627 #placesMapFilterHideV729 {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  align-items: center !important;
  justify-content: center !important;
}

body.modern-v5.wizard-onboarding-mode .country-card-media-fallback,
body.modern-v5.wizard-onboarding-mode .city-card-media-fallback {
  font-size: clamp(62px, 11vw, 132px);
}

body.modern-v5.wizard-onboarding-mode .entry-city-hero-media {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(250, 204, 21, .20), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(59, 130, 246, .24), transparent 30%),
    linear-gradient(135deg, #0a1225, #111827);
}

body.modern-v5.wizard-onboarding-mode .entry-city-hero-fallback {
  font-size: clamp(84px, 18vw, 180px);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy .intro-section-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-city-hero-copy .intro-sub {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-title {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-item-copy,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-bottom-note {
  color: rgba(226, 232, 240, .84) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, .84) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .entry-brief-icon {
  color: #facc15 !important;
  background: rgba(250, 204, 21, .12) !important;
  border-color: rgba(250, 204, 21, .30) !important;
}

/* FIX-APP-004: modern place spotlight. The legacy place-detail disclosure schema is no longer the marker-click surface. */
body.modern-v5 .modal-card.atg-place-spotlight-card-v1420 {
  width: min(760px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  background: #f8fafc !important;
  color: #111827 !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, .24) !important;
}

body.modern-v5.app-theme-dark .modal-card.atg-place-spotlight-card-v1420 {
  border-color: rgba(148, 163, 184, .22) !important;
  background: #101827 !important;
  color: #f8fafc !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42) !important;
}

body.modern-v5 .atg-place-spotlight-shell-v1420 {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  max-height: inherit !important;
  min-height: 0 !important;
}

body.modern-v5 .atg-place-spotlight-top-v1420 {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 18px 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
}

body.modern-v5 .atg-place-spotlight-heading-v1420 {
  min-width: 0 !important;
}

body.modern-v5 .atg-place-spotlight-category-v1420 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 6px !important;
  color: #475569 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-category-v1420 {
  color: #cbd5e1 !important;
}

body.modern-v5 .atg-place-spotlight-emojis-v1420 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

body.modern-v5 .atg-place-spotlight-heading-v1420 h3 {
  margin: 0 !important;
  color: inherit !important;
  font-size: clamp(22px, 3.2vw, 34px) !important;
  line-height: 1.02 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body.modern-v5 .atg-place-spotlight-heading-v1420 p {
  margin: 7px 0 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-heading-v1420 p {
  color: #cbd5e1 !important;
}

body.modern-v5 .atg-place-spotlight-close-v1420 {
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-close-v1420 {
  border-color: rgba(148, 163, 184, .26) !important;
  background: #172033 !important;
  color: #f8fafc !important;
}

body.modern-v5 .atg-place-spotlight-content-v1420 {
  display: grid !important;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 0 !important;
  overflow: auto !important;
}

body.modern-v5 .atg-place-spotlight-media-v1420 {
  position: relative !important;
  min-height: 320px !important;
  background: #111827 !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

body.modern-v5 .atg-place-spotlight-media-v1420 img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.modern-v5 .atg-place-spotlight-media-missing-v1420 {
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  color: #e5e7eb !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

body.modern-v5 .atg-place-spotlight-body-v1420 {
  display: flex !important;
  flex-direction: column !important;
  gap: 13px !important;
  min-width: 0 !important;
  padding: 18px !important;
}

body.modern-v5 .atg-place-spotlight-facts-v1420 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

body.modern-v5 .atg-place-spotlight-fact-v1420 {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-fact-v1420 {
  border-color: rgba(148, 163, 184, .22) !important;
  background: #172033 !important;
  color: #e2e8f0 !important;
}

body.modern-v5 .atg-place-spotlight-summary-v1420,
body.modern-v5 .atg-place-spotlight-note-v1420 {
  margin: 0 !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

body.modern-v5 .atg-place-spotlight-note-v1420 {
  color: #475569 !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-summary-v1420 {
  color: #f8fafc !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-note-v1420 {
  color: #cbd5e1 !important;
}

body.modern-v5 .atg-place-spotlight-actions-v1420 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: auto !important;
}

body.modern-v5 .atg-place-spotlight-actions-v1420 .btn {
  min-width: 0 !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

body.modern-v5 .atg-place-spotlight-primary-v1420 {
  grid-column: 1 / -1 !important;
  border: 1px solid #b7791f !important;
  background: #d97706 !important;
  color: #ffffff !important;
}

body.modern-v5 .atg-place-spotlight-secondary-v1420 {
  border: 1px solid rgba(148, 163, 184, .32) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

body.modern-v5.app-theme-dark .atg-place-spotlight-secondary-v1420 {
  border-color: rgba(148, 163, 184, .24) !important;
  background: #172033 !important;
  color: #f8fafc !important;
}

body.modern-v5 .atg-place-spotlight-card-v1420 .app-inline-theme-dock,
body.modern-v5 .atg-place-spotlight-card-v1420 [data-theme-dock-group] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  body.modern-v5 .modal-card.atg-place-spotlight-card-v1420 {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  body.modern-v5 .atg-place-spotlight-top-v1420 {
    padding: 13px 14px 10px !important;
  }

  body.modern-v5 .atg-place-spotlight-heading-v1420 h3 {
    font-size: 23px !important;
    line-height: 1.04 !important;
  }

  body.modern-v5 .atg-place-spotlight-content-v1420 {
    grid-template-columns: 1fr !important;
  }

  body.modern-v5 .atg-place-spotlight-media-v1420,
  body.modern-v5 .atg-place-spotlight-media-v1420 img {
    min-height: 190px !important;
    height: 190px !important;
  }

  body.modern-v5 .atg-place-spotlight-body-v1420 {
    padding: 14px !important;
  }

  body.modern-v5 .atg-place-spotlight-actions-v1420 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== V043 NO-GREY MAP + STABLE EXTERNAL CARDS ===== */
#map,
#map.leaflet-container,
#map .leaflet-container,
#map .leaflet-pane,
#map .leaflet-map-pane,
#map .leaflet-tile-pane,
body.tour-mode .leaflet-container {
  background: #f2eee6 !important;
}

#map .leaflet-tile,
#map .leaflet-tile-loaded,
.leaflet-tile.atg-primary-base-tile-v043 {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  background: #f2eee6 !important;
}

#map .leaflet-tile-container,
#map .leaflet-zoom-animated,
#map .leaflet-zoom-hide {
  transition: none !important;
}

body.modern-v5 .atg-external-card-overlay-v043,
body.modern-v5 .atg-external-card-overlay-v043 > .atg-external-card-overlay-inner-v977,
body.modern-v5 .atg-external-card-overlay-v043 > .atg-external-card-overlay-inner-v978,
body.modern-v5 .atg-external-card-overlay-v043 > .atg-external-card-overlay-inner-v979 {
  will-change: auto !important;
  transition: opacity .08s linear !important;
}

body.modern-v5 .atg-external-card-overlay-v043[data-atg-external-card-stable-lock-v043="locked"] {
  transform-origin: top left !important;
}

body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596,
body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659 {
  width: min(386px, calc(100vw - 34px)) !important;
  min-width: min(324px, calc(100vw - 34px)) !important;
  max-width: min(386px, calc(100vw - 34px)) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-photo-v603 {
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 226, 163, .08), transparent 44%),
    #101010 !important;
  overflow: hidden !important;
}

body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-photo-v603 img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #101010 !important;
}

@media (max-width: 760px) {
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596,
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659 {
    width: min(292px, calc(100vw - 24px)) !important;
    min-width: min(252px, calc(100vw - 24px)) !important;
    max-width: min(292px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - max(126px, calc(env(safe-area-inset-top, 0px) + 126px)) - 18px) !important;
    padding: 8px !important;
  }

  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-photo-v603 {
    height: 218px !important;
    min-height: 218px !important;
    max-height: 218px !important;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-photo-v603 {
    height: 184px !important;
    min-height: 184px !important;
    max-height: 184px !important;
  }
}
/* ===== END V043 NO-GREY MAP + STABLE EXTERNAL CARDS ===== */

/* ===== V044 PLACE DETAIL MODAL OWNS MAP HOVER ===== */
body.atg-place-detail-open-v645 .modal-layer:not(.hidden),
body.atg-place-detail-open-v645 #modalLayer:not(.hidden) {
  z-index: 2147483640 !important;
  pointer-events: auto !important;
}

body.atg-place-detail-open-v645 #map .leaflet-marker-pane,
body.atg-place-detail-open-v645 #map .leaflet-popup-pane,
body.atg-place-detail-open-v645 #map .leaflet-tooltip-pane,
body.atg-place-detail-open-v645 #map .leaflet-marker-icon,
body.atg-place-detail-open-v645 #map .rome-map-point,
body.atg-place-detail-open-v645 #map .rome-map-point-shell {
  pointer-events: none !important;
}

body.atg-place-detail-open-v645 [data-atg-external-card-overlay-v970="1"],
body.atg-place-detail-open-v645 .leaflet-popup.atg-rome-marker-hover-popup-v645,
body.atg-place-detail-open-v645 .leaflet-popup.atg-foodsocial-hover-popup-v645,
body.atg-place-detail-open-v645 .atg-rome-marker-hover-preview-v596,
body.atg-place-detail-open-v645 .atg-foodsocial-hover-preview-v647 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* ===== END V044 PLACE DETAIL MODAL OWNS MAP HOVER ===== */

/* ===== V045 LARGER EXTERNAL PLACE CARDS + FULL IMAGE VIEW ===== */
body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651),
body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) {
  width: min(468px, calc(100vw - 34px)) !important;
  min-width: min(392px, calc(100vw - 34px)) !important;
  max-width: min(468px, calc(100vw - 34px)) !important;
}

body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603,
body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603 {
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
}

body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603 img,
body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603 img {
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 760px) {
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651),
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) {
    width: min(360px, calc(100vw - 16px)) !important;
    min-width: min(318px, calc(100vw - 16px)) !important;
    max-width: min(360px, calc(100vw - 16px)) !important;
    max-height: calc(100dvh - max(112px, calc(env(safe-area-inset-top, 0px) + 112px)) - 10px) !important;
    padding: 9px !important;
  }

  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603 {
    height: 292px !important;
    min-height: 292px !important;
    max-height: 292px !important;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v596:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603,
  body.modern-v5 .atg-external-card-overlay-v043 .atg-rome-marker-hover-preview-v659:not(.atg-foodsocial-hover-preview-v647):not(.atg-foodsocial-hover-preview-v651) .atg-rome-marker-hover-photo-v603 {
    height: 238px !important;
    min-height: 238px !important;
    max-height: 238px !important;
  }
}
/* ===== END V045 LARGER EXTERNAL PLACE CARDS + FULL IMAGE VIEW ===== */
/* ===== V1117T BUILD TOUR THEME SYNC ===== */
body.atg-v1117t-build-tour-theme-sync.app-theme-dark #buildTourTray{
  color-scheme:dark!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray{
  color-scheme:light!important;
  --atg-v1117t-build-bg:#ffffff;
  --atg-v1117t-build-panel:#f8fafc;
  --atg-v1117t-build-panel-strong:#ffffff;
  --atg-v1117t-build-border:rgba(15,23,42,.12);
  --atg-v1117t-build-border-strong:rgba(180,127,36,.30);
  --atg-v1117t-build-text:#0f172a;
  --atg-v1117t-build-muted:#475569;
  --atg-v1117t-build-gold:#8a5a00;
  --atg-v1117t-build-gold-bg:#e7bd55;
  --atg-v1117t-build-shadow:0 14px 34px rgba(15,23,42,.14);
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray,
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-dashboard-shell,
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-dashboard-shell-v960{
  background:var(--atg-v1117t-build-bg)!important;
  border-color:var(--atg-v1117t-build-border)!important;
  color:var(--atg-v1117t-build-text)!important;
  box-shadow:var(--atg-v1117t-build-shadow)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-dashboard-head,
  .build-tour-tabs-v960,
  .build-tour-tab-panel-v960,
  .build-tour-dashboard-chip,
  .build-tour-dashboard-departure,
  .build-tour-dashboard-stop,
  .build-tour-dashboard-empty,
  .build-tour-dashboard-leg,
  .build-tour-unified-plan-card,
  .build-tour-plan-item,
  .build-tour-plan-suggestion,
  .build-tour-plan-line-v996,
  .build-tour-plan-line-v1058,
  .build-tour-plan-line-v1072,
  .build-tour-plan-token-v1058,
  .build-tour-plan-token-v1072,
  .build-tour-add-panel-v960,
  .build-tour-manual-search-v1004,
  .build-tour-preferences-search-v1021,
  .build-tour-add-row-v960,
  .build-tour-add-empty-v960,
  .build-tour-add-head-v960,
  .build-tour-add-filter-v960,
  .build-tour-optimize-panel-v960,
  .build-tour-optimize-card-v960,
  .build-tour-optimize-status-v960,
  .build-tour-active-layers-v987,
  .build-tour-summary-card-v567,
  .build-tour-plan-card-v567,
  .atg-unified-manual-search-v1033
){
  background:var(--atg-v1117t-build-panel)!important;
  border-color:var(--atg-v1117t-build-border)!important;
  color:var(--atg-v1117t-build-text)!important;
  box-shadow:none!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-dashboard-departure.is-set,
  .build-tour-dashboard-departure.is-missing,
  .build-tour-plan-item.is-food,
  .build-tour-plan-item.is-social,
  .build-tour-plan-item.is-nightlife,
  .build-tour-plan-item.is-park,
  .build-tour-add-row-v960:hover,
  .build-tour-add-filter-v960.is-active
){
  background:var(--atg-v1117t-build-panel-strong)!important;
  border-color:var(--atg-v1117t-build-border-strong)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-dashboard-title,
  .build-tour-dashboard-chip strong,
  .build-tour-dashboard-departure strong,
  .build-tour-dashboard-leg-value,
  .build-tour-plan-item-title,
  .build-tour-plan-item-title strong,
  .build-tour-plan-suggestions-title,
  .build-tour-add-row-title-v1018,
  .build-tour-add-row-main-v960 strong,
  .build-tour-add-head-v960 strong,
  .build-tour-optimize-card-v960 strong,
  .build-tour-optimize-status-v960 strong,
  .build-tour-summary-title,
  h1,h2,h3,h4,strong
){
  color:var(--atg-v1117t-build-text)!important;
  text-shadow:none!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-dashboard-note,
  .build-tour-dashboard-leg-label,
  .build-tour-plan-item-meta,
  .build-tour-plan-suggestion span,
  .build-tour-add-row-main-v960 em,
  .build-tour-add-head-v960 span,
  .build-tour-optimize-card-v960 span,
  .build-tour-optimize-status-v960 span,
  .build-tour-optimize-status-v960 em,
  .build-tour-summary-note,
  .build-tour-summary-copy,
  label,small,em,p
){
  color:var(--atg-v1117t-build-muted)!important;
  text-shadow:none!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-dashboard-chip span,
  .build-tour-dashboard-departure-label,
  .build-tour-preferences-head-v1021 span,
  .build-tour-plan-token-v1058 em,
  .build-tour-plan-token-v1072 em
){
  color:var(--atg-v1117t-build-gold)!important;
}

.build-tour-visit-mode-v1124qq{
  display:inline-grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  width:min(100%,280px);
  min-height:34px;
  margin-top:8px;
  padding:2px;
  border:1px solid rgba(148,163,184,.42);
  border-radius:6px;
  background:rgba(15,23,42,.06);
  box-sizing:border-box;
}
.build-tour-visit-mode-option-v1124qq{
  min-width:0;
  min-height:28px;
  padding:4px 8px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  cursor:pointer;
}
.build-tour-visit-mode-option-v1124qq span{
  display:block;
  margin-top:2px;
  font-size:10px;
  font-weight:600;
  color:currentColor;
  opacity:1;
}
.build-tour-visit-mode-option-v1124qq.is-active{
  background:#b47f24;
  color:#15120d;
  box-shadow:0 1px 3px rgba(15,23,42,.24);
}
body.app-theme-light .build-tour-visit-mode-v1124qq{
  background:#eef2f7;
  border-color:rgba(71,85,105,.28);
}
body.app-theme-dark .build-tour-visit-mode-v1124qq{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.18);
}
body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item:has(.build-tour-visit-mode-v1124qq){
  height:auto!important;
  min-height:112px!important;
}
@media (max-width:600px){
  .build-tour-visit-mode-v1124qq{
    width:100%;
  }
}
@media (pointer:coarse) and (max-width:1024px){
  .build-tour-visit-mode-v1124qq{
    min-height:48px;
  }
  .build-tour-visit-mode-option-v1124qq{
    min-height:44px;
    padding:6px 8px;
  }
}
@media (max-width:720px){
  body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item{
    height:auto!important;
    min-height:112px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    grid-auto-rows:max-content!important;
    align-items:start!important;
    row-gap:9px!important;
    overflow:visible!important;
  }
  body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item:has(.build-tour-visit-mode-v1124qq){
    min-height:180px!important;
  }
  body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item-body{
    min-width:0!important;
  }
  body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item-title{
    align-items:flex-start!important;
  }
  body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item-title strong{
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.modern-v5 .build-tour-summary-plan-items-v657 .build-tour-plan-item-actions{
    position:static!important;
    grid-column:2!important;
    grid-row:auto!important;
    justify-content:flex-start!important;
    align-self:start!important;
  }
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-tab-v960,
  .build-tour-dashboard-btn,
  .build-tour-dashboard-hide,
  .build-tour-dashboard-close,
  .build-tour-add-row-btn-v960,
  .build-tour-add-search-v960 button,
  .build-tour-suggest-rule-btn,
  .build-tour-suggest-rule-state,
  .build-tour-suggest-rule-activate,
  button
){
  background:var(--atg-v1117t-build-panel-strong)!important;
  border:1px solid var(--atg-v1117t-build-border)!important;
  color:var(--atg-v1117t-build-text)!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  .build-tour-tab-v960.is-active,
  .build-tour-tab-v960[aria-selected="true"],
  .build-tour-dashboard-edit,
  .build-tour-add-row-btn-v960,
  .build-tour-add-search-v960 button:hover,
  .build-tour-dashboard-btn:hover
){
  background:var(--atg-v1117t-build-gold-bg)!important;
  border-color:rgba(138,90,0,.30)!important;
  color:#111827!important;
  box-shadow:0 12px 26px rgba(180,127,36,.24),inset 0 1px 0 rgba(255,255,255,.65)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-dashboard-btn-danger{
  color:#7f1d1d!important;
  border-color:rgba(185,28,28,.22)!important;
  background:linear-gradient(180deg,#fff7f7,#feecec)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(
  input,
  select,
  textarea,
  .build-tour-add-search-v960 input,
  .build-tour-suggest-search,
  .build-tour-suggest-number,
  .build-tour-suggest-select,
  .build-tour-time-field input[type="date"],
  .build-tour-time-field input[type="time"],
  .atg-unified-manual-search-row-v1033 input,
  .atg-unified-manual-select-v1033
){
  background:#ffffff!important;
  border-color:rgba(15,23,42,.14)!important;
  color:var(--atg-v1117t-build-text)!important;
  box-shadow:inset 0 1px 0 rgba(15,23,42,.04),0 0 0 1px rgba(255,255,255,.70)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray :where(input,textarea)::placeholder{
  color:rgba(71,85,105,.72)!important;
  -webkit-text-fill-color:rgba(71,85,105,.72)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-add-row-icon-v960,
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-dashboard-stop-order,
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-plan-item-order{
  background:#0f172a!important;
  color:#ffffff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.18)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray .build-tour-add-row-deal-v1008{
  color:#7a4b10!important;
  background:rgba(245,158,11,.14)!important;
  border-color:rgba(180,127,36,.22)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray *{
  scrollbar-color:rgba(180,127,36,.55) rgba(15,23,42,.08)!important;
}
body.atg-v1117t-build-tour-theme-sync.app-theme-light #buildTourTray ::selection{
  background:rgba(245,158,11,.28)!important;
  color:#0f172a!important;
}
/* ===== END V1117T BUILD TOUR THEME SYNC ===== */

/* ===== V1117V BUILD TOUR TRAY MAP PRESERVE ===== */
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray,
body.atg-v1117t-build-tour-theme-sync.atg-v1117v-build-tour-tray-map-preserve #buildTourTray,
body.atg-v1117t-build-tour-theme-sync.atg-v1117v-build-tour-tray-map-preserve.app-theme-light #buildTourTray,
body.atg-v1117t-build-tour-theme-sync.atg-v1117v-build-tour-tray-map-preserve.app-theme-dark #buildTourTray{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:0!important;
  pointer-events:none!important;
  overflow:visible!important;
  transition:none!important;
  animation:none!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell,
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960{
  pointer-events:auto!important;
  contain:layout paint style!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;
  transition:none!important;
  animation:none!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-quick-v1129a{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
  min-height:0!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-toolbar-v1129a{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
  min-height:34px!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-toolbar-v1129a > strong{
  color:rgba(255,226,163,.82)!important;
  font-size:11px!important;
  line-height:1.1!important;
  letter-spacing:0!important;
}
body.atg-v1117t-build-tour-theme-sync.atg-v1117v-build-tour-tray-map-preserve.app-theme-light #buildTourTray .build-tour-dashboard-stop-toolbar-v1129a > strong{
  color:#7c4d08!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-toolbar-v1129a .build-tour-clear-inline-v996{
  min-height:44px!important;
  padding:6px 10px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop{
  grid-column:1!important;
  grid-row:1!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-remove{
  grid-column:2!important;
  grid-row:1!important;
}
body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray.hidden{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.atg-v1117v-build-tour-tray-map-preserve.atg-build-tour-tray-open-v871 .map-fab-row,
body.atg-v1117v-build-tour-tray-map-preserve.atg-build-tour-tray-open-v871 .map-fab-row .map-fab-group,
body.atg-v1117v-build-tour-tray-map-preserve.atg-build-tour-tray-open-v871 .map-fab-row .map-fab-anchor{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media (min-width:761px){
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray:not(.hidden){
    left:0!important;
    right:0!important;
    top:auto!important;
    bottom:max(14px,env(safe-area-inset-bottom,0px))!important;
    width:100vw!important;
    max-width:none!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    margin:0!important;
    min-height:0!important;
    box-sizing:border-box!important;
  }
  @supports (width:100dvw){
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray:not(.hidden){
      width:100dvw!important;
    }
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960{
    width:min(760px,calc(100vw - 48px))!important;
    max-width:min(760px,calc(100vw - 48px))!important;
    max-height:min(58dvh,560px)!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
  }
}
@media (max-width:760px), (max-height:430px) and (max-width:900px), (pointer:coarse) and (max-width:1024px){
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray:not(.hidden){
    left:0!important;
    right:0!important;
    top:auto!important;
    bottom:0!important;
    width:100vw!important;
    max-width:100vw!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    margin:0!important;
    min-height:0!important;
    padding:0 max(6px,env(safe-area-inset-right,0px)) max(4px,env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px))!important;
    box-sizing:border-box!important;
  }
  @supports (width:100dvw){
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray:not(.hidden){
      width:100dvw!important;
      max-width:100dvw!important;
    }
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960{
    width:100%!important;
    max-width:calc(100vw - 12px)!important;
    height:auto!important;
    max-height:min(50dvh,400px)!important;
    padding:8px!important;
    gap:7px!important;
    border-radius:16px 16px 0 0!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960[data-build-tour-active-tab-v960="tour"]{
    height:min(50dvh,400px)!important;
    max-height:min(50dvh,400px)!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto!important;
    grid-template-areas:
      "head"
      "tabs"
      "departure"
      "plan"
      "metrics"
      "last"
      "stops"!important;
    align-items:stretch!important;
    overflow-y:auto!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]){
    display:grid!important;
    height:min(40dvh,340px)!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto minmax(0,1fr)!important;
    grid-template-areas:
      "head"
      "tabs"
      "panel"!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-dashboard-head,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-tabs-v960{
    position:relative!important;
    inset:auto!important;
    z-index:2!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-tab-panel-v960,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-add-panel-v960{
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) > .build-tour-tab-panel-v960{
    grid-area:panel!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-add-panel-v960{
    display:flex!important;
    flex-direction:column!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-add-results-v960{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  @media (max-height:600px){
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960:not([data-build-tour-active-tab-v960="tour"]) .build-tour-add-panel-v960{
      gap:4px!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-manual-search-v1004{
      gap:4px!important;
      padding:5px!important;
      border-radius:10px!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-manual-search-v1004 label{
      flex-direction:row!important;
      align-items:center!important;
      gap:4px!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-manual-search-v1004 label span{
      font-size:9.5px!important;
      line-height:1!important;
      letter-spacing:0!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-manual-search-v1004 label em{
      display:none!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-add-search-v960{
      gap:4px!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-add-panel-v1021 .build-tour-add-search-v960 input,
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-add-panel-v1021 .build-tour-add-search-v960 button{
      height:34px!important;
      min-height:34px!important;
      max-height:34px!important;
      border-radius:10px!important;
      padding-top:4px!important;
      padding-bottom:4px!important;
      font-size:11px!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-research-count-v1003{
      min-height:14px!important;
      padding:0 2px!important;
      font-size:9.5px!important;
      line-height:1!important;
    }
  }
  @supports (height:100svh){
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960{
      max-height:min(50svh,400px)!important;
    }
    body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-shell-v960[data-build-tour-active-tab-v960="tour"]{
      height:min(50svh,400px)!important;
      max-height:min(50svh,400px)!important;
    }
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-head{
    grid-area:head!important;
    position:relative!important;
    inset:auto!important;
    gap:4px!important;
    align-items:center!important;
    margin:0!important;
    min-height:38px!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-copy{
    flex:1 1 auto!important;
    min-width:0!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-title{
    font-size:13px!important;
    line-height:1.05!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-note{
    display:none!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-head-actions{
    gap:4px!important;
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:none!important;
    margin-left:4px!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray #buildTourTrayEditBtn{
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
    height:auto!important;
    min-height:36px!important;
    max-height:none!important;
    padding:5px 7px!important;
    font-size:10px!important;
    line-height:1.12!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-hide,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-close{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    padding:0!important;
    font-size:18px!important;
    line-height:1!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tabs-v960{
    grid-area:tabs!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    gap:5px!important;
    padding:1px 3px!important;
    margin:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:none!important;
    scrollbar-width:none!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tabs-v960::-webkit-scrollbar{display:none!important;}
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960{
    flex:0 0 auto!important;
    min-width:112px!important;
    min-height:36px!important;
    padding:6px!important;
    gap:4px!important;
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:visible!important;
    scroll-snap-align:start!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960 *{
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960 > span{
    display:inline!important;min-width:0!important;height:auto!important;margin-right:3px!important;border:0!important;border-radius:0!important;font-size:14px!important;font-weight:700!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960[data-build-tour-tab-v960="add_places"]{
    min-width:156px!important;
    min-height:36px!important;
    padding:6px!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960[data-build-tour-tab-v960="add_places"] > span{
    display:inline!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960[data-build-tour-tab-v960="add_places"] strong{
    display:inline!important;
    min-width:0!important;
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:left!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-departure{
    grid-area:departure!important;
    min-height:36px!important;
    padding:5px 8px!important;
    gap:3px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-departure-label{
    display:none!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-departure strong{
    width:100%!important;
    font-size:10px!important;
    line-height:1.1!important;
    letter-spacing:0!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:center!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072.build-tour-plan-line-v1058,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-unified-plan-card.build-tour-plan-line-v1072{
    grid-area:plan!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:4px!important;
    width:100%!important;
    max-width:100%!important;
    min-height:34px!important;
    max-height:none!important;
    padding:5px 7px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-label{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    font-size:9px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value::-webkit-scrollbar{
    display:none!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value strong{
    display:inline-flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:max-content!important;
    min-width:100%!important;
    max-width:none!important;
    white-space:nowrap!important;
    overflow:visible!important;
    line-height:1!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1072,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1058{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    min-width:auto!important;
    max-width:none!important;
    min-height:20px!important;
    max-height:22px!important;
    padding:2px 5px!important;
    gap:2px!important;
    font-size:9px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1072 em,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1058 em{
    font-size:9px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-metrics{
    grid-area:metrics!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;
    margin:0!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-chip{
    min-height:40px!important;
    padding:4px 5px!important;
    gap:2px!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-chip span{
    font-size:7.6px!important;
    line-height:1.04!important;
    letter-spacing:0!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:center!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-chip strong{
    font-size:9px!important;
    line-height:1!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-last-row-v996{
    grid-area:last!important;
    min-height:36px!important;
    padding:5px 7px!important;
    gap:4px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-last-row-v996 .build-tour-dashboard-leg-label{
    display:none!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-last-row-v996 .build-tour-dashboard-leg-value{
    font-size:9px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-clear-inline-v996{
    min-height:36px!important;
    min-width:70px!important;
    padding:5px 7px!important;
    font-size:9px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stops{
    margin:0!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    touch-action:pan-x!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-empty{
    min-height:36px!important;
    padding:6px 7px!important;
    font-size:9px!important;
    line-height:1.1!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-strip{
    min-height:42px!important;
    gap:5px!important;
    padding:4px 2px!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-shell{
    display:grid!important;
    grid-template-columns:32px 30px!important;
    grid-template-rows:32px!important;
    gap:4px!important;
    width:68px!important;
    min-width:68px!important;
    min-height:36px!important;
    padding:2px 2px 0!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop{
    grid-column:1!important;
    grid-row:1!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-order,
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-number{
    font-size:8.5px!important;
    line-height:1!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-stop-remove{
    grid-column:2!important;
    grid-row:1!important;
    right:-2px!important;
    top:-2px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    transform:none!important;
    font-size:13px!important;
  }
}
@media (max-width:360px){
  /* Keep the manual-tour heading readable when its fixed action controls share the row. */
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-dashboard-title{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tabs-v960{
    gap:5px!important;
    padding:1px 3px!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960{
    min-width:112px!important;
    min-height:36px!important;
    padding:6px!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960 > span{
    display:inline!important;
  }
  body.atg-v1117v-build-tour-tray-map-preserve #buildTourTray .build-tour-tab-v960 strong{
    display:inline!important;
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-align:left!important;
  }
}
/* ===== END V1117V BUILD TOUR TRAY MAP PRESERVE ===== */

/* ===== V1117W INSTANT PLACE CARD + LIVE MINI TOUR ===== */
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-map-popup-v1117w{
  position:fixed!important;
  top:max(12px,env(safe-area-inset-top,0px))!important;
  left:max(12px,env(safe-area-inset-left,0px))!important;
  width:min(300px,calc(100vw - 24px))!important;
  z-index:2147483635!important;
  pointer-events:auto!important;
  box-sizing:border-box!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-map-popup-v1117w.hidden{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-shell-v1117w{
  pointer-events:auto!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:11px!important;
  border-radius:8px!important;
  border:1px solid rgba(235,193,88,.54)!important;
  border-left:4px solid #e8b944!important;
  background:linear-gradient(150deg,rgba(13,20,36,.985),rgba(25,35,55,.975))!important;
  color:#f8fafc!important;
  box-shadow:0 18px 44px rgba(2,6,23,.34),0 0 0 1px rgba(255,255,255,.04) inset!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-head-v1117w{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-icon-v1117w{
  position:relative!important;
  width:36px!important;
  height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px!important;
  border:1px solid rgba(255,226,151,.72)!important;
  background:linear-gradient(145deg,#f9df91,#d9a12f)!important;
  color:#111827!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68),0 6px 14px rgba(180,127,36,.22)!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-route-v1124pb{
  position:relative!important;
  width:20px!important;
  height:12px!important;
  display:block!important;
  border-top:2px solid #182033!important;
  transform:rotate(-18deg)!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-route-v1124pb::before,
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-route-v1124pb::after{
  content:""!important;
  position:absolute!important;
  top:-5px!important;
  width:7px!important;
  height:7px!important;
  border-radius:50%!important;
  background:#182033!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.58)!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-route-v1124pb::before{left:-2px!important;}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-route-v1124pb::after{right:-2px!important;}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-copy-v1117w{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  gap:2px!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-copy-v1117w strong{
  display:block!important;
  min-width:0!important;
  font-size:14px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-copy-v1117w span{
  display:block!important;
  min-width:0!important;
  font-size:11.5px!important;
  line-height:1.15!important;
  color:rgba(226,232,240,.84)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-open-v1117w{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:32px!important;
  min-width:66px!important;
  padding:7px 11px!important;
  border-radius:6px!important;
  border:1px solid rgba(250,204,21,.55)!important;
  background:linear-gradient(135deg,#f9d36a,#d89e2f)!important;
  color:#111827!important;
  font-size:11.5px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:0!important;
  cursor:pointer!important;
  box-shadow:0 8px 18px rgba(180,127,36,.22)!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-close-v1117w{
  width:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:6px!important;
  border:1px solid rgba(255,255,255,.20)!important;
  background:rgba(255,255,255,.08)!important;
  color:inherit!important;
  font-size:20px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-close-v1117w:hover{
  background:rgba(255,255,255,.16)!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-detail-v1117w{
  margin-top:8px!important;
  padding:7px 9px!important;
  border-radius:6px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.065)!important;
  color:rgba(248,250,252,.92)!important;
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:700!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-sizing:border-box!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour.app-theme-light .build-tour-mini-shell-v1117w{
  background:linear-gradient(150deg,rgba(255,255,255,.99),rgba(249,250,252,.985))!important;
  color:#111827!important;
  border-color:rgba(213,166,58,.44)!important;
  box-shadow:0 18px 44px rgba(15,23,42,.18),0 0 0 1px rgba(255,255,255,.8) inset!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour.app-theme-light .build-tour-mini-copy-v1117w span{
  color:#475569!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour.app-theme-light .build-tour-mini-detail-v1117w{
  background:rgba(245,158,11,.12)!important;
  color:#334155!important;
}
body.atg-v1117w-instant-place-card-live-mini-tour.app-theme-light .build-tour-mini-close-v1117w{
  border-color:rgba(15,23,42,.14)!important;
  background:rgba(15,23,42,.045)!important;
}
@media (max-width:760px){
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-map-popup-v1117w{
    top:max(70px,calc(env(safe-area-inset-top,0px) + 10px))!important;
    left:max(10px,calc(env(safe-area-inset-left,0px) + 10px))!important;
    width:min(264px,calc(100vw - 20px))!important;
  }
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-shell-v1117w{
    padding:8px!important;
    border-radius:8px!important;
  }
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-icon-v1117w{
    width:30px!important;
    height:30px!important;
    border-radius:6px!important;
  }
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-copy-v1117w strong{
    font-size:12px!important;
  }
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-copy-v1117w span,
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-detail-v1117w{
    font-size:10.5px!important;
  }
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-open-v1117w{
    min-height:30px!important;
    min-width:48px!important;
    padding:6px 8px!important;
    font-size:11px!important;
  }
  body.atg-v1117w-instant-place-card-live-mini-tour .build-tour-mini-close-v1117w{
    width:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    font-size:18px!important;
  }
}
/* ===== END V1117W INSTANT PLACE CARD + LIVE MINI TOUR ===== */

/* ===== V1124J TRIAL STEP 6 MINI TOUR PLACEMENT ===== */
body.city-reveal-roma-final-trial-active-v1123.atg-v1124j-place-popups-with-dock .build-tour-mini-map-popup-v1117w{
  top:300px!important;
  left:18px!important;
  width:min(340px,calc(100vw - 36px))!important;
  z-index:2147482990!important;
}
@media (max-width:760px){
  body.city-reveal-roma-final-trial-active-v1123.atg-v1124j-place-popups-with-dock .build-tour-mini-map-popup-v1117w{
    top:max(66px,calc(env(safe-area-inset-top,0px) + 10px))!important;
    left:10px!important;
    width:min(320px,calc(100vw - 20px))!important;
    z-index:2147483000!important;
  }
}
/* ===== END V1124J TRIAL STEP 6 MINI TOUR PLACEMENT ===== */

/* ===== V1117Z DESKTOP BUILD TOUR PLAN SINGLE ROW ===== */
@media (min-width:761px){
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072,
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072.build-tour-plan-line-v1058,
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-unified-plan-card.build-tour-plan-line-v1072{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:7px!important;
    width:100%!important;
    max-width:100%!important;
    min-height:34px!important;
    max-height:42px!important;
    padding:5px 9px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-label{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    font-size:11px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value::-webkit-scrollbar{
    display:none!important;
  }
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-dashboard-leg-value strong{
    display:inline-flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:max-content!important;
    min-width:100%!important;
    max-width:none!important;
    white-space:nowrap!important;
    overflow:visible!important;
    line-height:1!important;
  }
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1072,
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1058{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:auto!important;
    max-width:none!important;
    min-height:22px!important;
    max-height:24px!important;
    padding:2px 6px!important;
    gap:2px!important;
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    box-sizing:border-box!important;
  }
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1072 em,
  body.atg-v1117z-desktop-tour-plan-single-row #buildTourTray .build-tour-plan-line-v1072 .build-tour-plan-token-v1058 em{
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
}
/* ===== END V1117Z DESKTOP BUILD TOUR PLAN SINGLE ROW ===== */

/* ===== V1118B MOBILE OPTIMIZE TOUR SCROLL FIX ===== */
body.atg-v1118b-mobile-optimize-scroll-fix #modalLayer.build-tour-suggest-layer-v1118b:not(.hidden),
body.atg-v1118b-mobile-optimize-scroll-fix .modal-layer.build-tour-suggest-layer-v1118b:not(.hidden) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
}

body.atg-v1118b-mobile-optimize-scroll-fix #modalLayer.build-tour-suggest-layer-v1118b:not(.hidden) > .modal-card.build-tour-suggest-modal,
body.atg-v1118b-mobile-optimize-scroll-fix .modal-layer.build-tour-suggest-layer-v1118b:not(.hidden) > .modal-card.build-tour-suggest-modal {
  display: flex !important;
  flex-direction: column !important;
  width: min(920px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable both-edges !important;
}

body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal #buildTourSuggestMount {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-shell {
  overflow: visible !important;
  max-height: none !important;
}

body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-section-panel {
  max-height: none !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scrollbar-gutter: auto !important;
}

body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .atg-v437-settings-list,
body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .atg-optimize-experience-list-v1038 {
  max-height: none !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 12 !important;
  margin-top: 14px !important;
  background: linear-gradient(180deg, rgba(12,18,48,0), rgba(12,18,48,.96) 24%, rgba(12,18,48,.99)) !important;
}

body.atg-v1118b-mobile-optimize-scroll-fix.app-theme-light .modal-card.build-tour-suggest-modal .build-tour-suggest-actions {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 24%, rgba(255,255,255,.99)) !important;
}

@media (max-width: 760px), (orientation: portrait) {
  body.atg-v1118b-mobile-optimize-scroll-fix #modalLayer.build-tour-suggest-layer-v1118b:not(.hidden),
  body.atg-v1118b-mobile-optimize-scroll-fix .modal-layer.build-tour-suggest-layer-v1118b:not(.hidden) {
    align-items: stretch !important;
    padding: 8px !important;
  }

  body.atg-v1118b-mobile-optimize-scroll-fix #modalLayer.build-tour-suggest-layer-v1118b:not(.hidden) > .modal-card.build-tour-suggest-modal,
  body.atg-v1118b-mobile-optimize-scroll-fix .modal-layer.build-tour-suggest-layer-v1118b:not(.hidden) > .modal-card.build-tour-suggest-modal {
    position: relative !important;
    inset: auto !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    margin: 0 auto !important;
    border-radius: 22px !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px 0 !important;
  }

  body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-head-surface,
  body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-shell {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-shell {
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-section-panel {
    padding: 12px !important;
    border-radius: 8px !important;
  }

  body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .build-tour-suggest-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }
}
/* ===== END V1118B MOBILE OPTIMIZE TOUR SCROLL FIX ===== */

/* ===== V1118K OPTIMIZE ROUTE FOOTER BACK TO MAP ===== */
body.atg-v1118k-optimize-back-to-map-footer .modal-card.build-tour-suggest-modal .build-tour-suggest-actions-v1118k {
  position: relative !important;
  bottom: auto !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 14px 22px 22px !important;
  background: linear-gradient(180deg, rgba(12,18,48,0), rgba(12,18,48,.96) 24%, rgba(12,18,48,.995) 100%) !important;
  background-image: linear-gradient(180deg, rgba(12,18,48,0), rgba(12,18,48,.96) 24%, rgba(12,18,48,.995) 100%) !important;
  box-shadow: 0 -16px 28px rgba(2,6,23,.16) !important;
  box-sizing: border-box !important;
}

body.atg-v1118k-optimize-back-to-map-footer.app-theme-light .modal-card.build-tour-suggest-modal .build-tour-suggest-actions-v1118k {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 24%, rgba(255,255,255,.995) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 24%, rgba(255,255,255,.995) 100%) !important;
  box-shadow: 0 -16px 28px rgba(15,23,42,.08) !important;
}

body.atg-v1118k-optimize-back-to-map-footer .modal-card.build-tour-suggest-modal .build-tour-suggest-actions-v1118k .btn {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  justify-content: center !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
}

body.atg-v1118k-optimize-back-to-map-footer .modal-card.build-tour-suggest-modal .build-tour-suggest-actions-v1118k .build-tour-suggest-map-btn-v1118k {
  border-radius: 999px !important;
  font-weight: 950 !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.atg-v1118k-optimize-back-to-map-footer .modal-card.build-tour-suggest-modal .build-tour-suggest-actions .app-modal-nav-control:not(.app-nav-source-hidden) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 54px !important;
  justify-content: center !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-sizing: border-box !important;
}

@media (max-width: 760px), (orientation: portrait) {
  body.atg-v1118k-optimize-back-to-map-footer .modal-card.build-tour-suggest-modal .build-tour-suggest-actions-v1118k {
    gap: 10px !important;
    padding: 12px 6px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 12px !important;
  }
}
/* ===== END V1118K OPTIMIZE ROUTE FOOTER BACK TO MAP ===== */

/* ===== V1118L KID DISCLOSURE + INTERNAL MODAL ISOLATION ===== */
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l #atgPoiDockV1090,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l [data-atg-poi-dock-v1090],
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l .atg-poi-dock-v1090,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l #buildTourTray,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l #buildTourTrayToggle,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l #buildTourMiniMapPopupV1117W,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l .build-tour-tray,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.atg-internal-detail-modal-open-v1118l .build-tour-tray-toggle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.atg-v1118l-kid-disclosure-internal-modal-isolation .modal-card-place-detail .atg-kid-version-disclosure-v1118h,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.app-theme-light .modal-card-place-detail .atg-kid-version-disclosure-v1118h,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.app-theme-dark .modal-card-place-detail .atg-kid-version-disclosure-v1118h {
  border-radius: 18px !important;
  margin: 0 0 12px !important;
}

body.atg-v1118l-kid-disclosure-internal-modal-isolation .modal-card-place-detail .atg-kid-version-disclosure-v1118h summary,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.app-theme-light .modal-card-place-detail .atg-kid-version-disclosure-v1118h summary,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.app-theme-dark .modal-card-place-detail .atg-kid-version-disclosure-v1118h summary {
  min-height: 48px !important;
  padding: 13px 16px !important;
  font-size: 13px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}

body.atg-v1118l-kid-disclosure-internal-modal-isolation .modal-card-place-detail .atg-kid-version-disclosure-v1118h .atg-kid-version-text-v1118h,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.app-theme-light .modal-card-place-detail .atg-kid-version-disclosure-v1118h .atg-kid-version-text-v1118h,
body.atg-v1118l-kid-disclosure-internal-modal-isolation.app-theme-dark .modal-card-place-detail .atg-kid-version-disclosure-v1118h .atg-kid-version-text-v1118h {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
  font-weight: inherit !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
/* ===== END V1118L KID DISCLOSURE + INTERNAL MODAL ISOLATION ===== */

/* ===== V1118N ACCESS + METADATA GUARDRAILS ===== */
body.atg-v1118n-access-metadata-guardrails .modal-card-place-detail .atg-deep-dive-locked-v1118n,
body.atg-v1118o-premium-content-public-strip .modal-card-place-detail .atg-deep-dive-backend-required-v1118o,
body.atg-v1118p-premium-backend-gate .modal-card-place-detail .atg-deep-dive-backend-required-v1118o,
body.atg-v1118n-access-metadata-guardrails.app-theme-light .modal-card-place-detail .atg-deep-dive-locked-v1118n,
body.atg-v1118o-premium-content-public-strip.app-theme-light .modal-card-place-detail .atg-deep-dive-backend-required-v1118o,
body.atg-v1118p-premium-backend-gate.app-theme-light .modal-card-place-detail .atg-deep-dive-backend-required-v1118o,
body.atg-v1118n-access-metadata-guardrails.app-theme-dark .modal-card-place-detail .atg-deep-dive-locked-v1118n,
body.atg-v1118o-premium-content-public-strip.app-theme-dark .modal-card-place-detail .atg-deep-dive-backend-required-v1118o,
body.atg-v1118p-premium-backend-gate.app-theme-dark .modal-card-place-detail .atg-deep-dive-backend-required-v1118o {
  border-color: rgba(216, 166, 58, 0.38) !important;
}

body.atg-v1118n-access-metadata-guardrails .modal-card-place-detail .atg-deep-dive-locked-v1118n summary,
body.atg-v1118o-premium-content-public-strip .modal-card-place-detail .atg-deep-dive-backend-required-v1118o summary,
body.atg-v1118p-premium-backend-gate .modal-card-place-detail .atg-deep-dive-backend-required-v1118o summary {
  align-items: center !important;
  gap: 10px !important;
}

body.atg-v1118n-access-metadata-guardrails .modal-card-place-detail .atg-premium-pill-v1118n,
body.atg-v1118p-premium-backend-gate .modal-card-place-detail .atg-premium-pill-v1118n {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 24px !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(216, 166, 58, 0.38) !important;
  border-radius: 999px !important;
  background: rgba(242, 190, 72, 0.16) !important;
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: none !important;
}

body.atg-v1118n-access-metadata-guardrails .modal-card-place-detail .atg-premium-lock-copy-v1118n,
body.atg-v1118p-premium-backend-gate .modal-card-place-detail .atg-premium-lock-copy-v1118n {
  margin-bottom: 12px !important;
}

body.atg-v1118n-access-metadata-guardrails .modal-card-place-detail .atg-premium-lock-btn-v1118n {
  width: 100% !important;
  justify-content: center !important;
}

body.atg-v1118p-premium-backend-gate .modal-card-place-detail .atg-deep-dive-secure-loaded-v1118p {
  border-color: rgba(27, 122, 75, 0.38) !important;
}

body.atg-v1118p-premium-backend-gate .modal-card-place-detail .atg-premium-secure-text-v1118p {
  margin: 0 !important;
}
/* ===== END V1118N ACCESS + METADATA GUARDRAILS ===== */

/* V1120ZQ: hard boot mask until the real language menu grid is mounted. */
html.city-reveal-language-menu-boot-v1120zq,
html.city-reveal-language-menu-boot-v1120zq body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden !important;
  background: #020611 !important;
}

html.city-reveal-language-menu-boot-v1120zq body > * {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.city-reveal-language-menu-boot-v1120zq body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: block !important;
  background: #020611 !important;
}

/* V1120ZG: canonical Rome entry starts with the real language menu, not a splash/transition page. */
html.city-reveal-language-menu-only-v1120zg,
html.city-reveal-language-menu-only-v1120zg body {
  width: 100%;
  min-height: 100dvh;
  overflow: hidden !important;
  background: #06101f !important;
}

html.city-reveal-language-menu-only-v1120zg body.wizard-splash-mode .app-shell-layer,
html.city-reveal-language-menu-only-v1120zg body.wizard-splash-mode .topbar,
html.city-reveal-language-menu-only-v1120zg body.wizard-splash-mode #themeDock,
html.city-reveal-language-menu-only-v1120zg body.wizard-splash-mode #map {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.city-reveal-language-menu-only-v1120zg #wizardView,
html.city-reveal-language-menu-only-v1120zg #wizardView .wizard-step[data-step="0"],
html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
  display: grid !important;
  place-items: center !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
  width: 100% !important;
  padding: clamp(14px, 3vh, 28px) !important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-grid,
html.city-reveal-language-menu-only-v1120zg .neo-intro-glow,
html.city-reveal-language-menu-only-v1120zg .neo-intro-copy,
html.city-reveal-language-menu-only-v1120zg .neo-intro-logo-shell,
html.city-reveal-language-menu-only-v1120zg .neo-intro-lead {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-card {
  width: min(720px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-card::before,
html.city-reveal-language-menu-only-v1120zg .hero-language-summary {
  display: none !important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-panel-copy {
  display: none !important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-language-zone {
  margin: 0 !important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-menu {
  display: block !important;
  width: 100% !important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-panel,
html.city-reveal-language-menu-only-v1120zg .hero-language-menu:not([open]) .hero-language-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin: 0 !important;
  max-height: min(68dvh, 560px) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html.city-reveal-language-menu-only-v1120zg .language-quick-btn,
html.city-reveal-language-menu-only-v1120zg .hero-language-menu:not([open]) .language-quick-btn {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-grid .language-quick-btn.active {
  border-color: rgba(116, 155, 220, 0.42) !important;
  background: rgba(12, 18, 31, 0.94) !important;
  box-shadow: none !important;
}

html.city-reveal-language-menu-only-v1120zg .neo-language-select-hidden,
html.city-reveal-language-menu-only-v1120zg #languageSelect,
html.city-reveal-language-menu-only-v1120zg .neo-intro-actions,
html.city-reveal-language-menu-only-v1120zg #wizardSplashBtn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  html.city-reveal-language-menu-only-v1120zg #wizardView .wizard-step[data-step="0"],
  html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
    place-items: start center !important;
    align-items: flex-start !important;
    justify-items: center !important;
    padding-top: max(18px, env(safe-area-inset-top, 0px)) !important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-card {
    margin-top: 0 !important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-panel {
    padding: 14px !important;
    max-height: min(70dvh, 600px) !important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-grid {
    gap: 8px !important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-grid .language-quick-btn {
    min-height: 54px !important;
    padding: 9px 8px !important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-enter {
    min-height: 50px !important;
  }
}

/* V1120ZL: mobile language gate polish, brand visible, no beige margins, no fake transition card. */
html.city-reveal-language-menu-only-v1120zg,
html.city-reveal-language-menu-only-v1120zg body {
  background:#020611!important;
}

html.city-reveal-language-menu-only-v1120zg body,
html.city-reveal-language-menu-only-v1120zg body.app-theme-light,
html.city-reveal-language-menu-only-v1120zg body.modern-v5 {
  margin:0!important;
  padding:0!important;
  background:#020611!important;
}

html.city-reveal-language-menu-only-v1120zg #wizardView,
html.city-reveal-language-menu-only-v1120zg #wizardView .wizard-step[data-step="0"],
html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
  background:
    linear-gradient(180deg, rgba(7,10,13,.30) 0%, rgba(7,10,13,.68) 52%, rgba(7,10,13,.92) 100%),
    url("./assets/city_packages/rome/current_photos/LUOGO_022__FONTANA_DI_TREVI__ESTERNO__53040236E4FD.jpg?v=20260827-v1210h-shared-tours-truthful-feed-final") center 42% / cover no-repeat!important;
}

html.city-reveal-language-menu-only-v1120zg #wizardView {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-width:none!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

html.city-reveal-language-menu-only-v1120zg #wizardView .wizard-step[data-step="0"],
html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
  width:100vw!important;
  max-width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  box-sizing:border-box!important;
}

html.city-reveal-language-menu-only-v1120zg #wizardView .wizard-step[data-step="0"] {
  padding:0!important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
  padding:clamp(16px,3.2dvh,30px)!important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-card {
  width:min(620px,calc(100vw - 24px))!important;
  max-height:none!important;
  display:grid!important;
  gap:clamp(12px,2dvh,18px)!important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-logo-shell {
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  height:clamp(94px,15dvh,148px)!important;
  margin:0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  pointer-events:none!important;
  overflow:visible!important;
}

html.city-reveal-language-menu-only-v1120zg .neo-intro-logo {
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:min(500px,88vw)!important;
  height:100%!important;
  object-fit:contain!important;
  transform:none!important;
  transform-origin:center center!important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-panel,
html.city-reveal-language-menu-only-v1120zg .hero-language-menu:not([open]) .hero-language-panel {
  padding:clamp(14px,2.2vw,20px)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:8px!important;
  background:rgba(10,13,16,.88)!important;
  box-shadow:0 20px 60px rgba(0,0,0,.38)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  max-height:none!important;
  overflow:visible!important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-panel-copy {
  display:block!important;
  margin:-3px 0 14px!important;
  color:rgba(255,255,255,.82)!important;
  font-size:13px!important;
  line-height:1.35!important;
  text-align:center!important;
  letter-spacing:0!important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-panel-title {
  text-align:center!important;
  color:#fff!important;
  font-size:clamp(18px,3vw,24px)!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  margin:0 0 8px!important;
  text-transform:none!important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-grid {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-grid .language-quick-btn,
html.city-reveal-language-menu-only-v1120zg .hero-language-menu:not([open]) .language-quick-btn {
  min-height:clamp(48px,7.4dvh,64px)!important;
  border-radius:8px!important;
  padding:8px 10px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(255,255,255,.07)!important;
  box-shadow:none!important;
}

html.city-reveal-language-menu-only-v1120zg .hero-language-grid .language-quick-btn.active {
  border-color:#f1c75b!important;
  background:rgba(241,199,91,.16)!important;
}

html.city-reveal-language-menu-only-v1120zg .language-quick-label {
  font-size:clamp(15px,4.3vw,22px)!important;
  line-height:1.05!important;
  letter-spacing:0!important;
}

html.city-reveal-language-menu-only-v1120zg .language-quick-sub {
  font-size:clamp(10px,3.2vw,13px)!important;
  line-height:1.05!important;
  letter-spacing:.14em!important;
}

@media (max-width:640px) {
  html.city-reveal-language-menu-only-v1120zg #wizardView .wizard-step[data-step="0"],
  html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
    place-items:center!important;
    align-items:center!important;
    padding:12px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-panel {
    padding:12px!important;
  }
}

@media (max-width:390px), (max-height:740px) {
  html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
    padding:10px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-card {
    gap:9px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-logo-shell {
    height:80px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-logo {
    width:min(390px,94vw)!important;
    transform:scale(1.125)!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-panel {
    padding:10px!important;
    border-radius:8px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-panel-title {
    margin-bottom:8px!important;
  }

html.city-reveal-language-menu-only-v1120zg .hero-language-grid .language-quick-btn {
    min-height:46px!important;
    border-radius:8px!important;
    padding:7px 8px!important;
  }
}

@media (orientation:landscape) and (max-height:520px) and (min-width:480px) {
  html.city-reveal-language-menu-only-v1120zg .neo-intro-screen {
    padding:6px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-card {
    width:min(760px,calc(100vw - 12px))!important;
    gap:4px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-logo-shell {
    height:46px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .neo-intro-logo {
    width:min(315px,50vw)!important;
    transform:scale(1.08)!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-panel,
  html.city-reveal-language-menu-only-v1120zg .hero-language-menu:not([open]) .hero-language-panel {
    max-height:calc(100dvh - 58px)!important;
    padding:7px!important;
    border-radius:8px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-panel-title {
    margin-bottom:5px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .hero-language-grid .language-quick-btn,
  html.city-reveal-language-menu-only-v1120zg .hero-language-menu:not([open]) .language-quick-btn {
    min-height:44px!important;
    padding:4px 6px!important;
    border-radius:8px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .language-quick-label {
    font-size:15px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .language-quick-sub {
    font-size:10px!important;
  }

  html.city-reveal-language-menu-only-v1120zg .city-reveal-language-continue-v1120zs {
    width:100%!important;
    height:auto!important;
    min-height:44px!important;
    margin-top:6px!important;
  }
}

/* ===== V1124OU OPTIMIZE BREAKS POPUP FINAL OVERRIDE ===== */
body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .atg-optimize-experience-popup-list-v1124ou,
body.modern-v5 .modal-card.build-tour-suggest-modal .atg-optimize-experience-popup-list-v1124ou{
  max-height:calc(min(76dvh,720px) - 112px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
}
body.modern-v5 .modal-card.map-menu-sheet.app-sheet.build-tour-suggest-modal .atg-v437-settings-list.atg-optimize-experience-list-v1038.atg-optimize-experience-popup-list-v1124ou,
body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.map-menu-sheet.app-sheet.build-tour-suggest-modal .atg-v437-settings-list.atg-optimize-experience-list-v1038.atg-optimize-experience-popup-list-v1124ou{
  max-height:calc(min(76dvh,720px) - 112px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
}
body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-optimize-experience-row-v1038{
  overflow:hidden!important;
}
body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-control-toggle{
  gap:12px!important;
}
@media (max-width: 720px){
  body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.build-tour-suggest-modal .atg-optimize-experience-popup-list-v1124ou,
  body.modern-v5 .modal-card.build-tour-suggest-modal .atg-optimize-experience-popup-list-v1124ou{
    max-height:calc(82dvh - 132px)!important;
  }
  body.modern-v5 .modal-card.map-menu-sheet.app-sheet.build-tour-suggest-modal .atg-v437-settings-list.atg-optimize-experience-list-v1038.atg-optimize-experience-popup-list-v1124ou,
  body.modern-v5.atg-v1118b-mobile-optimize-scroll-fix .modal-card.map-menu-sheet.app-sheet.build-tour-suggest-modal .atg-v437-settings-list.atg-optimize-experience-list-v1038.atg-optimize-experience-popup-list-v1124ou{
    max-height:calc(82dvh - 132px)!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-optimize-experience-row-v1038{
    grid-template-columns:54px minmax(0,1fr)!important;
    grid-template-areas:
      "icon copy"
      "control control"!important;
    align-items:start!important;
    gap:10px 12px!important;
    min-height:0!important;
    padding:12px!important;
    border-radius:18px!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-icon{
    grid-area:icon!important;
    width:48px!important;
    height:48px!important;
    border-radius:14px!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-copy{
    grid-area:copy!important;
    align-self:center!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-title{
    font-size:16px!important;
    line-height:1.16!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-subtitle{
    font-size:12.5px!important;
    line-height:1.32!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-control-toggle{
    grid-area:control!important;
    display:grid!important;
    grid-template-columns:76px minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:10px!important;
    width:100%!important;
  }
  body.modern-v5 .atg-optimize-experience-popup-list-v1124ou .atg-v437-setting-action{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:42px!important;
    padding:8px 10px!important;
    border-radius:14px!important;
  }
}
/* ===== END V1124OU OPTIMIZE BREAKS POPUP FINAL OVERRIDE ===== */

/* ===== V1124PA TOUR AVATAR + BUSINESS CONTENT ===== */
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa{
  width:min(1080px,calc(100vw - 32px))!important;
  max-width:1080px!important;
  height:min(90dvh,780px)!important;
  max-height:min(90dvh,780px)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:16px!important;
  overflow:hidden!important;
  border-radius:8px!important;
  background:#111827!important;
  color:#f8fafc!important;
}
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa{
  background:#f8fafc!important;
  color:#172033!important;
  border-color:rgba(122,75,16,.24)!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head{
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-copy{
  margin:6px 0 0!important;
  color:#cbd5e1!important;
  -webkit-text-fill-color:#cbd5e1!important;
}
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-copy{
  color:#526075!important;
  -webkit-text-fill-color:#526075!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-grid-modal{
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,206px))!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  justify-content:center!important;
  align-items:start!important;
  gap:12px!important;
  padding:2px 4px 12px 2px!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-card{
  width:100%!important;
  min-width:0!important;
  height:max-content!important;
  min-height:0!important;
  align-self:start!important;
  justify-self:center!important;
  align-content:start!important;
  justify-content:stretch!important;
  justify-items:stretch!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:max-content max-content!important;
  border-radius:8px!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-shell{
  display:block!important;
  width:100%!important;
  min-width:100%!important;
  justify-self:stretch!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-box{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:4/5!important;
  overflow:hidden!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-video,
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-name-stack,
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-name-stack *{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-role-stack,
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-role-stack *{
  color:#f3cf75!important;
  -webkit-text-fill-color:#f3cf75!important;
}
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa .avatar-name-stack,
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa .avatar-name-stack *{
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
}
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa .avatar-role-stack,
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa .avatar-role-stack *{
  color:#715014!important;
  -webkit-text-fill-color:#715014!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:40!important;
  margin:0!important;
  padding:14px 0 max(2px,env(safe-area-inset-bottom,0px))!important;
  background:linear-gradient(180deg,rgba(17,24,39,0),rgba(17,24,39,.96) 26%,#111827 100%)!important;
  box-shadow:0 -16px 28px rgba(2,6,23,.16)!important;
}
body.modern-v5.app-theme-light .modal-card-tour-avatar-picker-v1124pa .avatar-modal-actions{
  background:linear-gradient(180deg,rgba(248,250,252,0),rgba(248,250,252,.96) 26%,#f8fafc 100%)!important;
  box-shadow:0 -16px 28px rgba(15,23,42,.08)!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-actions.is-cultural-place-v1124rd{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:12px!important;
}
body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-actions.is-cultural-place-v1124rd>.btn{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
@media (max-width:760px){
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-actions.is-cultural-place-v1124rd{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-control-panel-v1120zu{
  gap:14px!important;
  border-radius:8px!important;
  padding:14px!important;
  background:#111827!important;
  border-color:rgba(244,196,90,.28)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-offer-control-panel-v1120zu{
  background:#ffffff!important;
  border-color:#d6dde8!important;
  box-shadow:0 12px 28px rgba(20,30,48,.09)!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-control-head-v1120zu{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-control-head-v1120zu>div{
  display:grid!important;
  gap:4px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-control-head-v1120zu strong{
  font-size:15px!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:#fff3c4!important;
  -webkit-text-fill-color:#fff3c4!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-offer-control-head-v1120zu strong{
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-reset-v1124pa,
body.modern-v5 #atgPoiDockV1090 .atg-business-search-v1124pa button{
  min-height:38px!important;
  border:1px solid #d6a73e!important;
  border-radius:8px!important;
  padding:8px 14px!important;
  background:#f4c45a!important;
  color:#241a08!important;
  -webkit-text-fill-color:#241a08!important;
  font:900 12px/1 inherit!important;
  letter-spacing:0!important;
  cursor:pointer!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-reset-v1124pa{
  background:transparent!important;
  color:#f8e5aa!important;
  -webkit-text-fill-color:#f8e5aa!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-business-reset-v1124pa{
  color:#53380d!important;
  -webkit-text-fill-color:#53380d!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-search-v1124pa{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:8px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-search-v1124pa input,
body.modern-v5 #atgPoiDockV1090 .atg-business-select-field-v1124pa select,
body.modern-v5 #atgPoiDockV1090 .atg-offer-date-v1120zu{
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  border:1px solid #46536a!important;
  border-radius:8px!important;
  padding:9px 12px!important;
  background:#1d2737!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  font:800 12px/1.2 inherit!important;
  letter-spacing:0!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-business-search-v1124pa input,
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-business-select-field-v1124pa select,
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-offer-date-v1120zu{
  background:#f7f9fc!important;
  border-color:#cbd5e1!important;
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-select-grid-v1124pa{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-subcategory-grid-v1163a{
  grid-template-columns:minmax(0,1fr)!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-select-field-v1124pa{
  min-width:0!important;
  display:grid!important;
  gap:6px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-select-field-v1124pa>span{
  color:#cbd5e1!important;
  -webkit-text-fill-color:#cbd5e1!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-business-select-field-v1124pa>span{
  color:#425168!important;
  -webkit-text-fill-color:#425168!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-chip-row-v1120zu{
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-chip-v1120zu{
  min-height:34px!important;
  border-radius:8px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-filter-summary-v1120zu{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:40px!important;
  border-radius:8px!important;
  padding:9px 11px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-filter-summary-v1120zu span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-filter-summary-v1120zu strong{
  flex:0 0 auto!important;
  color:#fff3c4!important;
  -webkit-text-fill-color:#fff3c4!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-offer-filter-summary-v1120zu strong{
  color:#4c3510!important;
  -webkit-text-fill-color:#4c3510!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-pills-v1124pa{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-pills-v1124pa span{
  width:auto!important;
  border:1px solid rgba(244,196,90,.3)!important;
  border-radius:8px!important;
  padding:5px 7px!important;
  background:rgba(244,196,90,.09)!important;
  color:#f8e5aa!important;
  -webkit-text-fill-color:#f8e5aa!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:850!important;
  opacity:1!important;
  text-transform:capitalize!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-real-content-pills-v1124pa span{
  background:#fff8e6!important;
  border-color:#e2c675!important;
  color:#53380d!important;
  -webkit-text-fill-color:#53380d!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-language-note-v1164a{
  display:block!important;
  margin:1px 0!important;
  color:rgba(226,232,240,.76)!important;
  -webkit-text-fill-color:rgba(226,232,240,.76)!important;
  font-size:10.5px!important;
  line-height:1.3!important;
  font-weight:760!important;
}
body.modern-v5.app-theme-light #atgPoiDockV1090 .atg-real-content-language-note-v1164a{
  color:#64748b!important;
  -webkit-text-fill-color:#64748b!important;
}
body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 16px - env(safe-area-inset-bottom,0px))!important;
  overflow:hidden!important;
}
body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa .avatar-grid-modal{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;
}
@media (max-width:900px){
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-grid-modal{
    grid-template-columns:repeat(3,minmax(0,180px))!important;
  }
}
@media (max-width:760px), (pointer:coarse) and (max-height:520px){
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa:has(.app-standard-modal-nav.single.atg-v934-standard-nav),
  body.modern-v5 #modalLayer.modal-layer.modal-layer-surface:not(.hidden) > .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa:has(.app-standard-modal-nav.split.atg-v934-standard-nav){
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 16px - env(safe-area-inset-bottom,0px))!important;
    max-height:calc(100dvh - 16px - env(safe-area-inset-bottom,0px))!important;
    padding:14px!important;
    gap:12px!important;
  }
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-grid-modal{
    grid-template-columns:repeat(2,minmax(0,min(42vw,150px)))!important;
    justify-content:center!important;
    gap:10px!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .app-standard-modal-nav.atg-v934-standard-nav{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:6px 0 0!important;
    z-index:30!important;
    background:transparent!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
  }
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .app-standard-modal-nav.split.atg-v934-standard-nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  body.modern-v5 #modalLayer.modal-layer .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa .app-standard-modal-nav.atg-v934-standard-nav .btn.app-standard-modal-nav-btn{
    min-height:50px!important;
    min-width:0!important;
    padding:6px 4px!important;
    font-size:11px!important;
    line-height:1.1!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }
  body.modern-v5 #atgPoiDockV1090 .atg-business-select-grid-v1124pa{
    grid-template-columns:1fr!important;
  }
  body.modern-v5 #atgPoiDockV1090 .atg-business-search-v1124pa{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:6px!important;
  }
  body.modern-v5 #atgPoiDockV1090 .atg-business-search-v1124pa button{
    width:auto!important;
    padding-inline:10px!important;
  }
  body.modern-v5 #atgPoiDockV1090 .atg-offer-filter-summary-v1120zu{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  body.modern-v5 #atgPoiDockV1090 .atg-offer-filter-summary-v1120zu span{
    white-space:normal!important;
  }
}
@media (max-width:360px), (pointer:coarse) and (max-height:600px){
  /* V1154A: compact phones reserve enough room for a complete first portrait. */
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa{gap:8px!important;}
  body.modern-v5 #modalLayer.modal-layer .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa .avatar-modal-head.app-sheet-head.centered{
    display:grid!important;
    gap:6px!important;
    margin:0!important;
    padding:9px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    isolation:auto!important;
  }
  body.modern-v5 #modalLayer.modal-layer .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa .avatar-modal-head.app-sheet-head.centered::before{content:none!important;display:none!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-title{font-size:26px!important;line-height:1.05!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-copy{margin-top:4px!important;font-size:13px!important;line-height:1.3!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-box{aspect-ratio:4/3!important;}
}
@media (max-width:360px){
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-copy{display:none!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-box{aspect-ratio:4/5!important;}
}
@media (min-width:761px) and (pointer:coarse) and (max-height:520px){
  body.modern-v5 #modalLayer.modal-layer .modal-card.app-sheet.app-sheet-surface.modal-card-tour-avatar-picker-v1124pa .avatar-modal-head.app-sheet-head.centered{
    gap:3px!important;
    padding:5px 0!important;
  }
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-title{font-size:26px!important;line-height:1.05!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-modal-head .app-sheet-copy{display:none!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-grid-modal{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-card{
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
    min-height:92px!important;
  }
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-shell{width:78px!important;min-width:78px!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-preview-box{width:78px!important;aspect-ratio:1/1!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-meta-row{min-width:0!important;align-self:center!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-name-stack{font-size:12px!important;line-height:1.05!important;}
  body.modern-v5 .modal-card-tour-avatar-picker-v1124pa .avatar-role-stack{font-size:9px!important;line-height:1.1!important;}
}
/* ===== END V1124PA TOUR AVATAR + BUSINESS CONTENT ===== */

/* ===== V1124RV MANUAL TOUR PLACES INTRO ===== */
body.modern-v5 .atg-manual-tour-places-intro-v1124rv{
  position:relative;
  margin:0 0 12px;
  padding:14px 15px 15px;
  border:1px solid rgba(240,193,92,.52);
  border-left:4px solid #f0c15c;
  border-radius:7px;
  background:linear-gradient(135deg,rgba(19,27,36,.98),rgba(31,45,58,.98));
  box-shadow:0 12px 28px rgba(3,8,14,.24);
  color:#f8fafc;
}
body.modern-v5 .atg-manual-tour-places-intro-v1124rv strong{
  display:block;
  margin:0 0 7px;
  color:#f0c15c!important;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:0;
}
body.modern-v5 .atg-manual-tour-places-intro-v1124rv p{
  margin:0;
  color:#f8fafc!important;
  font-size:13px;
  font-weight:800;
  line-height:1.48;
  letter-spacing:0;
}
body.modern-v5.app-theme-light .atg-manual-tour-places-intro-v1124rv{
  border-color:#c9a24b;
  border-left-color:#a8750f;
  background:#fff9e9;
  box-shadow:0 10px 24px rgba(36,48,63,.12);
  color:#202c3a;
}
body.modern-v5.app-theme-light .atg-manual-tour-places-intro-v1124rv strong{
  color:#7c570d!important;
}
body.modern-v5.app-theme-light .atg-manual-tour-places-intro-v1124rv p{
  color:#202c3a!important;
}
@media (max-width:760px){
  body.modern-v5 .atg-manual-tour-places-intro-v1124rv{
    margin-bottom:10px;
    padding:12px;
  }
  body.modern-v5 .atg-manual-tour-places-intro-v1124rv p{
    font-size:12px;
    line-height:1.42;
  }
}
/* ===== END V1124RV MANUAL TOUR PLACES INTRO ===== */

/* ===== V1124PX MANUAL TOUR EMPTY GUIDANCE ===== */
body.modern-v5 #buildTourTray .build-tour-manual-empty-guide-v1124px{
  margin:0 0 6px;
  padding:8px 10px;
  border:1px solid rgba(240,193,92,.5);
  border-left:4px solid #f0c15c;
  border-radius:7px;
  background:#17243a;
  color:#f8fafc;
  font-size:11px;
  font-weight:800;
  line-height:1.45;
  letter-spacing:0;
  text-transform:none;
}
body.modern-v5.app-theme-light #buildTourTray .build-tour-manual-empty-guide-v1124px{
  background:#fff8e6;
  border-color:#d7b45d;
  border-left-color:#b78116;
  color:#273244;
}
@media (max-width:760px){
  body.modern-v5 #buildTourTray .build-tour-manual-empty-guide-v1124px{
    margin-bottom:4px;
    padding:7px 8px;
    font-size:10px;
    line-height:1.3;
  }
}
/* ===== END V1124PX MANUAL TOUR EMPTY GUIDANCE ===== */

/* ===== V1124RI PUBLIC OFFERS + EVENTS MAP ===== */
body.modern-v5 #atgPoiDockV1090 .atg-business-map-layer-v1124ri{
  margin-bottom:10px!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-map-layer-v1124ri .atg-poi-layer-controls-v1119e{
  grid-template-rows:minmax(40px,1fr)!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-business-map-badge-v1124ri{
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:0!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-actions-v1124qt{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-card-v1124bo:not(:has(> .atg-real-content-image-v1124bo)){
  grid-template-columns:minmax(0,1fr)!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-actions-v1124qt > :only-child{
  grid-column:1 / -1!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-map-action-v1124qt{
  min-height:40px!important;
  padding:8px 10px!important;
  border:1px solid #d7b45d!important;
  border-radius:8px!important;
  background:#fff7db!important;
  color:#3b2700!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:0!important;
  cursor:pointer!important;
}
.leaflet-marker-icon.atg-public-event-marker-shell-v1124qt{
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.atg-public-event-marker-v1124qt{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  border:3px solid #f6d98a!important;
  border-radius:50%!important;
  background:#b42318!important;
  color:#fff!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:0!important;
  box-shadow:0 8px 18px rgba(15,23,42,.34)!important;
}
.atg-public-event-marker-v1124qt:after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  bottom:-9px!important;
  width:0!important;
  height:0!important;
  border-left:6px solid transparent!important;
  border-right:6px solid transparent!important;
  border-top:10px solid #b42318!important;
  transform:translateX(-50%)!important;
}
.atg-public-event-marker-v1124qt.is-offer-v1124ri{
  border-color:#99f6e4!important;
  background:#0f766e!important;
}
.atg-public-event-marker-v1124qt.is-offer-v1124ri:after{
  border-top-color:#0f766e!important;
}
.leaflet-popup.atg-public-event-popup-v1124qt .leaflet-popup-content-wrapper{
  border:1px solid rgba(180,35,24,.28)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#172033!important;
  box-shadow:0 18px 42px rgba(15,23,42,.24)!important;
}
.leaflet-popup.atg-public-event-popup-v1124qt .leaflet-popup-content{
  width:min(300px,calc(100vw - 72px))!important;
  margin:14px!important;
}
.leaflet-popup.atg-public-event-popup-v1124qt.is-offer-v1124ri .leaflet-popup-content-wrapper{
  border-color:rgba(15,118,110,.30)!important;
}
.atg-public-event-popup-card-v1124qt{
  display:grid!important;
  gap:7px!important;
  width:100%!important;
  letter-spacing:0!important;
}
.atg-public-event-popup-card-v1124qt .atg-public-event-popup-kicker-v1124qt{
  color:#b42318!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:950!important;
}
.atg-public-event-popup-card-v1124qt.is-offer-v1124ri .atg-public-event-popup-kicker-v1124qt{
  color:#0f766e!important;
}
.atg-public-event-popup-card-v1124qt > strong{font-size:15px!important;line-height:1.2!important;}
.atg-public-event-popup-card-v1124qt > span,
.atg-public-event-popup-card-v1124qt > em{font-size:11px!important;line-height:1.35!important;font-style:normal!important;color:#526071!important;}
.atg-public-event-popup-card-v1124qt > a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  background:#17243a!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  text-decoration:none!important;
}
@media (max-width:420px){
  body.modern-v5 #atgPoiDockV1090 .atg-real-content-actions-v1124qt{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
/* ===== END V1124RI PUBLIC OFFERS + EVENTS MAP ===== */

/* ===== V1124RS UNIFIED OFFER RESERVATIONS ===== */
body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  margin:0 0 10px!important;
  padding:12px!important;
  border:1px solid #62b5a7!important;
  border-radius:8px!important;
  background:#f0fbf8!important;
  color:#133b38!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs > div{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs strong{
  color:#133b38!important;
  -webkit-text-fill-color:#133b38!important;
  opacity:1!important;
  font-size:13px!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs span{
  color:#133b38!important;
  -webkit-text-fill-color:#133b38!important;
  opacity:1!important;
  font-size:11px!important;
  line-height:1.35!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs button,
body.modern-v5 #atgPoiDockV1090 .atg-real-content-book-action-v1124rs{
  min-height:44px!important;
  padding:8px 12px!important;
  border:1px solid #0f766e!important;
  border-radius:8px!important;
  background:#0f766e!important;
  color:#fff!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:0!important;
  cursor:pointer!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-real-content-book-action-v1124rs:disabled{
  border-color:#9aa5b1!important;
  background:#e4e8ec!important;
  color:#495565!important;
  cursor:not-allowed!important;
}
body.app-theme-dark #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs{
  border-color:#5eead4!important;
  background:#123d3b!important;
  color:#f0fdfa!important;
}
body.app-theme-dark #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs strong,
body.app-theme-dark #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs span{
  color:#f0fdfa!important;
  -webkit-text-fill-color:#f0fdfa!important;
}
.atg-offer-booking-summary-v1124rs,
.atg-offer-voucher-copy-v1124rs{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
}
.atg-offer-booking-summary-v1124rs > strong,
.atg-offer-voucher-copy-v1124rs > strong{
  font-size:15px!important;
  line-height:1.25!important;
}
.atg-offer-booking-summary-v1124rs > span,
.atg-offer-voucher-copy-v1124rs > span{
  font-size:12px!important;
  line-height:1.4!important;
  overflow-wrap:anywhere!important;
}
.atg-offer-booking-fields-v1124rs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:14px!important;
}
.atg-offer-booking-fields-v1124rs label{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}
.atg-offer-booking-fields-v1124rs label > span{
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
.atg-offer-booking-fields-v1124rs input{
  width:100%!important;
  min-height:42px!important;
  padding:8px 10px!important;
  border:1px solid #b7c1cc!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#172033!important;
  font:inherit!important;
}
.atg-offer-voucher-layout-v1124rs{
  display:grid!important;
  grid-template-columns:minmax(180px,220px) minmax(0,1fr)!important;
  align-items:center!important;
  gap:18px!important;
}
.atg-offer-voucher-qr-v1124rs{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  aspect-ratio:1!important;
  padding:10px!important;
  border:1px solid #c8d0d9!important;
  border-radius:8px!important;
  background:#fff!important;
}
.atg-offer-voucher-qr-v1124rs svg{
  display:block!important;
  width:100%!important;
  height:auto!important;
}
.atg-offer-voucher-code-v1124rs{
  font:950 24px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  letter-spacing:0!important;
  overflow-wrap:anywhere!important;
}
.atg-offer-voucher-status-v1124rs{
  width:max-content!important;
  max-width:100%!important;
  padding:5px 8px!important;
  border:1px solid #9aa5b1!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:950!important;
}
.atg-offer-voucher-status-v1124rs.is-reserved,
.atg-offer-voucher-status-v1124rs.is-redeemed{
  border-color:#49a28f!important;
  background:#ecfdf8!important;
  color:#145b50!important;
}
.atg-my-offers-list-v1124rs{
  display:grid!important;
  gap:10px!important;
}
.atg-my-offer-row-v1124rs{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px!important;
  border:1px solid rgba(148,163,184,.46)!important;
  border-left:4px solid #0f766e!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.06)!important;
}
.atg-my-offer-row-v1124rs.is-cancelled,
.atg-my-offer-row-v1124rs.is-expired{
  border-left-color:#7b8794!important;
  opacity:.82!important;
}
.atg-my-offer-row-v1124rs > div{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.atg-my-offer-row-v1124rs span{
  color:#0f766e!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}
body.app-theme-dark .atg-my-offer-row-v1124rs span{color:#5eead4!important;}
.atg-my-offer-row-v1124rs strong{font-size:14px!important;line-height:1.25!important;}
.atg-my-offer-row-v1124rs small{font-size:11px!important;line-height:1.35!important;overflow-wrap:anywhere!important;}
.atg-my-offer-row-v1124rs button{
  min-height:40px!important;
  padding:8px 12px!important;
  border:1px solid #0f766e!important;
  border-radius:8px!important;
  background:#0f766e!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:0!important;
}
@media (max-width:640px){
  body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs,
  .atg-offer-voucher-layout-v1124rs,
  .atg-my-offer-row-v1124rs{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.modern-v5 #atgPoiDockV1090 .atg-offer-reservation-overview-v1124rs button,
  .atg-my-offer-row-v1124rs button{
    width:100%!important;
  }
  .atg-offer-booking-fields-v1124rs{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .atg-offer-voucher-qr-v1124rs{
    width:min(240px,100%)!important;
    justify-self:center!important;
  }
  .atg-offer-voucher-code-v1124rs{
    font-size:20px!important;
    text-align:center!important;
  }
}
/* ===== END V1124RS UNIFIED OFFER RESERVATIONS ===== */

/* ===== V1124QU TRIAL GUIDE READABILITY ===== */
body.modern-v5 #atgPoiDockV1090 .atg-poi-trial-action-v1124qe{
  height:auto!important;
  min-height:94px!important;
  overflow:visible!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-poi-trial-action-v1124qe > span,
body.modern-v5 #atgPoiDockV1090 .atg-poi-trial-action-v1124qe strong,
body.modern-v5 #atgPoiDockV1090 .atg-poi-trial-action-v1124qe small{
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
/* ===== END V1124QU TRIAL GUIDE READABILITY ===== */

/* ===== V1124SL AUTHENTICATED CUSTOMER HUB ===== */
.atg-customer-hub-v1124sl{
  --hub-ink:#17212b;
  --hub-muted:#5b6672;
  --hub-line:#d6dde3;
  --hub-surface:#f7f9fa;
  --hub-teal:#0f766e;
  --hub-action:#9a671f;
  --hub-gold:#a46d21;
  --hub-red:#a13b3b;
}
body.app-theme-dark .atg-customer-hub-v1124sl{
  --hub-ink:#f5f7f8;
  --hub-muted:#b7c0c8;
  --hub-line:#45525c;
  --hub-surface:#202a31;
  --hub-teal:#5eead4;
  --hub-action:#d5a64f;
  --hub-gold:#d5a64f;
  --hub-red:#ef9a9a;
}
body.modern-v5 .atg-customer-hub-v1124sl>.app-sheet-head{
  padding:16px!important;
  border:1px solid var(--hub-line)!important;
  border-radius:8px!important;
  background:#111a24!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.modern-v5.app-theme-light .atg-customer-hub-v1124sl>.app-sheet-head{
  background:#fff!important;
  background-image:none!important;
}
body.modern-v5 .atg-customer-hub-v1124sl>.app-sheet-head::before{display:none!important;}
.atg-customer-hub-tabs-v1124sl{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;
  margin:0 22px!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
}
.atg-customer-hub-tabs-v1124sl button{
  position:relative!important;
  min-width:0!important;
  min-height:44px!important;
  padding:8px 6px!important;
  border:1px solid var(--hub-line)!important;
  border-radius:6px!important;
  background:var(--hub-surface)!important;
  color:var(--hub-muted)!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:0!important;
  white-space:normal!important;
}
.atg-customer-hub-tabs-v1124sl button>span{display:block!important;min-width:0!important;overflow-wrap:anywhere!important;}
.atg-customer-hub-tabs-v1124sl button.is-active{
  border-color:var(--hub-action)!important;
  background:var(--hub-action)!important;
  color:#fff!important;
}
body.app-theme-dark .atg-customer-hub-tabs-v1124sl button.is-active{
  background:#d5a64f!important;
  color:#171b1e!important;
}
.atg-customer-hub-tabs-v1124sl b{
  display:inline-grid!important;
  place-items:center!important;
  min-width:18px!important;
  height:18px!important;
  margin-left:5px!important;
  padding:0 4px!important;
  border-radius:6px!important;
  background:var(--hub-red)!important;
  color:#fff!important;
  font-size:10px!important;
  letter-spacing:0!important;
}
.atg-customer-hub-body-v1124sl{
  display:grid!important;
  gap:12px!important;
  color:var(--hub-ink)!important;
}
.atg-customer-hub-metrics-v1124sl{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}
.atg-customer-hub-metrics-v1124sl button{
  display:grid!important;
  align-content:center!important;
  gap:4px!important;
  min-height:86px!important;
  padding:12px!important;
  border:1px solid var(--hub-line)!important;
  border-radius:8px!important;
  background:var(--hub-surface)!important;
  color:var(--hub-ink)!important;
  text-align:left!important;
}
.atg-customer-hub-metrics-v1124sl strong{
  color:var(--hub-teal)!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:950!important;
}
.atg-customer-hub-metrics-v1124sl span{
  color:var(--hub-muted)!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.atg-customer-hub-band-v1124sl,
.atg-customer-hub-section-v1124sl{
  display:grid!important;
  gap:12px!important;
  padding:14px 0!important;
  border-top:1px solid var(--hub-line)!important;
}
.atg-customer-hub-band-v1124sl{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
}
.atg-customer-hub-band-v1124sl > div,
.atg-customer-hub-section-head-v1124sl > div,
.atg-customer-hub-record-v1124sl > div{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.atg-customer-hub-band-v1124sl span,
.atg-customer-hub-section-head-v1124sl span,
.atg-customer-hub-record-v1124sl span{
  color:var(--hub-gold)!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}
.atg-customer-hub-band-v1124sl h4,
.atg-customer-hub-section-head-v1124sl h4{
  margin:0!important;
  color:var(--hub-ink)!important;
  font-size:17px!important;
  line-height:1.2!important;
}
.atg-customer-hub-band-v1124sl p{
  margin:0!important;
  color:var(--hub-muted)!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.atg-customer-hub-band-v1124sl button,
.atg-customer-hub-section-head-v1124sl button,
.atg-customer-hub-record-v1124sl button{
  min-height:44px!important;
  padding:8px 12px!important;
  border:1px solid var(--hub-action)!important;
  border-radius:8px!important;
  background:var(--hub-action)!important;
  color:#fff!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
body.app-theme-dark .atg-customer-hub-band-v1124sl button,
body.app-theme-dark .atg-customer-hub-section-head-v1124sl button,
body.app-theme-dark .atg-customer-hub-record-v1124sl button{
  color:#102624!important;
}
.atg-customer-hub-section-head-v1124sl{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.atg-customer-hub-section-head-v1124sl > div:last-child{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
.atg-customer-hub-records-v1124sl{display:grid!important;gap:8px!important;}
.atg-customer-hub-record-v1124sl{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:72px!important;
  padding:11px 12px!important;
  border:1px solid var(--hub-line)!important;
  border-left:4px solid var(--hub-teal)!important;
  border-radius:8px!important;
  background:var(--hub-surface)!important;
}
.atg-customer-hub-record-v1124sl.is-cancelled,
.atg-customer-hub-record-v1124sl.is-expired,
.atg-customer-hub-record-v1124sl.is-read{border-left-color:#7b8794!important;}
.atg-customer-hub-record-v1124sl strong{
  color:var(--hub-ink)!important;
  font-size:14px!important;
  line-height:1.25!important;
}
.atg-customer-hub-record-v1124sl small{
  color:var(--hub-muted)!important;
  font-size:11px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
.atg-customer-hub-empty-v1124sl{
  display:grid!important;
  gap:5px!important;
  padding:22px 14px!important;
  border:1px dashed var(--hub-line)!important;
  border-radius:8px!important;
  background:var(--hub-surface)!important;
  text-align:center!important;
}
.atg-customer-hub-empty-v1124sl strong{color:var(--hub-ink)!important;font-size:14px!important;}
.atg-customer-hub-empty-v1124sl span{color:var(--hub-muted)!important;font-size:12px!important;line-height:1.4!important;}
.atg-customer-hub-profile-v1124sl{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.atg-customer-hub-profile-v1124sl label{
  display:grid!important;
  gap:6px!important;
  color:var(--hub-ink)!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
.atg-customer-hub-profile-v1124sl input,
.atg-customer-hub-profile-v1124sl select{
  width:100%!important;
  min-height:44px!important;
  padding:9px 10px!important;
  border:1px solid var(--hub-line)!important;
  border-radius:8px!important;
  background:var(--hub-surface)!important;
  color:var(--hub-ink)!important;
  font-size:14px!important;
  letter-spacing:0!important;
}
.atg-customer-hub-check-v1124sl{
  grid-column:1/-1!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
}
.atg-customer-hub-check-v1124sl input{width:18px!important;min-height:18px!important;}
.atg-customer-hub-profile-actions-v1124sl{
  display:flex!important;
  grid-column:1/-1!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding-top:6px!important;
}
.atg-customer-hub-danger-v1124sl{
  display:grid!important;
  grid-column:1/-1!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  margin-top:6px!important;
  padding:14px 0 0!important;
  border-top:1px solid rgba(161,59,59,.42)!important;
}
.atg-customer-hub-danger-v1124sl > div{display:grid!important;gap:4px!important;}
.atg-customer-hub-danger-v1124sl strong{color:var(--hub-red)!important;font-size:13px!important;}
.atg-customer-hub-danger-v1124sl span{color:var(--hub-muted)!important;font-size:11px!important;line-height:1.4!important;}
.atg-customer-hub-danger-v1124sl button,
#atgCustomerDeleteSubmitV1124SL{
  min-height:44px!important;
  padding:8px 12px!important;
  border:1px solid var(--hub-red,#a13b3b)!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--hub-red,#a13b3b)!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
#atgCustomerDeleteSubmitV1124SL:not(:disabled){background:#a13b3b!important;color:#fff!important;}
.atg-customer-delete-field-v1124sl{display:grid!important;gap:7px!important;font-size:12px!important;font-weight:850!important;}
.atg-customer-delete-field-v1124sl input{
  min-height:46px!important;
  padding:10px 12px!important;
  border:1px solid rgba(161,59,59,.55)!important;
  border-radius:8px!important;
  font:800 15px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
}
.atg-customer-hub-loader-v1124sl{
  width:34px!important;
  height:34px!important;
  margin:30px auto!important;
  border:3px solid rgba(148,163,184,.35)!important;
  border-top-color:#0f766e!important;
  border-radius:50%!important;
  animation:atgCustomerHubSpinV1124SL .75s linear infinite!important;
}
@keyframes atgCustomerHubSpinV1124SL{to{transform:rotate(360deg)}}
body.modern-v5 #atgPoiDockV1090 .atg-event-reservation-overview-v1124sl{
  border-color:rgba(35,108,132,.42)!important;
  background:linear-gradient(135deg,rgba(35,108,132,.12),rgba(15,118,110,.08))!important;
}
body.modern-v5 #atgPoiDockV1090 .atg-event-reservation-overview-v1124sl button,
body.modern-v5 #atgPoiDockV1090 .atg-real-content-event-book-action-v1124sl{
  border-color:#236c84!important;
  background:#236c84!important;
}
@media (max-width:720px){
  .atg-customer-hub-tabs-v1124sl{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:4px!important;
    margin:0 14px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  .atg-customer-hub-tabs-v1124sl button{
    grid-column:span 3!important;
    min-width:0!important;
    min-height:44px!important;
    padding:6px 3px!important;
    font-size:10px!important;
    scroll-snap-align:none!important;
  }
  .atg-customer-hub-tabs-v1124sl button:nth-child(n+5){grid-column:span 4!important;}
  .atg-customer-hub-metrics-v1124sl{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
  .atg-customer-hub-metrics-v1124sl button{grid-column:span 2!important;min-height:76px!important;}
  .atg-customer-hub-metrics-v1124sl button:nth-last-child(-n+2){grid-column:span 3!important;}
  .atg-customer-hub-band-v1124sl,
  .atg-customer-hub-record-v1124sl,
  .atg-customer-hub-profile-v1124sl{grid-template-columns:minmax(0,1fr)!important;}
  .atg-customer-hub-band-v1124sl button,
  .atg-customer-hub-record-v1124sl button{width:100%!important;}
  .atg-customer-hub-section-head-v1124sl{align-items:stretch!important;flex-direction:column!important;}
  .atg-customer-hub-section-head-v1124sl > div:last-child{justify-content:stretch!important;}
  .atg-customer-hub-section-head-v1124sl > div:last-child button{flex:1 1 140px!important;}
  .atg-customer-hub-check-v1124sl{grid-template-columns:20px minmax(0,1fr)!important;}
  .atg-customer-hub-profile-actions-v1124sl{grid-column:1!important;}
  .atg-customer-hub-profile-actions-v1124sl .btn{width:100%!important;}
  .atg-customer-hub-danger-v1124sl{grid-column:1!important;grid-template-columns:minmax(0,1fr)!important;}
  .atg-customer-hub-danger-v1124sl button{width:100%!important;}
  .atg-offer-voucher-sheet-v1124rs .atg-offer-voucher-qr-v1124rs,
  .atg-event-voucher-sheet-v1124sl .atg-offer-voucher-qr-v1124rs{
    width:min(210px,100%)!important;
  }
}
@media (prefers-reduced-motion:reduce){
  .atg-customer-hub-loader-v1124sl{animation-duration:1.8s!important;}
}
/* ===== END V1124SL AUTHENTICATED CUSTOMER HUB ===== */
.atg-poi-nearest-row-v1125w {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.atg-poi-nearest-button-v1125w {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(125, 211, 252, 0.48);
  border-radius: 8px;
  background: #075985;
  color: #f8fafc;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.18);
}

.atg-poi-nearest-button-v1125w:hover,
.atg-poi-nearest-button-v1125w:focus-visible {
  background: #0369a1;
  border-color: #7dd3fc;
}

.atg-poi-nearest-button-v1125w:disabled {
  cursor: progress;
  opacity: 0.72;
}

.atg-poi-nearest-status-v1125w {
  display: block;
  min-width: 0;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.app-theme-light .atg-poi-nearest-button-v1125w {
  background: #0369a1;
  border-color: #075985;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.16);
}

body.app-theme-light .atg-poi-nearest-button-v1125w:hover,
body.app-theme-light .atg-poi-nearest-button-v1125w:focus-visible {
  background: #075985;
}

body.app-theme-light .atg-poi-nearest-status-v1125w {
  color: #075985;
}

/* ===== V1125X BUSINESS CONTACT + BOOKING MANAGER ===== */
body.modern-v5 .atg-venue-booking-contact-actions-v1125x {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

body.modern-v5 .atg-venue-booking-form-v1125x {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

body.modern-v5 .atg-venue-booking-form-v1125x label {
  min-width: 0;
}

body.modern-v5 .atg-venue-booking-form-v1125x .atg-venue-booking-note-v1125x,
body.modern-v5 .atg-venue-booking-form-v1125x button[type="submit"] {
  grid-column: 1 / -1;
}

body.modern-v5 .atg-venue-booking-form-v1125x textarea {
  min-height: 104px;
  resize: vertical;
}

body.modern-v5 .atg-rich-external-card-v1124aj .atg-foodsocial-hover-contact-row-v650 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.modern-v5 .atg-extended-business-detail-actions-v1124su {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.modern-v5.app-theme-dark .atg-foodsocial-detail-actions-v650 .place-detail-action-btn-build.atg-place-detail-add-v647,
body.modern-v5.app-theme-dark .atg-foodsocial-detail-actions-v650 .place-detail-action-btn-build.atg-place-detail-add-v647 .atg-rome-marker-hover-cta-main-v642,
body.modern-v5.app-theme-dark .atg-foodsocial-detail-actions-v650 .place-detail-action-btn-build.atg-place-detail-add-v647 .atg-rome-marker-hover-cta-sub-v642 {
  color: var(--cta-action-ink) !important;
  -webkit-text-fill-color: var(--cta-action-ink) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.modern-v5.app-theme-dark .atg-foodsocial-detail-actions-v650 .place-detail-action-btn-build.atg-place-detail-add-v647 {
  background: var(--cta-action-bg) !important;
  border-color: var(--cta-action-border) !important;
  box-shadow: var(--cta-action-shadow) !important;
  font-family: var(--cta-action-font) !important;
  font-weight: var(--cta-action-weight) !important;
  letter-spacing: var(--cta-action-tracking) !important;
}

@media (max-width: 680px) {
  body.modern-v5 .atg-venue-booking-form-v1125x,
  body.modern-v5 .atg-venue-booking-contact-actions-v1125x,
  body.modern-v5 .atg-rich-external-card-v1124aj .atg-foodsocial-hover-contact-row-v650,
  body.modern-v5 .atg-extended-business-detail-actions-v1124su {
    grid-template-columns: 1fr;
  }
}
/* ===== END V1125X BUSINESS CONTACT + BOOKING MANAGER ===== */

/* V1453 email contacts: copy without opening external mail clients */
.inline-contact-copy{appearance:none;border:0;background:transparent;padding:0;font:inherit;cursor:pointer}.inline-contact-copy[data-copy-state="done"]{color:#9fd8ff!important}.inline-contact-copy:focus-visible{outline:2px solid var(--gold-accent);outline-offset:3px;border-radius:4px}.bp-inline-copy-email{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.bp-inline-copy-email:focus-visible{outline:2px solid var(--gold-accent);outline-offset:3px;border-radius:4px}

/* V1210D: keyboard focus must remain visible on the public map controls. */
body.modern-v5 #cityRevealGlobalSearchV1197A .atg-poi-search-field-v1124qk:has(.atg-poi-search-input-v1124qk:focus-visible),
body.modern-v5 #cityRevealGlobalSearchV1197A .atg-poi-search-clear-v1124qk:focus-visible,
body.modern-v5 #mapSettingsToggleBtnV993:focus-visible,
body.modern-v5 #atgPoiDockV1090 button:focus-visible,
body.modern-v5 #atgPoiDockV1090 [role="tab"]:focus-visible,
body.modern-v5 #buildTourTray button:focus-visible,
body.modern-v5 #buildTourTray [role="tab"]:focus-visible,
body.modern-v5 .settings-select:focus-visible {
  outline: 3px solid #f9df97 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.88) !important;
}
