/*
 * The Holidave — Homepage Styles
 * Enqueued via functions.php → thd_enqueue_styles()
 * Version: 2.1 — Hero + Search Bar fully responsive
 */

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
.thd-page {
  --o: #FB5B32;
  --t: #0a5b66;
  --td: #074650;
  --tl: #E3F2F4;
  --k: #111;
  --g: #767676;
  --bd: #E2E2DE;
  background: #F2F2F0;
  display: block;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  color: #111;
  position: relative;
  margin-left: calc(-50vw + 50%);
}

.thd-page *,
.thd-page *::before,
.thd-page *::after { box-sizing: border-box; }

.thd-page p,
.thd-page h1,
.thd-page h2,
.thd-page h3,
.thd-page h4,
.thd-page ul,
.thd-page li { margin: 0; padding: 0; }

.thd-page a { text-decoration: none; }
.thd-page img { max-width: 100%; display: block; }
.thd-page *:not(i):not([class*="fa"]) { font-family: 'Inter', sans-serif; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.thd-hero {
  position: relative;
  height: 580px;
  min-height: 320px;
  overflow: hidden;
  background: #074650;
}

.thd-slider { position: absolute; inset: 0; z-index: 0; }
.thd-slide  { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.thd-slide.thd-active { opacity: 1; }
.thd-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; position: absolute; inset: 0;
}
.thd-slide-ov {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(5,40,50,.85)  0%,
    rgba(7,70,80,.55) 55%,
    rgba(7,70,80,.22) 100%);
}

/* Slider arrows */
.thd-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 16px; transition: background .15s;
}
.thd-arr:hover { background: rgba(255,255,255,.28); }
.thd-arr-p { left: 1.25rem; }
.thd-arr-n { right: 1.25rem; }

/* Slider dots */
.thd-dots {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%); z-index: 20;
  display: flex; gap: 7px;
}
.thd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none;
  cursor: pointer; padding: 0; transition: all .25s;
}
.thd-dot.thd-da { background: #fff; width: 22px; border-radius: 99px; }

/* Hero content */
.thd-hero-body {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 3rem 5% 5rem;
  max-width: 720px;
  width: 100%;          /* prevent overflow on narrow screens */
  box-sizing: border-box;
}
.thd-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 99px; margin-bottom: 1.25rem;
}
.thd-hero-body h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700; color: #fff; line-height: 1.1;
  margin: 0 0 1rem; max-width: 580px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.thd-hero-body h1 em { font-style: italic; color: #ffd89b; font-weight: 700; }
.thd-hero-sub {
  font-size: 16px; color: rgba(255,255,255,.82);
  max-width: 500px; line-height: 1.75; margin: 0 0 2.25rem;
}
.thd-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }

.thd-btn-p {
  background: #FB5B32; color: #fff !important;
  border: none; border-radius: 8px; padding: 14px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; white-space: nowrap; transition: background .15s;
}
.thd-btn-p:hover { background: #D94520; }

.thd-btn-g {
  background: transparent; color: #fff !important;
  border: 2px solid rgba(255,255,255,.5); border-radius: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; white-space: nowrap; transition: all .15s;
}
.thd-btn-g:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.thd-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.thd-tp { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.82); }
.thd-tp i { color: #FB5B32; }

/* ─────────────────────────────────────────
   TOUR SEARCH BAR
───────────────────────────────────────── */
.thd-search-wrap {
  background: #f4f4f2;          /* light grey tray behind the card */
  border-bottom: 1px solid #E2E2DE;
  position: relative;
  z-index: 30;
  padding: 1rem 1.25rem;        /* breathing room around the card */
}

.thd-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;                    /* padding now on the wrap */
  display: flex;
  align-items: stretch;
  height: 72px;
  background: #fff;
  border-radius: 16px;           /* card look */
  border: 1.5px solid #E2E2DE;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: visible;             /* allow dropdowns to escape */
}

/* Left label */
.thd-search-label {
  display: flex; align-items: center; gap: 10px;
  padding-right: 2rem;
  border-right: 1px solid #E2E2DE;
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 16px;
}
.thd-search-label-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #074650, #0a5b66);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; flex-shrink: 0;
}
.thd-search-label-text { line-height: 1.25; }
.thd-search-label-text strong { display: block; font-size: 13px; font-weight: 700; color: #111; }
.thd-search-label-text span   { font-size: 11px; color: #767676; }

/* Fields row */
.thd-search-fields {
  display: flex; align-items: stretch;
  flex: 1;
}

/* Individual field */
.thd-search-field {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 0 1.25rem;
  border-right: 1px solid #E2E2DE;
  position: relative;
  cursor: pointer;
  transition: background .15s;
  min-width: 0;
  border-radius: 0;              /* card handles the outer radius */
}
.thd-search-fields .thd-search-field:first-child {
  border-radius: 14px 0 0 14px;  /* round the leftmost field */
}
.thd-search-field:hover   { background: #F8F8F6; }
.thd-search-field.thd-sf-active { background: #F0F9FA; }

.thd-sf-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  transition: transform .2s;
}
.thd-search-field:hover .thd-sf-icon,
.thd-search-field.thd-sf-active .thd-sf-icon { transform: scale(1.08); }

.thd-sf-content {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.thd-sf-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #0a5b66;  /* teal — matches brand */
}
.thd-sf-value {
  font-size: 15px; font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.thd-sf-value.thd-sf-placeholder { color: #aaa; font-weight: 400; }

.thd-sf-chevron {
  font-size: 11px; color: #bbb; flex-shrink: 0;
  transition: transform .2s, color .15s;
}
.thd-search-field.thd-sf-active .thd-sf-chevron {
  transform: rotate(180deg); color: #0a5b66;
}

/* Search CTA button */
.thd-search-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 0 2rem;
  background: #FB5B32; color: #fff;
  border: none; cursor: pointer;
  font-size: 15px; font-weight: 700;
  white-space: nowrap; transition: background .15s;
  flex-shrink: 0;
  border-radius: 0 14px 14px 0;   /* round right edge to match card */
}
.thd-search-btn:hover { background: #D94520; }
.thd-search-btn-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* Dropdown panel */
.thd-search-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid #E2E2DE;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.14);
  z-index: 100;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.thd-search-dropdown.thd-dd-open {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

.thd-dd-header {
  padding: .875rem 1.25rem .6rem;
  border-bottom: 1px solid #F2F2F0;
}
.thd-dd-header-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #767676;
}

/* Destination list */
.thd-dd-dest-list { max-height: 300px; overflow-y: auto; padding: .5rem 0; }
.thd-dd-dest-item {
  display: flex; align-items: center; gap: 12px;
  padding: .65rem 1.25rem;
  cursor: pointer; transition: background .12s;
}
.thd-dd-dest-item:hover { background: #F4F4F2; }
.thd-dd-dest-item.thd-dd-selected { background: #E3F2F4; }
.thd-dd-dest-flag { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.thd-dd-dest-info  { flex: 1; }
.thd-dd-dest-name  { font-size: 14px; font-weight: 600; color: #111; }
.thd-dd-dest-count { font-size: 11px; color: #767676; margin-top: 1px; }
.thd-dd-dest-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0a5b66; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
  opacity: 0; transition: opacity .15s;
}
.thd-dd-dest-item.thd-dd-selected .thd-dd-dest-check { opacity: 1; }

/* Month grid */
.thd-dd-months {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: .875rem 1.25rem 1rem;
}
.thd-dd-month-btn {
  padding: .625rem .5rem;
  border: 1.5px solid #E2E2DE; border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 500; color: #444;
  cursor: pointer; transition: all .15s;
  text-align: center; line-height: 1.2;
}
.thd-dd-month-btn:hover     { border-color: #0a5b66; color: #0a5b66; background: #F0F9FA; }
.thd-dd-month-btn.thd-dm-selected { background: #0a5b66; border-color: #0a5b66; color: #fff; font-weight: 700; }
.thd-dd-month-btn.thd-dm-past     { opacity: .35; pointer-events: none; }

/* ─────────────────────────────────────────
   STATS
───────────────────────────────────────── */
.thd-stats { background: #fff; border-top: 1px solid #E2E2DE; border-bottom: 1px solid #E2E2DE; }
.thd-stats-i {
  max-width: 1400px; margin: 0 auto; padding: 0 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.thd-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 1.25rem 2rem; border-right: 1px solid #E2E2DE;
}
.thd-stat:last-child { border-right: none; }
.thd-stat-ic {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.thd-stat-n { font-size: 22px; font-weight: 700; color: #FB5B32; line-height: 1; }
.thd-stat-l { font-size: 11px; color: #767676; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ─────────────────────────────────────────
   SECTION SHARED
───────────────────────────────────────── */
.thd-sec { max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; }
.thd-sh { text-align: center; margin-bottom: 3rem; }
.thd-ey {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #FB5B32; display: block; margin-bottom: 8px;
}
.thd-sh h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: #111; margin: 0 0 10px; }
.thd-sh p  { font-size: 15px; color: #767676; max-width: 520px; margin: 0 auto; line-height: 1.75; }
.thd-sh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.thd-sh-l { text-align: left; }
.thd-sh-l .thd-ey { display: block; }
.thd-sh-l h2 { margin: 0 0 6px; }
.thd-sh-l p  { margin: 0; }
.thd-see-all {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: #0a5b66;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: color .15s;
}
.thd-see-all:hover { color: #FB5B32; }
.thd-see-all-c {
  font-size: 14px; font-weight: 700; color: #0a5b66;
  border: 2px solid #0a5b66; padding: 12px 28px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all .15s;
}
.thd-see-all-c:hover { background: #0a5b66; color: #fff; }
.thd-bg-l { background: #F4F4F2; }
.thd-bg-w { background: #fff; }

/* ─────────────────────────────────────────
   DESTINATIONS
───────────────────────────────────────── */
.thd-dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.thd-dest-card {
  border-radius: 12px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.10); background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.thd-dest-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.15); }
.thd-dc-img { width: 100%; height: 211px; position: relative; overflow: hidden; background: #1a3a44; flex-shrink: 0; }
.thd-dest-card.thd-dl .thd-dc-img { height: 211px; }
.thd-dc-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; position: absolute; inset: 0; display: block; max-width: none !important; }
.thd-dc-body { padding: 1.75rem 1rem 1.875rem; background: #fff; }
.thd-dc-name { font-size: 15px; font-weight: 700; color: #111; display: block; }
.thd-dc-meta { display: none; }
.thd-dc-badge { position: absolute; top: 12px; left: 12px; z-index: 4; background: #FB5B32; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.thd-dc-bali    { background: #1a4a55; } .thd-dc-paris   { background: #2a4a6a; }
.thd-dc-japan   { background: #4a1a2a; } .thd-dc-dubai   { background: #4a3a1a; }
.thd-dc-maldives{ background: #0a3a5a; } .thd-dc-uk      { background: #0a1a4a; }
.thd-dc-aus     { background: #0a2a5a; }

/* ─────────────────────────────────────────
   CATEGORIES
───────────────────────────────────────── */
.thd-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-rows: 1fr; }
.thd-cat-card {
  border-radius: 16px; overflow: hidden; text-decoration: none;
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem; background: #0a5b66;
  transition: transform .2s, box-shadow .2s; min-height: 190px;
}
.thd-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.thd-cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }
.thd-cat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.thd-cat-body { position: relative; z-index: 2; }
.thd-cat-name  { font-size: 18px; font-weight: 700; color: #fff; display: block; margin-bottom: 4px; }
.thd-cat-count { font-size: 12px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; }
.thd-cat-desc  { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; display: block; line-height: 1.5; }
.thd-cat-arr { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: background .15s; }
.thd-cat-card:hover .thd-cat-arr { background: rgba(255,255,255,.35); }
.thd-cc0{background:linear-gradient(135deg,#0a5b66,#1a9aaa)} .thd-cc1{background:linear-gradient(135deg,#c62a47,#e8637a)}
.thd-cc2{background:linear-gradient(135deg,#2d6a4f,#52b788)} .thd-cc3{background:linear-gradient(135deg,#FB5B32,#f4a261)}
.thd-cc4{background:linear-gradient(135deg,#3a0ca3,#7209b7)} .thd-cc5{background:linear-gradient(135deg,#0077b6,#48cae4)}
.thd-cc6{background:linear-gradient(135deg,#1a237e,#3949ab)} .thd-cc7{background:linear-gradient(135deg,#4a0e5e,#880e4f)}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.thd-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.thd-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1.5rem; }
.thd-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin: 0 0 1.25rem;
  border: 3px solid #fff; flex-shrink: 0; color: #fff;
}
.thd-step:nth-child(1) .thd-step-num { background: #FB5B32; }
.thd-step:nth-child(2) .thd-step-num { background: #0a5b66; }
.thd-step:nth-child(3) .thd-step-num { background: #6a1b9a; }
.thd-step:nth-child(4) .thd-step-num { background: #2e7d32; }
.thd-step h4 { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 8px; }
.thd-step p  { font-size: 13px; color: #767676; line-height: 1.65; }

/* ─────────────────────────────────────────
   PACKAGES
───────────────────────────────────────── */
.thd-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
a.thd-pkg-card {
  background: #fff; border: 1px solid #E2E2DE; border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 8px rgba(0,0,0,.07); cursor: pointer;
  color: #111; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
a.thd-pkg-card:hover  { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,.14); color: #111; }
a.thd-pkg-card.thd-featured { border: 2px solid #0a5b66; }
.thd-pkg-img { height: 190px; position: relative; overflow: hidden; background: #E3F2F4; display: flex; align-items: center; justify-content: center; }
.thd-pkg-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; position: absolute; inset: 0; z-index: 0; display: block; max-width: none !important; }
.thd-pkg-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#0a5b66,#1a9aaa); font-size: 36px; color: rgba(255,255,255,.3); }
.thd-pkg-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; color: #fff; }
.thd-pb-pop { background: #0a5b66; } .thd-pb-hot { background: #FB5B32; }
.thd-pkg-rating { position: absolute; bottom: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.52); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; display: flex; align-items: center; gap: 4px; }
.thd-pkg-body  { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.thd-pkg-dest  { font-size: 11px; color: #767676; display: flex; align-items: center; gap: 4px; margin: 0 0 4px; }
.thd-pkg-dest i { color: #FB5B32; }
.thd-pkg-title { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 8px; line-height: 1.3; }
.thd-pkg-meta  { display: flex; flex-wrap: wrap; gap: 9px; font-size: 12px; color: #767676; margin: 0 0 10px; }
.thd-pkg-meta span { display: flex; align-items: center; gap: 4px; }
.thd-pkg-meta i    { color: #0a5b66; }
.thd-pkg-incs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.thd-inc { font-size: 10px; color: #074650; background: #E3F2F4; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.thd-pkg-footer { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 10px; border-top: 1px solid #E2E2DE; margin-top: auto; }
.thd-old-price { font-size: 11px; color: #767676; text-decoration: line-through; }
.thd-from-lbl  { font-size: 10px; color: #767676; margin-bottom: 1px; }
.thd-price { font-size: 22px; font-weight: 700; color: #074650; line-height: 1; }
.thd-per   { font-size: 11px; color: #767676; margin-left: 2px; }
.thd-pkg-btns { display: flex; align-items: center; gap: 7px; }
.thd-btn-book { background: #FB5B32; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; transition: background .15s; }
.thd-btn-book:hover { background: #D94520; }
.thd-btn-itin { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: #E3F2F4; color: #0a5b66; border: 1.5px solid #0a5b66; font-size: 13px; flex-shrink: 0; cursor: pointer; transition: all .15s; }
.thd-btn-itin:hover { background: #0a5b66; color: #fff; }
.thd-no-pkgs { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; background: #fff; border-radius: 12px; border: 1px dashed #E2E2DE; }
.thd-no-pkgs i { font-size: 40px; opacity: .2; display: block; margin-bottom: 1rem; color: #0a5b66; }
.thd-no-pkgs p { color: #767676; margin-bottom: .75rem; }
.thd-no-pkgs a { color: #0a5b66; font-weight: 700; text-decoration: underline; }

/* ─────────────────────────────────────────
   VISA — 4-card grid
───────────────────────────────────────── */
.thd-visa-wrap { background: linear-gradient(135deg,#074650 0%,#0a5b66 60%,#1a8a9a 100%); overflow: hidden; }
.thd-visa-i    { max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; }
.thd-visa-top  { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.thd-visa-top-l h2 { font-size: clamp(22px,3.5vw,36px); font-weight: 700; color: #fff; line-height: 1.2; margin: 0 0 .75rem; }
.thd-visa-top-l p  { font-size: 15px; color: rgba(255,255,255,.78); line-height: 1.7; max-width: 540px; margin: 0; }
.thd-visa-top-btns { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.thd-btn-w { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #074650 !important; border: none; border-radius: 8px; padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; }
.thd-btn-w:hover { background: #E3F2F4; }
.thd-btn-o { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: rgba(255,255,255,.9) !important; border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px; padding: 12px 20px; font-size: 14px; cursor: pointer; text-decoration: none; transition: all .15s; }
.thd-btn-o:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Card grid */
.thd-vc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

.thd-vc-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.thd-vc-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.17);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* Flag area — 180px */
.thd-vc-flag {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  background: rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.thd-vc-flag img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.thd-vc-flag span { position: relative; z-index: 1; }
.thd-vc-flag i { font-size: 42px; color: rgba(255,255,255,.4); }
.thd-vc-pop {
  position: absolute !important; top: 10px !important; left: 10px !important; right: auto !important; z-index: 2;
  background: #FB5B32; color: #fff;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
  letter-spacing: .04em;
}

/* Body */
.thd-vc-body { padding: 1rem 1.1rem; flex: 1; }
.thd-vc-name { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.thd-vc-type { font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.thd-vc-meta { display: flex; flex-direction: column; gap: 5px; }
.thd-vc-meta span { font-size: 12px; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 6px; }
.thd-vc-meta i { color: #FB5B32; font-size: 11px; width: 12px; flex-shrink: 0; }

/* Buttons */
.thd-vc-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.12); }
.thd-vc-btn-apply {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: .75rem .5rem; font-size: 12px; font-weight: 700;
  background: #fff; color: #074650; border: none; cursor: pointer;
  transition: background .15s;
}
.thd-vc-btn-apply:hover { background: #E3F2F4; }
.thd-vc-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: .75rem .5rem; font-size: 12px; font-weight: 700;
  background: #25D366; color: #fff; text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}
.thd-vc-btn-wa:hover { background: #1da851; color: #fff; }

/* View all visa button */
.thd-visa-footer { text-align: center; margin-top: 2rem; }
.thd-btn-visa-all {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff !important;
  border: 2px solid rgba(255,255,255,.5); border-radius: 8px;
  padding: 13px 32px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all .15s; cursor: pointer;
}
.thd-btn-visa-all:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff !important; }

/* ─────────────────────────────────────────
   WHY / SERVICES
───────────────────────────────────────── */
.thd-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.thd-why-card { background: #fff; border: 1px solid #E2E2DE; border-radius: 12px; padding: 1.75rem 1.5rem; text-align: center; box-shadow: 0 1px 8px rgba(0,0,0,.07); }
.thd-why-icon { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 1rem; }
.thd-why-card h4 { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 8px; }
.thd-why-card p  { font-size: 13px; color: #767676; line-height: 1.65; }
.thd-srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.thd-srv-card { background: #fff; border: 1px solid #E2E2DE; border-radius: 12px; padding: 1.75rem; box-shadow: 0 1px 8px rgba(0,0,0,.07); color: #111; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .2s, transform .2s; text-align: left; width: 100%; }
.thd-srv-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.thd-srv-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1rem; }
.thd-srv-card h3 { font-size: 17px; font-weight: 700; color: #111; margin: 0 0 8px; }
.thd-srv-card p  { font-size: 13px; color: #767676; line-height: 1.65; flex: 1; margin: 0 0 1.25rem; }
.thd-srv-link    { font-size: 13px; font-weight: 700; color: #0a5b66; display: flex; align-items: center; gap: 5px; }

/* ─────────────────────────────────────────
   REVIEWS
───────────────────────────────────────── */
.thd-g-bar { background: #fff; border: 1.5px solid #E2E2DE; border-radius: 12px; padding: 1.25rem 1.75rem; display: flex; align-items: center; gap: 1.75rem; margin-bottom: 2rem; box-shadow: 0 1px 8px rgba(0,0,0,.07); flex-wrap: wrap; }
.thd-g-score { font-size: 44px; font-weight: 700; color: #111; line-height: 1; }
.thd-g-stars { color: #FBBC05; font-size: 18px; margin-bottom: 4px; }
.thd-g-count { font-size: 12px; color: #767676; }
.thd-g-trust { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }
.thd-g-trust span { font-size: 13px; color: #444; display: flex; align-items: center; gap: 6px; }
.thd-g-trust i { color: #0a5b66; }
.thd-g-pw { font-size: 11px; color: #767676; margin-top: 4px; }
.thd-rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.thd-rev-card { background: #fff; border: 1px solid #E2E2DE; border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 8px rgba(0,0,0,.07); }
.thd-rv-top   { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.thd-rv-user  { display: flex; align-items: center; gap: 10px; }
.thd-av    { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.thd-rv-name  { font-size: 14px; font-weight: 700; color: #111; }
.thd-rv-date  { font-size: 12px; color: #767676; }
.thd-rv-stars { color: #FBBC05; font-size: 13px; margin-bottom: 10px; }
.thd-rv-text  { font-size: 14px; color: #444; line-height: 1.7; }
.thd-rv-tag   { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #0a5b66; background: #E3F2F4; padding: 2px 9px; border-radius: 99px; margin-top: 10px; }

/* ─────────────────────────────────────────
   FORM
───────────────────────────────────────── */
.thd-form-wrap { position: relative; width: 100%; background: linear-gradient(135deg,#0f3a42 0%,#0a5b66 50%,#1a8a9a 100%); }
.thd-form-i    { max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.thd-form-l    { color: #fff; }
.thd-form-l h2 { font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; color: #fff; line-height: 1.18; margin: .75rem 0 1rem; }
.thd-form-l h2 em { font-style: italic; color: #ffd89b; }
.thd-form-l p  { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.75; margin: 0 0 2rem; }
.thd-fp-list   { display: flex; flex-direction: column; gap: 16px; margin-bottom: 2rem; }
.thd-fp        { display: flex; align-items: flex-start; gap: 12px; }
.thd-fp-ic     { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.thd-fp strong { font-size: 14px; color: #fff; display: block; font-weight: 600; margin-bottom: 2px; }
.thd-fp span   { font-size: 12px; color: rgba(255,255,255,.6); }
.thd-wa-cta    { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important; border-radius: 8px; padding: 11px 20px; font-size: 14px; font-weight: 700; text-decoration: none; margin-top: .5rem; }
.thd-form-r    { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.2); min-height: 200px; }

/* ═════════════════════════════════════════
   OVERFLOW FIX — prevents horizontal scroll
═════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100%; }
.thd-page { overflow-x: hidden; }

/* ═════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Covers: Hero  +  Search bar  +  all other sections
═════════════════════════════════════════ */

/* ── 1100px — tablet landscape ── */
@media (max-width: 1100px) {
  .thd-dest-grid  { grid-template-columns: repeat(2, 1fr); }
  .thd-cat-grid   { grid-template-columns: repeat(2, 1fr); }
  .thd-vc-grid    { grid-template-columns: repeat(2, 1fr); }
  .thd-form-i     { grid-template-columns: 1fr; gap: 2.5rem; }
  .thd-search-label { display: none; }
  .thd-search-field { padding: 0 1rem; }
  .thd-search-btn   { padding: 0 1.5rem; }
}

/* ── 900px — tablet portrait ── */
@media (max-width: 900px) {
  /* ── HERO ── */
  .thd-hero      { height: 460px; }
  .thd-hero-body {
    max-width: 100%;
    padding: 2rem 1.5rem 6rem; /* extra bottom so content clears the search bar */
  }
  .thd-hero-sub  { font-size: 14px; }
  .thd-arr       { display: none; } /* hide prev/next arrows — swipe on mobile */

  /* ── SEARCH BAR — stacked card layout ── */
  .thd-search-wrap {
    background: #F2F2F0;        /* light grey tray — clean separation from hero */
    padding: .875rem 1rem 1rem; /* top padding gives card breathing room */
    border-bottom: 1px solid #E2E2DE;
    position: relative;
    z-index: 30;
  }
  .thd-search-inner {
    height: auto;
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-radius: 16px;
    border: 1.5px solid #E2E2DE;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    overflow: hidden;           /* clips field bg + btn radius cleanly */
    background: #fff;
  }
  .thd-search-label { display: none; } /* hide "Find your trip" label */
  .thd-search-fields {
    flex-direction: column;
    width: 100%;
  }
  /* Reset desktop left-field radius */
  .thd-search-fields .thd-search-field:first-child { border-radius: 0; }

  /* Each field row */
  .thd-search-field {
    border-right: none;
    border-bottom: 1px solid #EDEDED;
    padding: 0 1.1rem;
    height: 68px;
    width: 100%;
    gap: 10px;
    background: #fff;
  }
  .thd-search-field:last-of-type { border-bottom: none; }
  .thd-search-field:hover,
  .thd-search-field.thd-sf-active { background: #F7FAFA; }

  /* Icon pill — keep visible on tablet */
  .thd-sf-icon {
    width: 38px; height: 38px; border-radius: 10px;
    font-size: 16px; flex-shrink: 0;
  }

  /* Label — already teal from base rule; just tighten size on mobile */
  .thd-sf-label { font-size: 10px; font-weight: 700; }
  .thd-sf-value { font-size: 14px; font-weight: 500; color: #111; }
  .thd-sf-value.thd-sf-placeholder { color: #999; font-weight: 400; }
  .thd-sf-chevron { font-size: 12px; color: #ccc; }

  /* Search button — full width, rounded bottom corners via overflow:hidden */
  .thd-search-btn {
    width: 100%;
    height: 58px;
    justify-content: center;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    background: #FB5B32;
  }
  .thd-search-btn-icon { display: none; }

  /* Dropdown — bottom sheet on mobile */
  .thd-search-dropdown {
    position: fixed;
    top: auto !important;
    bottom: 0;
    left: 0 !important;
    right: 0;
    width: 100%;
    min-width: unset;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: opacity .2s ease, transform .25s ease;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    z-index: 9999;
  }
  .thd-search-dropdown.thd-dd-open { transform: translateY(0); }

  /* ── Other sections ── */
  .thd-stats-i { grid-template-columns: repeat(2, 1fr); }
  .thd-stat { border-right: none; border-bottom: 1px solid #E2E2DE; }
  .thd-stat:nth-child(odd)        { border-right: 1px solid #E2E2DE; }
  .thd-stat:nth-last-child(-n+2)  { border-bottom: none; }
  .thd-how-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .thd-pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .thd-why-grid { grid-template-columns: repeat(2, 1fr); }
  .thd-rev-grid { grid-template-columns: repeat(2, 1fr); }
  .thd-srv-grid { grid-template-columns: repeat(2, 1fr); }
  .thd-vc-grid     { grid-template-columns: repeat(2, 1fr); }
  .thd-vc-flag     { height: 140px; font-size: 52px; }
  .thd-visa-top    { flex-direction: column; align-items: flex-start; }
}

/* ── 640px — mobile ── */
@media (max-width: 640px) {
  /* ── HERO ── */
  .thd-hero        { height: 340px; }
  .thd-hero-body   { padding: 1.25rem 1.1rem 3.5rem; max-width: 100%; }
  .thd-hero-badge  { font-size: 10px; padding: 4px 11px; margin-bottom: .9rem; }
  .thd-hero-body h1 { font-size: clamp(20px, 6vw, 32px); margin-bottom: .75rem; }
  .thd-hero-sub    { font-size: 13px; margin-bottom: 1.25rem; }
  .thd-hero-btns   { gap: 8px; margin-bottom: 1.25rem; flex-wrap: nowrap; }
  .thd-btn-p       { padding: 10px 18px; font-size: 13px; gap: 6px; }
  .thd-btn-g       { padding: 10px 14px; font-size: 13px; gap: 6px; }
  .thd-trust       { gap: 10px; }
  .thd-tp          { font-size: 11px; }
  .thd-trust .thd-tp:nth-child(n+3) { display: none; }

  /* ── SEARCH BAR ── */
  .thd-search-wrap  { padding: 0 .875rem .75rem; }
  .thd-search-inner { border-radius: 14px; }
  .thd-search-field { height: 62px; padding: 0 1rem; }
  .thd-sf-label     { font-size: 9px; }
  .thd-sf-value     { font-size: 14px; }
  .thd-search-btn   { height: 54px; font-size: 15px; }

  /* ── STATS — 2×2 grid ── */
  .thd-stats-i     { grid-template-columns: repeat(2, 1fr) !important; padding: 0; }
  .thd-stat        { padding: 1rem; border-right: 1px solid #E2E2DE !important; border-bottom: 1px solid #E2E2DE !important; }
  .thd-stat:nth-child(2n)        { border-right: none !important; }
  .thd-stat:nth-last-child(-n+2) { border-bottom: none !important; }
  .thd-stat-n      { font-size: 18px; }
  .thd-stat-l      { font-size: 10px; }

  /* ── Other sections ── */
  .thd-sec        { padding: 3.5rem 1rem; }
  .thd-dest-grid  { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .thd-dc-img     { height: 160px; }
  .thd-dest-card.thd-dl .thd-dc-img { height: 160px; }
  .thd-vc-grid    { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .thd-vc-flag    { height: 120px; font-size: 44px; }
  .thd-vc-name    { font-size: 14px; }
  .thd-vc-btn-apply, .thd-vc-btn-wa { font-size: 11px; padding: .65rem .4rem; gap: 3px; }
  .thd-cat-grid   { grid-template-columns: 1fr; }
  .thd-how-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .thd-pkg-grid   { grid-template-columns: 1fr; }
  .thd-why-grid   { grid-template-columns: 1fr 1fr; }
  /* Reviews — 1 card per row on mobile */
  .thd-rev-grid   { grid-template-columns: 1fr; }
  .thd-g-bar      { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .thd-g-trust    { margin-left: 0; }
  .thd-srv-grid   { grid-template-columns: 1fr; }
  .thd-form-r     { padding: 1.5rem; }
  .thd-sh-row     { flex-direction: column; align-items: flex-start; }
}

/* ── 400px — small phones ── */
@media (max-width: 400px) {
  .thd-hero        { height: 300px; }
  .thd-hero-body   { padding: 1rem .875rem 3rem; }
  .thd-hero-body h1 { font-size: clamp(18px, 6.5vw, 26px); }
  .thd-hero-sub    { font-size: 12px; }
  .thd-btn-p       { padding: 9px 16px; font-size: 12px; }
  .thd-btn-g       { display: none; }
  .thd-trust .thd-tp:nth-child(n+2) { display: none; }
  .thd-hero-btns .thd-btn-g { display: none; }
  .thd-search-wrap  { padding: 26px .75rem .75rem; }
  .thd-search-field { padding: 13px .875rem; height: 58px; }
  .thd-sf-icon      { width: 32px; height: 32px; font-size: 13px; }
  .thd-search-btn   { height: 50px; font-size: 14px; }
  .thd-dest-grid  { grid-template-columns: 1fr; }
  .thd-dc-img     { height: 180px; }
  .thd-dest-card.thd-dl .thd-dc-img { height: 180px; }
  .thd-why-grid   { grid-template-columns: 1fr; }
  .thd-vc-grid    { grid-template-columns: 1fr; }
  .thd-vc-flag    { height: 160px; font-size: 56px; }
  .thd-stats-i    { grid-template-columns: repeat(2, 1fr) !important; padding: 0; }
  .thd-stat       { padding: 14px 10px; border-right: 1px solid #E2E2DE !important; border-bottom: 1px solid #E2E2DE !important; }
  .thd-stat:nth-child(2n)        { border-right: none !important; }
  .thd-stat:nth-last-child(-n+2) { border-bottom: none !important; }
  .thd-stat-n     { font-size: 16px !important; }
  .thd-stat-l     { font-size: 9px !important; }
}