:root {
  --bg: #f3f4f1;
  --panel: #ffffff;
  --ink: #111315;
  --muted: #6e746f;
  --line: #d6d8d2;
  --blue: #1e3448;
  --green: #4d6758;
  --accent: #9a7a43;
  --accent-soft: #f3eee4;
  --amber: #94702f;
  --red: #9b342b;
  --low: #e5efe8;
  --mid: #f4ead4;
  --high: #f1ded9;
  --shadow: 0 14px 34px rgba(17, 19, 21, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f7f4 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.panel,
.section-block,
.progress-card,
.flight-card,
.hotel-card,
.summary-card,
.addon-card,
.debug-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 64px;
  box-shadow: 0 12px 28px rgba(17, 19, 21, 0.16);
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
}

.brand-subtitle,
label span,
.dim,
.section-heading > p,
.empty-state p,
.trust-strip span {
  color: var(--muted);
}

.search-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="date"],
input:not([type]),
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fbfcfb;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 52, 72, 0.11);
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.switch-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.switch-row input {
  width: 20px;
  height: 20px;
}

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

.switch-row small {
  margin-top: 2px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  color: white;
  background: linear-gradient(180deg, #263d52, #172838);
}

.secondary-button,
.ghost-button {
  width: 100%;
  color: var(--blue);
  background: #f4f5f3;
  border: 1px solid #cfd5d0;
}

.ghost-button {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.trust-strip div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  line-height: 1.3;
}

.route-summary {
  margin-top: 14px;
}

.route-summary-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #bfae8f;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(154, 122, 67, 0.08), rgba(255, 255, 255, 0) 38%),
    #fff;
  box-shadow: 0 18px 42px rgba(17, 19, 21, 0.08);
}

.route-summary-top strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-chips span {
  padding: 5px 8px;
  border: 1px solid #d6cdbb;
  border-radius: 999px;
  color: #344054;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.route-summary-lines {
  display: grid;
  gap: 8px;
}

.route-summary-lines div,
.route-summary-total {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.route-summary-lines span,
.route-summary-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-summary-lines strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}

.route-summary-total strong {
  color: var(--accent);
  font-size: 26px;
  line-height: 1.05;
}

.route-summary-total small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.summary-cta {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: white;
  border-radius: 8px;
  background: linear-gradient(180deg, #263d52, #172838);
  font-weight: 900;
  text-decoration: none;
}

.content {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.tg-link {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.status {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.status.error {
  border-color: #fecdca;
  background: #fff5f5;
  color: var(--red);
}

.hidden {
  display: none;
}

.result-shell {
  display: grid;
  gap: 18px;
}

.deals-shell {
  margin-bottom: 18px;
}

.deals-section {
  border-top: 4px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(154, 122, 67, 0.07), transparent 44%),
    rgba(255, 255, 255, 0.95);
}

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

.deal-card {
  display: grid;
  gap: 10px;
  min-height: 184px;
  padding: 16px;
  border: 1px solid #d5cbb8;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 19, 21, 0.05);
  cursor: pointer;
}

.deal-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.deal-topline,
.deal-meta,
.deal-airline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deal-topline span {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.deal-topline strong {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #263d52;
  background: #edf1ed;
  font-size: 12px;
}

.deal-price {
  color: var(--accent);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.deal-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.deal-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
}

.deal-airline {
  justify-content: flex-start;
}

.deal-airline img,
.deal-airline > span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #f5f6f4;
}

.deal-airline small,
.deal-baseline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.deal-baseline {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.progress-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.progress-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.progress-step:disabled {
  cursor: default;
  opacity: 0.52;
}

.progress-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: var(--muted);
  background: #edf1ed;
  font-weight: 900;
}

.progress-step strong,
.progress-step small {
  display: block;
}

.progress-step small {
  color: var(--muted);
  line-height: 1.25;
}

.progress-step.active {
  border-color: #cfc9ba;
  background: var(--accent-soft);
}

.progress-step.active span,
.progress-step.done span {
  color: white;
  background: var(--blue);
}

.progress-step.done {
  border-color: #c8d4ca;
  background: #f4f8f5;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 0 2px;
}

.step-actions .primary-button,
.step-actions .secondary-button {
  width: min(360px, 100%);
}

.direction-section {
  background:
    linear-gradient(135deg, rgba(30, 52, 72, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.95);
}

.step-intro {
  min-height: 260px;
}

.empty-state {
  min-height: 420px;
  display: grid;
  align-content: center;
  padding: 38px;
  border: 1px dashed #cfd8ca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.trip-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.trip-facts div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.trip-facts strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.trip-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.empty-kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
}

.section-block {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 0;
  justify-self: end;
  padding-top: 28px;
  font-size: 14px;
  line-height: 1.35;
}

.flight-section,
.hotel-section,
.summary-section,
.addon-section {
  border-top-width: 4px;
}

.flight-section {
  border-top-color: var(--blue);
}

.hotel-section {
  border-top-color: var(--green);
}

.summary-section {
  border-top-color: var(--accent);
}

.addon-section {
  border-top-color: #263d52;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.info-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #d7d0c1;
  border-radius: 999px;
  color: #2d3540;
  background: #faf8f2;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.matrix-section {
  background:
    linear-gradient(135deg, rgba(30, 52, 72, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.95);
}

.matrix-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 12px;
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.matrix-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.legend-dot.low {
  background: var(--low);
}

.legend-dot.mid {
  background: var(--mid);
}

.legend-dot.high {
  background: var(--high);
}

.legend-dot.estimated {
  border-style: dashed;
}

.matrix {
  overflow-x: auto;
  padding-bottom: 4px;
}

.matrix-table {
  display: grid;
  min-width: 680px;
  gap: 8px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 88px repeat(7, minmax(86px, 1fr));
  gap: 8px;
}

.matrix-head,
.matrix-date {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.matrix-cell {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.matrix-cell strong,
.matrix-cell small {
  display: block;
}

.matrix-cell small {
  min-height: 16px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.matrix-cell.low {
  background: var(--low);
}

.matrix-cell.mid {
  background: var(--mid);
}

.matrix-cell.high {
  background: var(--high);
}

.matrix-cell.selected {
  outline: 3px solid rgba(154, 122, 67, 0.22);
  border-color: var(--blue);
}

.matrix-cell.best {
  border-color: #b69a62;
  box-shadow: inset 0 0 0 1px rgba(154, 122, 67, 0.2);
}

.matrix-cell.estimated {
  border-style: dashed;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.hotels-grid {
  align-items: start;
}

.flight-card,
.hotel-card,
.summary-card,
.addon-card,
.debug-card {
  padding: 18px;
}

.flight-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.compact-flight {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.flight-mainline {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.airline-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.flight-pricebox {
  text-align: right;
}

.price {
  font-size: 24px;
  font-weight: 900;
}

.price-note {
  max-width: 210px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.kv {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) 1fr;
  gap: 9px 14px;
}

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

.flight-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.flight-details summary {
  width: fit-content;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.flight-details .kv {
  margin-top: 12px;
}

.flight-link-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.hotel-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  border-radius: 8px;
  background: #edf1ed;
}

.hotel-image-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(154, 122, 67, 0.12), transparent 55%),
    #eef3f1;
}

.hotel-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 14px;
  position: relative;
  background:
    linear-gradient(180deg, #ffffff, #fbfaf6);
}

.selected-hotel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(17, 19, 21, 0.16);
}

.hotel-card-body {
  display: grid;
  grid-template-rows: minmax(108px, auto) minmax(36px, auto) auto auto;
  gap: 12px;
}

.hotel-card-head h3 {
  min-height: 58px;
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.18;
}

.hotel-provider-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.hotel-provider-row span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #ded6c7;
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hotel-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(154, 122, 67, 0.18), var(--shadow);
}

.hotel-facts,
.hotel-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px 12px;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.hotel-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hotel-facts span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #c8c0b1;
}

.hotel-badges span {
  padding: 6px 9px;
  border: 1px solid #ded6c7;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.hotel-price {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(154, 122, 67, 0.09), transparent 60%),
    #fbfcfb;
}

.hotel-card .ghost-button {
  align-self: end;
}

.hotel-status-card {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d6cdbb;
  border-radius: 8px;
  background: var(--accent-soft);
}

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

.hotel-status-card span {
  color: var(--muted);
  line-height: 1.45;
}

.hotel-price span,
.hotel-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hotel-price strong {
  font-size: 24px;
  line-height: 1.1;
}

.summary-total-hero {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #d6c8ab;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(154, 122, 67, 0.14), transparent 55%),
    var(--accent-soft);
}

.summary-total-hero span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.summary-total-hero strong {
  color: var(--accent);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.sales-section {
  border-top-width: 4px;
  border-top-color: var(--accent);
}

.sales-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

.sales-share,
.lead-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.share-row input {
  color: var(--muted);
  font-size: 13px;
}

.lead-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.65fr);
  gap: 10px;
}

.tg-action {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.lead-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c8d4ca;
  border-radius: 8px;
  color: var(--green);
  background: #eef6f0;
  font-size: 13px;
  font-weight: 800;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  margin-top: 6px;
  font-size: 22px;
}

.addon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #cfc9ba;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7f5ef);
}

.addon-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 18px;
  align-items: center;
}

.addon-teaser-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #cfc9ba;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(154, 122, 67, 0.1), transparent 60%),
    #fff;
}

.addon-teaser-card span,
.addon-teaser-card small {
  color: var(--muted);
  font-weight: 800;
}

.addon-teaser-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.addon-hero-main {
  display: grid;
  align-content: center;
  gap: 8px;
}

.addon-hero-main h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.addon-hero-main h3 span {
  color: var(--muted);
}

.addon-hero-main p {
  max-width: 760px;
  color: #344054;
  line-height: 1.45;
}

.addon-hero-price {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid #d6cdbb;
  border-radius: 8px;
  background: white;
}

.addon-hero-price span,
.addon-hero-price small {
  color: var(--muted);
  font-weight: 800;
}

.addon-hero-price strong {
  color: var(--accent);
  font-size: 30px;
  line-height: 1.05;
}

.addon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
}

.addon-panel,
.addon-alternatives {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.price-details {
  border: 1px solid #d6cdbb;
  border-radius: 8px;
  background: #fff;
}

.price-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.price-details summary::-webkit-details-marker {
  display: none;
}

.price-details summary strong {
  color: var(--accent);
  font-size: 18px;
}

.price-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.price-details .addon-cost-grid {
  padding: 12px;
}

.panel-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.addon-cost-grid {
  display: grid;
  gap: 10px;
}

.addon-cost-grid > div,
.scenario-costs > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.addon-cost-grid span,
.scenario-costs span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.addon-cost-grid strong,
.scenario-costs strong {
  font-size: 20px;
  line-height: 1.15;
}

.addon-cost-grid small,
.scenario-costs small {
  color: #344054;
  line-height: 1.35;
}

.addon-cost-grid .delta {
  border-color: #d6c8ab;
  background: var(--accent-soft);
}

.addon-cost-grid .delta strong {
  color: var(--accent);
  font-size: 24px;
}

.addon-action {
  margin-top: 12px;
}

.route-toggle-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(180deg, #263d52, #172838);
  border-color: transparent;
}

.route-toggle-button span:last-child {
  color: #f2d99b;
}

.addon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.addon-option-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.addon-option-card:hover,
.addon-option-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(154, 122, 67, 0.11);
}

.addon-option-card:hover {
  transform: translateY(-1px);
}

.addon-option-card.selected {
  background: var(--accent-soft);
}

.addon-option-card h3 {
  margin: 0 0 8px;
  line-height: 1.12;
}

.mini-route {
  display: grid;
  gap: 4px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.mini-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mini-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-price strong {
  color: var(--accent);
  font-size: 20px;
}

.flight-chain {
  display: grid;
  gap: 10px;
}

.flight-leg {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(150px, 0.45fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.round-trip-leg {
  border-color: #cfc2a8;
  background:
    linear-gradient(135deg, rgba(154, 122, 67, 0.11), transparent 58%),
    #fff;
}

.leg-airline-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f1;
}

.leg-main,
.leg-transfer {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leg-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.leg-title-row span {
  padding: 3px 7px;
  border: 1px solid #cfc2a8;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 950;
}

.leg-main b {
  color: var(--ink);
}

.leg-main span,
.leg-main small,
.leg-transfer span {
  color: var(--muted);
  line-height: 1.3;
}

.leg-main small,
.leg-transfer span {
  font-size: 12px;
}

.leg-transfer {
  justify-items: end;
  text-align: right;
}

.leg-transfer em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #e7f6ef;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.leg-link {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 9px;
  border: 1px solid #cfd5d0;
  border-radius: 8px;
  color: var(--blue);
  background: #f4f5f3;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visa-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.visa-badge.ok {
  color: #365f48;
  background: #eef6f0;
}

.visa-badge.warn {
  color: var(--red);
  background: #f8eeee;
}

.full-itinerary {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #27323a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(30, 52, 72, 0.04), transparent 42%),
    #fff;
}

.itinerary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.itinerary-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.itinerary-column h4 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.itinerary-pricing {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.itinerary-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.itinerary-price-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.itinerary-price-grid span,
.itinerary-price-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.itinerary-price-grid strong {
  font-size: 22px;
  line-height: 1.1;
}

.itinerary-price-grid .total {
  border-color: #d6c8ab;
  background: var(--accent-soft);
}

.itinerary-price-grid .total strong,
.itinerary-price-grid .delta strong,
.itinerary-price-grid .saving strong {
  color: var(--accent);
}

.itinerary-price-grid .saving {
  border-color: #c8d4ca;
  background: #eef6f0;
}

.stay-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.stay-card img,
.stay-image,
.stay-image-placeholder {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3f1;
}

.stay-card div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stay-card span,
.stay-card small {
  color: var(--muted);
  line-height: 1.35;
}

.route-text {
  color: #344054;
  line-height: 1.5;
}

.route-plan {
  display: grid;
  gap: 10px;
}

.route-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.route-date {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 8px;
  color: #101828;
  border: 1px solid #d0d5dd;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.stay-step .route-date {
  color: #365f48;
  border-color: #c8d4ca;
  background: #eef6f0;
}

.route-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-copy strong {
  font-size: 14px;
}

.route-copy span {
  color: #344054;
  line-height: 1.35;
}

.route-copy em {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green);
  background: #e7f6ef;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.scenario-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.scenario-card.base {
  background: #f7f9ff;
}

.scenario-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.scenario-top h3 {
  margin: 0;
  font-size: 20px;
}

.scenario-total {
  display: grid;
  gap: 3px;
  min-width: 150px;
  text-align: right;
}

.scenario-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scenario-total strong {
  color: var(--blue);
  font-size: 24px;
}

.scenario-costs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.scenario-hotel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d6cdbb;
  border-radius: 8px;
  background: var(--accent-soft);
}

.scenario-hotel img,
.scenario-hotel .stay-image,
.scenario-hotel .stay-image-placeholder {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3f1;
}

.scenario-hotel div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.scenario-hotel span,
.scenario-hotel small {
  color: var(--muted);
  line-height: 1.35;
}

.scenario-hotel span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scenario-hotel strong {
  overflow-wrap: anywhere;
}

.scenario-note {
  margin: 0;
  color: #344054;
  line-height: 1.45;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 190px;
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  margin-top: 16px;
}

.loading-steps span {
  height: 6px;
  border-radius: 999px;
  background: #d6cdbb;
  animation: loadingStep 1.2s ease-in-out infinite;
}

.loading-steps span:nth-child(2) {
  animation-delay: 0.16s;
}

.loading-steps span:nth-child(3) {
  animation-delay: 0.32s;
}

.skeleton-lines {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 18px;
}

.skeleton-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eceee9, #f8f8f4, #eceee9);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-lines span:nth-child(2) {
  width: 78%;
}

.skeleton-lines span:nth-child(3) {
  width: 56%;
}

@keyframes loadingStep {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.loader-orbit {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: 1px solid #d6cdbb;
  border-radius: 50%;
}

.loader-orbit::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.12;
}

.loader-orbit span {
  position: absolute;
  top: 27px;
  left: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transform-origin: 4px 4px;
  animation: orbit 1.25s linear infinite;
}

.loader-orbit span:first-child {
  transform: rotate(0deg) translateX(24px);
}

.loader-orbit span:last-child {
  background: var(--green);
  animation-delay: -0.45s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(24px);
  }
  to {
    transform: rotate(360deg) translateX(24px);
  }
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.debug-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.debug-table th,
.debug-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.debug-table th {
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 980px) {
  .shell {
    padding: 14px;
  }

  .workspace,
  .progress-card,
  .cards-grid,
  .summary-grid,
  .sales-grid,
  .base-itinerary,
  .addon-teaser,
  .addon-hero,
  .addon-layout,
  .addon-picker,
  .deals-grid,
  .itinerary-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
  }

  .topbar,
  .section-heading,
  .flight-card,
  .flight-mainline,
  .flight-leg {
    display: grid;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    justify-self: start;
    padding-top: 0;
  }

  .flight-mainline {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .flight-pricebox {
    grid-column: 1 / -1;
    text-align: left;
  }

  .flight-leg {
    grid-template-columns: 42px 1fr;
  }

  .leg-transfer {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .addon-hero-main h3 {
    font-size: 24px;
  }

  .scenario-top {
    display: grid;
  }

  .share-row,
  .lead-actions {
    grid-template-columns: 1fr;
  }

  .scenario-total {
    min-width: 0;
    text-align: left;
  }

  .wizard-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
  }

  .wizard-nav .progress-step {
    min-width: 190px;
    scroll-snap-align: start;
  }

  .step-actions {
    justify-content: stretch;
  }

  .step-actions .primary-button,
  .step-actions .secondary-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    background: #f5f7f3;
  }

  .shell {
    padding: 10px;
  }

  .workspace {
    gap: 12px;
  }

  .search-panel,
  .section-block,
  .progress-card,
  .flight-card,
  .hotel-card,
  .summary-card,
  .debug-card {
    padding: 14px;
  }

  .brand {
    margin-bottom: 18px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .search-form {
    gap: 12px;
  }

  .progress-card {
    gap: 8px;
  }

  .wizard-nav .progress-step {
    min-width: 168px;
  }

  .deals-section {
    padding: 14px;
  }

  .deal-card {
    min-height: 0;
    padding: 14px;
  }

  .deal-price {
    font-size: 26px;
  }

  .progress-step {
    grid-template-columns: 30px 1fr;
    padding: 10px;
  }

  .progress-step span {
    width: 30px;
    height: 30px;
  }

  .progress-step small {
    font-size: 12px;
  }

  .section-heading {
    gap: 8px;
  }

  .info-chips {
    gap: 6px;
  }

  .info-chips span {
    min-height: 24px;
    font-size: 11px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  h3 {
    font-size: 17px;
  }

  .matrix-table {
    min-width: 720px;
  }

  .matrix-row {
    grid-template-columns: 72px repeat(7, minmax(86px, 1fr));
  }

  .matrix-cell {
    min-height: 58px;
    padding: 6px;
  }

  .flight-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .flight-card > div:last-child {
    grid-column: 1 / -1;
  }

  .airline-logo {
    width: 48px;
    height: 48px;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .kv .dim {
    margin-top: 6px;
  }

  .summary-grid,
  .scenario-costs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric,
  .addon-cost-grid > div,
  .scenario-costs > div {
    padding: 10px;
  }

  .metric strong,
  .addon-cost-grid strong,
  .scenario-costs strong {
    font-size: 18px;
  }

  .addon-teaser-card,
  .addon-option-card,
  .addon-panel,
  .addon-alternatives,
  .sales-share,
  .lead-form,
  .full-itinerary,
  .scenario-card {
    padding: 12px;
  }

  .addon-hero {
    padding: 14px;
  }

  .addon-hero-main h3 {
    font-size: 22px;
  }

  .addon-hero-price strong {
    font-size: 26px;
  }

  .route-step {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .route-date {
    min-height: 32px;
    font-size: 12px;
  }

  .flight-leg {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .leg-airline-logo {
    width: 36px;
    height: 36px;
  }

  .leg-transfer {
    grid-column: 1 / -1;
    justify-items: start;
    padding-left: 46px;
    text-align: left;
  }

  .stay-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 10px;
  }

  .stay-card img,
  .stay-image,
  .stay-image-placeholder {
    width: 58px;
    height: 52px;
  }

  .scenario-hotel {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 10px;
  }

  .scenario-hotel img,
  .scenario-hotel .stay-image,
  .scenario-hotel .stay-image-placeholder {
    width: 62px;
    height: 52px;
  }
}

@media (max-width: 420px) {
  .summary-grid,
  .scenario-costs,
  .trip-facts {
    grid-template-columns: 1fr;
  }

  .primary-button {
    gap: 10px;
  }
}
