/* ==========================================================================
   Romistry Travels - Ultra-Luxury Tour Detail Stylesheet (tour-detail.css)
   Bespoke Editorial Travel Design with Glassmorphism & Gold Accents
   ========================================================================== */

/* Base Background & Box Sizing */
html {
  background-color: #040F1E;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Mobile & Tablet Overflow Shield (keeps overflow-x hidden on touch devices without breaking desktop sticky positioning) */
@media (max-width: 1024px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

@media (min-width: 1025px) {
  html, body {
    overflow-x: visible;
    box-sizing: border-box;
  }
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.td-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 60px;
  color: #FFFFFF;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.td-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(7, 24, 46, 0.82) 0%, 
    rgba(7, 24, 46, 0.65) 45%, 
    rgba(7, 24, 46, 0.96) 100%
  );
  z-index: 1;
}

.td-hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.td-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.td-breadcrumb-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.td-breadcrumb-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-breadcrumb-bar a:hover {
  color: var(--accent-gold, #ECC880);
}

.td-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.td-breadcrumb-current {
  color: var(--accent-gold, #ECC880);
  font-weight: 600;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-hero-badges-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.td-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.td-pill-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(197, 160, 89, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #F3D082;
}

.td-pill-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.td-hero-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: #FFFFFF;
  margin: 0 0 18px;
  max-width: 950px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.td-hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.92);
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.td-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.td-meta-item i {
  color: var(--accent-gold, #ECC880);
}

.td-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.td-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Global Sticky Offset Variables */
:root {
  --site-header-height: 106px;
}

/* In-Page Target Scroll Offsets (Prevents content from being hidden behind sticky headers) */
#sec-overview,
#sec-video,
#sec-itinerary,
#sec-inclusions,
#sec-pricing,
#sec-map,
#sec-gallery {
  scroll-margin-top: calc(var(--site-header-height, 106px) + 64px);
}

/* --------------------------------------------------------------------------
   2. STICKY IN-PAGE SUB-NAVIGATION DOCK
   -------------------------------------------------------------------------- */
.td-sticky-subnav {
  position: sticky;
  top: var(--site-header-height, 106px);
  z-index: 85;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: top 0.2s ease, box-shadow 0.3s ease;
}

.td-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.td-subnav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
}

.td-subnav-links::-webkit-scrollbar {
  display: none;
}

.td-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft, #475569);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.td-subnav-link i {
  font-size: 0.85rem;
  color: var(--text-muted, #94A3B8);
  transition: color 0.22s ease;
}

.td-subnav-link:hover {
  color: var(--primary, #0B2545);
  background: rgba(11, 37, 69, 0.04);
}

.td-subnav-link.active {
  color: #07182E;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(197, 160, 89, 0.12) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.td-subnav-link.active i {
  color: var(--accent-gold, #C5A059);
}

.td-subnav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.td-subnav-price-block {
  text-align: right;
  line-height: 1.15;
}

.td-subnav-price-block small {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted, #64748B);
  display: block;
}

.td-subnav-price-block strong {
  font-size: 1.15rem;
  color: var(--primary, #0B2545);
}

/* --------------------------------------------------------------------------
   3. MAIN LAYOUT GRID & CARDS
   -------------------------------------------------------------------------- */
.td-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: stretch;
  padding: 32px 0 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.td-main-col,
.td-main-content-flow {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.td-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(11, 37, 69, 0.08);
  padding: 36px;
  box-shadow: 0 4px 24px rgba(11, 37, 69, 0.04);
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.td-card:last-child {
  margin-bottom: 0 !important;
}

.td-card:hover {
  box-shadow: 0 8px 30px rgba(11, 37, 69, 0.07);
  border-color: rgba(197, 160, 89, 0.3);
}

.td-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.td-card-title {
  font-size: 1.65rem;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-weight: 700;
  color: var(--primary, #0B2545);
  margin: 4px 0 0;
  line-height: 1.25;
}

.td-card-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary, #475569);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   4. CURATED 6-PILLAR SPECS GRID
   -------------------------------------------------------------------------- */
.td-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.td-spec-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.td-spec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.12);
}

.td-spec-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(197, 160, 89, 0.06) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold, #C5A059);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.td-spec-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.td-spec-info small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #64748B);
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-spec-info strong {
  font-size: 0.95rem;
  color: var(--primary, #0B2545);
  font-weight: 700;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   5. CINEMATIC GALLERY & MEDIA SWITCHER
   -------------------------------------------------------------------------- */
.td-media-showcase {
  margin-bottom: 34px;
}

.td-media-switch-bar {
  display: inline-flex;
  background: #F1F5F9;
  padding: 5px;
  border-radius: 30px;
  margin-bottom: 16px;
  gap: 6px;
}

.td-media-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft, #475569);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.td-media-tab-btn.active {
  background: #0B2545;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}

.td-media-tab-btn i {
  color: var(--accent-gold, #ECC880);
}

.td-main-viewer {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 440px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 14px;
  background: #07182E;
}

.td-main-viewer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

.td-main-viewer:hover .td-main-viewer-img {
  transform: scale(1.02);
}

.td-viewer-overlay-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(7, 24, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.td-viewer-fullscreen-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(7, 24, 46, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  z-index: 2;
}

.td-viewer-fullscreen-btn:hover {
  background: var(--accent-gold, #C5A059);
  color: #07182E;
  border-color: var(--accent-gold, #C5A059);
}

.td-thumbs-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
}

.td-thumb-item {
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  background: #0B2545;
}

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

.td-thumb-item:hover img {
  transform: scale(1.08);
}

.td-thumb-item.active {
  border-color: var(--accent-gold, #C5A059);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

/* --------------------------------------------------------------------------
   6. CURATED HIGHLIGHTS & BESPOKE TOUCHES
   -------------------------------------------------------------------------- */
.td-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.td-highlights-grid > .td-highlight-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.td-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FAFBFD;
  border: 1px solid rgba(11, 37, 69, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.td-highlight-card:hover {
  background: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.td-highlight-star {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold, #C5A059);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.td-highlight-text {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-primary, #1E293B);
  line-height: 1.45;
}

.td-curator-callout {
  margin-top: 26px;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.03) 0%, rgba(212, 175, 55, 0.06) 100%);
  border-left: 4px solid var(--accent-gold, #C5A059);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.td-curator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0B2545;
  color: #ECC880;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold, #C5A059);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE ITINERARY TIMELINE
   -------------------------------------------------------------------------- */
.td-itinerary-timeline {
  position: relative;
  padding-left: 46px;
  margin-top: 24px;
}

.td-itinerary-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, 
    var(--accent-gold, #C5A059) 0%, 
    rgba(197, 160, 89, 0.4) 60%, 
    rgba(197, 160, 89, 0.1) 100%
  );
}

.td-day-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.td-day-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.td-day-card.active {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.10);
}

.td-day-badge-pin {
  position: absolute;
  left: -46px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ECC880 0%, #C5A059 100%);
  color: #07182E;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px #F8FAFC, 0 4px 12px rgba(197, 160, 89, 0.4);
  z-index: 2;
}

.td-day-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #FFFFFF;
  user-select: none;
  gap: 16px;
  transition: background 0.2s ease;
}

.td-day-header:hover {
  background: #FAFBFD;
}

.td-day-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.td-day-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary, #0B2545);
  margin: 0;
  line-height: 1.35;
}

.td-day-tagline {
  font-size: 0.84rem;
  color: var(--accent-gold, #C5A059);
  font-weight: 600;
}

.td-day-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0B2545);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.td-day-card.active .td-day-chevron {
  transform: rotate(180deg);
  background: var(--accent-gold, #C5A059);
  color: #07182E;
}

.td-day-body {
  padding: 0 24px 24px;
  display: none;
  font-size: 0.96rem;
  color: var(--text-secondary, #475569);
  line-height: 1.8;
  border-top: 1px dashed rgba(11, 37, 69, 0.08);
  margin-top: -4px;
  padding-top: 18px;
}

.td-day-card.active .td-day-body {
  display: block;
  animation: tdFadeIn 0.3s ease forwards;
}

@keyframes tdFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.td-day-tags-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 37, 69, 0.06);
}

.td-day-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary, #0B2545);
}

.td-day-tag i {
  color: var(--accent-gold, #C5A059);
}

/* --------------------------------------------------------------------------
   8. INCLUSIONS & EXCLUSIONS
   -------------------------------------------------------------------------- */
.td-inc-exc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.td-inc-box {
  background: #FAFDFB;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 24px;
}

.td-exc-box {
  background: #FDFAFA;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 14px;
  padding: 24px;
}

.td-inc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-exc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #991B1B;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.td-feature-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

.td-feature-list.inc li i { color: #10B981; }
.td-feature-list.exc li i { color: #EF4444; }

/* --------------------------------------------------------------------------
   9. 3-TIER LUXURY PRICING CARDS (REPLACING OLD PLAIN TABLE)
   -------------------------------------------------------------------------- */
.td-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.td-pricing-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 37, 69, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.td-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.08);
}

.td-pricing-card.featured-tier {
  border: 2px solid var(--accent-gold, #D4AF37);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
}

.td-tier-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ECC880 0%, #C5A059 100%);
  color: #07182E;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.td-tier-header {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.td-tier-tag {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  background: #F1F5F9;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.td-tier-tag.gold {
  color: #8C6D23;
  background: rgba(212, 175, 55, 0.16);
}

.td-tier-tag.royal {
  color: #0B2545;
  background: rgba(11, 37, 69, 0.08);
}

.td-tier-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary, #0B2545);
  margin-bottom: 6px;
  word-break: break-word;
}

.td-tier-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary, #0B2545);
  line-height: 1.1;
  margin: 10px 0 4px;
  word-break: break-word;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.td-tier-price small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #64748B);
}

.td-price-on-request {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary, #0B2545);
}

.td-tier-desc-note {
  font-size: 0.80rem;
  color: var(--text-muted, #64748B);
  display: block;
  line-height: 1.4;
  margin-top: 4px;
  word-break: break-word;
}

.td-tier-desc-note.gold {
  color: #A17D2E;
  font-weight: 600;
}

.td-tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  width: 100%;
  box-sizing: border-box;
}

.td-tier-features li {
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  word-break: break-word;
}

.td-tier-features li i {
  color: #10B981;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.td-tier-select-btn {
  width: 100%;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  transition: all 0.22s ease;
}

/* --------------------------------------------------------------------------
   10. INTERACTIVE ROUTE MAP
   -------------------------------------------------------------------------- */
.td-map-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(11, 37, 69, 0.1);
}

.td-map-canvas {
  height: 400px;
  width: 100%;
  z-index: 1;
}

.td-map-itinerary-stops {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #FAFBFD;
  border-top: 1px solid rgba(11, 37, 69, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.td-map-itinerary-stops::-webkit-scrollbar {
  display: none;
}

.td-stop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(11, 37, 69, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary, #0B2545);
  white-space: nowrap;
}

.td-stop-pill i {
  color: var(--accent-gold, #C5A059);
}

/* --------------------------------------------------------------------------
   11. STICKY BOOKING & CONCIERGE SIDEBAR
   -------------------------------------------------------------------------- */
.td-sidebar {
  position: relative;
  height: 100%;
  min-width: 0;
}

.td-sidebar-box {
  position: sticky;
  top: calc(var(--site-header-height, 106px) + 20px);
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  padding: 24px 22px;
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.td-sidebar-box .form-group {
  margin-bottom: 12px;
}

.td-sidebar-box .form-group label {
  font-size: 0.80rem;
  margin-bottom: 4px;
}

.td-sidebar-box .form-control {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.td-sidebar-box textarea.form-control {
  min-height: 52px;
}

.td-sidebar-price-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.td-sidebar-price-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #64748B);
  font-weight: 700;
}

.td-sidebar-price-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary, #0B2545);
  line-height: 1.1;
  margin-top: 2px;
}

.td-sidebar-price-strike {
  font-size: 0.92rem;
  color: var(--text-muted, #94A3B8);
  text-decoration: line-through;
  margin-top: 3px;
}

.td-sidebar-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(197, 160, 89, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #926E26;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.td-sidebar-notes {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748B);
  line-height: 1.5;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
}

.td-pref-chips-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary, #0B2545);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-pref-chips-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.td-pref-chip {
  padding: 5px 12px;
  border-radius: 20px;
  background: #F1F5F9;
  border: 1px solid rgba(11, 37, 69, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.td-pref-chip:hover {
  border-color: var(--accent-gold, #C5A059);
}

.td-pref-chip.active {
  background: #0B2545;
  color: #FFFFFF;
  border-color: #0B2545;
}

.td-trust-points {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 37, 69, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: #475569;
}

.td-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-curator-card {
  margin-top: 20px;
  background: linear-gradient(135deg, #07182E 0%, #0B2545 100%);
  border-radius: 16px;
  padding: 20px;
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.td-curator-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.td-curator-badge-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ECC880 0%, #C5A059 100%);
  color: #07182E;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   12. MOBILE BOTTOM STICKY BAR
   -------------------------------------------------------------------------- */
.td-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 24, 46, 0.96);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 20px;
  z-index: 99;
}

.td-mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.td-mobile-price {
  color: #FFFFFF;
  line-height: 1.2;
}

.td-mobile-price small {
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  display: block;
}

.td-mobile-price strong {
  font-size: 1.25rem;
  color: #F3D082;
}

.td-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS & DESKTOP ARCHITECTURE
   -------------------------------------------------------------------------- */

/* Curated Collections & Related Tours Grid (Desktop & Laptop default) */
.td-curated-collections .tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  justify-content: center;
}

/* Dedicated Visual Moments & Cinema Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  justify-content: center;
}

@media (min-width: 1025px) {
  /* Eliminate the empty 3rd column hole when 2 related tours are returned */
  .td-curated-collections .tour-grid:has(> .tour-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(360px, 520px));
    justify-content: center;
  }

  /* Single related tour: center symmetrically */
  .td-curated-collections .tour-grid:has(> .tour-card:first-child:last-child) {
    grid-template-columns: minmax(360px, 560px);
    justify-content: center;
  }

  /* 3 related tours: balanced 3 columns */
  .td-curated-collections .tour-grid:has(> .tour-card:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(340px, 1fr));
    justify-content: center;
  }

  /* 2 media cards in cinema showcase: balanced 2 columns */
  .showcase-grid:has(> .gallery-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(320px, 520px));
    justify-content: center;
  }
}

/* Refined Global Section Dividers (Eliminates excessive empty spaces) */
.td-section-divider {
  margin-top: 36px !important;
  padding-top: 36px !important;
  border-top: 1px solid rgba(11, 37, 69, 0.08) !important;
  position: relative;
}

.td-section-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold, #C5A059), transparent);
}

/* Ultra-Wide Displays (1600px and above) - Fill screen proportionally */
@media (min-width: 1600px) {
  .container {
    max-width: 1540px;
    padding: 0 44px;
  }

  .td-main-layout {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 52px;
    padding: 36px 0 28px;
  }

  .td-main-viewer {
    height: 480px;
  }

  .td-sidebar-box {
    padding: 26px 24px;
  }

  .td-card {
    padding: 40px 36px;
  }
}

/* Large Desktop Displays (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
  .container {
    max-width: 1440px;
    padding: 0 36px;
  }

  .td-main-layout {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 46px;
    padding: 32px 0 24px;
  }

  .td-main-viewer {
    height: 450px;
  }

  .td-sidebar-box {
    padding: 24px 22px;
  }
}

/* Standard Desktop Displays (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1320px;
    padding: 0 32px;
  }

  .td-main-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    padding: 32px 0 24px;
  }
}

/* Laptop & Compact Desktop (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
  .container {
    max-width: 1180px;
    padding: 0 24px;
  }

  .td-main-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    padding: 28px 0 20px;
  }

  .td-sidebar-box {
    top: calc(var(--site-header-height, 106px) + 16px);
    padding: 20px 18px;
  }

  .td-specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .td-spec-card {
    padding: 14px 12px;
    gap: 10px;
  }

  .td-spec-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .td-spec-info strong {
    font-size: 0.88rem;
  }

  .td-main-viewer {
    height: 380px;
  }

  .td-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .td-pricing-card {
    padding: 24px 16px;
  }

  .td-card {
    padding: 30px 24px;
  }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
  .td-main-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 32px;
    padding: 24px 0 50px;
    box-sizing: border-box;
  }

  .td-main-col,
  .td-main-content-flow {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .td-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 10px;
  }

  .td-sidebar-box {
    max-width: 100%;
    padding: 28px 24px;
  }

  .td-main-viewer {
    height: 340px;
  }

  .td-specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .td-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .td-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 1. Hero & Navigation on Mobile */
  .td-hero {
    padding: 125px 0 35px;
    min-height: auto;
  }

  .td-breadcrumb-bar {
    font-size: 0.74rem;
    padding: 4px 12px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .td-hero-badges-row {
    gap: 6px;
    margin-bottom: 10px;
  }

  .td-pill-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .td-hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 14px;
  }

  .td-hero-meta-bar {
    font-size: 0.82rem;
    gap: 10px;
    margin-bottom: 18px;
  }

  .td-hero-actions {
    gap: 10px;
    width: 100%;
  }

  .td-hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  :root {
    --site-header-height: 95px;
  }

  .td-sticky-subnav {
    top: var(--site-header-height, 95px);
  }

  .td-subnav-inner {
    padding: 2px 0;
  }

  .td-subnav-links {
    gap: 4px;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
  }

  .td-subnav-link {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 5px;
    flex-shrink: 0;
  }

  .td-subnav-cta {
    display: none;
  }

  /* 2. Main Two-Column Layout & Core Cards */
  .td-main-layout {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 20px;
    padding: 16px 0 35px;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .td-main-col,
  .td-main-content-flow {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden !important;
  }

  .td-card {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(11, 37, 69, 0.04);
  }

  .td-card-header {
    margin-bottom: 14px;
    gap: 8px;
  }

  .td-card-title {
    font-size: 1.35rem;
    line-height: 1.28;
  }

  .td-card-desc {
    font-size: 0.90rem;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  /* 3. Media Suite & Photo Gallery (#sec-media) */
  #sec-media,
  .td-media-showcase {
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .td-media-switch-bar {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px;
    gap: 4px;
    margin-bottom: 12px;
    background: #F1F5F9;
    border-radius: 24px;
  }

  .td-media-tab-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .td-media-pane {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .td-main-viewer {
    height: 250px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }

  .td-main-viewer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .td-viewer-overlay-badge {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.70rem;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .td-viewer-fullscreen-btn {
    bottom: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.74rem;
    border-radius: 20px;
  }

  /* Touch-friendly horizontal thumbnail strip */
  .td-thumbs-row {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
    margin-top: 6px;
  }

  .td-thumbs-row::-webkit-scrollbar {
    display: none;
  }

  .td-thumb-item {
    width: 76px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
  }

  /* 4. Curated 6-Pillar Specifications Grid */
  .td-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .td-spec-card {
    padding: 10px 8px;
    gap: 8px;
    border-radius: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .td-spec-icon-box {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .td-spec-info {
    min-width: 0;
    overflow: hidden;
    flex: 1;
  }

  .td-spec-info small {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .td-spec-info strong {
    font-size: 0.78rem;
    line-height: 1.25;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  /* 5. Highlights & Curator Callout */
  .td-highlights-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .td-highlight-card {
    padding: 12px 14px;
    border-radius: 10px;
    gap: 10px;
  }

  .td-highlight-star {
    width: 22px;
    height: 22px;
    font-size: 0.70rem;
  }

  .td-highlight-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .td-curator-callout {
    padding: 14px 16px;
    border-radius: 0 12px 12px 0;
    gap: 12px;
    margin-top: 18px;
    flex-direction: row;
    align-items: flex-start;
  }

  .td-curator-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.90rem;
  }

  /* 6. Day-by-Day Master Itinerary (#sec-itinerary) */
  .td-itinerary-header-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .td-itinerary-header-bar .btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .td-itinerary-timeline {
    padding-left: 32px;
    margin-top: 18px;
  }

  .td-itinerary-timeline::before {
    left: 13px;
    top: 18px;
    bottom: 18px;
  }

  .td-day-card {
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .td-day-badge-pin {
    left: -32px;
    top: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.74rem;
    box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(197, 160, 89, 0.35);
  }

  .td-day-header {
    padding: 14px 14px;
    gap: 10px;
  }

  .td-day-title-wrap {
    gap: 6px;
  }

  .td-day-title {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .td-day-tagline {
    font-size: 0.76rem;
  }

  .td-day-chevron {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .td-day-body {
    padding: 0 14px 16px;
    font-size: 0.88rem;
    line-height: 1.65;
    padding-top: 12px;
  }

  .td-day-tags-row {
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .td-day-tag {
    padding: 4px 8px;
    font-size: 0.72rem;
    border-radius: 6px;
    gap: 4px;
  }

  /* 7. Inclusions & Privileges (#sec-inclusions) */
  .td-inc-exc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .td-inc-box, .td-exc-box {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .td-inc-title, .td-exc-title {
    font-size: 1.02rem;
    margin-bottom: 12px;
    gap: 8px;
  }

  .td-feature-list {
    gap: 10px;
  }

  .td-feature-list li {
    font-size: 0.85rem;
    line-height: 1.45;
    gap: 8px;
  }

  /* 8. 3-Tier Luxury Pricing Cards (#sec-pricing) */
  .td-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .td-pricing-card {
    padding: 24px 16px 20px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(11, 37, 69, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    position: relative;
  }

  .td-pricing-card.featured-tier {
    border: 2px solid var(--accent-gold, #C5A059);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.22);
  }

  .td-tier-ribbon {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 20px;
    margin: -8px auto 14px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.35);
  }

  .td-tier-header {
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(11, 37, 69, 0.08);
    width: 100%;
    box-sizing: border-box;
  }

  .td-tier-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    background: #F1F5F9;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .td-tier-tag.gold {
    color: #8C6D23;
    background: rgba(212, 175, 55, 0.15);
  }

  .td-tier-tag.royal {
    color: #0B2545;
    background: rgba(11, 37, 69, 0.08);
  }

  .td-tier-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary, #0B2545);
    margin: 0 0 4px;
    line-height: 1.25;
    word-break: break-word;
  }

  .td-tier-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary, #0B2545);
    line-height: 1.15;
    margin: 6px 0 4px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .td-tier-price small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #64748B);
  }

  .td-price-on-request {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #0B2545);
  }

  .td-tier-desc-note {
    font-size: 0.78rem;
    color: var(--text-muted, #64748B);
    display: block;
    line-height: 1.35;
    word-break: break-word;
  }

  .td-tier-desc-note.gold {
    color: #A17D2E;
    font-weight: 600;
  }

  .td-tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .td-tier-features li {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    word-break: break-word;
  }

  .td-tier-features li i {
    color: #10B981;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .td-tier-select-btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    gap: 8px;
  }

  /* 9. Interactive Route Map (#sec-map) */
  #sec-map {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .td-map-wrapper {
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .td-map-canvas {
    height: 260px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .td-map-itinerary-stops {
    padding: 10px 12px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .td-map-itinerary-stops::-webkit-scrollbar {
    display: none;
  }

  .td-stop-pill {
    padding: 5px 12px;
    font-size: 0.74rem;
    border-radius: 14px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 10. Sticky Booking & Concierge Sidebar (#bookingSidebar) on Mobile */
  .td-sidebar {
    position: static;
    margin-top: 16px;
  }

  .td-sidebar-box {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .td-sidebar-price-header {
    margin-bottom: 14px;
  }

  .td-sidebar-price-num {
    font-size: 1.75rem;
  }

  .td-sidebar-notes {
    font-size: 0.78rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .td-pref-chips-label {
    font-size: 0.74rem;
  }

  .td-pref-chips-bar {
    gap: 6px;
    margin-bottom: 16px;
  }

  .td-pref-chip {
    padding: 6px 10px;
    font-size: 0.74rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .td-sidebar-box .form-control {
    font-size: 0.90rem;
    padding: 10px 12px;
    min-height: 44px;
  }

  .td-trust-points {
    margin-top: 16px;
    padding-top: 14px;
    gap: 8px;
    font-size: 0.78rem;
  }

  .td-curator-card {
    margin-top: 16px;
    padding: 14px 14px;
    border-radius: 12px;
  }

  .td-curator-badge-avatar {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }

  /* 11. Dedicated Visual Moments & Cinema Reels (#sec-gallery) */
  .related-media-showcase {
    margin-top: 36px !important;
    padding-top: 24px !important;
  }

  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .showcase-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 4px 0 6px;
  }

  .showcase-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-card {
    border-radius: 14px;
  }

  .gallery-card-thumb-wrap {
    height: 200px;
  }

  .gallery-card-body {
    padding: 14px 16px;
  }

  .gallery-card-title {
    font-size: 0.98rem;
  }

  .gallery-view-btn {
    font-size: 0.80rem;
  }

  /* 12. Curated Collections & Related Tours */
  .td-curated-collections {
    margin-top: 36px !important;
    padding-top: 24px !important;
  }

  .td-curated-collections .section-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .td-curated-collections .section-subtitle {
    font-size: 0.88rem;
  }

  .td-curated-collections .tour-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* 13. Mobile Floating Action Bar */
  .td-mobile-bar {
    display: block;
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    background: rgba(5, 19, 41, 0.98);
    border-top: 1px solid rgba(197, 160, 89, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
    padding: 8px 14px;
    z-index: 990;
  }

  .td-mobile-bar-inner {
    gap: 10px;
  }

  .td-mobile-price small {
    font-size: 0.65rem;
  }

  .td-mobile-price strong {
    font-size: 1.10rem;
  }

  .td-mobile-actions {
    gap: 8px;
  }

  .td-mobile-actions .btn {
    font-size: 0.84rem;
    padding: 8px 14px !important;
  }

  /* Eliminate the white gap after footer by clearing body padding-bottom
     and moving the bottom clearance inside .site-footer */
  body {
    padding-bottom: 0 !important;
  }

  .site-footer {
    padding-bottom: 135px !important;
    background-color: var(--primary-900, #040F1E) !important;
  }

  /* Hide duplicate floating WhatsApp concierge on tour detail page on mobile
     so it does not obstruct the 'Inquire Now' CTA in .td-mobile-bar */
  .whatsapp-floating-wrap {
    display: none !important;
  }

  /* Reposition Back to Top Button cleanly above the fixed mobile bar */
  .back-to-top-btn {
    bottom: 124px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 0.88rem !important;
    z-index: 985 !important;
  }
}

/* Extra-small screens (iPhone SE, compact devices under 480px) */
@media (max-width: 480px) {
  .td-hero-title {
    font-size: 1.65rem;
  }

  .td-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .td-spec-card {
    padding: 8px 6px;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .td-spec-icon-box {
    width: 30px;
    height: 30px;
    font-size: 0.80rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .td-spec-info {
    min-width: 0;
    overflow: hidden;
    flex: 1;
  }

  .td-spec-info small {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .td-spec-info strong {
    font-size: 0.74rem;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .td-main-viewer {
    height: 220px;
  }

  .td-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .td-card-title {
    font-size: 1.22rem;
  }

  .td-pricing-card {
    padding: 20px 12px 16px;
    border-radius: 12px;
  }

  .td-tier-name {
    font-size: 1.10rem;
  }

  .td-tier-price {
    font-size: 1.50rem;
  }

  .td-tier-select-btn {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .td-itinerary-timeline {
    padding-left: 28px;
  }

  .td-itinerary-timeline::before {
    left: 11px;
  }

  .td-day-badge-pin {
    left: -28px;
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .td-day-title {
    font-size: 0.92rem;
  }

  .td-sidebar-box {
    padding: 16px 12px;
  }

  .td-sidebar-price-num {
    font-size: 1.55rem;
  }

  .showcase-title {
    font-size: 1.25rem;
  }

  .gallery-card-thumb-wrap {
    height: 180px;
  }
}
