/* ============================================================
   TP Travel Frontend – Design System
   Aesthetic: Refined travel luxury
   Fonts: Playfair Display (headlines) + DM Sans (body)
   Palette: Deep navy #0f3460 · Gold #f4c842 · Ivory #fdf8f2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --tp-navy:        #0f3460;
  --tp-navy-dark:   #07213f;
  --tp-navy-light:  #1a4b8a;
  --tp-gold:        #f4c842;
  --tp-gold-dark:   #d4a800;
  --tp-ivory:       #fdf8f2;
  --tp-white:       #ffffff;
  --tp-text:        #1a1a2e;
  --tp-text-light:  #5a6478;
  --tp-text-muted:  #94a3b8;
  --tp-border:      #e2e8f0;
  --tp-border-soft: #f1f5f9;
  --tp-success:     #16a34a;
  --tp-warning:     #d97706;
  --tp-error:       #dc2626;
  --tp-info:        #0284c7;
  --tp-radius:      10px;
  --tp-radius-sm:   6px;
  --tp-radius-lg:   16px;
  --tp-shadow:      0 4px 16px rgba(15,52,96,.10);
  --tp-shadow-sm:   0 2px 8px  rgba(15,52,96,.07);
  --tp-shadow-lg:   0 12px 40px rgba(15,52,96,.15);
  --tp-transition:  .22s cubic-bezier(.4,0,.2,1);
  --tp-font-head:   'Playfair Display', Georgia, serif;
  --tp-font-body:   'DM Sans', system-ui, sans-serif;
  --tp-cols:        3;
}

/* ── BASE ───────────────────────────────────────────────── */
.tp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.tp-page-title {
  font-family: var(--tp-font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--tp-navy);
  margin: 0 0 32px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.tp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tp-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--tp-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--tp-transition);
  background: var(--tp-navy);
  color: var(--tp-white);
  line-height: 1;
  white-space: nowrap;
}
.tp-btn:hover { background: var(--tp-navy-light); transform: translateY(-1px); box-shadow: var(--tp-shadow); }
.tp-btn:active { transform: translateY(0); }
.tp-btn--primary  { background: var(--tp-gold); color: var(--tp-navy); border-color: var(--tp-gold); }
.tp-btn--primary:hover { background: var(--tp-gold-dark); border-color: var(--tp-gold-dark); }
.tp-btn--outline  { background: transparent; color: var(--tp-navy); border-color: var(--tp-navy); }
.tp-btn--outline:hover { background: var(--tp-navy); color: #fff; }
.tp-btn--sm       { padding: 7px 16px; font-size: 0.8125rem; }
.tp-btn--xs       { padding: 4px 10px; font-size: 0.75rem; }
.tp-btn--lg       { padding: 15px 32px; font-size: 1rem; }
.tp-btn--block    { width: 100%; justify-content: center; }
.tp-btn--search   { background: var(--tp-gold); color: var(--tp-navy); flex-shrink: 0; }
.tp-btn--search:hover { background: var(--tp-gold-dark); }
.tp-btn--danger   { background: var(--tp-error); border-color: var(--tp-error); color: #fff; }
.tp-btn--danger:hover { background: #b91c1c; }
.tp-btn--google   { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; width: 100%; justify-content: center; font-size: 0.875rem; }
.tp-btn--google:hover { background: #f8f9fa; box-shadow: var(--tp-shadow-sm); }
.tp-btn-link      { background: none; border: none; padding: 0; color: var(--tp-navy); cursor: pointer; font: inherit; text-decoration: underline; font-size: 0.875rem; }
.tp-btn-link--danger { color: var(--tp-error); }

/* ── FORM ELEMENTS ──────────────────────────────────────── */
.tp-input, .tp-select, .tp-textarea {
  width: 100%;
  font-family: var(--tp-font-body);
  font-size: 0.9375rem;
  color: var(--tp-text);
  background: var(--tp-white);
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  padding: 10px 14px;
  transition: border-color var(--tp-transition), box-shadow var(--tp-transition);
  outline: none;
  -webkit-appearance: none;
}
.tp-input:focus, .tp-select:focus, .tp-textarea:focus {
  border-color: var(--tp-navy);
  box-shadow: 0 0 0 3px rgba(15,52,96,.12);
}
.tp-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.tp-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.tp-form-group label { font-size: 0.875rem; font-weight: 500; color: var(--tp-text); }
.tp-form-group--full { grid-column: 1 / -1; }
.tp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-required { color: var(--tp-error); margin-left: 2px; }
.tp-field-hint { font-size: 0.8125rem; color: var(--tp-text-muted); margin-top: 3px; }
.tp-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; line-height: 1.5; }
.tp-checkbox { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--tp-navy); }
.tp-pw-wrap { position: relative; }
.tp-pw-wrap .tp-input { padding-right: 42px; }
.tp-pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--tp-text-muted); padding: 0; }

/* ── NOTICES ────────────────────────────────────────────── */
.tp-notice { padding: 12px 16px; border-radius: var(--tp-radius-sm); font-size: 0.9rem; margin-bottom: 12px; border-left: 4px solid transparent; }
.tp-notice--success { background: #f0fdf4; border-color: var(--tp-success); color: #166534; }
.tp-notice--error   { background: #fef2f2; border-color: var(--tp-error);   color: #991b1b; }
.tp-notice--info    { background: #eff6ff; border-color: var(--tp-info);    color: #1e40af; }
.tp-notice--warning { background: #fffbeb; border-color: var(--tp-warning); color: #92400e; }

/* ── BADGES / STATUS ────────────────────────────────────── */
.tp-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; }
.tp-badge--featured   { background: var(--tp-gold); color: var(--tp-navy); }
.tp-badge--sold-out   { background: var(--tp-error); color: #fff; }
.tp-badge--limited    { background: var(--tp-warning); color: #fff; }
.tp-status-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.tp-status-badge--pending        { background: #fef3c7; color: #92400e; }
.tp-status-badge--on_hold        { background: #e0f2fe; color: #075985; }
.tp-status-badge--confirmed      { background: #dcfce7; color: #166534; }
.tp-status-badge--partially_paid { background: #dbeafe; color: #1e40af; }
.tp-status-badge--completed      { background: #f0fdf4; color: #166534; }
.tp-status-badge--cancelled      { background: #fee2e2; color: #991b1b; }
.tp-status-badge--refunded       { background: #f3e8ff; color: #6b21a8; }
.tp-status-badge--new            { background: #fef9c3; color: #854d0e; }
.tp-status-badge--replied        { background: #e0f2fe; color: #075985; }
.tp-status-badge--converted      { background: #dcfce7; color: #166534; }
.tp-status-badge--closed         { background: #f1f5f9; color: #475569; }
.tp-status-badge--approved       { background: #dcfce7; color: #166534; }
.tp-status-badge--pending-status { background: #fef3c7; color: #92400e; }
.tp-status-badge--rejected       { background: #fee2e2; color: #991b1b; }
.tp-muted { color: var(--tp-text-muted); }
.tp-muted-warn { color: var(--tp-warning); font-weight: 600; }

/* ── STARS ──────────────────────────────────────────────── */
.tp-star { color: var(--tp-border); font-size: 1em; }
.tp-star--filled { color: var(--tp-gold-dark); }
.tp-stars--lg .tp-star { font-size: 1.4em; }
.tp-stars--sm .tp-star { font-size: 0.875em; }

/* ── TOUR CARD ──────────────────────────────────────────── */
.tp-tours-grid {
  display: grid;
  grid-template-columns: repeat(var(--tp-cols, 3), 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.tp-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tp-transition), box-shadow var(--tp-transition);
}
.tp-card:hover { transform: translateY(-5px); box-shadow: var(--tp-shadow-lg); }

.tp-card__image-link { display: block; }
.tp-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.tp-card__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.35)); }
.tp-card__image .tp-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }

.tp-card__wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  border: none; border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--tp-navy); transition: all var(--tp-transition);
}
.tp-card__wishlist:hover, .tp-card__wishlist.is-wishlisted { background: var(--tp-error); color: #fff; }

.tp-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tp-card__dest { font-size: 0.8125rem; color: var(--tp-text-muted); display: flex; align-items: center; gap: 4px; margin: 0; }
.tp-card__title { font-family: var(--tp-font-head); font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin: 0; }
.tp-card__title a { color: var(--tp-text); text-decoration: none; }
.tp-card__title a:hover { color: var(--tp-navy); }
.tp-card__excerpt { font-size: 0.875rem; color: var(--tp-text-light); margin: 0; line-height: 1.5; }

.tp-card__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-card__meta-item { font-size: 0.8125rem; color: var(--tp-text-light); display: flex; align-items: center; gap: 4px; }
.tp-card__rating { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; }
.tp-card__rating-count { color: var(--tp-text-muted); }

.tp-card__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tp-border-soft); display: flex; justify-content: space-between; align-items: center; }
.tp-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.tp-card__price-label { font-size: 0.75rem; color: var(--tp-text-muted); }
.tp-card__price-old { font-size: 0.875rem; color: var(--tp-text-muted); text-decoration: line-through; }
.tp-card__price-current { font-family: var(--tp-font-head); font-size: 1.25rem; font-weight: 700; color: var(--tp-navy); }
.tp-card__price-current--sale { color: var(--tp-error); }
.tp-card__price-pp { font-size: 0.75rem; color: var(--tp-text-muted); }

/* ── ARCHIVE HERO ───────────────────────────────────────── */
.tp-archive-hero {
  background: linear-gradient(135deg, var(--tp-navy-dark) 0%, var(--tp-navy-light) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.tp-archive-hero__title { font-family: var(--tp-font-head); font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; margin: 0 0 12px; }
.tp-archive-hero__desc  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* ── SEARCH FORM ────────────────────────────────────────── */
.tp-filter-bar { background: var(--tp-white); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); padding: 20px; margin: -32px 0 40px; position: relative; }
.tp-search-form__fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tp-search-field { flex: 1; min-width: 180px; position: relative; }
.tp-search-field--keyword .tp-input { padding-left: 36px; }
.tp-search-field__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tp-text-muted); pointer-events: none; }
.tp-search-form--inline .tp-search-form__fields { flex-wrap: nowrap; }

/* ── PAGINATION ─────────────────────────────────────────── */
.tp-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 32px 0; }
.tp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--tp-radius-sm); border: 1.5px solid var(--tp-border); color: var(--tp-text); text-decoration: none; font-size: 0.875rem; transition: all var(--tp-transition); }
.tp-pagination .page-numbers:hover { border-color: var(--tp-navy); color: var(--tp-navy); }
.tp-pagination .page-numbers.current { background: var(--tp-navy); border-color: var(--tp-navy); color: #fff; }
.tp-pagination .prev, .tp-pagination .next { width: auto; padding: 0 16px; }

/* ── DESTINATIONS GRID ──────────────────────────────────── */
.tp-dest-grid { display: grid; grid-template-columns: repeat(var(--tp-cols,4), 1fr); gap: 20px; }
.tp-dest-card { display: block; position: relative; border-radius: var(--tp-radius); overflow: hidden; text-decoration: none; }
.tp-dest-card__img { height: 240px; background-size: cover; background-position: center; transition: transform .5s var(--tp-transition); }
.tp-dest-card:hover .tp-dest-card__img { transform: scale(1.05); }
.tp-dest-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.tp-dest-card__name  { font-family: var(--tp-font-head); font-size: 1.2rem; color: #fff; margin: 0; }
.tp-dest-card__count { font-size: 0.85rem; color: rgba(255,255,255,.8); margin-top: 3px; }

/* ── NO RESULTS ─────────────────────────────────────────── */
.tp-no-results { text-align: center; padding: 80px 24px; color: var(--tp-text-light); }
.tp-no-results svg { margin-bottom: 16px; color: var(--tp-border); }
.tp-no-results h3 { font-size: 1.4rem; margin: 0 0 8px; color: var(--tp-text); }
.tp-empty { color: var(--tp-text-muted); font-style: italic; }

/* ── SINGLE TOUR HERO ───────────────────────────────────── */
.tp-single__hero {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.tp-single__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,33,63,.85) 0%, rgba(7,33,63,.3) 60%, transparent 100%);
  display: flex; align-items: flex-end; width: 100%;
}
.tp-single__hero-overlay .tp-container { padding-bottom: 40px; width: 100%; }
.tp-single__title { font-family: var(--tp-font-head); font-size: clamp(2rem,4vw,3.2rem); color: #fff; margin: 12px 0; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.tp-breadcrumb { color: rgba(255,255,255,.7); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp-breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.tp-breadcrumb a:hover { color: var(--tp-gold); }
.tp-single__hero-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tp-hero-tag, .tp-hero-rating { background: rgba(255,255,255,.15); backdrop-filter: blur(4px); color: rgba(255,255,255,.9); padding: 5px 12px; border-radius: 20px; font-size: 0.8125rem; display: flex; align-items: center; gap: 5px; }
.tp-hero-rating strong { color: var(--tp-gold); }

/* ── SINGLE TOUR LAYOUT ─────────────────────────────────── */
.tp-single__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  padding: 40px 0 60px;
  align-items: start;
}
.tp-single__sidebar { position: sticky; top: 24px; }

/* ── GALLERY STRIP ──────────────────────────────────────── */
.tp-gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 28px; border-radius: var(--tp-radius); overflow: hidden; }
.tp-gallery-strip__item img { width: 100%; height: 120px; object-fit: cover; display: block; transition: opacity var(--tp-transition); }
.tp-gallery-strip__item:hover img { opacity: .85; }
.tp-gallery-strip__more { background: rgba(15,52,96,.85); color: #fff; border: none; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; justify-content: center; height: 120px; width: 100%; transition: background var(--tp-transition); }
.tp-gallery-strip__more:hover { background: var(--tp-navy); }

/* ── ATTR STRIP ─────────────────────────────────────────── */
.tp-attr-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; margin-bottom: 28px; }
.tp-attr-strip__item { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-right: 1px solid var(--tp-border); }
.tp-attr-strip__item:last-child { border-right: none; }
.tp-attr-strip__label { display: block; font-size: 0.75rem; color: var(--tp-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.tp-attr-strip__value { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--tp-navy); }

/* ── TABS ───────────────────────────────────────────────── */
.tp-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--tp-border);
  margin-bottom: 28px;
}
.tp-tabs-nav__btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 18px;
  font-family: var(--tp-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tp-text-light);
  cursor: pointer;
  transition: color var(--tp-transition), border-color var(--tp-transition);
  white-space: nowrap;
}
.tp-tabs-nav__btn:hover { color: var(--tp-navy); }
.tp-tabs-nav__btn.is-active { color: var(--tp-navy); border-bottom-color: var(--tp-navy); font-weight: 600; }
.tp-tab-panel { display: none; }
.tp-tab-panel.is-active { display: block; animation: tp-fade-in .25s ease; }
@keyframes tp-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── ITINERARY ──────────────────────────────────────────── */
.tp-itinerary { position: relative; padding-left: 32px; }
.tp-itinerary::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--tp-border); }
.tp-itin-item { position: relative; margin-bottom: 28px; }
.tp-itin-item__marker { position: absolute; left: -32px; }
.tp-itin-item__day {
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--tp-navy); color: #fff;
  border-radius: 50%;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: absolute; left: -46px; top: 2px;
}
.tp-itin-item__body { background: var(--tp-border-soft); border-radius: var(--tp-radius); padding: 18px 20px; }
.tp-itin-item__title { font-family: var(--tp-font-head); font-size: 1.05rem; color: var(--tp-navy); margin: 0 0 8px; }
.tp-itin-item__meta { display: flex; gap: 16px; margin-bottom: 10px; font-size: 0.8rem; color: var(--tp-text-muted); }
.tp-itin-item__desc { font-size: 0.9rem; color: var(--tp-text-light); line-height: 1.6; }

/* ── INCLUSIONS ─────────────────────────────────────────── */
.tp-inclusions-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tp-inclusions { border-radius: var(--tp-radius); padding: 20px 24px; }
.tp-inclusions--included { background: #f0fdf4; border: 1.5px solid #86efac; }
.tp-inclusions--excluded { background: #fef2f2; border: 1.5px solid #fca5a5; }
.tp-inclusions__heading { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.tp-inclusions--included .tp-inclusions__heading { color: var(--tp-success); }
.tp-inclusions--excluded .tp-inclusions__heading { color: var(--tp-error); }

/* ── FAQ ACCORDION ──────────────────────────────────────── */
.tp-faq-item { border-bottom: 1px solid var(--tp-border); }
.tp-faq-item__q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font: 500 0.9375rem/1.4 var(--tp-font-body);
  color: var(--tp-text); text-align: left; gap: 12px;
}
.tp-faq-item__q:hover { color: var(--tp-navy); }
.tp-faq-item__icon { flex-shrink: 0; transition: transform var(--tp-transition); }
.tp-faq-item__q[aria-expanded="true"] .tp-faq-item__icon { transform: rotate(180deg); }
.tp-faq-item__a { overflow: hidden; }
.tp-faq-item__a-inner { padding: 0 0 16px; font-size: 0.9rem; color: var(--tp-text-light); line-height: 1.7; }

/* ── AVAILABILITY ───────────────────────────────────────── */
.tp-fd-table-wrap { overflow-x: auto; margin-bottom: 28px; }
.tp-fd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tp-fd-table th, .tp-fd-table td { padding: 12px 14px; border-bottom: 1px solid var(--tp-border); text-align: left; }
.tp-fd-table thead th { background: var(--tp-border-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--tp-text-muted); font-weight: 600; }
.tp-fd-row--closed { opacity: .55; }
.tp-seats-badge { font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.tp-seats-badge--ok     { background: #dcfce7; color: #166534; }
.tp-seats-badge--sold   { background: #fee2e2; color: #991b1b; }
.tp-seats-badge--wait   { background: #fef3c7; color: #92400e; }
.tp-seats-badge--closed { background: #f1f5f9; color: #64748b; }
.tp-calendar-legend { display: flex; gap: 16px; margin-top: 12px; }
.tp-cal-legend-item { font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; }
.tp-cal-legend-item::before { content: ''; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tp-cal-legend-item--available::before   { background: #dcfce7; border: 1px solid #86efac; }
.tp-cal-legend-item--unavailable::before { background: #fee2e2; border: 1px solid #fca5a5; }
.tp-cal-legend-item--blocked::before     { background: #f1f5f9; border: 1px solid var(--tp-border); }
.tp-calendar-loading { padding: 40px; text-align: center; color: var(--tp-text-muted); font-style: italic; }

/* ── REVIEWS ────────────────────────────────────────────── */
.tp-review-summary { display: flex; gap: 32px; margin-bottom: 32px; background: var(--tp-border-soft); border-radius: var(--tp-radius); padding: 24px 28px; align-items: center; }
.tp-review-summary__score { text-align: center; }
.tp-review-summary__avg { font-family: var(--tp-font-head); font-size: 3rem; color: var(--tp-navy); display: block; line-height: 1; }
.tp-review-summary__count { font-size: 0.8125rem; color: var(--tp-text-muted); margin-top: 4px; display: block; }
.tp-review-summary__bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tp-rating-bar { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; }
.tp-rating-bar__label { width: 20px; text-align: right; color: var(--tp-text-muted); }
.tp-rating-bar__track { flex: 1; height: 6px; background: var(--tp-border); border-radius: 3px; overflow: hidden; }
.tp-rating-bar__fill  { height: 100%; background: var(--tp-gold-dark); border-radius: 3px; transition: width .6s ease; }
.tp-rating-bar__count { width: 20px; color: var(--tp-text-muted); }

.tp-review-item { padding: 20px 0; border-bottom: 1px solid var(--tp-border); }
.tp-review-item__header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tp-review-item__avatar { width: 40px; height: 40px; background: var(--tp-navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.tp-review-item__name { font-weight: 600; font-size: 0.9375rem; }
.tp-review-item__type { background: var(--tp-border-soft); font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; color: var(--tp-text-muted); }
.tp-review-item__date { margin-left: auto; font-size: 0.8125rem; color: var(--tp-text-muted); }
.tp-review-item__body { font-size: 0.9rem; color: var(--tp-text-light); line-height: 1.65; }
.tp-review-item__response { margin-top: 12px; background: var(--tp-border-soft); border-left: 3px solid var(--tp-navy); padding: 12px 16px; border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0; font-size: 0.875rem; }
.tp-review-item__helpful { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8125rem; color: var(--tp-text-muted); }
.tp-helpful-btn { background: none; border: 1px solid var(--tp-border); border-radius: 20px; padding: 3px 10px; font-size: 0.8rem; cursor: pointer; transition: all var(--tp-transition); }
.tp-helpful-btn:hover { border-color: var(--tp-navy); color: var(--tp-navy); }

/* Star picker */
.tp-star-picker { display: flex; flex-direction: row-reverse; gap: 4px; }
.tp-star-picker input { position: absolute; opacity: 0; width: 0; }
.tp-star-picker label { font-size: 2rem; cursor: pointer; color: var(--tp-border); transition: color var(--tp-transition); }
.tp-star-picker label:hover,
.tp-star-picker label:hover ~ label,
.tp-star-picker input:checked ~ label { color: var(--tp-gold-dark); }

/* ── BOOKING WIDGET ─────────────────────────────────────── */
.tp-booking-widget { background: var(--tp-white); border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: 24px; box-shadow: var(--tp-shadow); }
.tp-bw-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tp-bw-price__label { font-size: 0.8125rem; color: var(--tp-text-muted); }
.tp-bw-price__old { font-size: 0.9rem; color: var(--tp-text-muted); text-decoration: line-through; }
.tp-bw-price__current { font-family: var(--tp-font-head); font-size: 1.8rem; font-weight: 700; color: var(--tp-navy); }
.tp-bw-price__current--sale { color: var(--tp-error); }
.tp-bw-price__pp { font-size: 0.8125rem; color: var(--tp-text-muted); }
.tp-bw-seats { font-size: 0.8125rem; padding: 7px 12px; border-radius: var(--tp-radius-sm); margin-bottom: 16px; font-weight: 600; }
.tp-bw-seats--sold { background: #fee2e2; color: #991b1b; }
.tp-bw-seats--low  { background: #fffbeb; color: #92400e; }

.tp-pax-row { flex-direction: row; align-items: center; justify-content: space-between; }
.tp-pax-row__info { display: flex; flex-direction: column; }
.tp-pax-row__label { font-weight: 500; font-size: 0.9rem; }
.tp-pax-row__hint  { font-size: 0.75rem; color: var(--tp-text-muted); }
.tp-pax-row__price { font-size: 0.8125rem; color: var(--tp-navy); font-weight: 600; }
.tp-pax-counter { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius-sm); overflow: hidden; }
.tp-pax-counter__btn { width: 36px; height: 36px; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--tp-navy); display: flex; align-items: center; justify-content: center; transition: background var(--tp-transition); }
.tp-pax-counter__btn:hover { background: var(--tp-border-soft); }
.tp-pax-counter__val { width: 44px; text-align: center; border: none; font-family: var(--tp-font-body); font-size: 0.9375rem; font-weight: 600; outline: none; }

.tp-bw-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 2px solid var(--tp-border); border-bottom: 2px solid var(--tp-border); margin: 16px 0; }
.tp-bw-total__label { font-weight: 600; }
.tp-bw-total__value { font-family: var(--tp-font-head); font-size: 1.4rem; font-weight: 700; color: var(--tp-navy); }
.tp-bw-deposit-note { font-size: 0.8125rem; color: var(--tp-text-muted); margin: 0 0 14px; line-height: 1.5; }
.tp-bw-trust { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 0.78rem; color: var(--tp-text-muted); flex-wrap: wrap; }
.tp-bw-trust span { display: flex; align-items: center; gap: 4px; }
.tp-bw-enquiry-link { text-align: center; margin-top: 14px; font-size: 0.85rem; color: var(--tp-text-muted); }
.tp-bw-enquiry-link a { color: var(--tp-navy); font-weight: 500; }

/* ── CART ───────────────────────────────────────────────── */
.tp-cart-wrap { padding: 48px 24px; }
.tp-cart-empty { text-align: center; padding: 80px 24px; }
.tp-cart-empty svg { margin-bottom: 20px; color: var(--tp-border); }
.tp-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.tp-cart-item { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--tp-border); position: relative; }
.tp-cart-item__thumb { width: 100px; height: 80px; object-fit: cover; border-radius: var(--tp-radius-sm); flex-shrink: 0; }
.tp-cart-item__info { flex: 1; }
.tp-cart-item__title { font-family: var(--tp-font-head); font-size: 1.05rem; margin: 0 0 6px; }
.tp-cart-item__title a { color: var(--tp-text); text-decoration: none; }
.tp-cart-item__meta { font-size: 0.8125rem; color: var(--tp-text-muted); display: flex; flex-direction: column; gap: 3px; }
.tp-cart-item__price { font-family: var(--tp-font-head); font-size: 1.2rem; font-weight: 700; color: var(--tp-navy); white-space: nowrap; }
.tp-cart-item__remove { background: none; border: none; cursor: pointer; color: var(--tp-text-muted); padding: 4px; border-radius: var(--tp-radius-sm); transition: color var(--tp-transition); }
.tp-cart-item__remove:hover { color: var(--tp-error); }
.tp-cart-sidebar { background: var(--tp-border-soft); border-radius: var(--tp-radius-lg); padding: 24px; position: sticky; top: 24px; }
.tp-coupon-form h4 { font-size: 0.9rem; margin: 0 0 10px; }
.tp-coupon-input-wrap { display: flex; gap: 8px; }
.tp-coupon-applied { display: flex; align-items: center; justify-content: space-between; background: #dcfce7; border-radius: var(--tp-radius-sm); padding: 8px 12px; font-size: 0.875rem; font-weight: 600; color: #166534; margin-bottom: 12px; }
.tp-coupon-msg { font-size: 0.8125rem; margin-top: 6px; }
.tp-cart-totals { margin: 16px 0; }
.tp-cart-totals__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--tp-border); font-size: 0.9rem; }
.tp-cart-totals__row--total { font-size: 1.1rem; font-weight: 700; border-bottom: none; padding-top: 12px; color: var(--tp-navy); }
.tp-cart-totals__row--discount { color: var(--tp-success); }
.tp-cart-continue { display: block; text-align: center; margin-top: 12px; font-size: 0.85rem; }

/* ── CHECKOUT ───────────────────────────────────────────── */
.tp-checkout-wrap { padding: 48px 24px; }
.tp-checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.tp-checkout-section { background: var(--tp-white); border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius); padding: 24px; margin-bottom: 20px; }
.tp-checkout-section__title { display: flex; align-items: center; gap: 12px; font-family: var(--tp-font-head); font-size: 1.2rem; margin: 0 0 20px; color: var(--tp-navy); }
.tp-step-num { background: var(--tp-navy); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; flex-shrink: 0; }
.tp-traveller-block { border: 1px solid var(--tp-border); border-radius: var(--tp-radius-sm); padding: 16px; margin-bottom: 16px; }
.tp-traveller-block__heading { font-size: 0.9rem; font-weight: 600; color: var(--tp-navy); margin: 0 0 12px; }
.tp-payment-method { border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius-sm); margin-bottom: 10px; overflow: hidden; }
.tp-payment-method__label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 500; }
.tp-payment-method__label:has(.tp-radio:checked) { background: var(--tp-border-soft); }
.tp-payment-method__title { font-size: 0.95rem; }
.tp-payment-method__fields { padding: 12px 16px 16px; border-top: 1px solid var(--tp-border); background: var(--tp-border-soft); }
.tp-radio { accent-color: var(--tp-navy); }
.tp-checkout-section--terms { background: var(--tp-border-soft); border-color: transparent; }
.tp-checkout-summary { background: var(--tp-white); border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: 24px; position: sticky; top: 24px; }
.tp-checkout-summary h3 { font-family: var(--tp-font-head); font-size: 1.1rem; margin: 0 0 16px; }
.tp-checkout-tour { display: flex; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--tp-border); }
.tp-checkout-tour img { width: 80px; height: 64px; object-fit: cover; border-radius: var(--tp-radius-sm); }
.tp-checkout-tour strong { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.tp-checkout-tour p { font-size: 0.8125rem; color: var(--tp-text-muted); margin: 0; }
.tp-checkout-totals__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--tp-border); font-size: 0.9rem; }
.tp-checkout-totals__row--total   { font-size: 1.1rem; font-weight: 700; color: var(--tp-navy); border-bottom: none; }
.tp-checkout-totals__row--discount{ color: var(--tp-success); }
.tp-checkout-totals__row--deposit { color: var(--tp-warning); font-weight: 600; }
.tp-checkout-notices { min-height: 0; }

/* ── CONFIRMATION ───────────────────────────────────────── */
.tp-confirmation { padding: 60px 24px; max-width: 900px; margin: 0 auto; }
.tp-confirmation__header { text-align: center; margin-bottom: 48px; }
.tp-confirmation__icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.tp-confirmation__icon--success { background: #dcfce7; color: var(--tp-success); }
.tp-confirmation__header h1 { font-family: var(--tp-font-head); font-size: 2rem; color: var(--tp-navy); }
.tp-confirmation__code { margin-top: 12px; font-size: 0.9rem; }
.tp-confirmation__code strong { font-family: var(--tp-font-head); font-size: 1.3rem; color: var(--tp-navy); }
.tp-confirmation__body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tp-detail-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tp-detail-table th, .tp-detail-table td { padding: 10px 12px; border-bottom: 1px solid var(--tp-border); }
.tp-detail-table th { font-weight: 600; color: var(--tp-text-muted); width: 40%; font-size: 0.8125rem; }
.tp-confirmation__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 8px; }

/* ── AUTH ───────────────────────────────────────────────── */
.tp-auth-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--tp-ivory); }
.tp-auth-box { background: var(--tp-white); border-radius: var(--tp-radius-lg); padding: 40px; width: 100%; max-width: 480px; box-shadow: var(--tp-shadow-lg); }
.tp-auth-box__title { font-family: var(--tp-font-head); font-size: 1.8rem; color: var(--tp-navy); margin: 0 0 24px; }
.tp-auth-divider { text-align: center; color: var(--tp-text-muted); font-size: 0.875rem; margin: 16px 0; position: relative; }
.tp-auth-divider::before, .tp-auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--tp-border); }
.tp-auth-divider::before { left: 0; } .tp-auth-divider::after { right: 0; }
.tp-auth-box__switch { text-align: center; font-size: 0.875rem; color: var(--tp-text-muted); margin: 16px 0 0; }
.tp-login-required { padding: 80px 24px; }
.tp-login-required__box { max-width: 420px; margin: 0 auto; text-align: center; }
.tp-login-required__box svg { margin-bottom: 20px; color: var(--tp-text-muted); }
.tp-login-required__actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.tp-login-remember { margin-bottom: 16px; }

/* ── ENQUIRY FORM ───────────────────────────────────────── */
.tp-enquiry-wrap { }

/* ── ACCOUNT ────────────────────────────────────────────── */
.tp-account-wrap { padding: 48px 24px; }
.tp-account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.tp-account-nav { background: var(--tp-white); border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-sm); overflow: hidden; position: sticky; top: 24px; }
.tp-account-nav__user { padding: 20px; border-bottom: 1px solid var(--tp-border); display: flex; align-items: center; gap: 12px; }
.tp-account-nav__avatar { width: 44px; height: 44px; background: var(--tp-navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.tp-account-nav__user strong { display: block; font-size: 0.9rem; }
.tp-account-nav__user span { font-size: 0.78rem; color: var(--tp-text-muted); }
.tp-account-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.tp-account-nav li { }
.tp-account-nav__link { display: block; padding: 11px 20px; font-size: 0.9rem; color: var(--tp-text); text-decoration: none; transition: all var(--tp-transition); border-left: 3px solid transparent; }
.tp-account-nav__link:hover { background: var(--tp-border-soft); color: var(--tp-navy); }
.tp-account-nav__link.is-active { background: var(--tp-border-soft); color: var(--tp-navy); border-left-color: var(--tp-navy); font-weight: 600; }
.tp-account-nav__logout a { color: var(--tp-error); }

.tp-account-content { min-width: 0; }
.tp-dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.tp-dashboard-stat { background: var(--tp-white); border-radius: var(--tp-radius); border: 1.5px solid var(--tp-border); padding: 20px; text-align: center; }
.tp-dashboard-stat__val { font-family: var(--tp-font-head); font-size: 1.8rem; color: var(--tp-navy); display: block; }
.tp-dashboard-stat__label { font-size: 0.8125rem; color: var(--tp-text-muted); margin-top: 4px; display: block; }

.tp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tp-table th, .tp-table td { padding: 11px 14px; border-bottom: 1px solid var(--tp-border); text-align: left; }
.tp-table thead th { background: var(--tp-border-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; color: var(--tp-text-muted); }
.tp-table tbody tr:hover { background: var(--tp-border-soft); }

/* ── MAP ────────────────────────────────────────────────── */
.tp-map-embed iframe, .tp-map-osm { width: 100%; height: 400px; border-radius: var(--tp-radius); border: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media ( max-width: 1024px ) {
  .tp-single__layout { grid-template-columns: 1fr; }
  .tp-single__sidebar { position: static; }
  .tp-checkout-layout, .tp-cart-layout { grid-template-columns: 1fr; }
  .tp-confirmation__body { grid-template-columns: 1fr; }
}
@media ( max-width: 768px ) {
  :root { --tp-cols: 1; }
  .tp-tours-grid { grid-template-columns: 1fr; }
  .tp-dest-grid { grid-template-columns: 1fr 1fr; }
  .tp-account-layout { grid-template-columns: 1fr; }
  .tp-account-nav { position: static; }
  .tp-inclusions-wrap { grid-template-columns: 1fr; }
  .tp-form-grid { grid-template-columns: 1fr; }
  .tp-gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .tp-review-summary { flex-direction: column; }
  .tp-tabs-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tp-single__hero { min-height: 340px; }
  .tp-dashboard-stats { grid-template-columns: 1fr 1fr; }
  .tp-search-form--inline .tp-search-form__fields { flex-wrap: wrap; }
}
@media ( max-width: 480px ) {
  .tp-dest-grid { grid-template-columns: 1fr; }
  .tp-dashboard-stats { grid-template-columns: 1fr; }
  .tp-auth-box { padding: 24px; }
  .tp-booking-widget { padding: 18px; }
}
