/* ============================================================
   TOURTYPE PAGE — tourtype.css
   All classes prefixed with tt- to avoid collisions
   Values matched exactly to the design reference
   ============================================================ */

/* --- Design Tokens (scoped) — exact from design :root --- */
.tt-page {
  --tt-navy: #1A4B89;
  --tt-dk: #0C1E38;
  --tt-amber: #FBA504;
  --tt-amber-bg: #FEF3C7;
  --tt-amber-deep: #92400E;
  --tt-text: #1C1C1C;
  --tt-muted: #6b7280;
  --tt-border: #e5e7eb;
  --tt-soft: #f9fafb;
  --tt-green: #16a34a;
  --tt-green-bg: #dcfce7;
  --tt-serif: 'Cormorant Garamond', Georgia, serif;
  --tt-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tt-page {
  font-family: var(--tt-sans);
  color: var(--tt-text);
  background: #fff;
}

.tt-page *,
.tt-page *::before,
.tt-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.tt-page a { text-decoration: none; color: inherit; }
.tt-page img { display: block; max-width: 100%; }

/* ============================================================
   HERO BANNER  (design: .hero 420px)
   ============================================================ */
.tt-hero {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--tt-dk);
}

.tt-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tt-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* design: linear-gradient(0deg, rgba(12,30,56,.85) 0%, rgba(12,30,56,.45) 50%, rgba(12,30,56,.2) 100%) */
.tt-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(12, 30, 56, .85) 0%,
    rgba(12, 30, 56, .45) 50%,
    rgba(12, 30, 56, .2) 100%
  );
}

/* design: max-width 1380px, padding 0 36px 48px */
.tt-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 36px 48px;
}

/* Breadcrumbs — design: 12px, rgba(255,255,255,.4) */
.tt-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-family: var(--tt-sans);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
}

.tt-breadcrumbs a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .15s;
}

.tt-breadcrumbs a:hover {
  color: rgba(255,255,255,.8);
}

.tt-breadcrumbs .tt-bc-sep {
  color: rgba(255,255,255,.2);
}

.tt-breadcrumbs .tt-bc-current {
  color: rgba(255,255,255,.7);
}

/* Hero Title — design: 56px, 600, #fff, line-height 1.08 */
.tt-hero__title {
  font-family: var(--tt-serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 10px;
}

/* design: em color #FCD34D — override global gradient on em tags */
.tt-hero__title em {
  font-style: italic;
  color: #FCD34D !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #FCD34D !important;
}

/* Stat pills — design: 12px, rgba bg, 20px radius, 6px 14px padding */
.tt-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.tt-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-family: var(--tt-sans);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.tt-stat-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.tt-stat-pill strong,
.tt-stat-pill--amber {
  color: #fff;
  font-weight: 600;
}

.tt-stat-pill--amber {
  background: var(--tt-amber);
  border-color: var(--tt-amber);
  color: #fff;
}

/* ============================================================
   PAGE CONTENT AREA (design: max-width 1380px, padding 40px 36px 80px)
   ============================================================ */

/* ============================================================
   RESULTS HEADER  (design: 14px count, 13px sort)
   ============================================================ */
.tt-results-bar {
  max-width: 1380px;
  margin: 0 auto;
  padding: 40px 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--tt-sans);
}

/* design: 14px, color muted */
.tt-results-bar__count {
  font-size: 14px;
  color: var(--tt-muted);
  font-weight: 400;
}

.tt-results-bar__count strong {
  color: var(--tt-text);
  font-weight: 600;
}

.tt-results-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sort dropdown — design: 13px, 7px radius, 7px 12px padding */
.tt-sort-select {
  display: block !important;
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--tt-border);
  border-radius: 7px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat;
  font-family: var(--tt-sans);
  font-size: 13px;
  color: var(--tt-text);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}

.tt-sort-select:hover,
.tt-sort-select:focus { border-color: var(--tt-navy); }

/* Grid/List toggle — design: 34px buttons, 7px radius */
.tt-view-toggle {
  display: flex;
  gap: 4px;
}

.tt-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tt-border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  color: var(--tt-muted);
  transition: all .15s;
}

.tt-view-btn:hover,
.tt-view-btn.active {
  border-color: var(--tt-navy);
  color: var(--tt-navy);
  background: #eff6ff;
}

.tt-view-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   TOUR CARDS GRID  (design: gap 18px, max-width 1380px)
   ============================================================ */
.tt-grid {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 36px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* --- Card --- design: border 1px solid border, radius 14px */
.tt-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tt-border);
  transition: border-color .18s, box-shadow .18s, transform .2s;
  display: flex;
  flex-direction: column;
}

/* design: hover: border #d1d5db, shadow 0 8px 32px rgba(0,0,0,.09), translateY(-3px) */
.tt-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-3px);
}

.tt-card a.tt-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card image — design: height 190px fixed */
.tt-card__img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tt-soft);
}

.tt-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.tt-card:hover .tt-card__img-wrap img {
  transform: scale(1.06);
}

/* Badges — design: 10px, 3px 9px pad, 5px radius, backdrop blur */
.tt-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.tt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
  font-family: var(--tt-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
}

/* design: .tc-badge.feat = amber 90% */
.tt-badge--featured {
  background: rgba(251,165,4,.9);
  color: #fff;
}

/* design: .tc-badge.top = navy 85% */
.tt-badge--top-pick {
  background: rgba(26,75,137,.85);
  color: #fff;
}

.tt-badge--best-seller {
  background: rgba(124,58,237,.85);
  color: #fff;
}

.tt-badge--hsj-choice {
  background: rgba(13,148,136,.85);
  color: #fff;
}

/* design: .tc-save = green 90% */
.tt-badge--discount {
  background: rgba(22,163,74,.9);
  color: #fff;
}

.tt-badge svg { display: none; }

/* Wishlist heart — design: 30px, rgba(255,255,255,.88), blur 6px */
.tt-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.tt-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  color: var(--tt-muted);
  font-size: 14px;
  transition: background .15s;
}

.tt-wishlist-btn:hover,
.tt-card__wishlist.active .tt-wishlist-btn {
  background: #fff;
  color: #ef4444;
}

/* Card body — design: padding 16px */
.tt-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta — design: 11.5px, muted, gap 6px */
.tt-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--tt-sans);
  font-size: 11.5px;
  color: var(--tt-muted);
  flex-wrap: wrap;
}

.tt-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tt-card__meta-item i,
.tt-card__meta-item svg {
  font-size: 12px;
  width: 12px;
  height: 12px;
  color: var(--tt-muted);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* design: .sep between meta items */
.tt-card__meta-item + .tt-card__meta-item::before {
  content: '·';
  color: #d1d5db;
  margin-right: 2px;
}

/* Title — design: serif, 17px, 600, color text #1C1C1C, line-height 1.25 */
.tt-card__title {
  font-family: var(--tt-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tt-text);
  margin: 0 0 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Include chips — design: 10px, 3px 7px pad, 4px radius */
.tt-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.tt-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--tt-soft);
  border: 1px solid var(--tt-border);
  font-family: var(--tt-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--tt-muted);
  white-space: nowrap;
}

.tt-chip i { font-size: 9px; color: var(--tt-green); }

/* Footer — design: border-top 1px, padding-top 14px */
.tt-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--tt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tt-card__price-block {}

/* Price — design: 18px, 700, color text #1C1C1C */
.tt-card__sale-price {
  font-family: var(--tt-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--tt-text);
  line-height: 1.2;
}

.tt-card__sale-price .tt-per-person {
  font-size: 11px;
  font-weight: 400;
  color: var(--tt-muted);
}

/* design: 12px, muted, line-through */
.tt-card__original-price {
  font-family: var(--tt-sans);
  font-size: 12px;
  color: var(--tt-muted);
  text-decoration: line-through;
  margin-top: 2px;
  font-weight: 400;
}

/* CTA button — design: amber bg, #fff text, 8px 16px pad, 12.5px, 700, 7px radius */
.tt-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--tt-amber);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: var(--tt-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}

.tt-cta-btn:hover {
  background: #e29400;
}

.tt-cta-btn svg { width: 12px; height: 12px; }

/* ============================================================
   LIST VIEW  (design: 1col, row direction, image 260px)
   ============================================================ */
.tt-grid.list {
  grid-template-columns: 1fr;
}

.tt-grid.list .tt-card {
  flex-direction: row;
}

.tt-grid.list .tt-card a.tt-card__link {
  flex-direction: row;
  flex: 1;
}

.tt-grid.list .tt-card__img-wrap {
  width: 260px;
  min-width: 260px;
  height: auto;
  min-height: 200px;
  flex-shrink: 0;
}

.tt-grid.list .tt-card__body {
  padding: 20px;
}

.tt-grid.list .tt-card__title {
  font-size: 19px;
  -webkit-line-clamp: 1;
}

/* ============================================================
   OVERVIEW / ABOUT SECTION  (design: margin-top 48px, padding-top 40px, border-top)
   ============================================================ */
.tt-overview {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 36px 80px;
}

.tt-overview__inner {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--tt-border);
}

/* design: serif 28px 600, color text #1C1C1C */
.tt-overview__title {
  font-family: var(--tt-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--tt-text);
  margin: 0 0 18px;
  line-height: 1.2;
}

/* design: em italic, color amber — override global gradient on em tags */
.tt-overview__title em {
  font-style: italic;
  color: var(--tt-amber) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--tt-amber) !important;
}

/* design: 14.5px, muted #6b7280, line-height 1.8, font-weight 300 */
.tt-overview__body {
  font-family: var(--tt-sans);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--tt-muted);
  font-weight: 300;
}

.tt-overview__body p { margin: 0 0 14px; }
.tt-overview__body p:last-child { margin-bottom: 0; }

/* design: strong = color text #1C1C1C, weight 600 */
.tt-overview__body strong {
  color: var(--tt-text);
  font-weight: 600;
}

.tt-overview__body h2,
.tt-overview__body h3,
.tt-overview__body h4 {
  font-family: var(--tt-serif);
  color: var(--tt-text);
  margin: 28px 0 12px;
}

.tt-overview__body ul,
.tt-overview__body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.tt-overview__body a {
  color: var(--tt-navy);
  text-decoration: underline;
}

/* ============================================================
   PARTNERS STRIP (removed from template; hide cached versions)
   ============================================================ */
.tt-partners {
  display: none !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .tt-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tt-hero__title { font-size: 42px; }
  .tt-results-bar { padding: 30px 24px 0; }
  .tt-grid { padding: 20px 24px 60px; }
  .tt-overview { padding: 0 24px 60px; }

  .tt-grid.list .tt-card__img-wrap {
    width: 220px;
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .tt-hero { height: 360px; }
  .tt-hero__inner { padding: 0 20px 36px; }
  .tt-hero__title { font-size: 36px; }
  .tt-hero__stats { gap: 8px; }
  .tt-stat-pill { padding: 5px 12px; font-size: 11px; }
  .tt-results-bar { padding: 24px 16px 0; }
  .tt-grid { padding: 16px 16px 48px; }
  .tt-overview { padding: 0 16px 48px; }
  .tt-overview__title { font-size: 24px; }

  .tt-grid.list .tt-card a.tt-card__link { flex-direction: column; }
  .tt-grid.list .tt-card__img-wrap {
    width: 100%;
    min-width: 100%;
    height: 190px;
  }
}

@media (max-width: 600px) {
  .tt-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tt-hero { height: 320px; }
  .tt-hero__title { font-size: 30px; }
  .tt-results-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .tt-card__title { font-size: 16px; }
  .tt-card__sale-price { font-size: 16px; }
  .tt-cta-btn { padding: 7px 14px; font-size: 11.5px; }
}
