:root {
  --masthead: linear-gradient(90deg, #123b35 0%, #17433c 56%, #214c42 100%);
}
.header, .finder { background: var(--masthead); color: #fffaf0; }
.header { border-bottom: 0; }
.header .head-inner { border-bottom: 1px solid #91b3a535; }
/* Both parts share the original artwork and align in the same grid cell. */
.header .brand-lockup {
  grid-area: 1 / 1;
  filter: brightness(0) invert(1);
  clip-path: polygon(0 0, 72.7% 0, 72.7% 28%, 76.2% 28%, 76.2% 44%, 100% 44%, 100% 100%, 0 100%);
}
.header .brand::after {
  content: "";
  grid-area: 1 / 1;
  background: url("assets/destita.png") center / contain no-repeat;
  clip-path: polygon(72.7% 0, 100% 0, 100% 44%, 76.2% 44%, 76.2% 28%, 72.7% 28%);
  pointer-events: none;
}
.header.bird-away .brand::after { visibility: hidden; }
.flight-wake path { stroke: #e9cd9f; }
.header .desktop-nav { border: 0; background: transparent; }
.header .desktop-nav a, .header .saved-link { color: #eff4e9; }
.header .desktop-nav a { border-radius: 6px; }
.header .desktop-nav :is(a:hover, .nav-current:hover),
.header :is(.saved-link:hover, .account-link:hover, .mobile-menu-btn:hover) { color: #fff; background: #32584b; }
.header .desktop-nav .nav-current { background: transparent; color: #ffe4aa; }
.header .desktop-nav .nav-current::after {
  content: "";
  position: absolute;
  inset: auto 12px 2px;
  height: 2px;
  border-radius: 1px;
  background: #f1ca92;
}
.header :is(.account-link, .mobile-menu-btn) { background: transparent; color: #f5f6e9; border-color: #809b8c; }
.header :is(.account-link.nav-current, .saved-link.nav-current, .mobile-menu-btn[aria-expanded=true]) {
  color: #ffebc4; background: #345a4c;
}
.header .saved-link b { background: #dce9d7; color: #183d32; }
body .header :is(a, button):focus-visible { outline-color: #ffe2a9; box-shadow: none; }
.header #mobile-nav:not([hidden]) { background: #163f37; border-color: #759886; }
.header #mobile-nav a { color: #f2f3e8; }
.header #mobile-nav a:hover, .header #mobile-nav a.nav-current { background: #345a4c; color: #ffe3b3; }
.header .mobile-main-links .icon { color: #c8d9bf; }
.header .mobile-personal-links { border-color: #71907e; }

/* A drawing on the green field of the masthead, behind the search controls. */
.finder { overflow: clip; }
.finder-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(340px, 1.08fr);
  grid-template-areas: "intro coast" "search search";
  gap: clamp(12px, 1.6vw, 22px) 0;
  align-items: center;
  padding-block: clamp(20px, 2.25vw, 36px) clamp(24px, 2.8vw, 42px);
}
.finder-intro { position: relative; z-index: 1; }
.coast-scene {
  position: relative;
  grid-area: coast;
  margin-inline: -9% -8%;
  align-self: center;
}
.coast-scene canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 280;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 95%, transparent);
}
.finder-intro { grid-area: intro; }
.finder-intro h1 {
  font: 650 clamp(3.1rem, 5.4vw, 5.4rem)/1.04 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.063em;
  text-wrap: balance;
}
.finder-intro h1 span {
  font: 400 1.08em/.95 var(--display);
  letter-spacing: -.065em;
  color: #ffe2ae;
}
.finder-intro p {
  margin-top: 14px;
  color: #e0eae0;
  max-width: 46ch;
  font-size: clamp(.96rem, 1.23vw, 1.13rem);
  line-height: 1.5;
  text-wrap: pretty;
}
#soeg.search-panel {
  grid-area: search;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  scroll-margin-top: 12px;
}
#soeg .search-top { min-height: auto; padding: 0 0 12px; align-items: end; }
#soeg .mode-group { padding: 0; gap: 7px; background: transparent; border: 0; }
#soeg .mode {
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #84a398;
  border-radius: 24px;
  background: transparent;
  color: #f0f5eb;
  box-shadow: none;
  font-weight: 620;
}
#soeg .mode:hover { background: #315b50; }
#soeg .mode.active { color: #143f36; background: #eff3e3; border-color: #eff3e3; }
#soeg .mode::after { content: none; }
#soeg .round-trip { color: #d2e2d6; padding-bottom: 5px; font-weight: 550; }
#soeg .search-fields {
  align-items: stretch;
  gap: 0;
  padding: 5px;
  background: #fffcf5;
  border-radius: 13px;
  box-shadow: 0 8px 21px #09292333;
}
#soeg .field {
  position: relative;
  min-width: 0;
  min-height: 65px;
  padding-inline: clamp(10px, 1.3vw, 20px);
  color: #193c34;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
#soeg .field + .field::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 1px;
  background: #c9d3c6;
}
#soeg .hotel #destination::before { display: none; }
#soeg .field:hover { background: #ecf0e6; }
#soeg .field small { color: #526559; }
#soeg .field:focus-visible { z-index: 1; }
#soeg .search-button {
  color: #34261c;
  background: #ffc587;
  border-radius: 9px;
  min-height: 48px;
  padding-inline: clamp(18px, 2vw, 32px);
}
#soeg .search-button:hover { background: #ffb66c; }
.finder :is(a,button):focus-visible { outline-color: #206798; }
#soeg .mode:focus-visible { outline-color: #ffd4a0; box-shadow: none; }

@media (min-width: 761px) and (max-width: 1000px) {
  #soeg .origin-short { display: inline; }
  #soeg .origin-long { display: none; }
  #soeg .field { padding-inline: 8px; gap: 5px; }
  #soeg .search-button { padding-inline: 13px; font-size: .89rem; }
}
@media (max-width: 760px) {
  .finder-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "coast" "search";
    gap: 8px;
    padding-block: 25px 20px;
  }
  .finder-intro h1 { font-size: clamp(2.5rem, 8vw, 3.6rem); }
  .finder-intro p { margin-top: 8px; font-size: .94rem; }
  #soeg .search-top { align-items: center; padding-bottom: 10px; flex-wrap: wrap; }
  #soeg .mode { min-height: 44px; padding: 7px 12px; gap: 5px; }
  #soeg .round-trip { padding: 0; }
  #soeg .search-fields { gap: 1px; }
  #soeg .field { min-height: 57px; padding: 8px 9px; }
  #soeg .field + .field::before { inset-block: 9px; }
  #soeg #dates::before { display: none; }
  #soeg .search-fields :is(#origin, #destination) { border-bottom: 1px solid #d7ded2; border-radius: 4px 4px 0 0; }
  #soeg .search-button { margin-top: 4px; }
  .coast-scene {
    width: min(100%, 490px);
    margin: -3px -3% -2px 0;
    justify-self: end;
  }
}
@media (max-width: 410px) {
  #soeg .round-trip { display: none; }
  #soeg .field { gap: 6px; }
  #soeg .mode { padding-inline: 10px; }
}
