:root {
  --yellow: #ffd63d;
  --yellow-strong: #ffc928;
  --ink: #191b24;
  --muted: #5f6472;
  --line: #dfe3ea;
  --panel: #ffffff;
  --soft: #f4f5f8;
  --blue: #1f6feb;
  --teal: #0e8f86;
  --shadow: 0 12px 34px rgba(22, 26, 38, 0.13);
  --soft-shadow: 0 6px 18px rgba(22, 26, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: var(--yellow);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.icon-button svg,
.brand svg,
.trip-type svg,
.search-button svg,
.swap-button svg,
.tip-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 800;
}

.brand svg {
  fill: currentColor;
  stroke-width: 0;
  transform: translateY(-1px) rotate(8deg);
}

.desktop-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a {
  border-bottom: 2px solid transparent;
  padding: 10px 0;
}

.desktop-nav a:hover {
  border-color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 214, 61, 0.18), transparent 26%),
    linear-gradient(180deg, #fbfbfc 0%, var(--soft) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(24px, 3vw, 42px);
  width: min(1140px, calc(100% - 48px));
  min-height: 560px;
  margin: 0 auto;
  padding: 62px 0 58px;
}

.hero-copy {
  max-width: 930px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
}

.intro {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.service-tabs {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}

.service-tab {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 70px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.tab-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.service-tab.active .tab-icon {
  background: var(--yellow-strong);
}

.trip-row {
  margin-bottom: 14px;
}

.trip-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  padding: 6px 2px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.flight-search {
  width: 100%;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(152px, 1.18fr) 44px minmax(100px, 0.88fr) minmax(140px, 0.88fr) minmax(140px, 0.88fr) minmax(152px, 1fr) 96px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(200, 205, 216, 0.95);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.field {
  position: relative;
  display: flex;
  min-width: 0;
  height: 64px;
  border-right: 1px solid var(--line);
  padding: 15px 12px 8px;
}

.field-label {
  position: absolute;
  top: 8px;
  left: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(2px);
}

.field:focus-within .field-label,
.field input:not(:placeholder-shown) + .field-label {
  opacity: 1;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.field input::placeholder {
  color: #777d8b;
}

.field select {
  appearance: none;
  padding-right: 8px;
}

.chip-field input {
  border: 1px solid #cdd3de;
  border-radius: 4px;
  padding: 8px 10px;
  background: #f1f3f8;
}

.swap-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.swap-button:hover {
  color: var(--blue);
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow-strong);
  font-size: 13px;
  font-weight: 800;
}

.search-button:hover {
  background: #ffbd16;
}

.image-stack {
  position: relative;
  min-height: 498px;
}

.travel-photo {
  position: absolute;
  right: -24px;
  width: 230px;
  height: 150px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.photo-one {
  top: 16px;
  border-radius: 0 0 0 42px;
}

.photo-two {
  top: 176px;
  width: 250px;
  height: 190px;
  border-radius: 42px 0 0 42px;
}

.photo-three {
  top: 392px;
  width: 250px;
  height: 160px;
  border-radius: 42px 0 0 0;
}

.content-band {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 24px;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.55;
}

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

.deal-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(22, 26, 38, 0.04);
}

.deal-card.best {
  border-color: rgba(31, 111, 235, 0.42);
  box-shadow: 0 12px 32px rgba(31, 111, 235, 0.12);
}

.deal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.route {
  font-size: 20px;
  font-weight: 800;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  color: #07554f;
  background: rgba(14, 143, 134, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.airline {
  color: var(--muted);
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.price {
  font-size: 32px;
  font-weight: 800;
}

.detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.tip-item {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.tip-item svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.tip-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.tip-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .image-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
  }

  .travel-photo {
    position: static;
    width: 100%;
    height: 180px;
    border-radius: 8px;
  }

  .search-panel {
    grid-template-columns: 1fr 44px 1fr;
  }

  .field,
  .swap-button {
    border-bottom: 1px solid var(--line);
  }

  .date-field,
  .select-field,
  .search-button {
    grid-column: span 1;
  }

  .search-button {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .deal-grid,
  .tips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand {
    font-size: 19px;
  }

  .desktop-nav {
    display: none;
  }

  .hero-inner,
  .content-band,
  .tips {
    width: min(100% - 32px, 560px);
  }

  .hero-inner {
    min-height: 0;
    padding: 42px 0 40px;
  }

  h1 {
    font-size: 34px;
  }

  .intro {
    font-size: 16px;
  }

  .service-tabs {
    justify-content: space-between;
    gap: 10px;
  }

  .service-tab {
    width: 86px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .field,
  .swap-button {
    width: 100%;
    border-right: 0;
  }

  .swap-button {
    height: 48px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .photo-two,
  .photo-three {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .price-row {
    display: grid;
  }

  .book-button {
    width: 100%;
  }
}
