/* ─── Tour Diary – Frontend Styles (Theme-System kompatibel) ─── */

/* ─── Base Container ───────────────────────────────────────────── */
.tour-diary-timeline,
.tour-diary-list,
.tour-diary-gallery,
.tour-diary-detail,
.tour-diary-table,
.tour-diary-map {
  color: var(--theme-text, #111827);
  font-family: inherit;
}

/* ─── Hero Block (shared across all modes) ─────────────────────── */
.td-hero {
  margin-bottom: 2.5rem;
}

.td-hero-img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12);
}

.td-hero-text {
  margin-top: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--theme-border, #e5e7eb);
}

.td-hero-noimg .td-hero-text {
  margin-top: 0;
}

.td-hero-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.td-hero-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-text, #111827);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.td-hero-show-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--theme-primary, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px var(--theme-primary, rgba(79,70,229,0.4));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-hero-show-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px -2px var(--theme-primary, rgba(79,70,229,0.5));
}

.td-hero-show-btn svg {
  width: 14px;
  height: 14px;
}
  line-height: 1.2;
}

.td-hero-dates {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: var(--theme-text-muted, #6b7280);
  font-weight: 500;
}

.td-hero-description {
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--theme-text, #111827);
}

/* ─── Timeline ─────────────────────────────────────────────────── */
.tour-diary-timeline .tour-diary-stops {
  position: relative;
}

.tour-diary-timeline .tour-diary-stop {
  position: relative;
  transition: opacity 0.2s ease;
}

.tour-diary-timeline .tour-diary-stop:hover {
  opacity: 1;
}

/* Timeline dot glow */
.tour-diary-timeline .tour-diary-stop .td-timeline-dot {
  box-shadow: 0 0 0 4px var(--theme-bg, #ffffff), 0 0 0 6px var(--theme-primary, #2563eb);
}

/* ─── Table ────────────────────────────────────────────────────── */
.tour-diary-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.tour-diary-table thead {
  background: var(--theme-card-bg, #ffffff);
}

.tour-diary-table th,
.tour-diary-table td {
  padding: 0.875rem 1.25rem;
}

.tour-diary-table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text-muted, #6b7280);
}

.tour-diary-table tbody tr {
  transition: background-color 0.2s ease;
}

.tour-diary-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* ─── Gallery Grid ─────────────────────────────────────────────── */
.tour-diary-gallery .grid,
.td-gallery-grid {
  display: grid;
  gap: 0.75rem;
}

.td-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .td-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .td-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.td-gallery-item {
  position: relative;
  border-radius: var(--theme-radius, 0.5rem);
  overflow: hidden;
  cursor: pointer;
  background: var(--theme-card-bg, #f3f4f6);
  aspect-ratio: 1 / 1;
  transform: translateZ(0);
}

.td-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.td-gallery-item:hover img {
  transform: scale(1.06);
}

.td-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.td-gallery-item:hover::after {
  opacity: 1;
}

.td-gallery-item .td-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
  z-index: 2;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s ease;
}

.td-gallery-item:hover .td-gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.td-gallery-item .td-gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.td-gallery-item:hover .td-gallery-zoom {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ─── Detail View ──────────────────────────────────────────────── */
.tour-diary-detail .tour-diary-stop-detail {
  position: relative;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--theme-border, #e5e7eb);
}

.tour-diary-detail .tour-diary-stop-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.tour-diary-detail .tour-diary-stop-detail::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 3px;
  height: 2rem;
  background: var(--theme-primary, #2563eb);
  border-radius: 9999px;
}

/* ─── Embed Player ─────────────────────────────────────────────── */
.tour-diary-embed {
  background: #000;
  border-radius: var(--theme-radius, 0.5rem);
  overflow: hidden;
}

.tour-diary-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── Map ──────────────────────────────────────────────────────── */
.tour-diary-map {
  position: relative;
  z-index: 0;
}

.tour-diary-map .leaflet-container {
  background: var(--theme-bg, #ffffff);
  font-family: inherit;
  z-index: 0 !important;
}

.tour-diary-map .leaflet-pane,
.tour-diary-map .leaflet-control {
  z-index: 0 !important;
}

/* ─── Map Pins ─────────────────────────────────────────────────── */
.td-map-pin {
  position: relative;
  width: 24px;
  height: 30px;
  cursor: pointer;
}

.td-map-pin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--theme-primary, #4f46e5);
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border: 2px solid #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-map-pin:hover::before {
  transform: rotate(-45deg) scale(1.12);
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

.td-map-pin span {
  position: absolute;
  top: 4px;
  left: 0;
  width: 24px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.td-map-pin-base::before {
  background: linear-gradient(135deg, var(--theme-primary, #4f46e5), var(--theme-primary, #4f46e5));
  width: 27px;
  height: 27px;
  left: -1.5px;
  top: -1.5px;
}

.td-map-pin-base span {
  top: 5px;
  font-size: 11px;
}

/* ─── Map Popups ───────────────────────────────────────────────── */
.td-leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--theme-card-bg, #ffffff);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 0;
  overflow: hidden;
}

.td-leaflet-popup .leaflet-popup-content {
  margin: 0;
  line-height: inherit;
}

.td-leaflet-popup .leaflet-popup-tip {
  background: var(--theme-card-bg, #ffffff);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.td-popup-card {
  min-width: 220px;
  max-width: 260px;
}

.td-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.td-popup-body {
  padding: 0.875rem 1rem 1rem;
}

.td-popup-city {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text, #111827);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.td-popup-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--theme-text-muted, #6b7280);
  margin-bottom: 0.25rem;
}

.td-popup-venue {
  display: block;
  font-size: 0.75rem;
  color: var(--theme-text-muted, #6b7280);
  font-style: italic;
}

/* ─── Route Stats Card ─────────────────────────────────────────── */
.td-route-stats {
  margin-top: 2rem;
  background: var(--theme-card-bg, #ffffff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px -6px rgba(0,0,0,0.08);
  overflow: hidden;
}

.td-route-stats-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  border-bottom: 1px solid var(--theme-border, #e5e7eb);
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.td-route-stats-toggle:hover {
  background: rgba(0,0,0,0.02);
}

.td-route-stats-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.td-route-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--theme-pill-bg, #f3f4f6);
  color: var(--theme-text-muted, #6b7280);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.2s ease;
}

.td-route-stats-toggle:hover .td-route-chevron {
  background: var(--theme-primary, #4f46e5);
  color: #fff;
}

.td-route-stats .td-route-chevron svg {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.td-route-open .td-route-chevron svg {
  transform: rotate(180deg);
}

.td-route-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease 0.1s, padding 0.35s ease;
}

.td-route-open .td-route-body {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease 0.05s;
}

.td-route-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--theme-primary, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px var(--theme-primary, rgba(79,70,229,0.35));
}

.td-route-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text, #111827);
  line-height: 1.25;
  margin: 0;
}

.td-route-subtitle {
  font-size: 0.8125rem;
  color: var(--theme-text-muted, #6b7280);
  margin: 0.125rem 0 0;
}

.td-route-hero {
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.015));
}

.td-route-big {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--theme-text, #111827);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--theme-text, #111827), var(--theme-primary, #4f46e5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.td-route-unit {
  font-size: 0.875rem;
  color: var(--theme-text-muted, #6b7280);
  margin-top: 0.375rem;
  font-weight: 500;
}

.td-route-unit-muted {
  font-weight: 400;
  opacity: 0.7;
}

/* ─── Route Legs ───────────────────────────────────────────────── */
.td-route-legs {
  padding: 0 1.5rem 1.5rem;
}

.td-route-leg {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--theme-border, #e5e7eb);
}

.td-route-leg:last-child {
  border-bottom: none;
}

.td-route-leg-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--theme-primary, #4f46e5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px -1px var(--theme-primary, rgba(79,70,229,0.4));
}

.td-route-leg-body {
  flex: 1;
  min-width: 0;
}

.td-route-leg-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text, #111827);
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-route-arrow {
  color: var(--theme-text-muted, #9ca3af);
  font-weight: 500;
  margin: 0 0.25rem;
}

.td-route-leg-bar-bg {
  height: 5px;
  border-radius: 999px;
  background: var(--theme-surface, #f3f4f6);
  overflow: hidden;
}

.td-route-leg-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-primary, #4f46e5), var(--theme-primary, #6366f1));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-route-leg-km {
  text-align: right;
  flex-shrink: 0;
  min-width: 3.5rem;
}

.td-route-leg-km strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text, #111827);
  letter-spacing: -0.02em;
}

.td-route-leg-km span {
  font-size: 0.75rem;
  color: var(--theme-text-muted, #9ca3af);
  font-weight: 500;
  margin-left: 0.125rem;
}

/* ─── Search Bar ───────────────────────────────────────────────── */
.tour-diary-search {
  position: relative;
  margin-bottom: 2.5rem;
}

.tour-diary-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--theme-primary, #2563eb);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.tour-diary-search input {
  background: var(--theme-input-bg, var(--theme-card-bg, #ffffff));
  color: var(--theme-input-color, var(--theme-text, #111827));
  border: 1px solid var(--theme-input-border, var(--theme-border, #d1d5db));
  border-radius: 9999px;
  padding: 0.625rem 1.25rem 0.625rem 2.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.tour-diary-search input:focus {
  outline: none;
  border-color: var(--theme-primary, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary, #2563eb) 20%, transparent);
}

.tour-diary-search input::placeholder {
  color: var(--theme-text-muted, #6b7280);
  opacity: 0.8;
}

.tour-diary-search-meta {
  font-size: 0.75rem;
  color: var(--theme-text-muted, #6b7280);
  margin-top: 0.5rem;
  text-align: center;
}

/* ─── Inline Details Row (legacy fallback) ─────────────────────── */
[id^="td-details-row-"] {
  transition: opacity 0.25s ease;
}

[id^="td-details-row-"].hidden {
  display: none;
  opacity: 0;
}

/* ─── Modals ───────────────────────────────────────────────────── */
.td-modal {
  animation: td-fade-in 0.25s ease;
}

.td-modal.hidden {
  display: none !important;
}

.td-modal > div {
  animation: td-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Lightbox (injected by runtime.js) ────────────────────────── */
.tour-diary-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
  padding: 0;
}

.tour-diary-lightbox.is-visible {
  opacity: 1;
}

.td-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
}

.td-lightbox-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3rem 4rem;
}

.td-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--theme-radius, 0.5rem);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.td-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.td-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.td-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.td-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.td-lightbox-prev {
  left: 1rem;
}

.td-lightbox-next {
  right: 1rem;
}

.td-lightbox-counter {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
}

.td-lightbox-caption {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--theme-radius, 0.5rem);
  backdrop-filter: blur(4px);
  max-width: 80%;
  text-align: center;
  line-height: 1.4;
}

.td-lightbox-thumbs {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--theme-radius, 0.5rem);
  backdrop-filter: blur(4px);
  max-width: 90vw;
  overflow-x: auto;
}

.td-lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}

.td-lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
}

.td-lightbox-thumb {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.td-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-lightbox-thumb:hover,
.td-lightbox-thumb.active {
  opacity: 1;
  border-color: var(--theme-primary, #2563eb);
}

/* ─── List View (Modern Card Style) ────────────────────────────── */
.td-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.td-list-item {
  background: var(--theme-card-bg, #ffffff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: var(--theme-radius, 0.5rem);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--theme-card-shadow, 0 1px 3px rgba(0,0,0,0.1));
}

.td-list-item:hover {
  box-shadow: var(--theme-card-shadow, 0 1px 3px rgba(0,0,0,0.1)), 0 4px 16px rgba(0,0,0,0.08);
}

.td-list-item.is-open {
  box-shadow: var(--theme-card-shadow, 0 1px 3px rgba(0,0,0,0.1)), 0 8px 30px rgba(0,0,0,0.12);
  border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 30%, var(--theme-border, #e5e7eb));
}

.td-list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 4.5rem;
}

.td-list-row:hover {
  background: rgba(0,0,0,0.015);
}

.td-list-date {
  display: flex;
  flex-direction: column;
  min-width: 6rem;
  flex-shrink: 0;
}

.td-list-date-day {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--theme-text, #111827);
  line-height: 1.3;
}

.td-list-date-time {
  font-size: 0.75rem;
  color: var(--theme-text-muted, #6b7280);
  margin-top: 0.125rem;
}

.td-list-location {
  flex: 1;
  min-width: 0;
}

.td-list-city {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--theme-text, #111827);
  line-height: 1.3;
}

.td-list-venue {
  font-size: 0.8125rem;
  color: var(--theme-text-muted, #6b7280);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.td-list-country {
  font-size: 0.75rem;
  color: var(--theme-text-muted, #6b7280);
  margin-top: 0.125rem;
}

.td-list-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--theme-border, #e5e7eb);
  background: var(--theme-card-bg, #ffffff);
  color: var(--theme-text-muted, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-list-toggle:hover {
  background: var(--theme-bg, #f9fafb);
  color: var(--theme-text, #111827);
  border-color: var(--theme-primary, #2563eb);
  transform: scale(1.05);
}

.td-list-chevron {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-list-item.is-open .td-list-chevron {
  transform: rotate(180deg);
}

.td-list-details {
  border-top: 1px solid var(--theme-border, #e5e7eb);
}

.td-list-details.hidden {
  display: none;
}

.td-list-details:not(.hidden) {
  animation: td-fade-in 0.3s ease;
}

.td-list-details-inner {
  padding: 1.25rem;
}

/* ─── Theme Opacity Utilities (color-mix for hex compat) ───────── */
.td-text-primary { color: var(--theme-primary, #2563eb); }
.td-text-primary-60 { color: color-mix(in srgb, var(--theme-primary, #2563eb) 60%, transparent); }
.td-text-primary-70 { color: color-mix(in srgb, var(--theme-primary, #2563eb) 70%, transparent); }

.td-bg-primary-10 { background: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, transparent); }

.td-border-primary-20 { border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 20%, transparent); }

.td-bg-surface-50 { background: color-mix(in srgb, var(--theme-card-bg, #f3f4f6) 50%, transparent); }

.td-border-border-30 { border-color: color-mix(in srgb, var(--theme-border, #e5e7eb) 30%, transparent); }

.td-border-border-50 { border-color: color-mix(in srgb, var(--theme-border, #e5e7eb) 50%, transparent); }

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes td-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes td-scale-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes td-slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── Utility Enhancements ─────────────────────────────────────── */
.td-card {
  background: var(--theme-card-bg, #ffffff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: var(--theme-radius, 0.5rem);
  box-shadow: var(--theme-card-shadow, 0 1px 3px rgba(0,0,0,0.1));
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.td-card:hover {
  box-shadow: var(--theme-card-shadow, 0 1px 3px rgba(0,0,0,0.1)), 0 10px 25px -5px rgba(0,0,0,0.15);
}

/* ─── Slideshow Player ─────────────────────────────────────────── */
.tour-diary-slideshow {
  user-select: none;
}

.td-slideshow-container {
  position: relative;
  background: #000;
  cursor: pointer;
  outline: none;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--theme-border, #e5e7eb);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
}

.td-slideshow-container:focus-visible {
  box-shadow: 0 0 0 3px var(--theme-primary, #2563eb);
}

.td-slideshow-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.td-slideshow-overlay {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.td-slideshow-play {
  animation: td-scale-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.td-slideshow-controls {
  pointer-events: none;
}

.td-slideshow-container:hover .td-slideshow-controls {
  opacity: 1;
}

.td-slideshow-controls button {
  pointer-events: auto;
}

.td-slideshow-info {
  pointer-events: none;
}

.td-slideshow-container:hover .td-slideshow-info {
  opacity: 1;
}

.td-slideshow-caption {
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.td-slideshow-meta {
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ─── Future Stops ──────────────────────────────────────────────── */
.td-badge-future {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  line-height: 1;
  white-space: nowrap;
}

.td-badge-future svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Timeline future styling */
.tour-diary-timeline .tour-diary-stop.td-stop-future .td-card-future {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #2563eb) 4%, var(--theme-card-bg, #ffffff)) 0%, var(--theme-card-bg, #ffffff) 100%);
  border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 25%, var(--theme-border, #e5e7eb));
}

.tour-diary-timeline .tour-diary-stop.td-stop-future .td-timeline-dot-future {
  box-shadow: 0 0 0 4px var(--theme-bg, #ffffff), 0 0 0 6px color-mix(in srgb, var(--theme-primary, #2563eb) 50%, #93c5fd);
}

/* Gallery future styling */
.td-gallery-group-future .td-dot-future {
  background: color-mix(in srgb, var(--theme-primary, #2563eb) 50%, #93c5fd) !important;
}

/* List future styling */
.td-list-item.td-list-item-future {
  border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 25%, var(--theme-border, #e5e7eb));
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #2563eb) 3%, var(--theme-card-bg, #ffffff)) 0%, var(--theme-card-bg, #ffffff) 100%);
}

/* Table future styling */
.tour-diary-table tbody tr.td-table-row-future {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #2563eb) 3%, var(--theme-card-bg, #ffffff)) 0%, var(--theme-card-bg, #ffffff) 100%);
}

.tour-diary-table tbody tr.td-table-row-future:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #2563eb) 6%, var(--theme-card-bg, #ffffff)) 0%, var(--theme-card-bg, #ffffff) 100%);
}

/* Detail future styling */
.tour-diary-detail .tour-diary-stop-detail.td-detail-future::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-primary, #2563eb) 50%, #93c5fd), var(--theme-primary, #2563eb));
}

/* Map future pin styling */
.td-map-pin-future::before {
  background: linear-gradient(135deg, #93c5fd, #60a5fa) !important;
  border-style: dashed;
}

.td-map-pin-future span {
  color: #1e40af;
  text-shadow: none;
}

/* Map popup future text */
.td-popup-future {
  color: #2563eb;
  font-weight: 600;
}

/* ─── Map Tooltip ────────────────────────────────────────────────── */
.td-map-tooltip-wrap {
  background: rgba(30,30,30,0.88) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4) !important;
  padding: 0 !important;
  opacity: 1 !important;
  color: #fff !important;
}

.td-map-tooltip-wrap .leaflet-tooltip-tip {
  background: rgba(30,30,30,0.88) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  width: 8px !important;
  height: 8px !important;
  margin: -5px auto 0 !important;
}

.td-map-tooltip {
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  line-height: 1.35;
  min-width: 160px;
}

.td-map-tooltip strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.125rem;
  letter-spacing: 0.01em;
}

.td-map-tooltip-venue {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.td-map-tooltip-date {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Map Marker Modals ──────────────────────────────────────────── */
.td-map-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 1rem;
}

.td-map-modal.td-map-modal-open {
  opacity: 1;
  visibility: visible;
}

.td-map-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--theme-card-bg, #ffffff);
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.td-map-modal.td-map-modal-open .td-map-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Oldschool title bar */
.td-map-modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.td-map-modal-titlebar-left {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.td-map-modal-titlebar-city {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-map-modal-titlebar-date {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.td-map-modal-close {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.td-map-modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.td-map-modal-hero {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0 0 0.5rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.td-map-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.td-map-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.td-map-modal-hero-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background 0.2s ease;
}

.td-map-modal-hero:hover .td-map-modal-hero-hint {
  background: rgba(0,0,0,0.65);
}

.td-map-modal-content {
  padding: 1.5rem;
}

.td-map-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.td-map-modal-city {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--theme-text, #111827);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.td-map-modal-base {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--theme-primary, #4f46e5);
  color: #fff;
}

.td-map-modal-venue {
  font-size: 0.9375rem;
  color: var(--theme-text-muted, #6b7280);
  margin: 0.25rem 0 0;
}

.td-map-modal-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.td-map-modal-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text, #111827);
}

.td-map-modal-time {
  font-size: 0.75rem;
  color: var(--theme-text-muted, #6b7280);
}

.td-map-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.td-map-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.td-map-modal-badge-future {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.td-map-modal-badge-cancelled {
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
}

.td-map-modal-badge-venue {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.td-map-modal-badge-intermediate {
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.td-map-modal-badge-video {
  color: #be123c;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

.td-map-modal-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.td-map-modal-thumb {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}

.td-map-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.td-map-modal-thumb:hover img {
  transform: scale(1.06);
}

.td-map-modal-thumb.td-map-modal-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-primary, #4f46e5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.td-map-modal-section {
  margin-bottom: 1.25rem;
}

.td-map-modal-section:last-child {
  margin-bottom: 0;
}

.td-map-modal-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-text-muted, #6b7280);
  margin: 0 0 0.5rem;
}

.td-map-modal-report {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--theme-text, #374151);
}

.td-map-modal-setlist {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--theme-text, #374151);
  background: #f9fafb;
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.td-map-modal-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.td-map-modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Map Modal Inline Image Viewer ──────────────────────────────── */
.td-map-modal-viewer {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  border-radius: 1.25rem;
  overflow: hidden;
}

.td-map-modal-viewer.td-map-modal-viewer-open {
  opacity: 1;
  visibility: visible;
}

.td-map-modal-viewer-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  overflow: hidden;
}

.td-map-modal-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.td-map-modal-viewer-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 25;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.td-map-modal-viewer-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.08);
}

.td-map-modal-viewer-prev,
.td-map-modal-viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.td-map-modal-viewer-prev:hover,
.td-map-modal-viewer-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.06);
}

.td-map-modal-viewer-prev { left: 0.75rem; }
.td-map-modal-viewer-next { right: 0.75rem; }

.td-map-modal-viewer-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tour-diary-timeline .tour-diary-stop {
    padding-left: 1.5rem;
  }

  .td-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .tour-diary-table {
    font-size: 0.75rem;
  }

  .tour-diary-table th,
  .tour-diary-table td {
    padding: 0.5rem;
  }

  .td-lightbox-stage {
    padding: 1rem;
  }

  .td-lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .td-lightbox-prev { left: 0.5rem; }
  .td-lightbox-next { right: 0.5rem; }

  .td-slideshow-container {
    border-radius: var(--theme-radius, 0.5rem);
  }

  .td-slideshow-controls {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .td-slideshow-controls button {
    width: 2.25rem;
    height: 2.25rem;
  }

  .td-slideshow-controls .td-slideshow-pause {
    width: 2.75rem;
    height: 2.75rem;
  }

  .td-map-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .td-map-modal-dialog {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 1rem 1rem 0 0;
    transform: translateY(40px) scale(0.98);
  }

  .td-map-modal.td-map-modal-open .td-map-modal-dialog {
    transform: translateY(0) scale(1);
  }

  .td-map-modal-hero {
    height: 160px;
    border-radius: 0 0 0.5rem 0.5rem;
  }

  .td-map-modal-content {
    padding: 1rem;
  }

  .td-map-modal-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .td-map-modal-titlebar {
    padding: 0.625rem 0.75rem;
  }

  .td-map-modal-titlebar-city {
    font-size: 0.875rem;
  }

  .td-map-modal-titlebar-date {
    font-size: 0.75rem;
  }
}

/* ─── Tour Show – Intro Overlay ────────────────────────────────── */
.td-show-intro {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.td-show-intro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.td-show-intro-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.td-show-intro-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.td-show-intro-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.td-slideshow-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #111827;
  border: none;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-slideshow-play:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.4);
}

/* ─── Tour Show – Controls ─────────────────────────────────────── */
.td-slideshow-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.td-slideshow-container:hover .td-slideshow-controls {
  opacity: 1;
}

.td-slideshow-controls button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.td-slideshow-controls button:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

.td-slideshow-controls .td-slideshow-pause {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.2);
}

/* ─── Tour Show – Top Info ─────────────────────────────────────── */
.td-slideshow-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.td-slideshow-container:hover .td-slideshow-info {
  opacity: 1;
}

.td-show-info-left {
  flex: 1;
  min-width: 0;
}

.td-slideshow-caption {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-slideshow-meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.td-show-chapter-track {
  width: 6rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.td-show-chapter-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.td-slideshow-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ─── Tour Show – Overlay base ─────────────────────────────────── */
.td-slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
}

/* ─── Tour Show – Teaser Card ──────────────────────────────────── */
.td-show-teaser {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25);
}

.td-show-teaser-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
}

.td-show-teaser-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 2rem;
  color: #fff;
}

.td-show-teaser-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.td-show-teaser-icon svg {
  width: 2rem;
  height: 2rem;
}

.td-show-teaser-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.td-show-teaser-meta {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.td-show-teaser-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #111827;
  border: none;
  border-radius: 9999px;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.td-show-teaser-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 15px 40px -5px rgba(0,0,0,0.4);
}

.td-show-teaser-noimg {
  background: linear-gradient(135deg, var(--theme-primary, #4f46e5), #1e1b4b);
}

/* ─── Tour Show – Modal ────────────────────────────────────────── */
.td-show-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.td-show-modal.hidden {
  display: none !important;
}

.td-show-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.td-show-modal-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  background: #0a0a0f;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7);
}

.td-show-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.td-show-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* Modal responsive */
@media (max-width: 768px) {
  .td-show-modal {
    padding: 0;
  }
  .td-show-modal-inner {
    border-radius: 0;
    max-width: 100%;
    height: 100vh;
  }
  .td-show-teaser {
    min-height: 220px;
  }
  .td-show-teaser-title {
    font-size: 1.5rem;
  }
  .td-show-teaser-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}
