#wsh-flight-search {
  --wsh-gold: #bc8a24;
  --wsh-gold-dark: #8f6514;
  --wsh-ink: #241f19;
  --wsh-muted: #70675d;
  --wsh-line: rgba(72, 54, 29, 0.13);
  --wsh-cream: #fbf7ef;
  --wsh-white: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 1rem;
  background: linear-gradient(145deg, #f6efe2 0%, #fffaf2 45%, #f1e5d0 100%);
  color: var(--wsh-ink);
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wsh-flight-search * { box-sizing: border-box; }
#wsh-flight-search [hidden] { display: none !important; }

.wsh-flight-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wsh-flight-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.wsh-eyebrow {
  display: inline-block;
  color: var(--wsh-gold-dark);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
}

.wsh-flight-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

.wsh-flight-heading p { color: var(--wsh-muted); font-size: 1.04rem; }

#wsh-flight-form {
  position: relative;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid rgba(188, 138, 36, 0.23);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 55px rgba(72, 52, 20, 0.12);
}

.wsh-trip-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.32rem;
  border-radius: 999px;
  background: #f3ede3;
  margin-bottom: 1.35rem;
}

.wsh-trip-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wsh-trip-switch span {
  display: block;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  color: #6f6559;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.wsh-trip-switch input:checked + span {
  color: #fff;
  background: var(--wsh-ink);
  box-shadow: 0 6px 16px rgba(36, 31, 25, 0.18);
}

.wsh-search-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 38px minmax(190px, 1.5fr) repeat(5, minmax(115px, 0.85fr));
  align-items: end;
  gap: 0.75rem;
}

.wsh-field { min-width: 0; position: relative; }
.wsh-field label,
.wsh-child-ages label {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  color: #5b5045;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.wsh-field input,
.wsh-field select,
.wsh-child-ages select,
.wsh-results-toolbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--wsh-line);
  border-radius: 12px;
  background: #fff;
  color: var(--wsh-ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.72rem 0.78rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wsh-field input:focus,
.wsh-field select:focus,
.wsh-child-ages select:focus,
.wsh-results-toolbar select:focus {
  border-color: var(--wsh-gold);
  box-shadow: 0 0 0 3px rgba(188, 138, 36, 0.14);
}

.wsh-airport-field { z-index: 4; }
.wsh-suggestions {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--wsh-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 27, 12, 0.16);
}

.wsh-suggestion {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem;
  color: var(--wsh-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.wsh-suggestion:hover, .wsh-suggestion:focus { background: var(--wsh-cream); }
.wsh-suggestion strong { color: var(--wsh-gold-dark); }
.wsh-suggestion span { color: var(--wsh-muted); font-size: 0.84rem; }

.wsh-swap {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  border: 1px solid var(--wsh-line);
  border-radius: 50%;
  color: var(--wsh-gold-dark);
  background: var(--wsh-cream);
  font-size: 1.15rem;
  cursor: pointer;
}
.wsh-swap:hover { background: #eadcbf; }

.wsh-direct {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--wsh-line);
  border-radius: 12px;
  color: #574c40;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.wsh-direct input { width: 17px; height: 17px; accent-color: var(--wsh-gold); }

.wsh-child-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--wsh-line);
}
.wsh-child-ages label { width: 150px; }

.wsh-search-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.wsh-search-actions p { color: var(--wsh-muted); font-size: 0.86rem; }
.wsh-search-actions p strong { color: var(--wsh-gold-dark); }

.wsh-search-button,
.wsh-inquire {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #c4932e, #8f6514);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(155, 108, 21, 0.25);
}
.wsh-search-button { min-width: 210px; padding: 0.85rem 1.4rem; }
.wsh-inquire { width: 100%; padding: 0.78rem 1rem; }
.wsh-search-button:hover, .wsh-inquire:hover { filter: brightness(0.94); transform: translateY(-1px); }
.wsh-search-button:disabled { cursor: wait; opacity: 0.72; transform: none; }

.wsh-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}
.wsh-message.error { color: #7b211a; background: #fff0ed; border: 1px solid #f2c2bb; }
.wsh-message.info { color: #3c5265; background: #eff7ff; border: 1px solid #c6ddf1; }

.wsh-results-area { margin-top: 2rem; }
.wsh-results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wsh-results-toolbar > div { display: flex; flex-direction: column; }
.wsh-results-toolbar #wsh-result-count { font-size: 1.35rem; font-weight: 800; }
.wsh-results-toolbar small { color: var(--wsh-muted); }
.wsh-results-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 235px;
  color: #5b5045;
  font-size: 0.78rem;
  font-weight: 800;
}

.wsh-results { display: grid; gap: 1rem; }
.wsh-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  overflow: hidden;
  border: 1px solid var(--wsh-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(58, 43, 20, 0.07);
}
.wsh-offer-main { min-width: 0; padding: 1.25rem; }
.wsh-offer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wsh-line);
}
.wsh-offer-head > div:first-child { display: flex; align-items: center; gap: 0.75rem; }
.wsh-offer-head strong, .wsh-offer-head small { display: block; }
.wsh-offer-head small { color: var(--wsh-muted); font-size: 0.78rem; }
.wsh-airline-code {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  background: var(--wsh-ink);
  font-size: 0.75rem;
  font-weight: 800;
}
.wsh-offer-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.wsh-offer-tags span {
  height: fit-content;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: #645337;
  background: #f7eedc;
  font-size: 0.72rem;
  font-weight: 700;
}

.wsh-itineraries { display: grid; gap: 1rem; margin-top: 1rem; }
.wsh-direction-title { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; }
.wsh-direction-title strong { color: var(--wsh-gold-dark); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.wsh-direction-title span { color: var(--wsh-muted); font-size: 0.8rem; }
.wsh-segment {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(115px, 0.7fr) minmax(130px, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0;
}
.wsh-segment > div:last-child { text-align: right; }
.wsh-segment strong, .wsh-segment span { display: block; }
.wsh-segment strong { font-size: 0.95rem; }
.wsh-segment > div > span { color: var(--wsh-muted); font-size: 0.78rem; }
.wsh-flight-line { text-align: center; color: var(--wsh-gold-dark); font-size: 0.72rem; font-weight: 800; }
.wsh-flight-line i { display: block; height: 1px; margin-top: 0.28rem; background: linear-gradient(90deg, transparent, var(--wsh-gold), transparent); }

.wsh-price-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border-left: 1px solid var(--wsh-line);
  background: var(--wsh-cream);
}
.wsh-price-box > span { color: var(--wsh-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wsh-price-box > strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; color: var(--wsh-gold-dark); }
.wsh-price-box > small { color: var(--wsh-muted); font-size: 0.7rem; margin-top: 0.5rem; }
.wsh-price-box dl { margin: 0.8rem 0; }
.wsh-price-box dl > div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.8rem; }
.wsh-price-box dt { color: var(--wsh-muted); }
.wsh-price-box dd { margin: 0; font-weight: 800; }
.wsh-price-box .wsh-total { margin-top: 0.35rem; padding-top: 0.7rem; border-top: 1px solid var(--wsh-line); font-size: 0.93rem; }

.wsh-empty { padding: 2.5rem; border: 1px dashed var(--wsh-line); border-radius: 18px; background: rgba(255,255,255,0.7); text-align: center; }
.wsh-empty h3 { margin: 0 0 0.35rem; }
.wsh-empty p, .wsh-rate-note { color: var(--wsh-muted); }
.wsh-rate-note { margin-top: 0.9rem; font-size: 0.75rem; text-align: center; }
.wsh-rate-note a { color: var(--wsh-gold-dark); }

@media (max-width: 1180px) {
  .wsh-search-grid { grid-template-columns: minmax(180px, 1fr) 38px minmax(180px, 1fr) repeat(2, minmax(130px, 0.75fr)); }
  .wsh-search-grid > :nth-child(n+6) { grid-row: 2; }
}

@media (max-width: 820px) {
  .wsh-search-grid { grid-template-columns: 1fr 38px 1fr; }
  .wsh-search-grid > :nth-child(n+4) { grid-row: auto; }
  .wsh-field:not(.wsh-airport-field), .wsh-direct { grid-column: span 1; }
  .wsh-offer-card { grid-template-columns: 1fr; }
  .wsh-price-box { border-left: 0; border-top: 1px solid var(--wsh-line); }
}

@media (max-width: 620px) {
  #wsh-flight-search { padding-inline: 0.7rem; }
  #wsh-flight-form { border-radius: 18px; }
  .wsh-search-grid { grid-template-columns: 1fr; }
  .wsh-swap { margin: -0.1rem auto; transform: rotate(90deg); }
  .wsh-search-actions, .wsh-results-toolbar, .wsh-offer-head { align-items: stretch; flex-direction: column; }
  .wsh-search-button { width: 100%; }
  .wsh-results-toolbar label { min-width: 0; }
  .wsh-offer-tags { justify-content: flex-start; }
  .wsh-segment { grid-template-columns: 1fr; gap: 0.35rem; padding: 0.85rem 0; }
  .wsh-segment > div:last-child { text-align: left; }
  .wsh-flight-line { text-align: left; }
  .wsh-flight-line i { width: 100px; background: linear-gradient(90deg, var(--wsh-gold), transparent); }
}
