/* ============================================================
   CATALOG PAGES — shared styles for:
   pages/category.php (sub-categories) · pages/subcategory.php (child
   sub-categories + tours) · pages/tour.php (single tour)
   Uses the same brand tokens as style.css / nav.css so these pages
   feel native to the rest of the site.
   ============================================================ */

:root {
  --blue:        #0878c9;
  --blue-dark:   #005a9e;
  --ink:         #0a1628;
  --body-text:   #4a5b70;
  --muted:       #7a8ba0;
  --bg-soft:     #f5f9ff;
  --border-soft: #e3edf9;
  --white:       #ffffff;
  --radius-lg:   16px;
  --radius-md:   12px;
  --shadow-card: 0 6px 20px rgba(8, 120, 201, 0.08);
  --shadow-card-hover: 0 16px 34px rgba(8, 120, 201, 0.16);
}

.catalog-page { font-family: 'Poppins', sans-serif; color: var(--ink); background: var(--bg-soft); }

/* ---------- Page header banner (used on all pages) ---------- */
.catalog-header {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 64px 24px 56px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.catalog-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.catalog-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  position: relative;
}
.catalog-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.catalog-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.catalog-breadcrumb span.sep { opacity: 0.5; }
.catalog-breadcrumb span.current { color: #fff; font-weight: 600; }

.catalog-header h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 10px;
  position: relative;
}
.catalog-header p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
}

/* ---------- Grid section shared by category/subcategory pages ---------- */
.catalog-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

/* ---------- Category / Sub-category cards (no photo — icon tile) ---------- */
.tile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 30px 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue);
}
.tile-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f3fe, #d7ecff);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.tile-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.tile-card__meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.tile-card__link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tile-card__link i { transition: transform 0.2s ease; font-size: 0.78rem; }
.tile-card:hover .tile-card__link i { transform: translateX(4px); }

/* Tile with a photo instead of the icon */
.tile-card__photo {
  margin: -30px -26px 4px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f3fe, #cfe6fb);
}
.tile-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.tile-card:hover .tile-card__photo img { transform: scale(1.06); }
.tile-card { overflow: hidden; }

/* ---------- Tour cards (with photo, price, duration) ---------- */
.tour-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.tour-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f3fe, #cfe6fb);
}
.tour-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.tour-card:hover .tour-card__img-wrap img { transform: scale(1.06); }
.tour-card__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 2.2rem;
}
.tour-card__duration-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10,22,40,0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
}
.tour-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-card__title { font-size: 1.05rem; font-weight: 600; margin: 0; color: var(--ink); }
.tour-card__desc {
  font-size: 0.87rem;
  color: var(--body-text);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}
.tour-card__price { font-size: 0.95rem; color: var(--ink); }
.tour-card__price strong { color: var(--blue); font-size: 1.15rem; }
.tour-card__price span { font-size: 0.76rem; color: var(--muted); display: block; }
.tour-card__cta { font-size: 0.86rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.tour-card__cta i { font-size: 0.72rem; transition: transform 0.2s ease; }
.tour-card:hover .tour-card__cta i { transform: translateX(4px); }

/* ---------- Empty state ---------- */
.catalog-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.catalog-empty i { font-size: 2.4rem; color: #cfe0f2; margin-bottom: 14px; display: block; }
.catalog-empty h3 { color: var(--ink); margin: 0 0 8px; font-size: 1.2rem; }
.catalog-empty p { margin: 0 0 20px; }
.catalog-empty a {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Section divider label ("More in this category") ---------- */
.catalog-subheading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 24px;
}

/* ============================================================
   SINGLE TOUR PAGE
   ============================================================ */
.tour-detail {
  max-width: 1180px;
  margin: -60px auto 0;
  padding: 0 24px 72px;
  position: relative;
}
.tour-detail__gallery {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 14px;
  margin-bottom: 32px;
}
.tour-detail__main-img {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f3fe, #cfe6fb);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-detail__main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-detail__main-img .tour-card__no-img { font-size: 3rem; }
.tour-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tour-detail__thumbs button {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex: 0 0 92px;
  height: 68px;
  background: none;
}
.tour-detail__thumbs button.active { border-color: var(--blue); }
.tour-detail__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tour-detail__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.tour-detail__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.tour-detail__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tour-detail__tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: #e8f3fe;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tour-detail__desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--body-text);
  white-space: pre-line;
}

.tour-detail__sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 26px;
  position: sticky;
  top: 24px;
}
.tour-detail__price-label { font-size: 0.85rem; color: var(--muted); margin: 0 0 2px; }
.tour-detail__price { font-size: 2rem; font-weight: 700; color: var(--blue); margin: 0 0 18px; }
.tour-detail__price span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.tour-detail__sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--body-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.tour-detail__sidebar-row i { color: var(--blue); width: 18px; text-align: center; }
.tour-detail__enquire-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.2s ease;
}
.tour-detail__enquire-btn:hover { background: var(--blue-dark); }
.tour-detail__call-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

@media (max-width: 860px) {
  .tour-detail__layout { grid-template-columns: 1fr; }
  .tour-detail__sidebar { position: static; }
  .tour-detail { margin-top: -40px; }
}

@media (max-width: 560px) {
  .catalog-header { padding: 48px 20px 44px; }
  .catalog-section { padding: 40px 16px 56px; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tile-card { padding: 20px 16px; }
  .tile-card__photo { margin: -20px -16px 4px; }
}

/* ============================================================
   TOUR DETAIL PAGE (td-*)
   ============================================================ */
/* top padding clears the fixed top-bar + navigation */
.td-wrap { max-width: 1180px; margin: 0 auto; padding: 150px 24px 72px; }
.td-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.td-breadcrumb a { color: var(--muted); text-decoration: none; }
.td-breadcrumb a:hover { color: var(--blue); }
.td-breadcrumb .sep { opacity: 0.5; }
.td-breadcrumb .current { color: var(--ink); font-weight: 600; }

/* Gallery collage */
.td-gallery { display: grid; gap: 12px; height: 420px; margin-bottom: 36px; }
.td-gallery__item { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(135deg, #e8f3fe, #cfe6fb); }
.td-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.td-gallery__item:hover img { transform: scale(1.04); }
.td-gallery--n1 { grid-template-columns: 1fr; }
.td-gallery--n2 { grid-template-columns: 1.4fr 1fr; }
.td-gallery--n3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.td-gallery--n3 .td-gallery__item--1 { grid-row: 1 / span 2; }
.td-gallery--n4 { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.td-gallery--n4 .td-gallery__item--1 { grid-row: 1 / span 2; }
.td-gallery--n4 .td-gallery__item--4 { grid-column: 3; grid-row: 1 / span 2; }
.td-gallery--n4 .td-gallery__item--2 { grid-column: 2; grid-row: 1; }
.td-gallery--n4 .td-gallery__item--3 { grid-column: 2; grid-row: 2; }
.td-gallery__more {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(10,22,40,0.78); color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 8px 14px; border-radius: 20px; display: inline-flex; gap: 6px; align-items: center;
}
.td-gallery--none { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--blue); background: linear-gradient(135deg, #e8f3fe, #cfe6fb); border-radius: var(--radius-md); height: 260px; }

/* Title + price card */
.td-top { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; margin-bottom: 36px; }
.td-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink); margin: 0 0 14px; line-height: 1.25; }
.td-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.td-tag { font-size: 0.8rem; font-weight: 500; color: var(--body-text); background: #fff; border: 1px solid var(--border-soft); padding: 6px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }
.td-tag i { color: var(--blue); }
.td-tag--strong { background: #e8f3fe; color: var(--blue); border-color: #d2e6fb; font-weight: 600; }
.td-lead { font-size: 1.02rem; line-height: 1.7; color: var(--body-text); margin: 0; }
.td-price-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px; position: sticky; top: 24px; }
.td-price-card__label { margin: 0 0 2px; font-size: 0.8rem; color: var(--muted); }
.td-price-card__price { margin: 0 0 16px; font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.td-price-card__price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.td-price-card__ask { font-size: 1.15rem !important; color: var(--ink) !important; font-weight: 600 !important; }
.td-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; padding: 12px 22px; border: 0; border-radius: 10px; text-decoration: none; font: 600 0.92rem 'Poppins', sans-serif; cursor: pointer; transition: background 0.2s ease; }
.td-btn:hover { background: var(--blue-dark); }
.td-btn--block { width: 100%; }
.td-price-card .td-btn { width: 100%; }

/* Sections */
.td-section { margin-bottom: 44px; }
.td-heading { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 0 0 20px; text-align: center; }
.td-about { font-size: 0.98rem; line-height: 1.8; color: var(--body-text); max-width: 900px; margin: 0 auto; }

/* Highlights */
.td-highlights { background: #eaf3fe; border-radius: var(--radius-lg); padding: 32px 36px; }
.td-highlights ul { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 14px; }
.td-highlights li { display: flex; gap: 12px; font-size: 0.97rem; line-height: 1.65; color: var(--body-text); }
.td-highlights li i { color: var(--blue); margin-top: 5px; flex: 0 0 auto; }

/* Day-by-day accordion */
.td-days { display: grid; gap: 14px; max-width: 1000px; margin: 0 auto; }
.td-day { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.td-day__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-family: 'Poppins', sans-serif; }
.td-day__no { font-weight: 700; color: var(--ink); white-space: nowrap; }
.td-day__title { flex: 1; font-size: 0.92rem; color: var(--body-text); }
.td-day__chev { color: var(--blue); transition: transform 0.25s ease; }
.td-day.is-open .td-day__chev { transform: rotate(180deg); }
.td-day__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.td-day__body > div { overflow: hidden; padding: 0 22px; font-size: 0.94rem; line-height: 1.75; color: var(--body-text); }
.td-day.is-open .td-day__body { grid-template-rows: 1fr; }
.td-day.is-open .td-day__body > div { padding: 0 22px 24px 22px; }

/* Day stats strip + text/photo */
.td-stats { display: flex; background: #fff6e0; border-radius: 12px; overflow: hidden; margin: 4px 0 22px; }
.td-stats__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 10px; text-align: center; }
.td-stats__item i { font-size: 1.5rem; color: var(--blue); margin-bottom: 4px; }
.td-stats__item strong { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.td-stats__item span { font-size: 0.82rem; color: var(--muted); }
.td-stats__item--total { background: var(--blue-dark); flex: 0 0 22%; }
.td-stats__item--total strong { color: #fff; font-size: 1.35rem; }
.td-stats__item--total span { color: rgba(255,255,255,0.85); }
.td-day__content { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.td-day__content--text { grid-template-columns: 1fr; }
.td-day__text { font-size: 0.97rem; line-height: 1.8; color: var(--body-text); }
.td-day__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }

/* Included / Excluded */
.td-cover { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.td-cover__card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px; }
.td-cover__card h3 { margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.td-cover__card--in h3 i { color: #1f9d55; }
.td-cover__card--out h3 i { color: #d64545; }
.td-cover__card ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 0.93rem; line-height: 1.6; color: var(--body-text); }

/* Enquiry form */
.td-enquiry { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 36px; scroll-margin-top: 24px; }
.td-enquiry__info p { color: var(--body-text); line-height: 1.7; margin: 0 0 12px; }
.td-enquiry__info i { color: var(--blue); width: 20px; }
.td-form { display: grid; gap: 14px; }
.td-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.td-form label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.td-form input, .td-form textarea { font: 400 0.92rem 'Poppins', sans-serif; padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-soft); color: var(--ink); width: 100%; box-sizing: border-box; }
.td-form input:focus, .td-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #fff; }
.td-form__msg { margin: 0; font-size: 0.88rem; min-height: 1.2em; }
.td-form__msg.is-ok { color: #1f9d55; }
.td-form__msg.is-error { color: #d64545; }

/* Photo viewer */
.td-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(5,12,24,0.92); display: flex; align-items: center; justify-content: center; }
.td-lightbox[hidden] { display: none; }
.td-lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.td-lightbox__close, .td-lightbox__nav { position: absolute; background: rgba(255,255,255,0.14); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.td-lightbox__close:hover, .td-lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.td-lightbox__close { top: 18px; right: 18px; }
.td-lightbox__nav--prev { left: 18px; }
.td-lightbox__nav--next { right: 18px; }
.td-lightbox__count { position: absolute; bottom: 18px; color: #fff; font-size: 0.85rem; }

@media (max-width: 860px) {
  .td-day__content { grid-template-columns: 1fr; }
  .td-day__img { order: -1; max-height: 260px; }
  .td-stats { flex-wrap: wrap; }
  .td-stats__item { flex: 1 1 45%; padding: 14px 8px; }
  .td-stats__item--total { flex: 1 1 100%; }
  .td-top { grid-template-columns: 1fr; }
  .td-price-card { position: static; }
  .td-enquiry { grid-template-columns: 1fr; padding: 24px; }
  .td-gallery { height: 300px; }
}
@media (max-width: 560px) {
  .td-wrap { padding: 130px 16px 56px; }
  .td-gallery { height: 240px; gap: 8px; }
  .td-gallery--n4 { grid-template-columns: 1fr 1fr; }
  .td-gallery--n4 .td-gallery__item--1 { grid-column: 1; grid-row: 1 / span 2; }
  .td-gallery--n4 .td-gallery__item--2 { grid-column: 2; grid-row: 1; }
  .td-gallery--n4 .td-gallery__item--3 { grid-column: 2; grid-row: 2; }
  .td-gallery--n4 .td-gallery__item--4 { display: none; }
  .td-highlights { padding: 22px 18px; }
  .td-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOK THIS TOUR (modal) + secondary button
   ============================================================ */
.td-price-card .td-btn + .td-btn { margin-top: 10px; }
.td-btn--ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.td-btn--ghost:hover { background: #eaf3fe; color: var(--blue-dark); }

.td-modal { position: fixed; inset: 0; z-index: 9998; background: rgba(5,12,24,0.6); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.td-modal[hidden] { display: none; }
.td-modal__box { position: relative; background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px; margin: auto; padding: 30px 30px 26px; box-shadow: 0 24px 60px rgba(5,12,24,0.35); animation: tdModalIn .22s ease; }
@keyframes tdModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.td-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; font-size: 1rem; transition: background .2s ease; }
.td-modal__close:hover { background: #dbe9fa; }
.td-modal__title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; color: var(--ink); padding-right: 40px; }
.td-modal__tour { margin: 0 0 20px; font-size: 0.88rem; color: var(--body-text); background: #eaf3fe; border-radius: 10px; padding: 10px 14px; line-height: 1.5; }
.td-modal__tour i { color: var(--blue); margin-right: 4px; }
.td-form select { font: 400 0.92rem 'Poppins', sans-serif; padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-soft); color: var(--ink); width: 100%; box-sizing: border-box; }
.td-form select:focus { outline: 2px solid var(--blue); background: #fff; }
.td-form__optional { border: 1px dashed #c9dcf3; border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
.td-form__optional legend { font-size: 0.82rem; font-weight: 600; color: var(--ink); padding: 0 8px; }
.td-form__optional legend span, .td-form__hint { color: var(--muted); font-weight: 400; }
.td-modal__done { text-align: center; padding: 26px 10px 8px; }
.td-modal__done i { font-size: 3rem; color: #1f9d55; margin-bottom: 10px; }
.td-modal__done h2 { margin: 0 0 8px; color: var(--ink); }
.td-modal__done p { color: var(--body-text); line-height: 1.7; margin: 0 0 20px; }
@media (max-width: 560px) {
  .td-modal { padding: 0; }
  .td-modal__box { border-radius: 0; min-height: 100%; padding: 24px 18px 28px; }
}

/* Spam trap: invisible to people, bots fill it in */
.td-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
