@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");

:root {
  --navy: #008b98;
  --navy-2: #006d78;
  --ink: #24353b;
  --muted: #667b80;
  --line: #d9ebed;
  --soft: #f3fbfb;
  --paper: #ffffff;
  --coral: #ff6f61;
  --orange: #f5a900;
  --green: #08b56b;
  --teal: #08aebe;
  --sky: #e8f8f9;
  --shadow: 0 18px 45px rgba(0, 124, 136, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", "Tahoma", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fbfcfe;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
}

a.brand::before {
  content: "";
  display: block;
  width: 210px;
  height: 66px;
  background: #fff url("logo-mytrip.png") center / cover no-repeat;
}

a.brand > .brand-mark,
a.brand > span {
  display: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-weight: 800;
}

.brand strong {
  display: block;
  color: var(--navy);
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: #31415a;
}

.main-nav a {
  padding: 8px 4px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--coral);
}

.header-actions,
.hero-actions,
.social-actions,
.deal-card div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  box-shadow: 0 12px 24px rgba(255, 111, 97, 0.27);
}

.btn-soft {
  color: var(--navy);
  background: var(--sky);
}

.btn-line {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(8, 181, 107, 0.2);
}

.btn-outline {
  color: var(--navy);
  background: #fff;
  border-color: #cbd6e5;
}

.mini-btn {
  min-height: 34px;
  padding: 8px 10px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 440px);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 70px);
  background: #eef4f4;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.55) 100%);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-home {
  grid-template-columns: minmax(0, 1fr);
  min-height: 720px;
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: 118px;
}

.hero-home::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 255, 255, 0.93) 52%, rgba(232, 248, 249, 0.5) 100%);
}

.hero-home .hero-copy {
  width: min(940px, 100%);
}

.hero-home h1 {
  max-width: 760px;
}

.hero-home .hero-text {
  max-width: 720px;
}

.hero-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  max-width: 860px;
  margin-top: 28px;
}

.hero-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(0, 124, 136, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 124, 136, 0.1);
  backdrop-filter: blur(12px);
}

.hero-choice.primary-choice {
  border-color: rgba(8, 174, 190, 0.42);
  background: linear-gradient(145deg, rgba(232, 248, 249, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 38px rgba(0, 139, 152, 0.14);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sky);
  font-size: 21px;
}

.hero-choice h2 {
  font-size: 20px;
}

.hero-choice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-choice .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 22px 0 0;
}

.hero-benefits div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-benefits dt {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.hero-benefits dd {
  margin: 0;
  color: #40516a;
  font-size: 14px;
  font-weight: 650;
}

.home-search-wrap {
  position: relative;
  z-index: 4;
  width: min(1380px, calc(100% - 36px));
  margin: -72px auto 0;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(4, minmax(145px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(0, 124, 136, 0.16);
}

.home-search-heading h2 {
  font-size: 22px;
}

.home-search label {
  gap: 5px;
}

.home-search label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.home-search select {
  min-height: 48px;
  background: #f9fbfe;
}

.home-search .btn {
  min-height: 48px;
  white-space: nowrap;
}

.destination-section {
  padding-top: 72px;
}

.section-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.destination-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 124, 136, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 124, 136, 0.19);
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2, 23, 57, 0.92));
}

.destination-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.destination-card > span {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 1;
  display: grid;
  color: #fff;
}

.destination-card b {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: 22px;
}

.destination-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.home-assist-cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin: clamp(18px, 4vw, 46px) clamp(18px, 5vw, 70px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #006d78, #08aebe);
  box-shadow: 0 20px 48px rgba(0, 109, 120, 0.22);
}

.home-assist-cta h2,
.home-assist-cta .eyebrow {
  color: #fff;
}

.home-assist-cta p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
}

.home-assist-cta .hero-actions {
  flex-shrink: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #008e9b;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy-2);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.3;
}

h3 {
  margin: 0 0 8px;
  color: var(--navy-2);
  line-height: 1.4;
  font-size: 19px;
}

.hero-text {
  max-width: 660px;
  margin: 16px 0 22px;
  color: #40516a;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.75;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 32px 0 0;
}

.trust-grid div {
  padding: 14px;
  border: 1px solid rgba(18, 50, 91, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.trust-grid dt {
  color: var(--coral);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: 24px;
  font-weight: 850;
}

.trust-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quiz-card,
.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(18, 50, 91, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quiz-card h2 {
  font-size: 22px;
}

label {
  display: grid;
  gap: 6px;
  color: #33445b;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cad6e5;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

output {
  color: var(--navy);
  font-weight: 750;
}

.section {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 70px);
}

.section:nth-of-type(even) {
  background: #f3f7fb;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.text-link {
  color: var(--coral);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.tour-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tour-card,
.article-grid article,
.deal-card,
.why-grid article,
.route-detail,
.simple-card,
.page-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(22, 44, 76, 0.07);
}

.article-grid img,
.page-hero img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.article-grid article,
.deal-card,
.why-grid article,
.page-card {
  padding: 16px;
}

.tour-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(22, 44, 76, 0.12);
}

.tour-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.tour-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(var(--navy), var(--teal)) padding-box,
    linear-gradient(135deg, var(--orange), var(--coral), var(--teal)) border-box;
  font-weight: 900;
}

.tour-card-head strong,
.tour-card-head small {
  display: block;
  line-height: 1.35;
}

.tour-card-head strong {
  color: var(--ink);
  font-size: 14px;
}

.tour-card-head small {
  color: var(--muted);
  font-size: 12px;
}

.tour-card-more {
  align-self: start;
  color: var(--muted);
  letter-spacing: 1px;
}

.tour-photo {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--soft);
}

.tour-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tour-card:hover .tour-photo img {
  transform: scale(1.025);
}

.tour-photo > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 37, 42, 0.76);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.tour-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.tour-social-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.tour-social-actions a,
.tour-social-actions label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
}

.tour-social-actions label {
  margin-left: auto;
}

.tour-social-actions span {
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.tour-social-actions strong {
  font-size: 12px;
  font-weight: 700;
}

.tour-social-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.tour-social-actions input:checked + .compare-icon {
  color: var(--coral);
  transform: rotate(45deg);
}

.compare-icon {
  transition: color 0.18s ease, transform 0.18s ease;
}

.tour-card h3 {
  margin: 0;
  color: var(--navy-2);
  font-size: 17px;
  line-height: 1.45;
}

.tour-caption {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tour-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sky);
  font-size: 12px;
  font-weight: 800;
}

.price {
  color: var(--coral);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.tour-card-footer {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tour-card-footer small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.card-actions .btn-line {
  grid-column: 1 / -1;
}

.finder-section {
  background: #fff;
}

.matcher-section {
  background: linear-gradient(180deg, #eaf9fa 0%, #ffffff 100%);
}

.trip-matcher {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.matcher-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7edf5;
}

.matcher-progress-bar {
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #008b98, #08aebe 68%, var(--coral));
  transition: width 240ms ease;
}

.matcher-step-label {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.matcher-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.matcher-step[hidden],
.matcher-results[hidden] {
  display: none;
}

.matcher-step legend {
  width: 100%;
  padding: 0;
  color: var(--navy-2);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.matcher-hint {
  margin: 6px 0 20px;
  color: var(--muted);
}

.matcher-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.matcher-options.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matcher-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.matcher-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.matcher-option span {
  display: grid;
  gap: 5px;
  height: 100%;
  min-height: 96px;
  align-content: center;
  padding: 16px;
  border: 1px solid #d7e1ed;
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.matcher-option b {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: 17px;
}

.matcher-option small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.matcher-option:hover span {
  border-color: rgba(8, 174, 190, 0.68);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 50, 91, 0.08);
}

.matcher-option input:checked + span {
  border-color: var(--teal);
  background: #eaf9fa;
  box-shadow: 0 0 0 3px rgba(8, 174, 190, 0.14);
}

.matcher-option input:focus-visible + span {
  outline: 3px solid rgba(240, 100, 69, 0.28);
  outline-offset: 2px;
}

.matcher-error {
  min-height: 26px;
  margin: 14px 0 0;
  color: #b53b24;
  font-weight: 700;
}

.matcher-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.matcher-actions [hidden] {
  display: none !important;
}

.matcher-actions .btn-primary {
  margin-left: auto;
}

.matcher-results {
  max-width: 1180px;
  margin: 32px auto 0;
}

.matcher-result-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.matcher-result-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.matcher-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.match-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 44, 76, 0.09);
}

.match-card:first-child {
  border-color: rgba(8, 174, 190, 0.58);
  box-shadow: 0 18px 42px rgba(8, 174, 190, 0.17);
}

.match-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.match-card-body {
  padding: 18px;
}

.match-rank {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.match-score {
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.match-card h3 {
  font-size: 24px;
}

.match-card ul {
  margin: 10px 0 14px;
  padding-left: 20px;
  color: #40516a;
}

.match-note {
  padding: 10px 12px;
  border-radius: 8px;
  color: #694312;
  background: #fff7e8;
  font-size: 13px;
}

.match-card .btn {
  width: 100%;
  margin-top: 14px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scenario-grid button,
.route-card {
  min-height: 86px;
  padding: 16px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.scenario-grid button {
  display: grid;
  gap: 3px;
  align-content: center;
}

.scenario-grid button > span {
  margin-bottom: 4px;
  font-size: 23px;
}

.scenario-grid button > b {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: 17px;
}

.scenario-grid button > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.scenario-grid button:hover,
.route-card.active {
  border-color: var(--coral);
  box-shadow: 0 12px 30px rgba(240, 100, 69, 0.12);
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
}

.route-list {
  display: grid;
  gap: 10px;
}

.route-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.route-detail {
  min-height: 260px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.route-detail ul {
  padding-left: 20px;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: #fff;
  background: var(--navy);
}

.comparison-table tbody th {
  color: var(--navy);
  background: #f8fbfe;
}

.countdown {
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 850;
  white-space: nowrap;
}

.deal-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.deal-card {
  border-top: 5px solid var(--coral);
}

.discount {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-weight: 850;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(18, 50, 91, 0.92), rgba(18, 50, 91, 0.76)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1500&q=80") center/cover;
  color: #fff;
}

.lead-section h2,
.lead-section .eyebrow {
  color: #fff;
}

.reassurance {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 850;
}

.lead-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--ink);
}

.lead-form .full,
.lead-form .check-row,
.lead-form button,
.lead-form output {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

blockquote {
  margin: 0;
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: #fff;
  border-radius: 8px;
}

cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.article-grid article {
  padding: 0;
}

.article-grid article span,
.article-grid article h3,
.article-grid article p,
.article-grid article a {
  margin-left: 16px;
  margin-right: 16px;
}

.article-grid article span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.article-grid article a {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--coral);
  font-weight: 850;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}

summary {
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 70px) 90px;
  color: #dbe5f2;
  background: linear-gradient(145deg, #005b65, #008b98);
}

.site-footer a.brand::before {
  width: 220px;
  height: 74px;
  border-radius: 10px;
  background-color: #fff;
}

.site-footer .brand strong,
.site-footer h2 {
  color: #fff;
}

.site-footer .brand small,
.site-footer p {
  color: #b9c7d8;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer nav h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.compare-dock {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 30;
  display: none;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compare-dock.show {
  display: flex;
}

.compare-dock button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  padding: 8px 10px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 15, 28, 0.58);
}

.modal.open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.floating-line {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 59;
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(8, 181, 107, 0.3);
  font-size: 13px;
  font-weight: 900;
}

.page-main {
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 70px);
}

.contact-page {
  padding-bottom: clamp(54px, 8vw, 96px);
  background: linear-gradient(180deg, #f5fbfb 0%, #ffffff 55%);
}

.contact-page-header {
  max-width: 780px;
  margin: 0 auto clamp(28px, 5vw, 48px);
  text-align: center;
}

.contact-page-header h1 {
  margin-inline: auto;
}

.contact-page-header > p:not(.eyebrow) {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 124, 136, 0.07);
}

.contact-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky);
  font-size: 21px;
}

.contact-card h2 {
  font-size: 18px;
}

.contact-card a {
  color: var(--coral);
  font-size: 17px;
  font-weight: 800;
}

.contact-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-card .contact-note {
  color: #9a6b00;
}

.contact-map {
  overflow: hidden;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 510px;
  border: 0;
}

.map-caption {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
}

.map-caption strong {
  color: var(--navy-2);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: 17px;
}

.map-caption span {
  color: var(--muted);
  font-size: 13px;
}

.license-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  max-width: 1240px;
  margin: clamp(42px, 7vw, 76px) auto 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.license-copy h2 {
  margin: 6px 0 12px;
  color: var(--navy-2);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
}

.license-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.license-facts {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.license-facts div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.license-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.license-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.license-preview {
  overflow: hidden;
  border: 1px solid #e8d9af;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(62, 49, 18, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.license-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(62, 49, 18, 0.18);
}

.license-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.footer-license {
  display: inline-block;
  margin: 6px 0 18px;
  color: #b7f5f1;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}

.page-hero h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
}

.page-hero img {
  height: 310px;
  border-radius: 8px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-card strong {
  color: var(--coral);
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: start;
  }

  .site-header.menu-open .main-nav {
    flex-wrap: wrap;
  }

  .tour-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-search-heading {
    grid-column: 1 / -1;
  }

  .destination-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scenario-grid,
  .why-grid,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 76px;
  }

  .hero,
  .lead-section,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .license-section {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 460px;
  }

  .contact-map iframe {
    height: 380px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-home {
    padding-bottom: 96px;
  }

  .hero-choice-grid {
    grid-template-columns: 1fr;
  }

  .home-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-search .btn {
    grid-column: 1 / -1;
  }

  .home-assist-cta {
    display: grid;
    align-items: start;
  }

  .matcher-options,
  .matcher-result-grid {
    grid-template-columns: 1fr;
  }

  .matcher-options.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-layout,
  .deal-grid,
  .review-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: grid;
  }

  .floating-line {
    display: grid;
  }

  .compare-dock {
    right: 10px;
    bottom: 82px;
    left: 10px;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 14px;
  }

  .contact-page-header {
    text-align: left;
  }

  .contact-page-header h1 {
    margin-inline: 0;
  }

  .contact-card {
    padding: 15px;
  }

  a.brand::before {
    width: 158px;
    height: 50px;
  }

  .brand small {
    max-width: 190px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-home {
    padding-bottom: 72px;
  }

  .hero-choice {
    grid-template-columns: 1fr;
  }

  .choice-icon {
    width: 38px;
    height: 38px;
  }

  .home-search-wrap {
    width: min(100% - 24px, 1380px);
    margin-top: -48px;
  }

  .home-search {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .home-search-heading,
  .home-search .btn {
    grid-column: auto;
  }

  .destination-section {
    padding-top: 56px;
  }

  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .destination-card,
  .destination-card img {
    min-height: 190px;
  }

  .home-assist-cta {
    margin-right: 12px;
    margin-left: 12px;
    border-radius: 14px;
  }

  .trip-matcher {
    padding: 18px;
    border-radius: 12px;
  }

  .matcher-options.compact {
    grid-template-columns: 1fr;
  }

  .matcher-option span {
    min-height: 82px;
  }

  .matcher-result-heading {
    display: grid;
    align-items: start;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filter-bar,
  .tour-grid,
  .article-grid,
  .scenario-grid,
  .why-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .page-hero img {
    height: 220px;
  }
}
