/* ============================================================
   TOUR MAESTRO — Frontend Styles
   Aesthetic: Luxury editorial travel — warm sand & deep teal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --tm-sand:      #f5efe6;
  --tm-sand-dark: #e8ddd0;
  --tm-teal:      #1a5c5c;
  --tm-teal-light:#2d8282;
  --tm-gold:      #c9964a;
  --tm-charcoal:  #1e2328;
  --tm-muted:     #6b7280;
  --tm-white:     #ffffff;
  --tm-radius:    12px;
  --tm-shadow:    0 4px 24px rgba(30,35,40,0.09);
  --tm-shadow-lg: 0 12px 48px rgba(30,35,40,0.14);
  --tm-font-display: 'Cormorant Garamond', Georgia, serif;
  --tm-font-body:    'DM Sans', system-ui, sans-serif;
  --tm-transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
.tour-maestro,
.tour-maestro *,
.tour-maestro *::before,
.tour-maestro *::after {
    box-sizing: border-box;
}

/* Hard reset common theme interference */
.tour-maestro h1,
.tour-maestro h2,
.tour-maestro h3,
.tour-maestro h4,
.tour-maestro h5,
.tour-maestro p,
.tour-maestro ul,
.tour-maestro ol,
.tour-maestro li,
.tour-maestro figure,
.tour-maestro blockquote {
    margin: 0;
    padding: 0;
}
.tour-maestro ul,
.tour-maestro ol { list-style: none; }

.tour-maestro a { text-decoration: none; }

.tour-maestro img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Override theme typography resets */
.tour-maestro { font-family: var(--tm-font-body); color: var(--tm-charcoal); line-height: 1.65; font-size: 16px; }

/* ── Hero ──────────────────────────────────────────────────── */
.tm-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--tm-charcoal);
}

.tm-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}
.tm-hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,35,40,0.15) 0%,
    rgba(30,35,40,0.0) 40%,
    rgba(30,35,40,0.6) 75%,
    rgba(30,35,40,0.88) 100%
  );
}
.tm-hero:hover .tm-hero__bg { transform: scale(1.02); }

.tm-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5%;
  color: var(--tm-white);
}

.tm-hero__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--tm-font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.tm-hero__breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.tm-hero__breadcrumb a:hover { color: var(--tm-gold); }

.tm-hero__cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.tm-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(201,150,74,0.25);
  color: var(--tm-gold);
  border: 1px solid rgba(201,150,74,0.4);
  text-decoration: none;
}
.tm-badge:hover { background: var(--tm-gold); color: var(--tm-white); }

.tm-hero__title {
  font-family: var(--tm-font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--tm-white);
  margin-bottom: 16px;
}
.tm-hero__title em { font-style: italic; color: var(--tm-gold); }

.tm-hero__excerpt {
  max-width: 600px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  line-height: 1.7;
}

.tm-hero__stats {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.tm-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.tm-stat__label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.tm-stat__value {
  font-family: var(--tm-font-display);
  font-size: 1.3rem; font-weight: 600;
  color: var(--tm-white);
}
.tm-stat--rating .tm-stat__value { color: var(--tm-gold); }

/* ── Layout Container ──────────────────────────────────────── */
.tm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.tm-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.tm-main { min-width: 0; }
.tm-sidebar { }

/* ── Section Titles ────────────────────────────────────────── */
.tm-section { margin-bottom: 64px; }

.tm-section-title {
  font-family: var(--tm-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--tm-charcoal);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.tm-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--tm-sand-dark), transparent);
}
.tm-section-icon {
  font-size: 1.1em;
}

/* ── Quick Navigation — full-width sticky tab bar ──────────── */
.tm-quick-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--tm-sand-dark);
  box-shadow: 0 2px 12px rgba(30,35,40,0.06);
}

.tm-quick-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tm-quick-nav__inner::-webkit-scrollbar { display: none; }

.tm-quick-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 22px;
  font-family: var(--tm-font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--tm-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
}
.tm-quick-nav__item:hover {
  color: var(--tm-teal);
}
.tm-quick-nav__item.is-active {
  color: var(--tm-teal);
  border-bottom-color: var(--tm-teal);
  font-weight: 600;
}

/* ── Overview ──────────────────────────────────────────────── */
.tm-overview-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--tm-charcoal);
}
.tm-overview-text p { margin-bottom: 1.2em; }

/* ── Highlights ────────────────────────────────────────────── */
.tm-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.tm-highlight-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--tm-sand);
  border-radius: var(--tm-radius);
  font-size: 0.9rem;
  line-height: 1.4;
}
.tm-highlight-item::before {
  content: '✦';
  color: var(--tm-gold);
  font-size: 0.8em;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Inclusions ────────────────────────────────────────────── */
.tm-inclusions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.tm-inclusions__col h4 {
  font-family: var(--tm-font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tm-muted);
  margin-bottom: 12px;
}
.tm-inclusions__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.tm-inclusions__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; line-height: 1.5;
}
.tm-inclusions__list--yes li::before { content: '✓'; color: #2d9d5a; font-weight: 600; }
.tm-inclusions__list--no  li::before { content: '✕'; color: #e05252; font-weight: 600; }

/* ── Itinerary ─────────────────────────────────────────────── */
.tm-itinerary { position: relative; }
.tm-itinerary::before {
  content: '';
  position: absolute;
  left: 28px; top: 40px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--tm-teal), var(--tm-sand-dark));
}

.tm-day {
  position: relative;
  padding-left: 72px;
  margin-bottom: 40px;
}

.tm-day__number {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--tm-teal);
  color: var(--tm-white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--tm-font-display);
  z-index: 1;
}
.tm-day__number span:first-child {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.7; line-height: 1;
}
.tm-day__number span:last-child {
  font-size: 1.3rem; font-weight: 600; line-height: 1;
}

.tm-day__card {
  background: var(--tm-white);
  border: 1px solid var(--tm-sand-dark);
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-shadow);
  transition: var(--tm-transition);
}
.tm-day__card:hover { box-shadow: var(--tm-shadow-lg); transform: translateY(-2px); }

.tm-day__image img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
}

.tm-day__body { padding: 24px; }

.tm-day__header { margin-bottom: 12px; }
.tm-day__title {
  font-family: var(--tm-font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--tm-charcoal);
  margin-bottom: 4px;
}
.tm-day__subtitle {
  font-size: 0.85rem;
  color: var(--tm-teal);
  font-weight: 500;
}

.tm-day__description {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}

.tm-day__activities {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.tm-activity-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: rgba(26,92,92,0.07);
  color: var(--tm-teal);
  border-radius: 99px;
  font-size: 0.78rem; font-weight: 500;
}
.tm-activity-tag::before { content: '◆'; font-size: 0.5em; }

.tm-day__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--tm-sand-dark);
}
.tm-day__meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--tm-muted);
}
.tm-day__meta-item strong { color: var(--tm-charcoal); }

/* ── Gallery ───────────────────────────────────────────────── */
.tm-gallery-count {
  font-family: var(--tm-font-body);
  font-size: 0.75rem; font-weight: 500;
  color: var(--tm-muted);
  background: var(--tm-sand);
  padding: 3px 10px;
  border-radius: 99px;
  margin-left: 4px;
}

.tm-gallery-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

/* Full gallery (5+ images): featured first + grid */
.tm-gallery-grid--full {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
}
.tm-gallery-grid--full .tm-gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* Small (3-4 images) */
.tm-gallery-grid--small {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
}
.tm-gallery-grid--small .tm-gallery-item--featured {
  grid-column: span 2;
}

/* Two images */
.tm-gallery-grid--two {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 320px;
}

/* Single image */
.tm-gallery-grid--single {
  grid-template-columns: 1fr;
}
.tm-gallery-grid--single .tm-gallery-item {
  aspect-ratio: 16/7;
}

.tm-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: var(--tm-sand-dark);
  display: block;
}
.tm-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.tm-gallery-item:hover img { transform: scale(1.06); }

/* Dark overlay on hover */
.tm-gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,26,26,0);
  transition: background 0.3s ease;
  z-index: 1;
}
.tm-gallery-item:hover::before { background: rgba(10,26,26,0.3); }

/* Zoom icon */
.tm-gallery-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--tm-teal);
  opacity: 0; transform: scale(0.8);
  transition: all 0.2s ease;
  z-index: 2;
}
.tm-gallery-item:hover .tm-gallery-zoom { opacity: 1; transform: scale(1); }

/* Caption */
.tm-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(10,26,26,0.7), transparent);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}
.tm-gallery-item:hover .tm-gallery-caption { transform: translateY(0); }

/* Lightbox */
.tm-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.tm-lightbox.is-open { display: flex; }

.tm-lightbox__img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.tm-lightbox__caption {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}
.tm-lightbox__counter {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.tm-lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 1.3rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.tm-lightbox__close:hover { background: rgba(255,255,255,0.2); }

.tm-lightbox__nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.tm-lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.tm-lightbox__prev { left: 20px; }
.tm-lightbox__next { right: 20px; }

/* ── Route ─────────────────────────────────────────────────── */
.tm-route { margin-top: 20px; }

.tm-route__stops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  background: var(--tm-sand);
  padding: 20px 24px;
  border-radius: var(--tm-radius);
}
.tm-route__stop {
  display: flex; align-items: center;
}
.tm-route__stop-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tm-teal);
  border: 2px solid var(--tm-teal-light);
  flex-shrink: 0;
}
.tm-route__stop-name {
  font-size: 0.85rem; font-weight: 500;
  color: var(--tm-charcoal);
  margin: 0 8px;
}
.tm-route__arrow {
  color: var(--tm-gold);
  font-size: 0.8rem;
  margin: 0 4px;
}

.tm-route__map {
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-shadow);
}
.tm-route__map img {
  width: 100%; display: block;
}
.tm-route__map iframe {
  width: 100%; height: 400px;
  display: block; border: none;
}

/* ── Reviews ───────────────────────────────────────────────── */
.tm-reviews__summary {
  display: flex; align-items: center; gap: 28px;
  padding: 28px 32px;
  background: var(--tm-sand);
  border-radius: var(--tm-radius);
  margin-bottom: 32px;
}
.tm-rating-big {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex-shrink: 0;
}
.tm-rating-big__score {
  font-family: var(--tm-font-display);
  font-size: 3.5rem; font-weight: 600;
  color: var(--tm-teal); line-height: 1;
}
.tm-rating-big__stars { color: var(--tm-gold); font-size: 1.1rem; letter-spacing: 2px; }
.tm-rating-big__count { font-size: 0.78rem; color: var(--tm-muted); }

.tm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tm-review-card {
  background: var(--tm-white);
  border: 1px solid var(--tm-sand-dark);
  border-radius: var(--tm-radius);
  padding: 24px;
  box-shadow: var(--tm-shadow);
}

.tm-review-card__header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.tm-review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tm-sand-dark);
}
.tm-review-card__name {
  font-weight: 500; font-size: 0.9rem; color: var(--tm-charcoal);
}
.tm-review-card__date { font-size: 0.75rem; color: var(--tm-muted); }

.tm-review-card__stars { color: var(--tm-gold); font-size: 0.9rem; margin-bottom: 10px; }
.tm-review-card__text { font-size: 0.88rem; line-height: 1.7; color: #444; }

/* Review form */
.tm-review-form {
  background: var(--tm-sand);
  border-radius: var(--tm-radius);
  padding: 32px;
  margin-top: 32px;
}
.tm-review-form h4 {
  font-family: var(--tm-font-display);
  font-size: 1.5rem; font-weight: 400;
  margin-bottom: 24px;
}
.tm-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.tm-form-group { display: flex; flex-direction: column; gap: 6px; }
.tm-form-group label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tm-muted); }
.tm-form-group input,
.tm-form-group textarea,
.tm-form-group select {
  padding: 10px 14px;
  border: 1px solid var(--tm-sand-dark);
  border-radius: 8px;
  background: var(--tm-white);
  font-family: var(--tm-font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.tm-form-group input:focus,
.tm-form-group textarea:focus {
  outline: none;
  border-color: var(--tm-teal);
  box-shadow: 0 0 0 3px rgba(26,92,92,0.08);
}

/* Star rating input */
.tm-star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.tm-star-input input { display: none; }
.tm-star-input label {
  font-size: 1.6rem; cursor: pointer;
  color: var(--tm-sand-dark);
  transition: color 0.15s;
  text-transform: none; letter-spacing: 0;
}
.tm-star-input label:hover,
.tm-star-input label:hover ~ label,
.tm-star-input input:checked ~ label { color: var(--tm-gold); }

.tm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--tm-font-body);
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: var(--tm-transition);
}
.tm-btn--primary {
  background: var(--tm-teal);
  color: var(--tm-white);
}
.tm-btn--primary:hover { background: var(--tm-teal-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,92,92,0.25); }

.tm-form-message { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; }
.tm-form-message--success { background: #d1fae5; color: #065f46; }
.tm-form-message--error   { background: #fee2e2; color: #991b1b; }

/* ── Sidebar ────────────────────────────────────────────────── */
.tm-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.tm-sidebar-card {
  background: var(--tm-white);
  border: 1px solid var(--tm-sand-dark);
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-shadow);
  margin-bottom: 24px;
  position: static;
}
.tm-sidebar-card__head {
  background: var(--tm-teal);
  padding: 24px;
  color: var(--tm-white);
}
.tm-sidebar-card__price-label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
}
.tm-sidebar-card__price {
  font-family: var(--tm-font-display);
  font-size: 2.4rem; font-weight: 600; line-height: 1;
  margin: 4px 0;
}
.tm-sidebar-card__price sub { font-size: 0.5em; font-weight: 400; opacity: 0.8; }

.tm-sidebar-card__body { padding: 20px; }
.tm-sidebar-detail {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--tm-sand-dark);
  font-size: 0.88rem;
}
.tm-sidebar-detail:last-child { border: none; }
.tm-sidebar-detail__label { color: var(--tm-muted); font-size: 0.8rem; }
.tm-sidebar-detail__value { font-weight: 500; color: var(--tm-charcoal); }

.tm-difficulty-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem; font-weight: 500;
}
.tm-diff-easy       { background: #d1fae5; color: #065f46; }
.tm-diff-moderate   { background: #fef3c7; color: #92400e; }
.tm-diff-challenging{ background: #fee2e2; color: #991b1b; }
.tm-diff-expert     { background: #ede9fe; color: #4c1d95; }

.tm-sidebar-cta {
  padding: 0 20px 20px;
}
.tm-sidebar-cta .tm-btn { width: 100%; justify-content: center; padding: 14px; font-size: 0.95rem; }

/* ── Archive / Listing ─────────────────────────────────────── */
.tm-archive-wrap {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.tm-archive-header { margin-bottom: 48px; text-align: center; }
.tm-archive-header h1 {
  font-family: var(--tm-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; color: var(--tm-charcoal);
}
.tm-archive-header h1 em { font-style: italic; color: var(--tm-teal); }
.tm-archive-header p { color: var(--tm-muted); margin-top: 10px; font-size: 1.05rem; }

.tm-tours-grid {
  display: grid;
  grid-template-columns: repeat(var(--tm-cols, 3), 1fr);
  gap: 24px;
}

/* ── Tour Card — matches screenshot layout ──────────────────── */
.tm-tour-card {
  background: var(--tm-white);
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  font-family: var(--tm-font-body);
}
.tm-tour-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

/* Region label at the very top */
.tm-tour-card__region {
  text-align: center;
  font-family: var(--tm-font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tm-muted);
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
  background: var(--tm-white);
}

/* Photo area */
.tm-tour-card__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--tm-sand-dark);
  text-decoration: none;
}
.tm-tour-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.tm-tour-card:hover .tm-tour-card__img img { transform: scale(1.04); }

/* Map button on photo */
.tm-tour-card__map-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tm-charcoal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  pointer-events: none;
}
.tm-tour-card__map-btn svg { flex-shrink: 0; }

/* Card body */
.tm-tour-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

/* Route: departure → destination */
.tm-tour-card__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.tm-route-point {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.tm-route-point--right {
  text-align: right;
}
.tm-route-point strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tm-charcoal);
}
.tm-route-point span {
  font-size: 0.8rem;
  color: var(--tm-charcoal);
  font-weight: 400;
}
.tm-route-arrow {
  color: var(--tm-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Dates row */
.tm-tour-card__dates {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--tm-muted);
  margin-bottom: 10px;
  margin-top: 2px;
}

/* Meta row: vessel + nights */
.tm-tour-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--tm-muted);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.tm-tour-card__vessel,
.tm-tour-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tm-tour-card__vessel svg,
.tm-tour-card__duration svg { flex-shrink: 0; }

/* Discount badge */
.tm-tour-card__discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f0e8;
  border: 1px solid #d4b896;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #7a5c2e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}
.tm-tour-card__discount-badge svg { color: #7a5c2e; flex-shrink: 0; }

/* Footer: pricing + button */
.tm-tour-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tm-tour-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tm-tour-card__price-label {
  font-size: 0.72rem;
  color: var(--tm-muted);
  font-weight: 400;
}

.tm-tour-card__original-price {
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}

.tm-tour-card__price {
  font-family: var(--tm-font-body);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--tm-charcoal);
  line-height: 1.1;
}

.tm-tour-card__per-night {
  font-size: 0.72rem;
  color: var(--tm-muted);
}

/* Discover More button */
.tm-tour-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--tm-charcoal);
  color: var(--tm-white);
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.tm-tour-card__cta:hover {
  background: #333;
}

/* ── Site Header (standalone mode) ────────────────────────── */
body.tm-page {
    margin: 0; padding: 0;
    background: #fff;
    font-family: var(--tm-font-body);
}

.tm-site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 26, 26, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tm-site-header__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 5%;
    display: flex; align-items: center; gap: 24px;
    height: 64px;
}
.tm-site-header__logo {
    text-decoration: none;
    display: flex; align-items: center;
    margin-right: auto;
}
.tm-site-header__logo img { height: 36px; width: auto; }
.tm-site-header__logo span {
    font-family: var(--tm-font-display);
    font-size: 1.3rem; font-weight: 600;
    color: var(--tm-white);
}
.tm-nav__menu {
    display: flex; gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.tm-nav__menu li a {
    padding: 6px 14px;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem; font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--tm-transition);
}
.tm-nav__menu li a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.tm-site-header__cta {
    padding: 8px 18px;
    background: var(--tm-gold);
    color: var(--tm-white);
    border-radius: 8px;
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--tm-transition);
}
.tm-site-header__cta:hover { background: #b8832e; }

/* Inner wrapper — full width reset */
.tour-maestro-inner { width: 100%; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tm-tours-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tm-layout { grid-template-columns: 1fr; }
  .tm-sidebar { position: static; }
  .tm-sidebar-card { position: static; }
  .tm-gallery-grid--full { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tm-gallery-grid--full .tm-gallery-item--featured { grid-column: span 2; }
  .tm-inclusions { grid-template-columns: 1fr; }
  .tm-form-row { grid-template-columns: 1fr; }
  .tm-reviews__summary { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 640px) {
  .tm-tours-grid { grid-template-columns: 1fr; }
  .tm-hero { min-height: 60vh; }
  .tm-gallery-grid--full,
  .tm-gallery-grid--small { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tm-gallery-grid--full .tm-gallery-item--featured,
  .tm-gallery-grid--small .tm-gallery-item--featured { grid-column: span 1; grid-row: span 1; }
  .tm-gallery-item { aspect-ratio: 4/3; }
  .tm-gallery-grid--two { grid-template-columns: 1fr; }
  .tm-day { padding-left: 56px; }
  .tm-itinerary::before { left: 22px; }
  .tm-day__number { width: 44px; height: 44px; }
}

/* ── Tour Card: Title & Type ────────────────────────────────── */
.tm-tour-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--tm-dark, #1a1a2e);
}
.tm-tour-card__title a {
    color: inherit;
    text-decoration: none;
}
.tm-tour-card__title a:hover {
    color: var(--tm-gold, #c9973a);
}
.tm-tour-card__type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tm-tour-card__type {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm-gold, #c9973a);
    background: rgba(201,151,58,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(201,151,58,0.25);
}
.tm-tour-card__difficulty {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
}
.tm-tour-card__difficulty--easy    { background:#e6f9f0; color:#1a7a4a; border:1px solid #b2e8cc; }
.tm-tour-card__difficulty--moderate { background:#fff8e6; color:#8a6000; border:1px solid #f0d080; }
.tm-tour-card__difficulty--challenging { background:#fff0e6; color:#b04000; border:1px solid #f0b080; }
.tm-tour-card__difficulty--expert  { background:#fdeaea; color:#9b1c1c; border:1px solid #f5b8b8; }
