:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202925;
  background: #fff;
  font-synthesis: none
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent
}

button,
input {
  font: inherit
}

button,
a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

button:disabled {
  cursor: default;
  opacity: .35
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #92b9a6;
  outline-offset: 4px
}

button {
  color: inherit
}

header {
  height: 100px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 3px
}

.brand-icon {
  background: #edf3ef;
  border: 1px solid #e2eae4;
  border-radius: 11px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-right: 8px;
  font-size: 25px;
  font-weight: 400
}

.brand-light {
  font-weight: 400;
  color: #718077
}


.text-button {
  border: 0;
  background: none;
  font-size: 13px;
  color: #69736d;
  padding: 8px
}

.text-button span {
  margin-left: 16px
}

main {
  min-height: calc(100svh - 180px);
  padding: 8vh 24px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start
}

.step {
  width: 690px;
  animation: enter .35s ease
}

.welcome {
  padding-top: 6vh;
  text-align: center;
  width: 660px
}

[hidden] {
  display: none !important
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .035em;
  color: #7b877f;
  margin-bottom: 23px
}


h1 {
  font-weight: 450;
  letter-spacing: -2.3px;
  font-size: 52px;
  line-height: 1.16;
  margin: 0 0 20px
}

.subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #7a817d;
  margin: 0 0 35px
}

#destination-form {
  position: relative;
  margin: 0 auto;
  max-width: 594px
}

.search-box {
  border: 1px solid #dfe5e0;
  box-shadow: 0 6px 22px #243e2c06;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left
}

.search-box:focus-within {
  border-color: #8da999
}

.search-icon {
  font-size: 24px;
  color: #85968b;
  margin-left: 8px
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-size: 16px;
  padding: 10px 0;
  color: #202925
}

.search-box input::placeholder {
  color: #9a9e9b
}

.round-button {
  border: 0;
  background: #294b3c;
  color: white;
  border-radius: 13px;
  width: 42px;
  height: 42px;
  font-size: 25px
}





button:hover:not(:disabled) {
  filter: brightness(.94)
}

#suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 75px;
  background: white;
  box-shadow: 0 12px 40px #193d2020;
  border: 1px solid #e5ebe6;
  border-radius: 16px;
  z-index: 5;
  text-align: left;
  padding: 7px
}

#suggestions button {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 0;
  background: white;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  gap: 14px
}

#suggestions button:hover,
#suggestions button.active {
  background: #eff4f0
}

.airport-name {
  font-size: 12px;
  color: #808b83;
  margin-top: 3px
}

.back {
  margin: 0 0 28px -8px
}

.date-fields {
  display: flex;
  border: 1px solid #dfe5e0;
  border-radius: 17px;
  margin-bottom: 16px;
  align-items: center;
  overflow: hidden
}

.date-field {
  flex: 1;
  text-align: left;
  padding: 19px 24px;
  border: 0;
  background: white
}

.date-field span {
  display: block;
  font-size: 11px;
  color: #8a938c;
  margin-bottom: 8px
}

.date-field strong {
  font-size: 16px;
  font-weight: 500
}

.date-field.selected {
  background: #f0f5f1
}

.date-arrow {
  color: #a5afa8;
  padding: 0 16px
}

#calendar {
  border: 1px solid #e1e7e2;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 28px #26412b05
}

.calendar-top,
.calendar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7d887f
}

.calendar-top button {
  border: 1px solid #e6ebe7;
  border-radius: 9px;
  background: white;
  width: 31px;
  height: 31px;
  font-size: 22px;
  margin-left: 7px
}

.months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 17px 0
}

.month h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px
}

.weekday {
  font-size: 10px;
  text-align: center;
  color: #9ba39d;
  padding: 5px 0 10px
}

.day {
  aspect-ratio: 1;
  border: 0;
  background: white;
  font-size: 12px;
  border-radius: 9px
}

.day.today {
  box-shadow: inset 0 0 0 1px #c8d9cc
}

.day.in-range {
  background: #eef4ef;
  border-radius: 0
}

.day.chosen {
  background: #294b3c;
  color: white;
  border-radius: 9px
}

.calendar-bottom {
  border-top: 1px solid #edf0ed;
  padding-top: 12px
}

.cost-settings {
  font-size: 12px;
  color: #828d85;
  margin: 22px 0
}

.cost-settings summary {
  cursor: pointer
}

.cost-settings summary span {
  float: right
}

.cost-inputs {
  display: flex;
  gap: 15px;
  padding-top: 18px
}

.cost-inputs label {
  flex: 1
}

.cost-inputs input {
  display: block;
  width: 100%;
  border: 1px solid #dce4dd;
  border-radius: 8px;
  padding: 10px;
  margin-top: 7px
}

.primary {
  display: flex;
  width: 100%;
  justify-content: space-between;
  background: #294b3c;
  color: white;
  border: 0;
  border-radius: 13px;
  padding: 18px 23px;
  font-size: 14px
}

.quiet {
  font-size: 11px;
  color: #929a94;
  line-height: 1.7;
  text-align: center;
  margin-top: 18px
}

.error {
  color: #a34e3d;
  font-size: 12px;
  line-height: 1.5
}

.error:empty {
  display: none
}

footer {
  height: 80px;
  margin: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a1a8a2
}

.footer-route {
  letter-spacing: 2px;
  color: #bbc9bf;
  margin: 0 10px
}

.airport-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.airport-card {
  border: 1px solid #e1e7e2;
  border-radius: 18px;
  padding: 25px;
  min-width: 0
}

.airport-card.winner {
  background: #f5f8f5;
  border-color: #a7c0af
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 12px;
  color: #7b897e
}

.badge {
  font-size: 10px;
  background: #e0ece3;
  color: #46624e;
  padding: 6px 8px;
  border-radius: 20px
}

.airport-card h2 {
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 9px
}

.price {
  font-size: 40px;
  letter-spacing: -1.5px;
  margin: 20px 0 6px
}

.price small {
  font-size: 12px;
  color: #819085;
  letter-spacing: 0
}

.card-note {
  font-size: 12px;
  line-height: 1.7;
  color: #7a857d
}

.airport-card details {
  border-top: 1px solid #e1e7e2;
  margin-top: 22px;
  padding-top: 17px;
  font-size: 12px;
  line-height: 1.8
}

.airport-card summary {
  cursor: pointer
}

.flight-link {
  display: block;
  color: #375942;
  margin-top: 15px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:640px) {
  header {
    height: 80px;
    padding: 0 22px
  }


  main {
    padding: 5vh 22px 30px;
    min-height: calc(100svh - 150px)
  }

  .welcome {
    padding-top: 10vh
  }

  h1 {
    font-size: 40px;
    letter-spacing: -1.7px
  }

  .subtitle {
    font-size: 14px
  }

  .eyebrow {
    font-size: 10px
  }




  .months {
    gap: 22px;
    grid-template-columns: 1fr
  }

  .day {
    aspect-ratio: auto;
    height: 36px
  }

  .date-field {
    padding: 17px
  }

  .date-arrow {
    padding: 0 5px
  }

  .airport-cards {
    grid-template-columns: 1fr
  }

  footer {
    height: 70px;
    font-size: 9px
  }

  .footer-route {
    margin: 0 3px
  }

  #calendar {
    padding: 18px
  }

  .cost-inputs {
    flex-direction: column
  }
}

@media(prefers-reduced-motion:reduce) {
  .step {
    animation: none
  }
}

/* Keep the simplified destination prompt centered in the available space. */
.welcome {
  align-self: center;
  padding-top: 0
}

footer {
  justify-content: flex-end
}

.date-fields {
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto
}

.date-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px
}

.date-action-row .error {
  margin: 0;
  flex: 1
}

.date-action-row .primary {
  width: auto;
  flex: 0 0 auto;
  padding: 20px 30px;
  font-size: 15px
}

.date-action-row .error:empty {
  display: block;
  visibility: hidden
}

.suggestion-heading {
  padding: 9px 12px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9aa49d
}

.suggestion-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #52705e;
  background: #eef4ef;
  border-radius: 7px;
  padding: 5px 7px;
  align-self: center
}

.flight-stack {
  display: grid;
  gap: 8px;
  margin-top: 22px
}

.flight-option {
  border: 1px solid #e7ece8;
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff
}

.flight-option.best-flight {
  border-color: #b9cebe;
  background: #fbfdfb
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px
}

.flight-route span {
  color: #9aa69d;
  font-size: 12px
}

.flight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 11px;
  color: #7d887f
}

.flight-meta strong {
  font-size: 14px;
  color: #294b3c
}

.flight-option {
  cursor: pointer;
  text-align: left
}

.flight-option[aria-selected="true"] {
  box-shadow: 0 0 0 2px #86a993
}

.flight-detail-panel {
  border: 1px solid #dfe8e1;
  border-radius: 12px;
  padding: 13px;
  font-size: 11px;
  line-height: 1.8;
  color: #647168;
  background: #f7faf7
}

.flight-detail-panel strong {
  color: #294b3c;
  font-size: 12px
}

@media(max-width:640px) {
  .date-action-row {
    align-items: flex-end
  }

  .date-action-row .primary {
    padding: 17px 25px
  }
}
