/* ── BOOKING WIDGETS ────────────────────────────────────────
   Pricing table · Flights · Room type · Board type · Summary
   Adapted for the redesign design system (--purple, --green-booking, etc.)
──────────────────────────────────────────────────────────── */

/* ── SECTION WRAPPER ──────────────────────────────────────── */
.bw-step {
  margin-bottom: 36px;
}
.bw-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 6px;
}
.bw-step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.bw-step-title em { font-style: italic; }

/* ── PRICING TABLE ────────────────────────────────────────── */
.bw-months-wrap {
  background: var(--bg-secondary, #f6f4ef);
  border-radius: var(--radius);
  padding: 14px 12px 10px;
  margin-bottom: 18px;
}
.bw-months-header {
  display: flex;
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bw-months-header::-webkit-scrollbar { display: none; }

.bw-month-col {
  flex: 1 0 0;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 4px 2px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.bw-month-col.unavailable { cursor: default; }
.bw-month-col:not(.unavailable):hover { background: rgba(255,255,255,0.6); }

.bw-month-year,
.bw-month-year-spacer {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  align-self: flex-start;
  height: 16px;
  margin-bottom: 12px;
}
.bw-month-year-spacer { visibility: hidden; }

.bw-month-bar-area {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 6px;
  padding-top: 20px;
}
.bw-month-bar {
  width: 100%;
  max-width: 64px;
  background: var(--green-booking, #2ec47a);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: background 0.15s;
}
.bw-month-bar-price {
  position: absolute;
  top: -18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.bw-month-col.unavailable .bw-month-bar {
  background: #cfcfcf;
}
.bw-month-col.active .bw-month-bar {
  background: var(--purple);
}
.bw-month-name {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
}
.bw-month-col.active .bw-month-name {
  background: var(--purple);
  color: #fff;
}

.bw-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.bw-pricing-table {
  width: max-content;
  border-collapse: collapse;
  font-size: 12px;
  background: transparent;
  table-layout: auto;
  color: #6b6b6b;
}
.bw-pricing-table th,
.bw-pricing-table td { min-width: 52px; }
.bw-pricing-table thead th.bw-pt-corner,
.bw-pricing-table tbody th { min-width: 90px; position: sticky; left: 0; background: #fff; z-index: 2; }
.bw-pricing-table tbody tr:nth-child(odd) th { background: #fbfaf7; }

/* Month label row */
.bw-month-label-row th { background: #fff; }
.bw-month-label-th {
  text-align: left;
  padding: 6px 8px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  border-left: 2px solid var(--border);
}
.bw-month-label-th:first-of-type { border-left: none; }

.bw-pricing-table th,
.bw-pricing-table td {
  padding: 0;
  white-space: nowrap;
  border: none;
}

.bw-pricing-table thead th {
  background: #fff;
  color: var(--text-muted);
  font-weight: 400;
  text-align: center;
  padding: 4px 6px 10px;
  vertical-align: bottom;
}
.bw-pricing-table thead th.bw-pt-corner {
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding-left: 4px;
  width: 80px;
  position: sticky;
  left: 0;
  background: var(--bg-card, #fff);
  z-index: 3;
}
.bw-pricing-table thead th .bw-th-date {
  font-size: 11px;
  font-weight: 400;
  color: #6b6b6b;
  display: block;
  line-height: 1.3;
}
.bw-pricing-table thead th .bw-th-day {
  font-size: 10px;
  color: #9a9a9a;
  display: block;
  line-height: 1.2;
}

.bw-pricing-table tbody th {
  text-align: left;
  padding: 8px 4px;
  font-weight: 400;
  font-size: 12px;
  color: #6b6b6b;
  width: 80px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-card, #fff);
}

.bw-pricing-table tbody tr:nth-child(odd) td { background: #fbfaf7; }
.bw-pricing-table tbody tr:nth-child(odd) th { background: #fbfaf7; }

/* Row + column highlight when a cell is selected.
   Specificity bumped above the :nth-child(odd) zebra rule. */
.bw-pricing-table tbody tr.bw-row-active td,
.bw-pricing-table tbody tr.bw-row-active th,
.bw-pricing-table tbody tr:nth-child(odd).bw-row-active td,
.bw-pricing-table tbody tr:nth-child(odd).bw-row-active th {
  background: #f5f1fb;
}
.bw-pricing-table thead th.bw-col-active,
.bw-pricing-table tbody tr td.bw-col-active,
.bw-pricing-table tbody tr:nth-child(odd) td.bw-col-active {
  background: #f5f1fb;
}
.bw-pricing-table tbody tr.bw-row-active td.bw-col-active,
.bw-pricing-table tbody tr:nth-child(odd).bw-row-active td.bw-col-active {
  background: #ebe3f7;
}

/* Selected cell wins over row/column highlight */
.bw-pricing-table tbody tr td.selected,
.bw-pricing-table tbody tr.bw-row-active td.selected {
  background: var(--purple);
  color: #fff;
}
.bw-pricing-table tbody tr td.selected .bw-price-pp,
.bw-pricing-table tbody tr.bw-row-active td.selected .bw-price-pp {
  color: #fff;
}

.bw-pricing-table td {
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  color: #6b6b6b;
  transition: background 0.1s, color 0.1s;
  font-variant-numeric: tabular-nums;
}
.bw-pricing-table td:empty { cursor: default; }
.bw-pricing-table td .bw-price-pp {
  font-weight: 400;
  color: #6b6b6b;
}
.bw-pricing-table td:not(:empty):hover {
  background: var(--purple-pale);
}
.bw-pricing-table td.selected {
  background: var(--purple);
  color: #fff;
}
.bw-pricing-table td.selected .bw-price-pp {
  color: #fff;
}
.bw-pricing-table td.bw-cheapest .bw-price-pp {
  color: var(--text-primary);
  font-weight: 500;
}

.bw-scroll-btns {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
}
.bw-scroll-btn {
  background: var(--purple);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.12s, transform 0.12s;
}
.bw-scroll-btn:hover { opacity: 0.92; }
.bw-scroll-btn:active { transform: translateY(1px); }

.bw-price-pp-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}
.bw-pricing-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.bw-pricing-legend__swatch {
  display: inline-block;
  width: 12px; height: 12px;
  background: #f0fff7;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ── FLIGHTS ──────────────────────────────────────────────── */
.bw-flight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.bw-flight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.12s, box-shadow 0.12s;
  user-select: none;
}
.bw-flight-card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 2px 12px rgba(61,31,140,0.08);
}
.bw-flight-card.selected {
  border-color: var(--purple);
  box-shadow: 0 2px 16px rgba(61,31,140,0.14);
}

.bw-flight-price-bar {
  background: var(--bg-secondary);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.bw-flight-card.selected .bw-flight-price-bar {
  background: var(--purple);
  border-bottom-color: transparent;
}
.bw-flight-price-tag {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.bw-flight-card.selected .bw-flight-price-tag {
  color: #fff;
}
.bw-flight-price-note {
  font-size: 11px;
  color: var(--text-muted);
}
.bw-flight-card.selected .bw-flight-price-note {
  color: rgba(255,255,255,0.75);
}

.bw-flight-legs {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  padding: 14px 16px;
  gap: 0;
  align-items: stretch;
}
.bw-flight-divider {
  position: relative;
  align-self: stretch;
  justify-self: center;
  width: 1px;
  background: var(--border-strong);
}
.bw-flight-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  transform: translate(-50%, -50%);
}
.bw-flight-divider::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--purple-light);
  line-height: 1;
}
.bw-flight-card.selected .bw-flight-divider { background: var(--purple-pale); }
.bw-flight-leg {
  padding: 0 8px;
}
.bw-flight-leg-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bw-flight-leg-label svg {
  color: var(--purple-light);
}
.bw-flight-route {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.bw-flight-route-names {
  display: flex;
  justify-content: space-between;
}
.bw-flight-route-times {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.bw-flight-route-times .bw-flight-arrow {
  margin-top: 3px;
}
.bw-flight-airport {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.bw-flight-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.bw-flight-arrdate {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bw-flight-time {
  font-size: 13px;
  color: var(--text-muted);
}
.bw-flight-arrow {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bw-flight-arrow-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.bw-flight-arrow-head {
  color: var(--text-muted);
}
.bw-flight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.bw-flight-direct {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2px 8px;
  color: var(--text-secondary);
}
.bw-flight-duration {
  color: var(--text-muted);
}
.bw-flight-airline {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bw-airline-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 18px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bw-airline-logo--transavia { background: #00ad9f; color: #fff; border-color: #00ad9f; }
.bw-airline-logo--klm { background: #00a1de; color: #fff; border-color: #00a1de; }
.bw-airline-logo--ryanair { background: #073590; color: #f1c933; border-color: #073590; }

.bw-show-more {
  text-align: center;
  padding: 8px 0 0;
}
.bw-show-more-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.12s, color 0.12s;
}
.bw-show-more-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ── ROOM TYPE GRID ───────────────────────────────────────── */
.bw-room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bw-room-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.12s, box-shadow 0.12s;
  user-select: none;
  display: flex;
  flex-direction: column;
}
.bw-room-card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 2px 12px rgba(61,31,140,0.08);
}
.bw-room-card.selected {
  border-color: var(--purple);
  box-shadow: 0 2px 16px rgba(61,31,140,0.14);
}

.bw-room-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bw-room-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.bw-room-pax {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bw-room-pax svg { color: var(--text-muted); }
.bw-room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.bw-room-feature {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.bw-room-feature svg { color: var(--green-booking); }
.bw-room-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.bw-room-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.bw-room-price.included {
  color: var(--green-booking);
}

.bw-board-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.bw-board-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.bw-board-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.bw-board-option:last-child { border-bottom: none; }
.bw-board-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  margin: 0;
}
.bw-board-label input[type="radio"] {
  accent-color: var(--purple);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.bw-room-card:not(.selected) .bw-board-label input[type="radio"] {
  display: none;
}
.bw-board-price {
  font-size: 12px;
  color: var(--text-muted);
}
.bw-board-price.included { color: var(--green-booking); }

/* ── SUMMARY ──────────────────────────────────────────────── */
.bw-summary-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bw-summary-hotel {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.bw-summary-hotel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.bw-summary-hotel-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.bw-summary-stars {
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
}
.bw-summary-dates {
  font-size: 13px;
  color: var(--text-muted);
}

.bw-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.bw-summary-col {
  padding: 16px 20px;
}
.bw-summary-col:first-child {
  border-right: 1px solid var(--border);
}
.bw-summary-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4px;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.bw-summary-row:last-child { border-bottom: none; }
.bw-summary-row:nth-child(even) {
  background: var(--bg-secondary);
  margin: 0 -20px;
  padding: 5px 20px;
}
.bw-summary-key {
  color: var(--text-muted);
  font-size: 12px;
}
.bw-summary-val {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.bw-price-rows {
  padding: 0;
}
.bw-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.bw-price-row:last-child { border-bottom: none; }
.bw-price-row-label { color: var(--text-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.bw-price-row-val { font-weight: 500; color: var(--text-primary); }
.bw-price-row-val.discount { color: var(--green-booking); }
.bw-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.bw-price-row--package { background: var(--bg-secondary); margin: 0 -20px 4px; padding: 8px 20px; cursor: pointer; user-select: none; }
.bw-price-row--package .bw-price-row-label { color: var(--text-primary); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.bw-price-expand-icon { display: inline-flex; align-items: center; color: var(--purple); transition: transform 0.2s; }
.bw-price-expand-icon.open { transform: rotate(180deg); }
.bw-price-breakdown { background: var(--bg-secondary); margin: -4px -20px 4px; padding: 2px 20px 8px; }
.bw-price-row--sub { padding: 3px 0; background: none; border-bottom: none; }
.bw-price-row--sub .bw-price-row-label,
.bw-price-row--sub .bw-price-row-val { color: var(--text-muted); font-size: 12px; }
.bw-price-row--fee .bw-price-row-label,
.bw-price-row--fee .bw-price-row-val { color: var(--text-primary); font-size: 12px; }
.bw-price-row--total { margin-top: 4px; padding-top: 8px; background: none; }
.bw-price-row--total .bw-price-row-label,
.bw-price-row--total .bw-price-row-val { color: var(--text-primary); font-size: 14px; }
.bw-total-amount { font-size: 16px; font-weight: 700; }
.bw-deposit-note {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.bw-price-calc { font-weight: 500; }

.bw-summary-total {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.bw-total-label {
  font-size: 13px;
  color: var(--text-muted);
}
.bw-total-tag {
  position: relative;
  padding: 6px 28px 6px 14px;
  background: var(--green-booking);
  border-radius: 4px 0 0 4px;
  margin-right: 16px;
}
.bw-total-tag::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 12px solid var(--green-booking);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}
.bw-total-tag label {
  display: block;
  font-size: 11px;
  color: #032517;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1px;
}
.bw-total-amount {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: #032517;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.bw-total-deposit {
  font-size: 12px;
  color: var(--text-muted);
}
.bw-total-deposit span {
  color: var(--green-booking);
  font-weight: 500;
}

.bw-summary-cta {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bw-book-btn {
  width: 100%;
  padding: 15px;
  background: var(--green-booking);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.bw-book-btn:hover { background: var(--green-booking-dark); }
.bw-book-btn svg { flex-shrink: 0; }
.bw-book-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bw-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}
.bw-trust-item svg { color: var(--green-booking); flex-shrink: 0; }

/* ── STEP CONNECTOR ───────────────────────────────────────── */
.bw-steps-wrap {
  position: relative;
}
.bw-step-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── ENGINE STATES & FILTER BAR (Phase 4b) ───────────────── */
.bw-hidden { display: none !important; }

.bw-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 28px;
}
.bw-filter-field { min-width: 150px; flex: 1 1 150px; }
.bw-filter-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 5px;
}
.bw-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}
.bw-select:focus { outline: none; border-color: var(--purple); }
.bw-reset-btn {
  background: none;
  border: none;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.bw-reset-btn:hover { color: var(--purple); }

.bw-airport-dropdown { position: relative; }
.bw-airport-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.bw-airport-trigger svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.15s; }
.bw-airport-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.bw-airport-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  max-height: 260px;
  overflow-y: auto;
}
.bw-airport-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  margin: 0;
}
.bw-airport-option:hover { background: var(--bg-secondary); }
.bw-airport-option input { cursor: pointer; accent-color: var(--purple); flex-shrink: 0; }

.bw-table-area { position: relative; min-height: 120px; }
/* The `hidden` attribute must win over these display rules — an author
   `display` declaration otherwise overrides the UA `[hidden]{display:none}`,
   which left the spinner + "no results" cover permanently painted over the
   table even when packages loaded fine. */
.bw-loading[hidden],
.bw-refresh-cover[hidden] { display: none !important; }
.bw-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  z-index: 5;
  border-radius: var(--radius-sm);
}
.bw-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--purple-pale);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: bw-spin 0.8s linear infinite;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }

.bw-refresh-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  text-align: center;
}
.bw-refresh-cover p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

/* Summary quirks for the legacy populateSummary() output */
.bw-price-row-val.price span,
.bw-price-row-val.price-hotel span,
.bw-price-row-val.price-flight span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 11px;
  margin-right: 8px;
}
.bw-price-row--bonus { border-bottom: none; padding: 0; }
.bw-price-row--bonus .bw-price-row-label,
.bw-price-row--bonus .bw-price-row-val { padding: 5px 0; }
.negative-price { color: var(--green-booking) !important; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .bw-room-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .bw-room-grid {
    grid-template-columns: 1fr;
  }
  .bw-flight-legs {
    grid-template-columns: 1fr;
  }
  .bw-flight-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
  }
  .bw-summary-grid {
    grid-template-columns: 1fr;
  }
  .bw-summary-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
