:root {
  color-scheme: dark light;
  --ink: #f7fbff;
  --ink-soft: #b9c8db;
  --ink-faint: #8294aa;
  --bg: #061426;
  --bg-deep: #020b18;
  --surface: #0b1d34;
  --surface-raised: #102844;
  --surface-glass: rgba(5, 18, 36, 0.8);
  --line: rgba(176, 209, 239, 0.18);
  --line-strong: rgba(176, 209, 239, 0.34);
  --sky: #55b9ff;
  --sky-pale: #bce6ff;
  --amber: #ffb23e;
  --amber-pale: #ffe3ae;
  --green: #56dc9a;
  --green-pale: #b7f6d5;
  --gray: #9caaba;
  --danger: #ff7d73;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --page: 1180px;
  --pad: clamp(18px, 4vw, 48px);
  --font-display: "Avenir Next", Avenir, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #09213c;
    --ink-soft: #415a73;
    --ink-faint: #6c8195;
    --bg: #eef7ff;
    --bg-deep: #dbeeff;
    --surface: #ffffff;
    --surface-raised: #f6fbff;
    --surface-glass: rgba(255, 255, 255, 0.84);
    --line: rgba(14, 67, 111, 0.15);
    --line-strong: rgba(14, 67, 111, 0.28);
    --sky: #0078c9;
    --sky-pale: #005a97;
    --amber: #b35a00;
    --amber-pale: #7c3d00;
    --green: #087d4d;
    --green-pale: #075f3d;
    --gray: #5f7184;
    --danger: #b82825;
    --shadow: 0 20px 60px rgba(23, 69, 108, 0.16);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7fbff;
  --ink-soft: #b9c8db;
  --ink-faint: #8294aa;
  --bg: #061426;
  --bg-deep: #020b18;
  --surface: #0b1d34;
  --surface-raised: #102844;
  --surface-glass: rgba(5, 18, 36, 0.8);
  --line: rgba(176, 209, 239, 0.18);
  --line-strong: rgba(176, 209, 239, 0.34);
  --sky: #55b9ff;
  --sky-pale: #bce6ff;
  --amber: #ffb23e;
  --amber-pale: #ffe3ae;
  --green: #56dc9a;
  --green-pale: #b7f6d5;
  --gray: #9caaba;
  --danger: #ff7d73;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #09213c;
  --ink-soft: #415a73;
  --ink-faint: #6c8195;
  --bg: #eef7ff;
  --bg-deep: #dbeeff;
  --surface: #ffffff;
  --surface-raised: #f6fbff;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --line: rgba(14, 67, 111, 0.15);
  --line-strong: rgba(14, 67, 111, 0.28);
  --sky: #0078c9;
  --sky-pale: #005a97;
  --amber: #b35a00;
  --amber-pale: #7c3d00;
  --green: #087d4d;
  --green-pale: #075f3d;
  --gray: #5f7184;
  --danger: #b82825;
  --shadow: 0 20px 60px rgba(23, 69, 108, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% -10%, color-mix(in srgb, var(--sky) 17%, transparent), transparent 36rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 28rem);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  min-height: 44px;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  translate: 0 -180%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--amber);
  color: #08111f;
  font-weight: 800;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, calc(var(--page) + var(--pad) * 2));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--sky) 60%, transparent);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky), #0751a8);
  color: white;
  box-shadow: 0 8px 26px rgba(0, 130, 225, 0.3);
  font-size: 19px;
  rotate: -10deg;
}

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

.icon-button,
.button,
.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button {
  width: 44px;
  padding: 0;
  font-size: 19px;
}

.button {
  padding: 10px 18px;
}

.button:hover,
.icon-button:hover,
.filter-tab:hover {
  border-color: var(--sky);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2dafff, #086bd5);
  color: white;
  box-shadow: 0 12px 32px rgba(0, 108, 213, 0.28);
}

.button.google::before {
  content: "G";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  color: #1769e0;
  font-weight: 900;
}

.header-settings-text {
  display: none;
}

.page-shell,
.site-footer-inner {
  width: min(100%, calc(var(--page) + var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page-shell {
  padding-block: clamp(44px, 8vw, 96px);
}

.section-block + .section-block {
  margin-top: clamp(68px, 10vw, 120px);
}

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

.section-heading h2,
.section-heading h1 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 43rem;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--sky-pale);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--amber);
}

.muted {
  color: var(--ink-soft);
}

.micro {
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.55;
}

.deal-hero {
  position: relative;
  display: grid;
  align-items: end;
  height: min(48vh, 520px);
  isolation: isolate;
  overflow: hidden;
  background: #0a2949;
}

.deal-hero > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.deal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 10, 28, 0.88) 0%, rgba(0, 15, 38, 0.6) 48%, rgba(0, 10, 26, 0.14) 76%),
    linear-gradient(0deg, rgba(1, 10, 23, 0.68), transparent 55%);
}

.hero-inner {
  width: min(100%, calc(var(--page) + var(--pad) * 2));
  margin-inline: auto;
  padding: 20px var(--pad) 28px;
}

.hero-deal {
  width: min(670px, 100%);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(3, 16, 37, 0.75);
  box-shadow: var(--shadow);
  color: #f7fbff;
  backdrop-filter: blur(18px) saturate(130%);
}

.hero-deal-top,
.deal-card-top,
.price-row,
.detail-actions,
.status-title,
.trip-place-head,
.photo-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-deal h1 {
  margin: 8px 0 3px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-route {
  margin: 0;
  color: #d6e8f8;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.metric-label {
  display: block;
  color: #a9c3da;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-price {
  display: block;
  margin-top: 1px;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(27px, 5vw, 43px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-date {
  display: block;
  margin-top: 5px;
  color: white;
  font-weight: 800;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.status-pill.ok,
.status-text.ok {
  color: var(--green);
}

.status-pill.conditional,
.status-text.conditional {
  color: var(--amber);
}

.status-pill.price_only,
.status-text.price_only {
  color: var(--gray);
}

.alert-line {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 178, 62, 0.42);
  border-radius: 12px;
  background: rgba(255, 178, 62, 0.12);
  color: #ffe3ae;
  font-size: 14px;
  line-height: 1.45;
}

.alert-line::before {
  content: "!";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  color: #091321;
  font-weight: 950;
}

.credit-overlay {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(0, 8, 20, 0.68);
  color: #d8e9f8;
  font-size: 14px;
  line-height: 1.35;
}

.credit-overlay a {
  text-decoration-color: rgba(255,255,255,0.5);
}

.lead-grid,
.deal-grid,
.region-grid,
.info-grid,
.compare-grid,
.status-grid,
.month-grid,
.place-grid {
  display: grid;
  gap: 18px;
}

.lead-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.panel,
.deal-card,
.status-panel,
.info-card,
.comparison-card,
.route-segment,
.month-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.panel,
.status-panel,
.info-card,
.comparison-card,
.month-card {
  padding: clamp(18px, 3vw, 28px);
}

.deal-card {
  overflow: hidden;
}

.deal-card-media,
.region-media {
  position: relative;
  overflow: hidden;
}

.deal-card-media {
  min-height: 230px;
}

.deal-card-media img,
.region-media img,
.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.deal-card:hover .deal-card-media img,
.region-card:hover .region-media img,
.place-card:hover img {
  transform: scale(1.035);
}

.deal-card-body {
  padding: 22px;
}

.deal-card h3,
.region-card h3,
.panel h3,
.info-card h3,
.comparison-card h3,
.month-card h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.22;
}

.deal-card h3 {
  margin-top: 10px;
  font-size: clamp(23px, 4vw, 32px);
}

.route-string {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.price-row {
  align-items: end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price-large {
  font-family: var(--font-display);
  font-size: clamp(29px, 5vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 800;
}

.save-button[aria-pressed="true"] {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 18%, var(--surface));
  color: var(--amber);
}

.route-mini {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.route-mini .line {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 13px);
}

.route-mini .plane {
  color: var(--sky);
}

.not-total {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gray);
  background: color-mix(in srgb, var(--gray) 10%, transparent);
  color: var(--ink-soft);
  font-size: 14px;
}

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

.region-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(0,0,0,0.12);
}

.region-media {
  height: 190px;
}

.region-card-content {
  padding: 18px;
}

.region-card h3 {
  max-width: 15ch;
  font-size: 21px;
}

.region-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 14px;
}

.region-meta strong {
  color: var(--sky-pale);
}

.region-card .credit-overlay {
  top: 8px;
  bottom: auto;
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--green));
}

.status-panel {
  position: relative;
  overflow: hidden;
}

.status-panel::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -65px;
  top: -70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  filter: blur(3px);
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.status-stat {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.status-stat span {
  display: block;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 800;
}

.status-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 27px);
  line-height: 1.2;
}

.condition-list,
.plain-list,
.cost-list,
.flight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.condition-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.data-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 14px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.site-footer-inner {
  padding-block: 30px 42px;
}

.site-footer p {
  max-width: 70rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.photo-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 14px;
}

.settings-dialog {
  width: min(92vw, 570px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.settings-dialog::backdrop {
  background: rgba(0, 8, 20, 0.76);
  backdrop-filter: blur(7px);
}

.settings-dialog form {
  padding: clamp(22px, 4vw, 34px);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field > span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink);
}

.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 26px;
}

/* Trip detail */
.trip-mast {
  position: relative;
  min-height: min(46vh, 500px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.trip-mast > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-mast::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 11, 27, 0.94), rgba(1, 11, 27, 0.12) 80%), linear-gradient(90deg, rgba(1,11,27,0.52), transparent 65%);
}

.trip-mast-inner {
  width: min(100%, calc(var(--page) + var(--pad) * 2));
  margin-inline: auto;
  padding: 36px var(--pad) 28px;
  color: white;
}

.trip-mast h1 {
  max-width: 18ch;
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(35px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.trip-summary-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 20px;
  align-items: end;
  margin-top: -1px;
  padding: 22px var(--pad);
  background: linear-gradient(90deg, #086fc9, #0c8bd5);
  color: white;
}

.trip-summary-bar > div:first-child {
  justify-self: end;
  width: min(100%, calc(var(--page) / 2));
}

.trip-summary-bar .price-large {
  color: white;
}

.trip-summary-bar .button {
  border-color: rgba(255,255,255,0.56);
  background: rgba(0,30,74,0.22);
  color: white;
}

.trip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.sticky-aside {
  align-self: start;
  position: sticky;
  top: 20px;
}

.route-segment {
  position: relative;
  padding: 24px;
}

.route-segment + .route-segment {
  margin-top: 14px;
}

.route-segment::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 72px;
  bottom: 35px;
  width: 2px;
  background: linear-gradient(var(--sky), color-mix(in srgb, var(--sky) 20%, transparent));
}

.segment-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.flight-point {
  position: relative;
  display: grid;
  grid-template-columns: 24px 70px 1fr;
  gap: 12px;
  align-items: start;
}

.flight-point + .flight-point {
  margin-top: 27px;
}

.flight-point::before {
  content: "";
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: 7px 0 0 5px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 2px var(--sky);
}

.flight-time {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.flight-airport strong,
.flight-airport span {
  display: block;
}

.flight-airport strong {
  font-size: 17px;
}

.flight-airport span {
  color: var(--ink-soft);
  font-size: 14px;
}

.flight-meta {
  margin: 20px 0 0 36px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.cost-list li,
.plain-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cost-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.cost-list small,
.plain-list small {
  display: block;
  color: var(--ink-faint);
}

.unknown {
  color: var(--gray);
  font-weight: 850;
}

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

.comparison-card.highlight {
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--green) 10%, var(--surface)), var(--surface));
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.date-cell {
  min-height: 72px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  font-size: 14px;
}

.date-cell strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
}

.date-cell.best {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
}

.timestamp-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
}

/* Region page */
.region-mast {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(43vh, 480px);
  overflow: hidden;
}

.region-mast > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-mast::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(1,11,27,0.95), transparent 82%), linear-gradient(90deg, rgba(1,11,27,0.65), transparent 60%);
}

.region-mast-inner {
  width: min(100%, calc(var(--page) + var(--pad) * 2));
  margin-inline: auto;
  padding: 30px var(--pad);
  color: white;
}

.region-mast h1 {
  max-width: 18ch;
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(37px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.filter-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
}

.filter-tab[aria-selected="true"] {
  border-color: var(--sky);
  background: var(--sky);
  color: #041426;
}

.region-deal-list {
  display: grid;
  gap: 14px;
}

.region-deal-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.region-deal-row img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.region-deal-main {
  min-width: 0;
  padding-block: 16px;
}

.region-deal-main h3 {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
}

.region-deal-price {
  padding: 16px 22px 16px 0;
  text-align: right;
}

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

.month-card .price-large {
  margin: 16px 0 7px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 82px;
  margin-top: 20px;
}

.bar-chart span {
  flex: 1;
  min-width: 4px;
  border-radius: 4px 4px 1px 1px;
  background: color-mix(in srgb, var(--sky) 65%, var(--surface));
}

.bar-chart span.best {
  background: var(--green);
}

/* Social cards */
.social-body {
  background: #020914;
  color: #f8fbff;
}

.social-sheet,
.short-sheet {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.social-sheet {
  display: grid;
  gap: 32px;
  padding-block: 32px;
}

.card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  background: #06172c;
  color: white;
}

.card > .card-photo,
.frame > .frame-photo {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card::after,
.frame::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(1,8,22,0.98) 0%, rgba(2,12,29,0.62) 45%, rgba(2,12,29,0.15) 75%), linear-gradient(120deg, rgba(4,44,83,0.64), transparent 55%);
}

.card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(28px, 7vw, 76px);
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d9ebfa;
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 850;
  letter-spacing: 0.1em;
}

.card-number {
  display: grid;
  place-items: center;
  width: clamp(38px, 6vw, 62px);
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  letter-spacing: 0;
}

.card-title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 8.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.card-title.small {
  font-size: clamp(38px, 7.5vw, 78px);
}

.card-subtitle {
  max-width: 28ch;
  margin: 18px 0 0;
  color: #d7e8f6;
  font-size: clamp(17px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.45;
}

.card-price {
  margin-top: 22px;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(53px, 11vw, 118px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.card-price small {
  display: block;
  margin-bottom: 12px;
  color: var(--amber-pale);
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 24px);
  letter-spacing: 0.08em;
}

.card-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 2.4vw, 24px);
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(19px, 4vw, 40px);
  font-weight: 900;
}

.card-route .route-line {
  height: 2px;
  background: rgba(255,255,255,0.6);
}

.social-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 24px);
  margin-top: clamp(18px, 4vw, 40px);
}

.social-fact {
  padding: clamp(15px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: clamp(13px, 2vw, 22px);
  background: rgba(4,20,43,0.76);
  backdrop-filter: blur(12px);
}

.social-fact span {
  display: block;
  color: #aac4d9;
  font-size: clamp(14px, 2vw, 20px);
}

.social-fact strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(19px, 3.4vw, 34px);
  line-height: 1.25;
}

.social-timeline {
  margin-top: 22px;
  padding-left: clamp(22px, 5vw, 50px);
  border-left: clamp(2px, 0.4vw, 4px) solid var(--sky);
}

.social-stop {
  position: relative;
}

.social-stop + .social-stop {
  margin-top: clamp(28px, 5vw, 54px);
}

.social-stop::before {
  content: "";
  position: absolute;
  left: calc(clamp(22px, 5vw, 50px) * -1 - clamp(8px, 1.2vw, 13px));
  top: 12px;
  width: clamp(14px, 2vw, 22px);
  height: clamp(14px, 2vw, 22px);
  border: 4px solid #06172c;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 2px var(--sky);
}

.social-stop time {
  color: var(--amber-pale);
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 900;
}

.social-stop strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(25px, 5vw, 52px);
  line-height: 1.16;
}

.social-stop p {
  margin: 6px 0 0;
  color: #bdd0df;
  font-size: clamp(14px, 2.5vw, 25px);
}

.warning-box {
  margin-top: 24px;
  padding: clamp(16px, 3.4vw, 32px);
  border: 2px solid var(--amber);
  border-radius: clamp(14px, 2vw, 22px);
  background: rgba(255,178,62,0.14);
  color: #ffe8bd;
  font-size: clamp(15px, 2.7vw, 27px);
  font-weight: 750;
}

.card-credit {
  position: absolute;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(12px, 2vw, 22px);
  color: rgba(255,255,255,0.62);
  font-size: clamp(14px, 1.25vw, 16px);
}

.cta-card::after {
  background: linear-gradient(140deg, rgba(0,80,162,0.91), rgba(3,17,41,0.94) 56%, rgba(255,157,31,0.65));
}

.cta-stack {
  display: grid;
  gap: 15px;
  margin-top: 34px;
}

.cta-line {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 18px;
  background: rgba(3,18,42,0.42);
  font-size: clamp(18px, 3.5vw, 36px);
  font-weight: 850;
}

/* Short video frames */
.short-sheet {
  display: grid;
  gap: 32px;
  padding-block: 32px;
}

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  background: #06172c;
  color: white;
}

.frame::after {
  background: linear-gradient(0deg, rgba(1,7,20,0.98) 0%, rgba(1,9,24,0.75) 28%, rgba(1,9,24,0.1) 63%), linear-gradient(135deg, rgba(0,75,155,0.36), transparent 46%);
}

.frame-top {
  position: absolute;
  top: clamp(26px, 7vw, 76px);
  left: clamp(24px, 6vw, 66px);
  right: clamp(24px, 6vw, 66px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #f2f8ff;
  font-size: clamp(14px, 2.5vw, 27px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.frame-copy {
  position: absolute;
  left: clamp(25px, 6.5vw, 70px);
  right: clamp(25px, 6.5vw, 70px);
  bottom: clamp(45px, 9vw, 100px);
}

.frame-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 10vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.frame-copy h2 em {
  color: var(--amber);
  font-style: normal;
}

.frame-copy p {
  max-width: 26ch;
  margin: clamp(16px, 3vw, 32px) 0 0;
  color: #d7e8f6;
  font-size: clamp(18px, 3.8vw, 39px);
  font-weight: 740;
  line-height: 1.45;
}

.frame-price {
  display: block;
  margin-top: clamp(18px, 4vw, 40px);
  color: white;
  font-family: var(--font-display);
  font-size: clamp(53px, 12vw, 128px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.frame .status-pill {
  margin-bottom: 17px;
  font-size: clamp(14px, 2vw, 20px);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.78); }
}

@media (min-width: 740px) {
  .header-settings-text {
    display: inline;
  }

  .header-actions .settings-button {
    width: auto;
    padding-inline: 14px;
  }
}

@media (max-width: 880px) {
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trip-layout {
    grid-template-columns: 1fr;
  }

  .sticky-aside {
    position: static;
  }

  .trip-summary-bar {
    grid-template-columns: 1fr 1fr;
  }

  .trip-summary-bar > div:first-child {
    justify-self: stretch;
  }

  .trip-summary-bar .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 62px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
  }

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

  .deal-hero {
    height: min(48vh, 520px);
  }

  .hero-inner {
    padding-bottom: 16px;
  }

  .hero-deal {
    border-radius: 22px;
  }

  .hero-deal h1 {
    font-size: clamp(27px, 8vw, 35px);
  }

  .hero-metrics {
    gap: 12px;
  }

  .hero-price {
    font-size: clamp(28px, 9vw, 36px);
  }

  .hero-date {
    font-size: 14px;
  }

  .alert-line {
    margin-top: 11px;
    padding-block: 7px;
  }

  .lead-grid,
  .compare-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .region-grid {
    grid-template-columns: 1fr;
  }

  .region-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .region-media {
    height: 100%;
    min-height: 210px;
  }

  .region-card-content {
    padding: 15px;
  }

  .region-card h3 {
    font-size: 18px;
  }

  .region-meta {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .status-grid {
    gap: 9px;
  }

  .status-stat {
    padding: 12px;
  }

  .trip-summary-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trip-summary-bar .button {
    grid-column: auto;
  }

  .flight-point {
    grid-template-columns: 20px 62px 1fr;
    gap: 8px;
  }

  .route-segment::before {
    left: 31px;
  }

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

  .region-deal-row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  .region-deal-row img {
    height: 100%;
    min-height: 172px;
  }

  .region-deal-main {
    padding: 14px 12px 6px 0;
  }

  .region-deal-main h3 {
    font-size: 18px;
  }

  .region-deal-price {
    grid-column: 2;
    padding: 0 12px 14px 0;
    text-align: left;
  }

  .month-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .place-grid {
    grid-template-columns: 1fr !important;
  }

  .social-sheet,
  .short-sheet {
    gap: 12px;
    padding-block: 0;
  }
}

@media (max-height: 720px) and (max-width: 650px) {
  .hero-inner {
    padding-block: 8px;
  }

  .hero-deal {
    padding: 12px 16px;
  }

  .hero-deal h1 {
    margin-block: 2px;
    font-size: 26px;
  }

  .hero-metrics {
    gap: 8px;
    margin-top: 7px;
    padding-top: 7px;
  }

  .hero-price {
    font-size: 29px;
  }

  .alert-line {
    margin-top: 6px;
    padding-block: 5px;
  }
}

@media (max-width: 390px) {
  .hero-deal-top .eyebrow {
    font-size: 14px;
  }

  .hero-route {
    font-size: 14px;
  }

  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .region-card {
    grid-template-columns: 38% 62%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
