/* ============================================================================
   tour-destination.css — data-driven /tours/<slug> destination pages.
   Uses the site's design tokens (styles.css) + a per-region --td-hue.
   ========================================================================== */
.td-hero { position: relative; color: #fff; padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 52px);
  background-image:
    radial-gradient(circle at 85% 15%, hsla(var(--td-hue,230), 74%, 56%, .42), transparent 46%),
    radial-gradient(circle at 8% 96%, rgba(255,32,69,.24), transparent 46%),
    linear-gradient(120deg, #101230, #1b1e57 55%, hsl(var(--td-hue,230), 46%, 26%)); }
.td-hero-overlay { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px); background-size: 26px 26px; opacity: .5; pointer-events: none; }
.td-hero-in { position: relative; z-index: 1; }
.td-crumb { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.7); margin: 0 0 14px; }
.td-crumb a { color: rgba(255,255,255,.85); }
.td-badge { display: inline-block; font-family: var(--mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); }
.td-hero h1 { font-weight: 800; font-size: clamp(30px, 5vw, 56px); line-height: 1.02; margin: 12px 0 6px; letter-spacing: -.01em; }
.td-country { font-size: 1rem; color: rgba(255,255,255,.9); margin: 0 0 14px; }
.td-popular { color: #ffd27a; font-weight: 700; }
.td-lede { max-width: 60ch; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: rgba(255,255,255,.92); margin: 0 0 22px; }
.td-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Facts strip */
.td-facts-wrap { background: var(--paper); border-bottom: 1px solid var(--ink-100); position: sticky; top: var(--header-h); z-index: 20; }
.td-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.td-fact { padding: 14px 18px; border-left: 1px solid var(--ink-100); }
.td-fact:first-child { border-left: 0; padding-left: 0; }
.td-fact span { display: block; font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 4px; }
.td-fact b { font-size: 14px; color: var(--brand-navy); font-weight: 700; }
.td-fact a { color: var(--brand-red); }
@media (max-width: 780px) { .td-facts { grid-template-columns: 1fr 1fr; } .td-fact { border-left: 0; padding-left: 0; } }

/* Body grid */
.td-sec { padding: clamp(34px, 5vw, 60px) 0; }
.td-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .td-grid { grid-template-columns: 1fr; } }
.td-main h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; color: var(--brand-navy); margin: 34px 0 14px; }
.td-main h2:first-child { margin-top: 0; }
.td-lead { font-size: 1rem; line-height: 1.7; color: var(--ink-700); max-width: 68ch; }
.td-reasons { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.td-reasons li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink-700); line-height: 1.5; }
.td-reasons li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #0f9d58; font-weight: 900; }

/* Attraction cards */
.td-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.td-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--ink-100); border-radius: var(--radius-md); background: var(--paper); }
.td-card-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(150deg, hsl(var(--td-hue,230),55%,42%), hsl(var(--td-hue,230),50%,30%)); }
.td-card h3 { font-size: .92rem; font-weight: 700; color: var(--ink-900); margin: 0; line-height: 1.3; }

/* Duration package ladder (each tile is a unique SEO page) */
.td-durs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.td-dur { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 12px 14px 10px; border: 1px solid var(--ink-100); border-radius: var(--radius-md, 12px); background: #fff; text-decoration: none; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.td-dur:hover { border-color: var(--brand-navy); box-shadow: 0 6px 16px rgba(16,42,86,.10); transform: translateY(-1px); }
.td-dur b { font-size: 1.15rem; font-weight: 800; color: var(--brand-navy); line-height: 1; }
.td-dur span { font-size: .72rem; color: var(--ink-500); margin-top: 3px; }
.td-dur em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--brand-red); padding: 2px 7px; border-radius: 999px; }
.td-dur.rec { border-color: var(--brand-red); }
.td-dur.on { border-color: var(--brand-navy); background: var(--brand-navy); box-shadow: 0 6px 16px rgba(16,42,86,.18); }
.td-dur.on b { color: #fff; }
.td-dur.on span { color: rgba(255,255,255,.78); }

/* Itinerary */
.td-itin { border: 1px solid var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.td-itin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--paper-alt); border-bottom: 1px solid var(--ink-100); }
.td-itin-head b { color: var(--brand-navy); font-size: 1rem; }
.td-itin-tag { font-family: var(--mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--brand-navy); padding: 4px 10px; border-radius: 999px; }
.td-itin-tag-ext { background: var(--brand-red); }
.td-days { margin: 0; padding: 8px 0; list-style: none; }
.td-days li { display: flex; gap: 14px; padding: 9px 18px; border-top: 1px solid var(--ink-100); }
.td-days li:first-child { border-top: 0; }
.td-day-n { flex: 0 0 66px; font-weight: 700; color: var(--brand-red); font-size: .85rem; }
.td-day-t { font-size: .92rem; color: var(--ink-700); line-height: 1.45; }
.td-note { font-size: .82rem; color: var(--ink-500); line-height: 1.6; margin: 6px 0 0; }

/* Visa */
.td-visa { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--ink-100); border-left: 4px solid var(--ink-500); border-radius: var(--radius-md); background: var(--paper-alt); }
.td-visa b { color: var(--brand-navy); }
.td-visa span { color: var(--ink-700); font-size: .9rem; }
.td-visa p { font-size: .86rem; color: var(--ink-700); line-height: 1.55; margin: 5px 0 0; max-width: 62ch; }
.td-visa-free { border-left-color: #0f9d58; } .td-visa-arrival { border-left-color: #12a3a3; }
.td-visa-evisa { border-left-color: var(--brand-navy-light); } .td-visa-embassy { border-left-color: var(--brand-gold); }

/* Hotels */
.td-hotels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.td-hotel { padding: 15px 16px; border: 1px solid var(--ink-100); border-radius: var(--radius-md); background: var(--paper); }
.td-hotel b { display: block; color: var(--brand-navy); font-size: .95rem; margin-bottom: 3px; }
.td-hotel span { font-size: .82rem; color: var(--ink-500); }

/* Sticky plan card */
.td-aside { position: sticky; top: calc(var(--header-h) + 74px); }
@media (max-width: 960px) { .td-aside { position: static; } }
.td-plan { border: 1px solid var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper); }
.td-plan-head { background: var(--grad-navy, linear-gradient(160deg,#14153a,#23246b)); color: #fff; padding: 18px 20px; }
.td-plan-head h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 5px; }
.td-plan-head p { font-size: .82rem; color: rgba(255,255,255,.82); margin: 0; line-height: 1.5; }
.td-plan-list { margin: 0; padding: 16px 20px; list-style: none; display: grid; gap: 9px; }
.td-plan-list li { font-size: .85rem; color: var(--ink-700); }
.td-plan-list b { color: var(--brand-navy); }
.td-plan-btn { width: calc(100% - 40px); margin: 0 20px; }
.td-plan-alt { font-size: .8rem; color: var(--ink-500); text-align: center; padding: 14px 20px 18px; margin: 0; }
.td-plan-alt a { color: var(--brand-red); font-weight: 700; }

/* Related */
.td-related-sec { background: var(--paper-alt); }
.td-related-sec h2 { font-size: clamp(20px,2.6vw,27px); font-weight: 800; color: var(--brand-navy); margin: 0 0 18px; }
/* Related-destination tiles: max 3 columns, each capped at ~360px and left-aligned (never
   stretched) when fewer than a full row. Tablet 2-up, mobile 1-up (see media queries below). */
.td-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: start; gap: 14px; }
.td-rel-card { position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 18px; border-radius: var(--radius-md); color: #fff; min-height: 180px; aspect-ratio: 16 / 10;
  /* Region-hue gradient is the fallback background when a card has no CRM image (image = null). */
  background: linear-gradient(150deg, hsl(var(--td-hue,230),52%,40%), hsl(var(--td-hue,230),48%,26%));
  transition: transform .15s, box-shadow .15s; }
/* CRM image + dark scrim; only rendered on cards that carry an image. */
.td-rel-card .td-rel-media { position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background-image: linear-gradient(180deg, rgba(9,18,38,.50), rgba(9,18,38,.66) 45%, rgba(9,18,38,.82)), var(--td-img);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .18s ease; }
/* Foreground content sits above the media layer. */
.td-rel-region, .td-rel-card b, .td-rel-country, .td-rel-pkg { position: relative; z-index: 1; }
.td-rel-card.has-image .td-rel-region,
.td-rel-card.has-image b,
.td-rel-card.has-image .td-rel-country { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.td-rel-region { font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.td-rel-card b { display: block; font-size: clamp(1.15rem,1.6vw,1.35rem); font-weight: 800; margin: 8px 0 2px; }
.td-rel-country { font-size: .86rem; opacity: .9; }
.td-rel-pkg { margin-top: auto; align-self: flex-end; font-size: .78rem; font-weight: 600;
  background: rgba(0,0,0,.30); padding: 3px 9px; border-radius: 999px; }
.td-rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.td-rel-card:hover .td-rel-media { transform: scale(1.03); }
.td-rel-card:active { transform: translateY(-1px); }
.td-rel-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(11,31,59,.55), var(--shadow-md); }
@media (max-width: 960px) { .td-rel-grid { grid-template-columns: repeat(2, minmax(0, 360px)); } }
@media (max-width: 780px) { .td-rel-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- /tours/ discovery hub ---- */
.th-hero { position: relative; color: #fff; padding: clamp(38px,6vw,76px) 0;
  background-image: radial-gradient(circle at 82% 12%, rgba(84,87,201,.5), transparent 46%),
    radial-gradient(circle at 6% 98%, rgba(255,32,69,.28), transparent 48%),
    linear-gradient(120deg, #101230, #1b1e57 55%, #2a1c52); }
.th-hero-overlay { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px); background-size: 26px 26px; opacity: .5; }
.th-hero-in { position: relative; z-index: 1; }
.th-hero h1 { font-weight: 800; font-size: clamp(30px,5vw,54px); margin: 10px 0 10px; letter-spacing: -.01em; }
.th-lede { max-width: 62ch; font-size: clamp(15px,1.6vw,18px); line-height: 1.6; color: rgba(255,255,255,.9); margin: 0 0 22px; }
.th-search { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 4px 6px 4px 16px; max-width: 640px; box-shadow: 0 20px 50px rgba(6,14,40,.28); color: var(--ink-500); }
.th-search input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 14px 6px; color: var(--ink-900); background: transparent; }
.th-popular { margin: 16px 0 0; font-size: 13px; color: rgba(255,255,255,.7); }
.th-popular a { color: #fff; font-weight: 700; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.th-filters { display: grid; gap: 10px; margin-bottom: 20px; }
.th-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.th-chip { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ink-300, #d9dbec); background: var(--paper); color: var(--ink-700); cursor: pointer; transition: all .14s; }
.th-chip:hover { border-color: var(--brand-navy-light); }
.th-chip.on { background: var(--brand-navy); border-color: transparent; color: #fff; }
.th-chip-type.on { background: var(--brand-red); }
.th-chip-visa.on { background: #0f9d58; }
.th-count { font-size: 13px; color: var(--ink-500); margin: 0 0 14px; font-weight: 600; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.th-card { display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius-lg); color: #fff; min-height: 178px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--td-hue,230),54%,40%), hsl(var(--td-hue,230),50%,24%)); transition: transform .15s, box-shadow .15s; }
.th-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6,14,40,.28); }
.th-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: auto; }
.th-card-region { font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.th-card-visa { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); white-space: nowrap; }
.th-card h3 { font-size: 1.4rem; font-weight: 800; margin: 14px 0 2px; }
.th-card-country { font-size: .85rem; opacity: .9; margin: 0 0 4px; }
.th-card-meta { font-size: .78rem; opacity: .82; margin: 0 0 12px; }
.th-card-cta { font-size: .82rem; font-weight: 700; }
.th-empty { grid-column: 1/-1; color: var(--ink-500); font-size: 15px; padding: 10px 0; }
.th-empty a { color: var(--brand-red); font-weight: 700; }

/* Homepage rich autocomplete dropdown (js/tours-search.js) */
.tg-td-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 80; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--ink-300, #d9dbec); border-radius: 12px; box-shadow: 0 18px 44px rgba(6,14,40,.18); max-height: 340px; overflow-y: auto; }
.tg-td-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.tg-td-item:hover, .tg-td-item.on { background: var(--paper-alt); }
.tg-td-flag { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; background: linear-gradient(150deg, hsl(var(--td-hue,230),55%,44%), hsl(var(--td-hue,230),50%,30%)); }
.tg-td-body { min-width: 0; flex: 1; }
.tg-td-name { font-weight: 700; color: var(--ink-900); font-size: 14.5px; }
.tg-td-sub { font-size: 12px; color: var(--ink-500); }
.tg-td-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: var(--brand-navy); background: var(--paper-alt); border: 1px solid var(--ink-300,#d9dbec); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
