* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #1c2a43;
  --muted: #78849a;
  --blue: #4268e8;
  --line: #e8ebf2;
  --paper: #fff;
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    url("./925446690_3438077373060746_2362094181574286500_n.jpg") center / cover fixed no-repeat,
    #f5f7fb;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.topbar {
  height: 76px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #b94f35;
  font-size: 17px;
}

.topbar-note {
  padding: 8px 12px;
  border-radius: 20px;
  color: #fff;
  background: rgba(16, 35, 29, .82);
  font-size: 12px;
  letter-spacing: .04em;
}

main {
  width: min(100% - 48px, 1020px);
  margin: 0 auto;
}

.hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 54px 27px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .75);
}

.hero .eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a36f;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.22;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .75);
}

h1 span {
  color: #b94f35;
  -webkit-text-stroke: .5px rgba(255, 248, 239, .9);
  paint-order: stroke fill;
}

.hero-description {
  margin: 16px 0 0;
  color: #fff;
  font-size: 13px;
  letter-spacing: .025em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}

.hero-art {
  position: relative;
  width: 320px;
  height: 220px;
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 28px;
  right: 56px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe5c7, #ffd1a6);
  box-shadow: 0 0 0 18px rgba(255, 220, 185, .2);
}

.orbit {
  position: absolute;
  z-index: 1;
  top: 38px;
  right: 7px;
  width: 244px;
  height: 145px;
  border: 1px solid rgba(75, 110, 211, .2);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.orbit-two {
  top: 49px;
  right: 21px;
  width: 212px;
  height: 120px;
  border-style: dashed;
  border-color: rgba(75, 110, 211, .17);
  transform: rotate(27deg);
}

.plane {
  position: absolute;
  z-index: 2;
  top: 93px;
  right: 125px;
  color: #4769d8;
  font-size: 43px;
  transform: rotate(-17deg);
  filter: drop-shadow(0 7px 6px rgba(41, 66, 142, .16));
}

.cloud {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 10px;
  width: 21px;
  height: 21px;
}

.cloud::after {
  left: 25px;
  width: 16px;
  height: 16px;
}

.cloud-one {
  top: 53px;
  left: 30px;
}

.cloud-two {
  right: 0;
  bottom: 45px;
  transform: scale(.72);
}

.art-label {
  position: absolute;
  right: 33px;
  bottom: 11px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  text-align: right;
}

.tour-dates {
  margin-bottom: 18px;
  padding: 22px 26px 26px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  background: rgba(12, 31, 27, .84);
  box-shadow: 0 14px 40px rgba(39, 55, 92, .075);
}

.tour-heading .eyebrow {
  color: #df896f;
}

.tour-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.tour-heading .eyebrow {
  margin-bottom: 5px;
}

.tour-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  letter-spacing: -.03em;
}

.tour-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tour-card {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}

.tour-card:hover,
.tour-card.selected {
  border-color: #db8468;
  background: rgba(255, 255, 255, .17);
  transform: translateY(-1px);
}

.tour-card:focus-visible {
  outline: 3px solid rgba(219, 132, 104, .55);
  outline-offset: 2px;
}

.tour-date {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

.tour-location {
  color: #ffd0ad;
  font-size: 10px;
  white-space: nowrap;
}

.tour-venue {
  overflow: hidden;
  color: #f1eee9;
  font-size: 10px;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-select {
  color: rgba(255, 255, 255, .78);
  font-size: 9px;
  white-space: nowrap;
}

.search-panel {
  position: relative;
  z-index: 4;
  padding: 22px 26px 26px;
  border: 1px solid rgba(231, 234, 243, .85);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(39, 55, 92, .075);
}

.trip-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.trip-tab {
  padding: 7px 15px;
  border: 0;
  border-radius: 7px;
  color: #8791a5;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.trip-tab.active {
  color: var(--blue);
  background: #eef2ff;
}

.route-fields,
.details-fields {
  display: grid;
  gap: 10px;
}

.route-fields {
  grid-template-columns: 1fr 42px 1fr;
  margin-bottom: 10px;
}

.details-fields {
  grid-template-columns: 1fr 1fr auto;
}

.field {
  min-width: 0;
  min-height: 66px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.field:focus-within {
  border-color: #9aafff;
  box-shadow: 0 0 0 3px rgba(66, 104, 232, .08);
}

.field-label {
  margin-bottom: 5px;
  color: #8c96a9;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}

.field select,
.field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.field input {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
}

.swap-button {
  width: 36px;
  height: 36px;
  align-self: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 18px;
  transition: transform .2s, background .2s;
}

.swap-button:hover {
  background: #eef2ff;
  transform: rotate(180deg);
}

.search-actions {
  display: flex;
}

.google-flights-button {
  min-width: 190px;
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dbe3dd;
  border-radius: 9px;
  color: #234a38;
  background: #f7faf7;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.google-flights-button:hover {
  border-color: #9eb5a5;
  background: #edf4ef;
}

.form-error {
  margin: 12px 0 0;
  color: #c23838;
  font-size: 12px;
}

footer {
  padding: 34px 20px 23px;
  color: #98a1b1;
  font-size: 10px;
  letter-spacing: .06em;
  text-align: center;
}

footer span {
  padding: 0 5px;
  color: #c3cada;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .topbar {
    height: 65px;
  }

  .topbar-note {
    font-size: 10px;
  }

  main {
    width: min(100% - 32px, 540px);
  }

  .hero {
    min-height: 230px;
    padding: 20px 8px;
  }

  .hero-art {
    position: absolute;
    right: 10px;
    width: 210px;
    opacity: .48;
    transform: scale(.78);
    transform-origin: right center;
  }

  .hero-copy {
    max-width: 340px;
  }

  .hero-description {
    max-width: 220px;
    line-height: 1.7;
  }

  .tour-dates {
    padding: 18px 15px;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .tour-heading {
    align-items: start;
  }

  .tour-heading > p {
    max-width: 145px;
    font-size: 9px;
  }

  .search-panel {
    padding: 19px 16px;
  }

  .details-fields {
    grid-template-columns: 1fr 1fr;
  }

  .search-actions {
    grid-column: 1 / -1;
  }

  .google-flights-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar-note {
    max-width: 120px;
    text-align: right;
  }

  .route-fields {
    grid-template-columns: 1fr 34px 1fr;
    gap: 5px;
  }

  .location-field {
    padding: 10px 8px;
  }

  .field select,
  .field input {
    font-size: 11px;
  }

}
