:root {
  color-scheme: light;
  --bd-ink: #103533;
  --bd-muted: #536562;
  --bd-green: #016357;
  --bd-deep: #073e3c;
  --bd-yellow: #ffdf72;
  --bd-line: #dce6e2;
  --bd-mint: #eff7f4;
  --bd-paper: #fbfdfc;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--bd-ink); background: var(--bd-paper); font-family: system-ui, sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #067f73; outline-offset: 4px; }

.bd-wrap { width: min(100% - 5rem, 74rem); margin-inline: auto; }
.bd-sr-only, .bd-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bd-skip:focus { position: fixed; z-index: 5; inset: 0.75rem auto auto 0.75rem; padding: 0.75rem 1rem; background: white; }

.bd-header { background: white; }
.bd-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 5rem; }
.bd-brand { display: inline-flex; align-items: center; gap: 0.65rem; justify-self: start; font-size: 1.5rem; font-weight: 820; letter-spacing: -0.07em; line-height: 1; text-decoration: none; }
.bd-brand-icon { display: grid; place-items: center; width: 2.65rem; aspect-ratio: 1; border-radius: 0.85rem; background: var(--bd-deep); color: var(--bd-yellow); }
.bd-brand-icon svg { width: 1.55rem; height: 1.55rem; }
.bd-brand-accent { color: var(--bd-green); }
.bd-brand small { display: block; margin-top: 0.2rem; color: var(--bd-muted); font-size: 0.75rem; font-weight: 550; letter-spacing: 0; }
.bd-nav { display: flex; align-items: center; gap: 2rem; color: var(--bd-muted); font-size: 0.94rem; font-weight: 650; }
.bd-nav a { text-decoration: none; }
.bd-nav a:hover { color: var(--bd-green); text-decoration: underline; text-underline-offset: 0.25em; }
.bd-header-action { justify-self: end; padding: 0.6rem 1rem; border: 1px solid #bfd6cf; border-radius: 0.65rem; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.bd-header-action:hover { background: var(--bd-mint); }

.bd-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bd-deep); color: white; }
.bd-hero-image, .bd-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.bd-hero-image { z-index: -2; object-fit: cover; object-position: center 57%; }
.bd-hero > picture { display: contents; }
.bd-hero::after { z-index: -1; content: ''; background: linear-gradient(90deg, rgb(3 35 39 / 84%), rgb(3 37 42 / 53%) 40%, rgb(3 36 44 / 6%) 78%), linear-gradient(0deg, rgb(3 39 43 / 37%), transparent 49%); }
.bd-hero-inner { position: relative; min-height: 27.25rem; padding-block: 4.35rem 6.6rem; }
.bd-hero h1 { margin: 0; font-size: clamp(3rem, 6.5vw, 6.35rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.078em; }
.bd-hero h1 em { color: var(--bd-yellow); font-weight: 740; }
.bd-hero p { max-width: 29rem; margin: 1.35rem 0 0; font-size: clamp(1.05rem, 1.65vw, 1.2rem); line-height: 1.55; }
.bd-hero-credit { position: absolute; right: 0; bottom: 5.2rem; padding: 0.3rem 0.55rem; border-radius: 0.35rem; background: rgb(1 37 37 / 72%); font-size: 0.75rem; }

.bd-search-wrap { position: relative; margin-top: -4.2rem; }
.bd-search { display: grid; gap: 0.9rem; padding: 1rem 1.2rem 1.2rem; border: 1px solid var(--bd-line); border-radius: 1.1rem; background: white; box-shadow: 0 15px 35px rgb(11 60 55 / 12%); }
.bd-search-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.bd-trip { display: flex; gap: 0.15rem; min-width: 0; margin: 0; padding: 0.2rem; border: 0; border-radius: 0.65rem; background: var(--bd-mint); }
.bd-trip label { position: relative; display: flex; }
.bd-trip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.bd-trip span { padding: 0.34rem 0.7rem; border-radius: 0.5rem; color: var(--bd-muted); font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.bd-trip input:checked + span { background: white; color: var(--bd-deep); box-shadow: 0 1px 4px rgb(7 62 60 / 15%); }
.bd-trip input:focus-visible + span { outline: 2px solid #067f73; outline-offset: 2px; }
.bd-travelers select, .bd-field select {
  appearance: none;
  padding-right: 1.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23073e3c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.05rem center;
  background-size: 0.95rem;
  cursor: pointer;
}
.bd-travelers select { padding-left: 0.45rem; border: 0; border-radius: 0.3rem; background-color: white; color: var(--bd-ink); font-size: 0.875rem; font-weight: 700; }
.bd-search-fields { display: grid; grid-template-columns: 1.21fr 1.15fr 0.95fr 0.95fr auto; gap: 0.65rem; }
.bd-field { display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; min-width: 0; min-height: 3.75rem; padding: 0.4rem 0.75rem; border: 1px solid var(--bd-line); border-radius: 0.65rem; background: var(--bd-paper); }
.bd-field:focus-within { border-color: var(--bd-green); box-shadow: 0 0 0 1px var(--bd-green); }
.bd-field > span { color: var(--bd-muted); font-size: 0.875rem; font-weight: 650; }
.bd-field select, .bd-field input { width: 100%; min-width: 0; padding-block: 0; padding-left: 0; border: 0; background-color: transparent; color: var(--bd-ink); font-weight: 650; line-height: 1.4; }
.bd-field input:focus-visible, .bd-field select:focus-visible { outline: none; }
.bd-field:has(input:disabled) { opacity: 0.6; }
.bd-search-button { display: flex; justify-content: center; align-items: center; gap: 0.5rem; min-height: 3.75rem; padding-inline: 1.35rem; border: 0; border-radius: 0.65rem; background: var(--bd-yellow); color: #153b33; font-weight: 800; cursor: pointer; }
.bd-search-button svg { width: 1.25rem; height: 1.25rem; }
.bd-search-button:hover { background: #ffd250; }

.bd-offers { padding-block: 4.15rem 4.4rem; }
.bd-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.15rem; margin-bottom: 1.65rem; }
.bd-section-heading > p { margin: 0; color: var(--bd-muted); }
.bd-kicker { margin: 0 0 0.5rem; color: var(--bd-green); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.095em; text-transform: uppercase; }
.bd-section-heading h2, .bd-tips h2 { margin: 0; font-size: clamp(2rem, 4.3vw, 3.45rem); font-weight: 780; line-height: 1.08; letter-spacing: -0.062em; }
.bd-offers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.05rem; }
.bd-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bd-line); border-radius: 1rem; background: white; }
.bd-card-photo { position: relative; overflow: hidden; aspect-ratio: 1.64; background: var(--bd-mint); }
.bd-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-card-photo span { position: absolute; inset: auto auto 0.6rem 0.65rem; max-width: 90%; padding: 0.23rem 0.54rem; border-radius: 0.35rem; background: rgb(6 49 49 / 90%); color: white; font-size: 0.81rem; font-weight: 700; }
.bd-card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 0.95rem clamp(0.8rem, 1.5vw, 1.15rem) 1.1rem; }
.bd-card h3 { margin: 0; font-size: 1.5rem; font-weight: 775; line-height: 1.2; letter-spacing: -0.04em; }
.bd-card-route, .bd-card-dates, .bd-price-date { margin: 0.25rem 0 0; color: var(--bd-muted); font-size: 0.875rem; }
.bd-card-dates { margin-top: 0.6rem; }
.bd-price { margin: 0.5rem 0 0; color: var(--bd-green); font-size: 2.05rem; font-weight: 820; line-height: 1.15; letter-spacing: -0.065em; }
.bd-price small { color: var(--bd-muted); font-size: 0.875rem; font-weight: 550; letter-spacing: normal; white-space: nowrap; }
.bd-price-date { flex: 1; margin-bottom: 1rem; }
.bd-card-action { width: 100%; margin-top: auto; padding: 0.6rem 0.4rem; border: 1px solid #cae2db; border-radius: 0.55rem; background: var(--bd-mint); color: var(--bd-deep); font-size: 0.9rem; font-weight: 750; text-align: center; text-decoration: none; }
.bd-card-dates + .bd-card-action { margin-top: 1rem; }
.bd-card-action:hover { border-color: var(--bd-green); background: #deefe9; }
.bd-fare-note { margin: 1rem 0 0; color: var(--bd-muted); font-size: 0.875rem; }

.bd-tips { padding-block: 3.8rem; background: var(--bd-mint); }
.bd-tips-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 2rem; }
.bd-tips-list { border-top: 1px solid #c8dcd6; }
.bd-tips details { border-bottom: 1px solid #c8dcd6; }
.bd-tips summary { position: relative; padding: 0.95rem 2rem 0.95rem 0; font-weight: 700; list-style: none; cursor: pointer; }
.bd-tips summary::-webkit-details-marker { display: none; }
.bd-tips summary::after { position: absolute; right: 0.35rem; content: '+'; color: var(--bd-green); }
.bd-tips details[open] summary::after { content: '−'; }
.bd-tips details p { margin: 0 1.25rem 0.95rem 0; color: var(--bd-muted); }

.bd-footer { padding-block: 1.6rem; background: var(--bd-deep); color: #e2f2ee; font-size: 0.875rem; }
.bd-footer-inner, .bd-footer nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.bd-footer a { text-underline-offset: 0.2em; }
.bd-footer a:focus-visible { outline-color: var(--bd-yellow); }

@media (max-width: 64rem) {
  .bd-wrap { width: calc(100% - 3rem); }
  .bd-search-fields { grid-template-columns: 1fr 1fr 0.9fr 0.9fr; }
  .bd-search-button { grid-column: 1 / -1; }
  .bd-offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
  .bd-wrap { width: calc(100% - 2rem); }
  .bd-header-inner { display: flex; justify-content: space-between; gap: 0.7rem; min-height: 4.25rem; }
  .bd-brand { font-size: 1.3rem; gap: 0.45rem; }
  .bd-brand-icon { width: 2.2rem; border-radius: 0.65rem; }
  .bd-brand-icon svg { width: 1.25rem; }
  .bd-nav { display: none; }
  .bd-header-action { padding-inline: 0.65rem; }
  .bd-hero-inner { min-height: 23rem; padding-block: 3.35rem 6.25rem; }
  .bd-hero-image { object-position: 64% center; }
  .bd-hero::after { background: linear-gradient(90deg, rgb(3 35 39 / 86%), rgb(3 37 42 / 62%) 58%, rgb(3 36 44 / 21%)); }
  .bd-hero h1 { font-size: clamp(2.8rem, 9.7vw, 4rem); }
  .bd-hero p { max-width: 23rem; margin-top: 1rem; }
  .bd-search { padding: 0.75rem; }
  .bd-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .bd-field { padding-inline: 0.55rem; }
  .bd-offers { padding-block: 3rem; }
  .bd-section-heading { display: grid; gap: 0.55rem; }
  .bd-section-heading > p br { display: none; }
  .bd-offers-grid { gap: 0.7rem; }
  .bd-card h3 { font-size: 1.28rem; }
  .bd-price { font-size: 1.8rem; }
  .bd-price small { display: block; margin-top: 0.15rem; }
  .bd-tips { padding-block: 2.7rem; }
  .bd-tips-inner { grid-template-columns: 1fr; gap: 1.35rem; }
}

@media (max-width: 24rem) {
  .bd-offers-grid { grid-template-columns: 1fr; }
  .bd-price small { display: inline; }
}
