:root {
  color-scheme: light;
  --ink: #10233f;
  --ink-soft: #58708e;
  --navy: #10233f;
  --navy-2: #19375f;
  --blue: #1768e5;
  --blue-soft: #eaf2ff;
  --sun: #ffcb45;
  --mint: #dff8ed;
  --green: #087d55;
  --red: #c33d4b;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #e9eff6;
  --line: #dbe4ee;
  --shadow: 0 18px 50px rgba(24, 48, 79, 0.12);
  --shadow-soft: 0 8px 24px rgba(24, 48, 79, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f7fc;
  --ink-soft: #a9b9cd;
  --navy: #eaf3ff;
  --navy-2: #cddfff;
  --blue: #6fa7ff;
  --blue-soft: #172f52;
  --sun: #ffd367;
  --mint: #153f35;
  --green: #68d9b0;
  --red: #ff8994;
  --surface: #101b2a;
  --surface-2: #0b1420;
  --surface-3: #1a2a3d;
  --line: #2a3d54;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background 180ms ease, color 180ms ease;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="date"] {
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong {
  color: var(--blue);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--surface);
  transform: rotate(-4deg);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.nav-link {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(16, 35, 63, 0.08);
}

.nav-link span {
  display: inline-grid;
  min-width: 19px;
  min-height: 19px;
  margin-left: 3px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-control select,
.icon-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
}

.currency-control select {
  padding: 0 30px 0 12px;
}

.icon-button {
  width: 40px;
  padding: 0;
}

main {
  overflow: hidden;
}

.search-stage {
  position: relative;
  padding: 54px 5vw 32px;
  background:
    radial-gradient(circle at 83% 10%, rgba(255, 203, 69, 0.27), transparent 26%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.search-stage::after {
  position: absolute;
  z-index: 0;
  top: 28px;
  right: 5vw;
  width: 160px;
  height: 72px;
  border: 1px dashed color-mix(in srgb, var(--blue) 32%, transparent);
  border-right: 0;
  border-bottom: 0;
  border-radius: 100% 0 0;
  content: "";
  pointer-events: none;
  transform: rotate(-8deg);
}

.search-heading,
.search-panel,
.quick-options,
.content-section,
.airline-section,
.data-section,
.saved-section,
footer {
  width: min(1360px, 100%);
  margin-inline: auto;
}

.search-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 750px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.surprise-button,
.search-button,
.alert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  font-weight: 750;
}

.surprise-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--sun) 68%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--sun) 23%, var(--surface));
  box-shadow: 0 6px 16px rgba(255, 183, 30, 0.13);
}

.surprise-button span {
  color: #d28d00;
  font-size: 1.2rem;
}

.search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr 1fr;
  gap: 1px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  box-shadow: var(--shadow);
  overflow: visible;
}

.field {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 13px;
  background: var(--surface);
}

.field:first-child {
  border-radius: 12px 0 0 0;
}

.field:nth-child(4) {
  border-radius: 0 12px 0 0;
}

.field-label {
  margin: 0 0 4px 27px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.field-control svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--blue);
}

.field-control select,
.field-control input[type="date"] {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-control select {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-control input[type="date"] {
  min-width: 152px;
}

.traveller-field {
  position: relative;
  grid-column: 1 / 3;
  border-radius: 0 0 0 12px;
}

.traveller-button {
  width: 100%;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: left;
}

.traveller-button > span:not(.traveller-chevron) {
  font-size: 0.9rem;
  font-weight: 700;
}

.traveller-chevron {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 1rem;
}

.traveller-popover {
  position: absolute;
  z-index: 25;
  top: calc(100% + 12px);
  left: 0;
  width: min(390px, calc(100vw - 56px));
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(13, 31, 53, 0.22);
}

.traveller-popover[hidden] {
  display: none;
}

.traveller-row {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.traveller-row + .traveller-row {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.traveller-row strong,
.traveller-row small {
  display: block;
}

.traveller-row strong {
  font-size: 0.92rem;
}

.traveller-row small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.stepper {
  display: grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
}

.stepper button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
}

.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.stepper output {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.child-ages {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.child-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-2);
}

.child-age-row label {
  font-size: 0.8rem;
  font-weight: 700;
}

.child-age-row select {
  min-width: 112px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
}

.traveller-done {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  font-weight: 750;
}

.budget-field .field-control {
  display: block;
  padding-left: 27px;
}

.budget-field {
  grid-column: 3;
}

.budget-value {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  accent-color: var(--blue);
}

.search-button {
  grid-column: 4;
  min-width: 126px;
  padding: 0 17px;
  border-radius: 0 0 13px 0;
  background: var(--blue);
  color: white;
  box-shadow: 0 7px 18px rgba(23, 104, 229, 0.3);
}

.search-button:hover {
  background: #0d5dcc;
}

.quick-options {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 7px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.quick-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.quick-options input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.quick-options button {
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--ink-soft);
  background: transparent;
  color: var(--ink-soft);
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--ink-soft);
}

.preview-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18ad74;
  box-shadow: 0 0 0 4px rgba(24, 173, 116, 0.11);
}

.content-section,
.airline-section,
.saved-section {
  padding: 54px 0 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section-heading.compact {
  align-items: center;
}

.sort-control {
  display: flex;
  min-width: 160px;
  height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.sort-control svg {
  width: 17px;
}

.sort-control select {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.deal-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.deal-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.deal-image {
  position: relative;
  height: 205px;
  background: linear-gradient(135deg, #35618b, #8cb3cf);
  overflow: hidden;
}

.deal-image::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(5, 18, 36, 0.74));
  content: "";
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease, transform 400ms ease;
}

.deal-card:hover .deal-image img {
  transform: scale(1.025);
}

.deal-badges {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: flex;
  gap: 7px;
}

.badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.91);
  color: #10233f;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge.best {
  background: var(--sun);
}

.save-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #18304f;
  backdrop-filter: blur(8px);
}

.save-button.saved {
  color: #e14c63;
}

.save-button.saved svg {
  fill: currentColor;
}

.destination-label {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 13px;
  left: 15px;
  color: white;
}

.destination-label h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.destination-label span {
  font-size: 0.82rem;
  opacity: 0.86;
}

.deal-body {
  padding: 17px;
}

.route-row,
.weather-row,
.price-line,
.total-line,
.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-row {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.route-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.airline-dot {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.71rem;
  font-weight: 850;
}

.route-main strong,
.route-main small {
  display: block;
}

.route-main strong {
  font-size: 0.89rem;
}

.route-main small,
.duration {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.duration {
  flex: 0 0 auto;
  text-align: right;
}

.weather-row {
  min-height: 52px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.weather-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

.weather-info svg {
  width: 18px;
  color: #d99200;
}

.weather-temp {
  color: var(--ink);
  font-weight: 800;
}

.hotel-rating {
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
}

.price-box {
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-2);
}

.price-line {
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.price-line + .price-line {
  margin-top: 5px;
}

.price-line strong {
  color: var(--ink);
  font-weight: 750;
}

.total-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.total-line span {
  font-size: 0.8rem;
  font-weight: 700;
}

.total-price {
  font-size: 1.27rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 13px;
}

.details-button,
.book-button,
.empty-state button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 750;
}

.details-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.book-button {
  border: 0;
  background: var(--navy);
  color: var(--surface);
}

.empty-state {
  padding: 52px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
}

.empty-state h3 {
  margin-bottom: 5px;
}

.empty-state p {
  color: var(--ink-soft);
}

.empty-state button {
  border: 0;
  background: var(--blue);
  color: white;
}

.airline-section {
  padding-bottom: 56px;
}

.alert-button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.alert-button svg {
  width: 18px;
}

.airline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.airline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.airline-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}

.airline-logo.sas { background: #07539e; }
.airline-logo.norwegian { background: #d7282f; }
.airline-logo.ryanair { background: #16377e; color: #ffd83d; }
.airline-logo.pegasus { background: #f6c400; color: #b10c18; }

.airline-card strong,
.airline-card span {
  display: block;
}

.airline-card strong {
  font-size: 0.88rem;
}

.airline-card div > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.airline-card button {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.data-section {
  display: grid;
  grid-template-columns: 0.75fr 1.6fr;
  gap: 44px;
  margin-top: 16px;
  padding: 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 100%, rgba(255, 203, 69, 0.16), transparent 34%),
    #10233f;
  color: white;
}

.data-copy .eyebrow {
  color: #86b7ff;
}

.data-copy p:last-child {
  margin-bottom: 0;
  color: #b9c8da;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.signal-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.signal-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 203, 69, 0.14);
  color: var(--sun);
  font-size: 1.05rem;
}

.signal-grid strong,
.signal-grid small {
  display: block;
}

.signal-grid strong {
  font-size: 0.86rem;
}

.signal-grid small {
  margin-top: 1px;
  color: #b9c8da;
  font-size: 0.73rem;
  line-height: 1.35;
}

.saved-section {
  padding-bottom: 62px;
}

.saved-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.saved-placeholder {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--ink-soft);
  text-align: center;
}

.saved-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.saved-item strong,
.saved-item small {
  display: block;
}

.saved-item small {
  color: var(--ink-soft);
}

.saved-item button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--red);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 25px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

footer p {
  max-width: 620px;
  margin: 0;
  text-align: right;
}

.footer-brand {
  font-size: 0.96rem;
}

.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.footer-brand .brand-mark svg {
  width: 17px;
}

.mobile-nav {
  display: none;
}

.deal-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  border-radius: 23px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(4, 15, 30, 0.34);
  overflow: auto;
}

.deal-dialog::backdrop {
  background: rgba(6, 17, 31, 0.63);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 41px;
  height: 41px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #10233f;
}

.dialog-hero {
  position: relative;
  min-height: 235px;
  padding: 28px;
  display: flex;
  align-items: end;
  background: linear-gradient(140deg, #315b80, #8fb2c8);
  color: white;
  overflow: hidden;
}

.dialog-hero::after {
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgba(7, 20, 39, 0.82));
  content: "";
}

.dialog-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-title {
  position: relative;
  z-index: 2;
}

.dialog-title h2 {
  margin-bottom: 2px;
  font-size: 2rem;
}

.dialog-title p {
  margin-bottom: 0;
  opacity: 0.88;
}

.dialog-body {
  padding: 24px;
}

.trip-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}

.summary-tile {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.summary-tile small,
.summary-tile strong {
  display: block;
}

.summary-tile small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.summary-tile strong {
  margin-top: 3px;
  font-size: 0.88rem;
}

.dialog-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.dialog-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dialog-panel h3 {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.dialog-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.81rem;
  list-style: none;
}

.dialog-panel li::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
}

.dialog-book {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dialog-book span,
.dialog-book strong {
  display: block;
}

.dialog-book span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.dialog-book strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.dialog-book button {
  min-height: 47px;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 28px));
  padding: 13px 16px;
  border-radius: 12px;
  background: #10233f;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-radius: 18px;
  }

  .field:first-child {
    border-radius: 11px 0 0 0;
  }

  .field:nth-child(2) {
    border-radius: 0 11px 0 0;
  }

  .field:nth-child(4) {
    border-radius: 0;
  }

  .traveller-field {
    grid-column: 1;
    border-radius: 0;
  }

  .budget-field {
    grid-column: 2;
    border-radius: 0;
  }

  .search-button {
    min-height: 64px;
    grid-column: 1 / -1;
    border-radius: 0 0 11px 11px;
  }

  .airline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 64px;
    padding: 0 20px;
  }

  .desktop-nav {
    display: none;
  }

  .search-stage {
    padding: 34px 20px 25px;
  }

  .search-heading {
    align-items: start;
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section,
  .airline-section,
  .saved-section,
  footer {
    width: auto;
    margin-inline: 20px;
  }

  .data-section {
    width: auto;
    margin-inline: 20px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 31px;
  }

  .quick-options {
    flex-wrap: wrap;
    gap: 11px 16px;
  }

  .preview-status {
    width: 100%;
    margin-left: 0;
  }

  footer {
    margin-bottom: 65px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 12px;
    bottom: 11px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 14px 44px rgba(10, 27, 48, 0.2);
    backdrop-filter: blur(17px);
  }

  .mobile-nav button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .mobile-nav button.active {
    background: var(--blue-soft);
    color: var(--blue);
  }

  .toast {
    right: 14px;
    bottom: 82px;
  }
}

@media (max-width: 620px) {
  .brand > span:last-child {
    display: none;
  }

  .currency-control select {
    height: 38px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .search-heading {
    display: block;
    margin-bottom: 19px;
  }

  h1 {
    font-size: 2.22rem;
  }

  .surprise-button {
    width: 100%;
    margin-top: 18px;
  }

  .search-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 7px;
    border-radius: 17px;
  }

  .field {
    min-height: 72px;
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .field:first-child,
  .field:nth-child(4),
  .traveller-field,
  .budget-field,
  .search-button {
    border-radius: 0;
  }

  .field:first-child {
    border-radius: 10px 10px 0 0;
  }

  .field:nth-child(2),
  .field:nth-child(3),
  .field:nth-child(4),
  .traveller-field {
    grid-column: 1 / -1;
    border-radius: 0;
  }

  .budget-field {
    grid-column: 1 / -1;
  }

  .traveller-popover {
    right: 0;
    left: 0;
    width: auto;
  }

  .search-button {
    grid-column: 1 / -1;
    min-height: 54px;
    border-radius: 0 0 10px 10px;
  }

  .quick-options {
    align-items: start;
    flex-direction: column;
  }

  .content-section,
  .airline-section,
  .saved-section {
    padding-top: 41px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .sort-control,
  .alert-button {
    width: 100%;
  }

  .deal-grid,
  .airline-grid,
  .saved-list,
  .signal-grid,
  .dialog-columns {
    grid-template-columns: 1fr;
  }

  .deal-image {
    height: 224px;
  }

  .data-section {
    padding: 27px 20px;
    border-radius: 20px;
  }

  footer {
    align-items: start;
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }

  .footer-brand > span:last-child {
    display: inline;
  }

  .trip-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog-hero {
    min-height: 210px;
    padding: 20px;
  }

  .dialog-body {
    padding: 18px;
  }

  .dialog-book {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
