@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* Socle de l’application : polices, jetons de couleur, en-tête, barre de recherche,
   suggestions de lieux, cartes de destination et premières règles du détail.
   Feuille 01 sur 08 : les pages les chargent dans l’ordre des numéros, qui est celui
   de la cascade. Une règle peut corriger une feuille précédente, jamais une suivante. */

:root {
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --ink: #102a43;
  --muted: #52677d;
  --cream: #f3f6f9;
  --paper: #ffffff;
  --coral: #ff6a13;
  --mint: #eaf0f6;
  --line: #d8e2ec;
  --gold: #fff0e8;
  --lagoon: #244d73;
  --success: #2f7d5a;
  --danger: #b83a2d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: -60px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 82px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
}
@media (max-width: 760px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }
}
.brand {
  position: static;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.8px;
}
.brand span {
  color: var(--coral);
}
.header-note {
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
  margin-right: 20px;
}
.regional-settings {
  margin-left: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.regional-settings:hover {
  color: var(--ink);
}
main {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding-bottom: 80px;
}
.hero {
  padding: 34px 0 28px;
  max-width: 640px;
}
.eyebrow {
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1,
h2 {
  letter-spacing: -0.045em;
  margin: 0;
}
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 1;
  font-weight: 600;
}
h1 em {
  color: var(--coral);
  font-weight: 600;
}
.hero-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 520px;
  margin: 17px 0 0;
}
.search-card {
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(34, 47, 43, 0.08);
  border: 1px solid rgba(29, 46, 45, 0.08);
  padding: 34px;
}
.search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 27px;
}
.search-heading .eyebrow {
  margin-bottom: 8px;
}
h2 {
  font-size: 27px;
  line-height: 1.1;
}
.people-badge {
  background: var(--mint);
  color: var(--ink);
  padding: 7px 10px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 600;
}
.origins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bar-origins.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: column;
}
.field {
  display: block;
}
.field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 7px;
}
.flight-person-header span,
.flight-leg-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 600;
}

/* The full price area is the booking action, not only its label. */
.detail-page .flight-price {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.detail-page .flight-person.one-way .flight-price {
  grid-column: 3;
  grid-row: 1;
}
.detail-page .flight-price .booking-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.detail-page .flight-price:hover {
  background: var(--mint);
}
@media (max-width: 760px) {
  .detail-page .flight-price,
  .detail-page .flight-person.one-way .flight-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
  }
}
select,
input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 12px;
  min-height: 49px;
  border-radius: var(--r-xs);
  outline-color: var(--coral);
}
.search-toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
}
.toolbar-select select {
  min-height: 36px;
  width: auto;
  padding: 7px 10px;
  border-radius: var(--r-lg);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.comparator-bar {
  display: grid;
  grid-template-columns: 2.1fr 1.4fr 1fr 1fr auto;
  align-items: stretch;
  background: white;
  border-radius: var(--r-sm);
  overflow: visible;
}
.bar-origins {
  min-width: 0;
}
.bar-origins .field {
  padding: 13px 14px;
  border: 1px solid var(--line);
}
.bar-origins .field + .field {
  border-left: 0;
}
.bar-origins select,
.bar-field input {
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}
.bar-field {
  position: relative;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 0;
}
.bar-field .field span {
  margin-bottom: 7px;
}
.destination-field input {
  font-weight: 400;
}
.destination-field input::placeholder {
  color: #87928f;
}
.suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 7px);
  left: -1px;
  width: min(390px, 100vw - 48px);
  padding: 7px;
  margin: 0;
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 16px 35px rgba(20, 34, 31, 0.18);
}
.suggestion {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--r-xs);
}
.suggestion:hover {
  background: #f4f5f0;
}
.suggestion strong,
.suggestion small {
  display: block;
}
.suggestion small {
  color: var(--muted);
  margin-top: 2px;
}
.suggestions {
  color: var(--ink);
}
.suggestion strong {
  color: var(--ink);
}
.suggestion.is-active {
  background: #eef0ea;
}
.suggestion-code {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.suggestions {
  z-index: 25;
  width: min(470px, calc(100vw - 32px));
  max-height: min(580px, 70vh);
  overflow: auto;
  padding: 7px;
  border-radius: var(--r-md);
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.2);
}
.suggestion,
.suggestion-location {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.suggestion:hover,
.suggestion-location:hover,
.suggestion.is-active {
  background: #f2f6f9;
}
.suggestion-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding-left: calc(var(--suggestion-depth, 0) * 28px);
  border-radius: var(--r-sm);
}
.suggestion-shell > .suggestion {
  flex: 1;
  min-width: 0;
}
.suggestion-child::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.suggestion-copy {
  min-width: 0;
}
.suggestion-copy strong,
.suggestion-copy small {
  display: block;
}
.suggestion-copy strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}
.suggestion-copy small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0;
}
.suggestion-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.suggestion-plane {
  width: 24px;
  height: 24px;
}
.suggestion-plane--departure {
  transform: rotate(45deg);
}
.suggestion-plane--destination {
  transform: rotate(135deg);
}
.suggestion-flag {
  height: 18px;
  object-fit: cover;
  border-radius: var(--r-xs);
  box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.12);
}
.suggestion-world {
  margin-bottom: 4px;
  background: #f7f9fb;
}
.suggestion-section {
  margin: 5px 6px 2px;
  padding: 10px 6px 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.suggestion-section:first-child {
  margin-top: 0;
  padding-top: 5px;
  border-top: 0;
}
.suggestion-location {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.suggestion-location.is-loading {
  opacity: 0.65;
  cursor: wait;
}
.place-field {
  position: relative;
}
.bar-origins .field input {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.selected-place-icon {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: calc(50% + 8px);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--ink);
  pointer-events: none;
  transform: translateY(-50%);
}
.selected-place-icon .suggestion-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.selected-place-icon .suggestion-flag {
  height: auto;
}
.place-field.has-selected-place input {
  padding-left: 27px !important;
}
.bar-origins .field input::placeholder {
  color: #87928f;
}
.has-three-origins .comparator-bar {
  grid-template-columns: 2.7fr 1.25fr 0.95fr 0.95fr auto;
}
.bar-origins .field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bar-origins .field > span {
  min-height: 14px;
}
.add-origin {
  border: 0;
  background: none;
  color: var(--lagoon);
  font-size: 14px;
  padding: 0;
  font-weight: 600;
}
.add-origin span {
  font-size: 19px;
  padding-right: 4px;
}
.add-origin small {
  color: var(--muted);
  font-weight: 400;
}
.bar-origins .field > span {
  position: relative;
  display: flex;
  align-items: center;
  height: 14px;
  min-height: 14px;
  margin-bottom: 7px;
  line-height: 14px;
}
.bar-origins select {
  display: block;
  height: 20px;
  min-height: 20px;
  line-height: 20px;
}
.removable-origin > span {
  justify-content: space-between;
  gap: 8px;
}
.remove-origin {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--coral);
  padding: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.is-hidden {
  display: none;
}
.search-options {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 13px;
}
.search-button {
  border: 0;
  margin-left: 0;
  padding: 0 24px;
  color: white;
  background: var(--coral);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.search-button:hover {
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.2);
}
.search-button {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.search-button span {
  color: inherit;
  margin: 0;
  font-size: inherit;
}
.form-footnote {
  color: var(--muted);
  font-size: 12px;
  margin: 15px 0 0;
}
.results {
  margin-top: 80px;
}
.results-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.results-topline .eyebrow {
  margin-bottom: 8px;
}
.results-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}
.sort-control {
  min-width: 205px;
}
.sort-control label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.sort-control select {
  min-height: 42px;
  padding: 8px;
}
.filters-panel {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.filters-panel > summary {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}
.filters-panel > summary::-webkit-details-marker {
  display: none;
}
.filters-panel > summary::after {
  content: '+';
  margin-left: auto;
  color: var(--coral);
  font-size: 20px;
  font-weight: 400;
}
.filters-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}
.filters-panel[open] > summary::after {
  content: '–';
}
.filters-panel > summary #filters-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
}
.filters-content {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
}
.filter-field {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 150px;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.filter-label {
  min-height: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
}
.filter-field input {
  min-height: 42px;
  margin: 0;
  padding: 8px 32px 8px 8px;
}
.filter-suffix {
  position: absolute;
  right: 11px;
  bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.origin-budget-filters {
  display: contents;
}
.clear-filters {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.clear-filters:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.no-results {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}
.no-results strong {
  color: var(--ink);
  font-size: 18px;
}
.no-results span {
  max-width: 520px;
}
.no-results button {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.no-results button:hover,
.no-results button:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
}
.no-results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.price-pending {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.flight-leg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.flight-airline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.airline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: hsl(var(--teinte) 62% 92%);
  color: hsl(var(--teinte) 58% 28%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.flight-endpoint {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.flight-endpoint-end {
  text-align: right;
  align-items: flex-end;
}
.flight-place {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.flight-country {
  color: var(--muted);
  font-size: 11px;
}
.flight-line-duration {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.flight-line-stops {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.flight-line-stops.is-direct {
  color: #1f7a54;
  font-weight: 700;
}
.flight-line-stops.has-stops {
  color: #a35a07;
  font-weight: 700;
}
.flight-line-pending {
  color: var(--muted);
  font-size: 12px;
}
.flight-layovers {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.detail-filters {
  margin: 22px 0 0;
}
.detail-filters-content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: 20px;
  row-gap: 16px;
  padding: 16px 18px 18px;
}
.detail-filters-content > .filter-field {
  grid-column: span 3;
}
.detail-filters-content > .time-filters {
  grid-column: 1 / -1;
}
.detail-filters-content > .detail-filter-actions {
  grid-column: 1 / -1;
}
.detail-filter-times {
  grid-column: 1 / -1;
}
.detail-filter-times h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}
.detail-filter-origin {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
}
.detail-filter-origin h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
}
.detail-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.detail-filter-row + .detail-filter-row {
  margin-top: 8px;
}
.detail-filter-row > span {
  flex: 0 0 68px;
}
.detail-filter-row input {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.detail-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.detail-filters button[data-refresh-detail] {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.detail-filters button[data-refresh-detail]:hover {
  background: var(--coral);
}
.detail-filters button[data-refresh-detail][disabled] {
  opacity: 0.6;
  cursor: progress;
}
.detail-filter-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.load-more p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.load-more button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.load-more button:hover,
.load-more button:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}
.load-more button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.no-results button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.no-results button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.no-results button.ghost:hover,
.no-results button.ghost:focus-visible {
  border-color: var(--coral);
  background: transparent;
  color: var(--coral);
}
.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.destination-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(34, 47, 43, 0.045);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}
.destination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 47, 43, 0.12);
}
.destination-card:focus-visible,
.destination-card:has(.detail-link:focus-visible) {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
/* Lien étendu sur toute la tuile : un clic n'importe où ouvre le détail, et le clavier comme
   les lecteurs d'écran gardent un vrai lien. Les boutons partager/favori restent au-dessus. */
.detail-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  outline: none;
}
.destination-card .destination-photo {
  z-index: 2;
}
.destination-photo {
  min-height: 174px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background-position: center;
  background-size: cover;
  position: relative;
  isolation: isolate;
}
.destination-photo {
  background-image: linear-gradient(140deg, #24405c, #3c6484);
}
.destination-photo-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.destination-photo-image.is-failed {
  display: none;
}
.destination-photo::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 24, 23, 0.04) 36%, rgba(15, 24, 23, 0.74) 100%);
}
.destination-photo h3 {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em;
  font-size: 28px;
  margin: 0;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(12, 24, 36, 0.55);
}
.destination-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(12, 24, 36, 0.72), rgba(12, 24, 36, 0));
  pointer-events: none;
}
.fares {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px 10px 0;
  gap: 8px;
  background: var(--paper);
}
.fares-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fare {
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  background: #f3f6f9;
}
.fares-3 .fare {
  padding: 10px 8px;
}
.fare-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fare-price {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  white-space: nowrap;
}
.fare-duration {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
  white-space: nowrap;
}
.card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 10px 10px;
  padding: 10px 12px;
  gap: 8px;
  border-radius: var(--r-xs);
  background: #fff3e9;
}
.card-summary span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.card-summary strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.card-summary .summary-chevron {
  display: grid;
  flex: none;
  place-items: center;
  margin-right: -4px;
  color: var(--coral);
  transition: transform 0.2s ease;
}
.summary-chevron svg {
  width: 18px;
  height: 18px;
}
.destination-card:hover .summary-chevron {
  transform: translateX(3px);
}
.sponsored-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(34, 47, 43, 0.045);
}
.sponsored-card-visual {
  position: relative;
  display: flex;
  min-height: 174px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #102a43 0%, #174d63 52%, #d9efe7 100%);
  color: #fff;
}
.sponsored-card-visual::before,
.sponsored-card-visual::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}
.sponsored-card-visual::before {
  width: 220px;
  height: 220px;
  left: -72px;
  bottom: -152px;
}
.sponsored-card-visual::after {
  width: 150px;
  height: 150px;
  right: -54px;
  top: -82px;
}
.sponsored-card-mark,
.sponsored-card-pin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.sponsored-card-mark {
  width: 58px;
  height: 58px;
  background: var(--coral);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}
.sponsored-card-pin {
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--coral);
  font-size: 16px;
}
.sponsored-card-route {
  width: 84px;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.78);
}
.sponsored-card-body {
  flex: 1;
  padding: 17px 18px 18px;
}
.sponsored-card-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sponsored-card-body h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  line-height: 1.05;
}
.sponsored-card-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.sponsored-card-foot {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.sponsored-card-foot span:last-child {
  color: var(--coral);
  font-size: 17px;
}
.ad-card {
  padding: 12px 12px 14px;
}
.ad-card .sponsored-card-label {
  margin-bottom: 8px;
}
.ad-card .adsbygoogle {
  min-height: 250px;
}
.data-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 13px;
}
dialog {
  border: 0;
  max-width: 510px;
  padding: 34px;
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--muted);
}
dialog p:not(.eyebrow) {
  line-height: 1.55;
  color: var(--muted);
}
dialog::backdrop {
  background: rgba(21, 34, 32, 0.45);
}
.flight-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: 960px;
  padding: 0;
  background: var(--cream);
}
.flight-dialog::backdrop {
  background: rgba(15, 27, 25, 0.56);
}
.flight-dialog .dialog-close {
  z-index: 2;
  color: white;
  top: 16px;
  right: 18px;
}
.flight-dialog-header {
  position: relative;
  min-height: 210px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.flight-dialog-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 22, 0.15), rgba(12, 24, 22, 0.8));
}
.flight-dialog-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
}
.flight-dialog-header p {
  margin: 8px 0 0;
  color: white;
  opacity: 0.9;
}
.flight-list {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.flight-person {
  background: var(--paper);
  border: 1px solid var(--line);
}
.flight-person-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
.flight-person-header h3 {
  margin: 0;
  font-size: 17px;
}
.flight-person-header span {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}
.flight-leg {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.flight-leg-label {
  display: block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.flight-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.flight-time {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.flight-airport {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.flight-route-end {
  text-align: right;
}
.flight-line {
  min-width: 52px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  border-top: 1px solid #aeb9b5;
  padding-top: 6px;
}
.flight-meta {
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.flight-price {
  padding: 17px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: #fffaf0;
}
.flight-price span {
  color: var(--muted);
  font-size: 12px;
}
.flight-price strong {
  font-size: 23px;
  letter-spacing: -0.04em;
}
.flight-note {
  padding: 0 24px 25px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.details-main {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto 80px;
}
.back-link {
  display: inline-flex;
  margin: 25px 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover {
  color: var(--coral);
}
.detail-page {
  background: var(--cream);
}
.detail-page-header {
  min-height: 250px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}
.detail-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 24, 22, 0.16), rgba(12, 24, 22, 0.8));
}
.detail-page-header p {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 6px 9px;
  background: rgba(12, 24, 22, 0.72);
  border-radius: var(--r-xs);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.detail-page-header h1 {
  font-size: 52px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.detail-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 19px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.detail-summary span {
  color: var(--muted);
  font-size: 13px;
}
.detail-summary strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-left: auto;
}
.flight-person-header h2 {
  margin: 0;
  font-size: 17px;
}
.detail-page .flight-list {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 10px 0 24px;
}
.detail-page .flight-person {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr) 180px;
}
.detail-page .flight-person-header {
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.detail-page .flight-leg {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.detail-page .flight-leg:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.detail-page .flight-leg:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.detail-page .flight-meta {
  grid-column: 4;
  grid-row: 1;
  padding: 16px 18px 8px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.detail-page .flight-price {
  grid-column: 4;
  grid-row: 2;
  padding: 8px 18px 16px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  background: #fffaf0;
}
.booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 9px 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.booking-link:hover {
  background: var(--coral);
}
.detail-page .flight-person.one-way {
  grid-template-columns: 180px minmax(0, 1fr) 180px;
}
.detail-page .flight-person.one-way .flight-leg:nth-child(2) {
  grid-column: 2;
}
.detail-page .flight-person.one-way .flight-meta {
  grid-column: 3;
  grid-row: 1;
}
.detail-page .flight-person.one-way .flight-price {
  grid-column: 3;
  grid-row: 2;
}
@media (max-width: 900px) {
  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .comparator-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: transparent;
  }
  .bar-origins {
    grid-column: span 2;
  }
  .bar-field,
  .bar-origins .field,
  .bar-origins .field + .field {
    border: 1px solid var(--line);
    background: white;
    border-radius: var(--r-xs);
  }
  .search-button {
    min-height: 50px;
    margin: 0;
  }
  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  main {
    width: min(100% - 30px, 1180px);
  }
  .header-note {
    display: none;
  }
  .hero {
    padding: 42px 0 34px;
  }
  .search-card {
    padding: 22px;
  }
  .origins,
  .origins.three,
  .comparator-bar,
  .destination-grid {
    grid-template-columns: 1fr;
  }
  .bar-origins {
    grid-column: auto;
  }
  .bar-origins .field + .field {
    border-top: 0;
  }
  .search-toolbar,
  .search-options {
    flex-wrap: wrap;
  }
  .results {
    margin-top: 58px;
  }
  .results-topline {
    align-items: stretch;
    flex-direction: column;
  }
  .sort-control {
    width: 100%;
  }
  .hero-copy {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .details-main {
    width: min(100% - 30px, 1100px);
  }
  .detail-page-header {
    min-height: 200px;
    padding: 24px;
  }
  .detail-page-header h1 {
    font-size: 40px;
  }
  .detail-page .flight-person,
  .detail-page .flight-person.one-way {
    display: block;
  }
  .detail-page .flight-person-header,
  .detail-page .flight-leg {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .detail-page .flight-meta,
  .detail-page .flight-price {
    align-items: stretch;
    flex-direction: row;
  }
  .detail-page .flight-price {
    align-items: baseline;
  }
}
