:root {
  --g: #087a5b;
  --ink: #17211e;
  --muted: #64736e;
  --line: #d8e5e0;
  --bg: #eef6f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans", system-ui, sans-serif;
}
header {
  min-height: 66px;
  padding: 10px max(14px, calc((100% - 760px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #075c49;
  color: white;
}
.brand {
  display: grid;
  color: white;
  text-decoration: none;
  letter-spacing: 0.1em;
}
.brand small {
  letter-spacing: 0;
  font-size: 10px;
  color: #bceadd;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.head-actions select,
.head-actions a {
  min-height: 42px;
  border: 1px solid #ffffff55;
  border-radius: 10px;
  padding: 8px 10px;
  background: white;
  color: #174237;
  font-weight: 800;
  text-decoration: none;
}
main {
  max-width: 760px;
  margin: auto;
  padding: 14px;
}
.hero {
  padding: 24px 18px;
  border-radius: 20px;
  background: linear-gradient(130deg, #075643, #0f9a72);
  color: white;
}
.hero small {
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #b8f9e4;
}
.hero h1 {
  font-size: 32px;
  margin: 7px 0;
}
.hero p {
  margin: 0;
  color: #d8f7ed;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.badges span {
  padding: 7px 10px;
  border: 1px solid #ffffff66;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 17px;
  box-shadow: 0 12px 35px #164d3a0b;
}
.card section + section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.search-answer {
  display: grid;
  gap: 11px;
}
.search-answer summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--g);
  font-weight: 900;
  font-size: 17px;
}
.search-answer > div { display: grid; gap: 11px; padding-top: 10px; }
.search-answer .search-eyebrow {
  color: var(--g);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.search-answer h2,
.search-answer p,
.search-answer ul {
  margin: 0;
}
.search-answer h2 {
  font-size: 22px;
  line-height: 1.35;
}
.search-answer ul {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}
.search-answer li {
  line-height: 1.55;
}
.search-answer .search-privacy {
  border-radius: 12px;
  background: #edf8f4;
  padding: 11px 12px;
  color: #174f41;
  font-weight: 750;
  line-height: 1.55;
}
.search-answer .search-verified {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.section-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 13px;
}
.section-head > b {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #def6ed;
  color: var(--g);
}
h2 {
  margin: 0;
  font-size: 20px;
}
.section-head p,
.official p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}
.trip-grid,
.car-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.trip-grid button {
  min-width: 0;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font: inherit;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.trip-grid button span {
  display: block;
  margin-top: 5px;
}
.trip-grid button.active {
  border-color: var(--g);
  background: #e8f8f2;
  color: var(--g);
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
}
.route-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}
.route-arrow {
  padding-bottom: 15px;
  color: var(--g);
  font-weight: 900;
}
.place-row {
  display: grid;
  grid-template-columns: 1fr 46px;
}
.place-row input {
  border-radius: 11px 0 0 11px;
}
.place-row button {
  border: 0;
  border-radius: 0 11px 11px 0;
  background: var(--g);
  color: white;
  font-size: 22px;
}
.place-results {
  position: relative;
  z-index: 4;
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}
.place-results button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
}
.place-results small {
  display: block;
  color: var(--muted);
}
.two,
.three {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.car-grid,
.contact-grid {
  margin-top: 12px;
}
.car-grid label,
.contact-grid label {
  display: block;
}
.car-grid input,
.contact-grid input {
  position: absolute;
  opacity: 0;
}
.car-grid span,
.contact-grid span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
  color: var(--ink);
}
.car-grid small {
  display: block;
  color: var(--muted);
}
.car-grid [data-fare-car] {
  display: block;
  margin-top: 3px;
  color: var(--g);
  font-size: 13px;
  font-weight: 950;
}
.taxi-fare-summary {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #8dcdb8;
  border-radius: 12px;
  background: #effbf7;
}
.taxi-fare-summary span { color: var(--muted); font-size: 12px; font-weight: 850; }
.taxi-fare-summary strong { color: var(--g); font-size: 22px; }
.taxi-fare-summary small { color: var(--muted); font-size: 12px; }
.car-grid input:checked + span,
.contact-grid input:checked + span {
  border-color: var(--g);
  background: #e7f8f1;
  color: var(--g);
}
.consent {
  display: flex;
  align-items: flex-start;
  margin: 14px 0;
}
.consent input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
}
.submit,
.official a {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--g);
  color: white;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  display: grid;
  place-items: center;
}
.warning {
  padding: 9px;
  border-radius: 9px;
  background: #fff0e3;
  color: #9b4d13;
}
.form-status {
  text-align: center;
  color: var(--g);
  font-weight: 800;
}
.official {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.official a {
  width: auto;
  padding: 0 18px;
}
footer {
  max-width: 760px;
  margin: auto;
  padding: 24px 16px 38px;
  color: var(--muted);
  font-size: 12px;
}
footer b {
  color: var(--g);
  letter-spacing: 0.12em;
}
footer p {
  margin: 6px 0;
}
footer nav {
  display: flex;
  gap: 12px;
}
footer a {
  color: var(--g);
  font-weight: 800;
}
@media (max-width: 600px) {
  header {
    padding: 9px 11px;
  }
  .head-actions a {
    display: none;
  }
  main {
    padding: 9px;
  }
  .hero {
    border-radius: 15px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .card {
    padding: 14px;
    border-radius: 15px;
  }
  .trip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .route-grid {
    grid-template-columns: 1fr;
  }
  .route-arrow {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .three {
    gap: 7px;
  }
  .car-grid {
    grid-template-columns: 1fr 1fr;
  }
  .official {
    align-items: stretch;
    flex-direction: column;
  }
  .official a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .brand small { font-size: 13px; line-height: 1.35; }
  .badges span,
  .official p,
  .airport-field > p,
  .place-choice-hint,
  .golf-options legend,
  footer { font-size: 14px; line-height: 1.5; }
  label { font-size: 15px; }
  input,
  select,
  textarea,
  button,
  .submit,
  .head-actions a { min-height: 48px; font-size: 16px; }
}

/* ThailandMate airport transfer hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, #063f35e6 0%, #075643bf 48%, #07564366 100%),
    url("/assets/taxi-hero.png") center / cover no-repeat;
}
.hero h1,
.hero p {
  text-shadow: 0 2px 8px #00261daa;
}
.badges span {
  background: #063f3566;
  border-color: #ffffff99;
}

/* Trip-aware route builder */
.flight-lookup,
.airport-field {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #b9ded1;
  border-radius: 14px;
  background: #f1fbf7;
}
.flight-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.flight-title small {
  color: var(--muted);
  font-weight: 700;
}
.flight-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 9px;
  align-items: end;
  margin-top: 10px;
}
.flight-controls button,
.waypoint-heading button,
.remove-waypoint {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  padding: 0 15px;
  background: var(--g);
  color: white;
  font: inherit;
  font-weight: 900;
}
.flight-result {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #dff7ed;
  color: #075c49;
  font-weight: 800;
}
.flight-result.error {
  background: #fff0e3;
  color: #934512;
}
.flight-result.loading {
  background: #f2f5f4;
  color: var(--muted);
}
.airport-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
}
.airport-field > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.airport-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.airport-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.airport-options button b {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 36px;
  border-radius: 8px;
  background: #e9f6f1;
  color: var(--g);
}
.airport-options button small {
  font-weight: 850;
}
.airport-options button.active {
  border: 2px solid var(--g);
  background: #e8f8f2;
}
.route-stack {
  display: grid;
  gap: 12px;
}
.waypoint-section {
  padding: 12px;
  border: 1px dashed #9ecdbd;
  border-radius: 13px;
  background: #fbfefd;
}
.waypoint-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.waypoint-heading button {
  min-height: 46px;
  background: white;
  color: var(--g);
  border: 1px solid var(--g);
}
.waypoint-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}
.remove-waypoint {
  min-height: 46px;
  background: #fff0ea;
  color: #a23d1c;
}
.golf-options {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 10px;
}
.golf-options fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}
.golf-options legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hole-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hole-options label {
  display: block;
}
.hole-options input {
  position: absolute;
  opacity: 0;
}
.hole-options span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
}
.hole-options input:checked + span {
  border-color: var(--g);
  background: #e8f8f2;
  color: var(--g);
}
.note-field {
  margin-top: 10px;
}
.place-choice-hint {
  margin: 0;
  padding: 10px 12px;
  background: #fff7df;
  color: #714c00;
  font-size: 13px;
  font-weight: 800;
}
.car-grid label.unavailable {
  opacity: 0.42;
  filter: grayscale(1);
  cursor: not-allowed;
}
.car-grid label.unavailable span::after {
  content: " ×";
  color: #b42318;
  font-weight: 900;
}
.taxi-alert {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.taxi-alert::backdrop {
  background: rgba(3, 28, 22, 0.62);
}
.taxi-alert form {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.taxi-alert h2,
.taxi-alert p {
  margin: 0;
}
.taxi-alert h2 {
  font-size: 22px;
  color: var(--ink);
}
.taxi-alert p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.taxi-alert button {
  min-height: 50px;
  background: var(--g);
  color: white;
  font-weight: 900;
}
label[hidden],
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .flight-title {
    display: grid;
  }
  .flight-controls {
    grid-template-columns: 1fr 1fr;
  }
  .flight-controls button {
    grid-column: 1/-1;
  }
  .flight-result {
    display: grid;
  }
  .airport-options {
    grid-template-columns: 1fr;
  }
  .golf-options {
    grid-template-columns: 1fr;
  }
  .waypoint-item {
    grid-template-columns: 1fr;
  }
  .remove-waypoint {
    min-height: 46px;
  }
  .route-stack {
    gap: 10px;
  }
}

@media (max-width: 340px) {
  .waypoint-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .flight-controls {
    grid-template-columns: 1fr;
  }
  .flight-controls button {
    grid-column: auto;
  }
  .three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .three > :last-child {
    grid-column: 1 / -1;
  }
}
