.tour-discovery-page {
  --tour-discovery-bg: radial-gradient(circle at 4% 0%, #f4f8ff 0%, #eef2f8 52%, #e7edf5 100%);
  --tour-discovery-panel: rgba(255, 255, 255, 0.92);
  --tour-discovery-panel-border: #d5deea;
  --tour-discovery-ink: #1f2f3e;
  --tour-discovery-muted: #5d6d7c;
  --tour-discovery-accent: #2f6ed6;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--tour-discovery-ink);
  background: var(--tour-discovery-bg);
  position: relative;
}

.tour-discovery-page > .v-main__wrap {
  padding-top: clamp(5rem, 8vw, 6rem);
}

.theme--light .tour-discovery-page,
.tour-discovery-page.theme--light {
  --tour-discovery-bg: radial-gradient(circle at 4% 0%, #f4f8ff 0%, #eef2f8 52%, #e7edf5 100%);
  --tour-discovery-panel: rgba(255, 255, 255, 0.92);
  --tour-discovery-panel-border: #d5deea;
  --tour-discovery-ink: #1f2f3e;
  --tour-discovery-muted: #5d6d7c;
  --tour-discovery-accent: #2f6ed6;
}

@media (prefers-color-scheme: dark) {
  .tour-discovery-page:not(.theme--light):not(.theme--dark) {
    --tour-discovery-bg: linear-gradient(180deg, #16212d 0%, #111b26 35%, #0f1724 100%);
    --tour-discovery-panel: rgba(20, 29, 41, 0.7);
    --tour-discovery-panel-border: #2d3e53;
    --tour-discovery-ink: #eff4fb;
    --tour-discovery-muted: #a2afbe;
    --tour-discovery-accent: #85a9ff;
  }
}

.theme--dark .tour-discovery-page,
.tour-discovery-page.theme--dark {
  --tour-discovery-bg: linear-gradient(180deg, #16212d 0%, #111b26 35%, #0f1724 100%);
  --tour-discovery-panel: rgba(20, 29, 41, 0.7);
  --tour-discovery-panel-border: #2d3e53;
  --tour-discovery-ink: #eff4fb;
  --tour-discovery-muted: #a2afbe;
  --tour-discovery-accent: #85a9ff;
}

.theme--dark .tour-discovery-choice-country--palette-fallback {
  --tour-discovery-choice-country-foreground: #bfd5ff;
}

.theme--dark .tour-discovery-choice-country--palette-0 {
  --tour-discovery-choice-country-foreground: #8cc0ff;
}

.theme--dark .tour-discovery-choice-country--palette-1 {
  --tour-discovery-choice-country-foreground: #ff8fd8;
}

.theme--dark .tour-discovery-choice-country--palette-2 {
  --tour-discovery-choice-country-foreground: #81efb8;
}

.theme--dark .tour-discovery-choice-country--palette-3 {
  --tour-discovery-choice-country-foreground: #ffd16e;
}

.theme--dark .tour-discovery-choice-country--palette-4 {
  --tour-discovery-choice-country-foreground: #7fe0f1;
}

.theme--dark .tour-discovery-choice-country--palette-5 {
  --tour-discovery-choice-country-foreground: #cfa6ff;
}

.theme--dark .tour-discovery-choice-country--palette-6 {
  --tour-discovery-choice-country-foreground: #6be8ff;
}

.theme--dark .tour-discovery-choice-country--palette-7 {
  --tour-discovery-choice-country-foreground: #ff9f9f;
}

.tour-discovery-page * {
  box-sizing: border-box;
}

:root[data-tour-discovery-header-banner-state='banner-visible'] #bar-title,
:root[data-tour-discovery-header-banner-state='banner-hidden'] #bar-title,
:root.tour-discovery-header-banner-title-reduced-motion #bar-title {
  transition: opacity 180ms ease-in-out, transform 180ms ease-in-out;
}

:root[data-tour-discovery-header-banner-state='banner-visible'] #bar-title {
  opacity: 1;
  transform: translateY(0);
}

:root[data-tour-discovery-header-banner-state='banner-hidden'] #bar-title,
:root.tour-discovery-header-banner-title-hidden #bar-title {
  opacity: 0;
  transform: translateY(-4px);
}

:root.tour-discovery-header-banner-title-reduced-motion #bar-title {
  transition: opacity 0ms linear, transform 0ms linear;
}

@media (prefers-reduced-motion: reduce) {
  :root[data-tour-discovery-header-banner-state='banner-visible'] #bar-title,
  :root[data-tour-discovery-header-banner-state='banner-hidden'] #bar-title,
  :root.tour-discovery-header-banner-title-hidden #bar-title,
  :root.tour-discovery-header-banner-title-reduced-motion #bar-title {
    transition: opacity 0ms linear, transform 0ms linear;
  }
}

.tour-discovery-hero {
  margin-bottom: 1rem;
}

.tour-discovery-brand-banner {
  margin: 0 0 1rem;
  padding: 0;
  max-width: min(100%, 64rem);
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tour-discovery-brand-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.tour-discovery-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  line-height: 1.1;
  color: var(--tour-discovery-ink);
}

.tour-discovery-subtitle {
  margin: 0.45rem 0 0;
  color: var(--tour-discovery-muted);
  max-width: 66ch;
}

.tour-discovery-search {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--tour-discovery-panel);
  border: 1px solid var(--tour-discovery-panel-border);
}

.tour-discovery-label {
  display: block;
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.tour-discovery-search-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.tour-discovery-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--tour-discovery-panel-border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  min-height: 44px;
  background: #fff;
}

.tour-discovery-search-input:focus-visible,
.tour-discovery-reset:focus-visible,
.tour-discovery-card:focus-visible,
.tour-discovery-card-media-wrap:focus-within,
.tour-discovery-clear-btn:focus-visible,
.tour-discovery-track-action:focus-visible,
.tour-discovery-audio-action:focus-visible,
.tour-discovery-audio-range:focus-visible,
.tour-discovery-stop-card:focus-visible,
.tour-discovery-credit-link:focus-visible,
.tour-discovery-legend-item:focus-within {
  outline: 3px solid rgba(47, 110, 214, 0.45);
  outline-offset: 2px;
}

.tour-discovery-reset {
  border: 0;
  background: #2f6ed6;
  color: #fff;
  border-radius: 10px;
  padding: 0 1rem;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
}

.tour-discovery-reset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tour-discovery-hint {
  margin: 0.55rem 0 0;
  color: var(--tour-discovery-muted);
}

.tour-discovery-empty {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px dashed #cfd9e5;
  background: #f8fbff;
}

.tour-discovery-empty-title {
  margin: 0;
  font-weight: 700;
}

.tour-discovery-empty p {
  margin: 0.35rem 0 0;
  color: var(--tour-discovery-muted);
}

.tour-discovery-cards {
  display: grid;
  gap: 1rem;
}

.tour-discovery-destination-group {
  display: grid;
  gap: 0.65rem;
}

.tour-discovery-destination-title {
  margin: 0;
  font-size: 1.3rem;
}

.tour-discovery-destination-cards {
  display: grid;
  gap: 1rem;
}

.tour-discovery-detail-shell {
  margin: 1rem 0 1.25rem;
  border: 1px solid color-mix(in srgb, var(--tour-detail-accent) 28%, #d3deea);
  border-radius: 14px;
  padding: 1rem;
  background: var(--tour-detail-surface, var(--tour-discovery-panel));
  box-shadow: 0 16px 30px rgba(19, 31, 49, 0.12);
  color: var(--tour-detail-ink, var(--tour-discovery-ink));
  display: grid;
  gap: 0.9rem;
}

.tour-discovery-player-placement-top {
  order: -1;
}

.tour-discovery-emphasis-editorial {
  --tour-discovery-stop-body-max: 1;
}

.tour-discovery-emphasis-itinerary .tour-discovery-stop-summary,
.tour-discovery-emphasis-itinerary .tour-discovery-stop-facts,
.tour-discovery-emphasis-itinerary .tour-discovery-stop-transcript {
  display: none;
}

.tour-discovery-emphasis-itinerary .tour-discovery-stop-media {
  color: #2d4766;
  font-weight: 600;
}

.tour-discovery-detail-head {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.mini-kicker {
  margin: 0;
  color: var(--tour-detail-muted, var(--tour-discovery-muted));
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tour-discovery-detail-title {
  margin: 0;
  color: var(--tour-detail-ink, var(--tour-discovery-ink));
  font-size: 1.45rem;
  line-height: 1.2;
}

.tour-discovery-detail-subtitle {
  margin: 0.25rem 0;
  color: var(--tour-detail-muted, var(--tour-discovery-muted));
}

.tour-discovery-detail-summary {
  margin: 0;
  color: var(--tour-detail-muted, var(--tour-discovery-muted));
}

.tour-discovery-clear-btn,
.tour-discovery-reset {
  min-height: 44px;
  min-width: 44px;
}

.tour-discovery-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6d4e6;
  background: #fff;
  color: var(--tour-detail-ink, #1d3349);
  border-radius: 10px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-discovery-detail-block {
  padding: 0.8rem;
  background: color-mix(in srgb, var(--tour-detail-surface, var(--tour-discovery-panel)) 84%, #fff);
  border: 1px solid color-mix(in srgb, var(--tour-detail-muted) 24%, #d6e0eb);
  border-radius: 12px;
}

.tour-discovery-detail-headline {
  margin: 0 0 0.55rem;
}

.tour-discovery-detail-media {
  width: 100%;
  max-height: 340px;
  border-radius: 12px;
  object-fit: cover;
}

.tour-discovery-detail-hero-copy {
  margin: 0.55rem 0 0;
  color: var(--tour-detail-muted, var(--tour-discovery-muted));
}

.tour-discovery-locator-map {
  width: 100%;
  max-width: 48rem;
  margin: 0.75rem 0;
  padding: 0.4rem;
  overflow: hidden;
  border: 2px solid #2f6ed6;
  border-radius: 12px;
  background: #f4f8ff;
}

.tour-discovery-locator-map-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.tour-discovery-locator-map-caption {
  margin: 0.45rem 0.15rem 0.1rem;
  color: #405c7d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tour-discovery-detail-sections,
.tour-discovery-stop-grid,
.tour-discovery-tracks,
.tour-discovery-marker-list,
.tour-discovery-reference-list,
.tour-discovery-notes-list,
.tour-discovery-credits-list,
.tour-discovery-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.tour-discovery-detail-section {
  border: 1px solid #d9e4f3;
  border-radius: 12px;
  padding: 0.65rem;
  background: #f6fafe;
}

.tour-discovery-detail-section-title {
  margin: 0;
  font-weight: 700;
}

.tour-discovery-detail-section-sub {
  margin: 0.35rem 0 0.45rem;
  color: #5c7390;
}

.tour-discovery-detail-stop-list-item,
.tour-discovery-stop-facts li {
  margin: 0;
}

.tour-discovery-stop-card {
  border: 1px solid #dae2ef;
  border-radius: 12px;
  padding: 0.65rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(150px, 240px) 1fr;
  background: #f9fbff;
  min-height: 44px;
}

.tour-discovery-stop-grid--compact {
  gap: 0.6rem;
}

.tour-discovery-stop-grid--story-grid {
  gap: 0.75rem;
}

.tour-discovery-stop-card--compact {
  grid-template-columns: 1fr;
}

.tour-discovery-stop-card--story-grid {
  grid-template-columns: minmax(150px, 240px) 1fr;
}

.tour-discovery-stop-card--itinerary .tour-discovery-stop-image,
.tour-discovery-stop-card--compact .tour-discovery-stop-image {
  min-height: 130px;
}

.tour-discovery-stop-section--condensed {
  color: #334a68;
  font-weight: 700;
}

.tour-discovery-stop-card:focus-visible {
  outline: 3px solid rgba(47, 110, 214, 0.45);
  outline-offset: 2px;
}

.tour-discovery-stop-card--active {
  border-color: color-mix(in srgb, var(--tour-detail-accent, #2f6ed6) 62%, #d6e0eb);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tour-detail-accent, #2f6ed6) 35%, transparent);
}

.tour-discovery-stop-image {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  min-height: 150px;
}

.tour-discovery-stop-body {
  min-width: 0;
}

.tour-discovery-stop-title {
  margin: 0.2rem 0 0.3rem;
}

.tour-discovery-stop-meta {
  margin: 0;
  color: var(--tour-detail-muted, #60768f);
  font-size: 0.9rem;
}

.tour-discovery-stop-summary,
.tour-discovery-stop-section,
.tour-discovery-stop-media,
.tour-discovery-mini-title,
.tour-discovery-map-summary,
.tour-discovery-claim-item,
.tour-discovery-reference-meta {
  margin: 0.35rem 0 0;
  color: #556778;
}

.tour-discovery-stop-transcript {
  margin-top: 0.5rem;
  border-left: 3px solid var(--tour-detail-accent, #2f6ed6);
  padding: 0.35rem 0.6rem;
  background: #f1f5fc;
  border-radius: 8px;
}

.tour-discovery-track-item,
.tour-discovery-marker-list li,
.tour-discovery-reference-list li,
.tour-discovery-notes-list li,
.tour-discovery-credits-list li,
.tour-discovery-related-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tour-discovery-credits-list li {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tour-discovery-credit-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tour-discovery-track-item {
  justify-content: space-between;
  gap: 0.6rem;
}

.tour-discovery-detail-meta,
.tour-discovery-related {
  margin-top: 0.25rem;
}

.tour-discovery-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  align-items: stretch;
  background: var(--tour-discovery-panel);
  border: 1px solid var(--tour-discovery-panel-border);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(20, 38, 58, 0.08);
  padding: 0.95rem;
  cursor: pointer;
  min-height: 44px;
}

.tour-discovery-card--selected {
  border-color: #3b7ae4;
  box-shadow: 0 16px 28px rgba(47, 110, 214, 0.18);
}

.tour-discovery-destination-choices,
.tour-discovery-tour-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tour-discovery-destination-choice,
.tour-discovery-tour-choice {
  display: grid;
  grid-template-rows: minmax(170px, 220px) 1fr;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--tour-discovery-panel-border);
  border-radius: 14px;
  background: var(--tour-discovery-panel);
  box-shadow: 0 12px 28px rgba(20, 38, 58, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tour-discovery-destination-choice:hover,
.tour-discovery-tour-choice:hover {
  border-color: var(--tour-discovery-accent);
  box-shadow: 0 16px 32px rgba(20, 38, 58, 0.14);
  transform: translateY(-2px);
}

.tour-discovery-destination-choice:focus-visible,
.tour-discovery-tour-choice:focus-visible {
  outline: 3px solid var(--tour-discovery-accent);
  outline-offset: 3px;
}

.tour-discovery-choice-media {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  background: #e8edf4;
}

.tour-discovery-choice-body {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1rem;
}

.tour-discovery-choice-country,
.tour-discovery-choice-meta {
  margin: 0;
  color: var(--tour-discovery-choice-country-foreground, var(--tour-discovery-muted));
  font-size: 0.9rem;
}

.tour-discovery-choice-country {
  --tour-discovery-choice-country-foreground: var(--tour-discovery-muted);
}

.tour-discovery-choice-country--palette-fallback {
  --tour-discovery-choice-country-foreground: #4c5b6a;
}

.tour-discovery-choice-country--palette-0 {
  --tour-discovery-choice-country-foreground: #1f3f79;
}

.tour-discovery-choice-country--palette-1 {
  --tour-discovery-choice-country-foreground: #5b0f68;
}

.tour-discovery-choice-country--palette-2 {
  --tour-discovery-choice-country-foreground: #0b5d33;
}

.tour-discovery-choice-country--palette-3 {
  --tour-discovery-choice-country-foreground: #6a3d08;
}

.tour-discovery-choice-country--palette-4 {
  --tour-discovery-choice-country-foreground: #0e5465;
}

.tour-discovery-choice-country--palette-5 {
  --tour-discovery-choice-country-foreground: #45206f;
}

.tour-discovery-choice-country--palette-6 {
  --tour-discovery-choice-country-foreground: #0a3f82;
}

.tour-discovery-choice-country--palette-7 {
  --tour-discovery-choice-country-foreground: #5b1d2c;
}

.tour-discovery-choice-title {
  margin: 0;
  color: var(--tour-discovery-ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.tour-discovery-choice-summary {
  margin: 0;
  color: var(--tour-discovery-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-discovery-choice-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tour-discovery-accent);
  font-weight: 700;
}

.tour-discovery-card-media-wrap {
  position: relative;
  min-height: 170px;
}

.tour-discovery-card-media {
  width: 100%;
  height: 100%;
  min-height: 170px;
  border-radius: 11px;
  object-fit: cover;
  background: #e8edf4;
  border: 1px solid #d6deea;
}

.tour-discovery-card-media--fallback {
  filter: grayscale(0.1);
  opacity: 0.85;
}

.tour-discovery-card-badge {
  position: absolute;
  right: 0.45rem;
  top: 0.45rem;
  background: rgba(10, 34, 62, 0.75);
  color: #f2f8ff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.tour-discovery-card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.tour-discovery-card-subtitle,
.tour-discovery-card-summary,
.tour-discovery-legend-head {
  margin: 0.35rem 0 0;
}

.tour-discovery-card-summary,
.tour-discovery-empty p,
.tour-discovery-hint,
.tour-discovery-card-subtitle {
  color: var(--tour-discovery-muted);
}

.tour-discovery-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.tour-discovery-card-meta-item {
  background: #f3f7ff;
  border: 1px solid #d3def2;
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
}

.tour-discovery-card-meta-item strong {
  display: block;
  color: var(--tour-discovery-accent);
  font-size: 1.1rem;
}

.tour-discovery-card-meta-item span {
  font-size: 0.82rem;
}

.tour-discovery-legend {
  margin-top: 0.85rem;
  border-top: 1px solid #e3eaf3;
  padding-top: 0.65rem;
}

.tour-discovery-legend-head {
  font-weight: 700;
}

.tour-discovery-legend-list {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.tour-discovery-legend-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.tour-discovery-legend-index {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  background: #d6e4ff;
  color: #1f3f79;
  font-weight: 700;
}

@media (max-width: 760px) {
  .tour-discovery-destination-choices,
  .tour-discovery-tour-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-discovery-detail-head {
    grid-template-columns: 1fr;
  }

  .tour-discovery-stop-card,
  .tour-discovery-card {
    grid-template-columns: 1fr;
  }

  .tour-discovery-card-media-wrap {
    min-height: 150px;
  }

  .tour-discovery-search-row {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .tour-discovery-destination-choices,
  .tour-discovery-tour-choices {
    grid-template-columns: 1fr;
  }

  .tour-discovery-page,
  .tour-discovery-brand-banner,
  .tour-discovery-brand-banner-image,
  .tour-discovery-locator-map,
  .tour-discovery-locator-map-image,
  .tour-discovery-locator-map-caption,
  .tour-discovery-detail-shell,
  .tour-discovery-detail-block,
  .tour-discovery-card,
  .tour-discovery-card-media-wrap,
  .tour-discovery-search,
  .tour-discovery-search-input,
  .tour-discovery-route-picker,
  .tour-discovery-audio-controls,
  .tour-discovery-track-item,
  .tour-discovery-detail-head,
  .tour-discovery-audio-summary {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .tour-discovery-page {
    padding: 0.4rem;
  }

  .tour-discovery-title {
    font-size: 1.7rem;
  }

  .tour-discovery-card-meta {
    grid-template-columns: 1fr;
  }

  .tour-discovery-card-title,
  .tour-discovery-detail-title,
  .tour-discovery-stop-title,
  .tour-discovery-mini-title,
  .tour-discovery-detail-section-title {
    word-wrap: anywhere;
    overflow-wrap: anywhere;
  }
}

.tour-discovery-detail-audio-block {
  border: 1px solid rgba(35, 52, 77, 0.12);
  background: linear-gradient(180deg, rgba(250, 254, 255, 0.9), rgba(243, 249, 255, 0.94));
  border-radius: 14px;
  padding: 12px 14px;
}

.tour-discovery-audio-shell {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.tour-discovery-selected-transcript {
  min-width: 0;
  border-left: 3px solid var(--tour-detail-accent, #2f6ed6);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: #f1f5fc;
}

.tour-discovery-selected-transcript-text {
  max-width: 75ch;
  margin: 0.45rem 0 0;
  color: var(--tour-detail-ink, #23344d);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.tour-discovery-audio-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tour-discovery-track-progress {
  margin: 0;
  min-width: 140px;
}

.tour-discovery-audio-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tour-discovery-audio-action {
  border: 1px solid rgba(30, 63, 133, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #15345d;
  font-weight: 600;
  min-height: 44px;
}

.tour-discovery-audio-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tour-discovery-audio-primary {
  background: #15345d;
  color: #fff;
}

.tour-discovery-audio-progress-label {
  display: block;
  font-size: 0.9rem;
  color: #4f637d;
}

.tour-discovery-audio-range {
  width: 100%;
  accent-color: #15345d;
  min-height: 44px;
}

.tour-discovery-audio-error {
  color: #a22f2f;
  margin: 0;
  font-weight: 600;
}

.tour-discovery-empty-mini {
  margin: 4px 0 0;
  color: #5f7289;
}

.tour-discovery-tracks {
  margin: 6px 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tour-discovery-track-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tour-discovery-track-item--active .tour-discovery-track-action {
  border-color: #2f6ed6;
  box-shadow: 0 0 0 2px rgba(47, 110, 214, 0.2);
}

.tour-discovery-track-action {
  text-align: left;
  border: 1px solid rgba(47, 110, 214, 0.28);
  background: #fff;
  color: #12376a;
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 10px;
}

.tour-discovery-track-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tour-discovery-track-item span {
  font-size: 0.85rem;
  color: #4b5f78;
}

.theme--dark .tour-discovery-detail-shell,
.theme--dark .tour-discovery-detail-block,
.theme--dark .tour-discovery-detail-section,
.theme--dark .tour-discovery-stop-card,
.theme--dark .tour-discovery-empty,
.theme--dark .tour-discovery-card-meta-item,
.theme--dark .tour-discovery-stop-transcript,
.theme--dark .tour-discovery-selected-transcript,
.theme--dark .tour-discovery-detail-audio-block {
  background: #192536;
  border-color: #3b4d63;
  color: var(--tour-discovery-ink);
}

.theme--dark .tour-discovery-clear-btn,
.theme--dark .tour-discovery-track-action,
.theme--dark .tour-discovery-audio-action {
  background: #162434;
  border-color: #526984;
  color: var(--tour-discovery-ink);
}

.theme--dark .tour-discovery-audio-primary {
  background: var(--tour-discovery-accent);
  color: #0f1b2a;
}

.theme--dark .tour-discovery-locator-map {
  border-color: #72a7ff;
  background: #111f31;
}

.theme--dark .tour-discovery-locator-map-caption {
  color: var(--tour-discovery-muted);
}

.theme--dark .tour-discovery-stop-meta,
.theme--dark .tour-discovery-stop-summary,
.theme--dark .tour-discovery-stop-section,
.theme--dark .tour-discovery-stop-media,
.theme--dark .tour-discovery-mini-title,
.theme--dark .tour-discovery-map-summary,
.theme--dark .tour-discovery-claim-item,
.theme--dark .tour-discovery-reference-meta,
.theme--dark .tour-discovery-detail-section-sub,
.theme--dark .tour-discovery-audio-progress-label,
.theme--dark .tour-discovery-empty-mini,
.theme--dark .tour-discovery-track-item span {
  color: var(--tour-discovery-muted);
}

@media (prefers-reduced-motion: reduce) {
  .tour-discovery-page,
  .tour-discovery-search,
  .tour-discovery-card,
  .tour-discovery-card-media,
  .tour-discovery-detail-shell,
  .tour-discovery-detail-block,
  .tour-discovery-stop-card,
  .tour-discovery-track-action,
  .tour-discovery-audio-action,
  .tour-discovery-audio-range,
  .tour-discovery-clear-btn,
  .tour-discovery-reset,
  .tour-discovery-audio-primary,
  :root[data-tour-discovery-header-banner-state='banner-visible'] #bar-title,
  :root[data-tour-discovery-header-banner-state='banner-hidden'] #bar-title,
  :root.tour-discovery-header-banner-title-hidden #bar-title,
  :root.tour-discovery-header-banner-title-reduced-motion #bar-title {
    transition: none;
    animation: none;
  }
}
