/* ============================================================================
 *  OTAPS — Promotions components
 *  Boarding-pass deal cards, promo strips, and the promo-code field.
 *  Self-contained: uses its own tokens so it drops into any page.
 * ========================================================================== */
:root {
  --pr-navy: #0a1628;
  --pr-navy-2: #10244a;
  --pr-gold: #f0a500;
  --pr-gold-2: #fbbf24;
  --pr-paper: #fffdf7;
  --pr-ink: #0d1a30;
  --pr-muted: #4a5d75;
  --pr-save: #15803d;
}

/* ── Promo strip: a departures-board style banner ─────────────────────────── */
.promo-strip {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--pr-navy);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 34px);
  border: 1px solid rgba(240,165,0,.35);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
  max-width: 1200px; margin: 28px auto; box-sizing: border-box;
}
.promo-strip:hover { border-color: var(--pr-gold); color: #fff; }
.promo-strip:focus-visible { outline: 3px solid var(--pr-gold-2); outline-offset: 3px; }
.promo-strip__board {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  background: #000; color: var(--pr-gold-2);
  padding: 6px 12px; border-radius: 6px; white-space: nowrap;
}
.promo-strip__text { flex: 1 1 260px; font-family: 'DM Sans', sans-serif; font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.9); }
.promo-strip__text strong { color: #fff; }
.promo-strip__cta {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem;
  background: var(--pr-gold); color: var(--pr-navy);
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.promo-strip:hover .promo-strip__cta { background: var(--pr-gold-2); }

/* ── Boarding-pass deal card ──────────────────────────────────────────────── */
.deal-pass {
  --notch: 14px;
  position: relative;
  display: grid; grid-template-columns: 1fr 190px;
  background: var(--pr-paper);
  color: var(--pr-ink);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(10,22,40,.45);
  overflow: hidden;
  /* perforation notches top and bottom where the stub tears off */
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - 190px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 190px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at calc(100% - 190px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 190px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.deal-pass__main { padding: 26px 26px 24px; min-width: 0; }
.deal-pass__route {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: .8rem; font-weight: 600; color: var(--pr-muted);
  margin: 0 0 10px;
}
.deal-pass__route i { color: var(--pr-gold); }
.deal-pass__title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.15; margin: 0 0 8px; color: var(--pr-navy);
}
.deal-pass__pitch { font-family: 'DM Sans', sans-serif; font-size: .95rem; line-height: 1.55; color: var(--pr-muted); margin: 0 0 16px; }
.deal-pass__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.deal-pass__now {
  font-family: 'DM Sans', sans-serif; font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.1rem); line-height: .95; color: var(--pr-navy);
}
.deal-pass__was { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: var(--pr-muted); text-decoration: line-through; }
.deal-pass__save {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .85rem;
  color: #fff; background: var(--pr-save); padding: 4px 10px; border-radius: 6px;
}
.deal-pass__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.deal-pass__list li { font-family: 'DM Sans', sans-serif; font-size: .85rem; color: var(--pr-ink); }
.deal-pass__list li::before { content: '✓'; color: var(--pr-save); font-weight: 700; margin-right: 6px; }
.deal-pass__fine { font-family: 'DM Sans', sans-serif; font-size: .76rem; color: var(--pr-muted); margin: 12px 0 0; line-height: 1.5; }

.deal-pass__stub {
  background: var(--pr-navy);
  color: #fff;
  border-left: 2px dashed rgba(255,255,255,.28);
  padding: 26px 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center;
}
.deal-pass__label { font-family: 'DM Sans', sans-serif; font-size: .75rem; color: rgba(255,255,255,.75); margin: 0; }
.deal-pass__code {
  font-family: 'DM Sans', sans-serif; font-weight: 800;
  font-size: 1.2rem; letter-spacing: .02em; color: var(--pr-gold-2);
  border: 1.5px dashed rgba(251,191,36,.6); border-radius: 8px; padding: 8px 4px;
  overflow-wrap: anywhere; line-height: 1.15;
}
.deal-pass__claim, .deal-pass__alt {
  display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem;
  border-radius: 999px; padding: 11px 12px; text-decoration: none;
}
.deal-pass__claim { background: var(--pr-gold); color: var(--pr-navy); }
.deal-pass__claim:hover { background: var(--pr-gold-2); color: var(--pr-navy); }
.deal-pass__alt { color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: .82rem; padding: 9px 12px; }
.deal-pass__alt:hover { border-color: var(--pr-gold-2); color: var(--pr-gold-2); }
.deal-pass__claim:focus-visible, .deal-pass__alt:focus-visible { outline: 3px solid var(--pr-gold-2); outline-offset: 2px; }

@media (max-width: 640px) {
  .deal-pass { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .deal-pass__stub { border-left: 0; border-top: 2px dashed rgba(255,255,255,.28); }
}

/* ── Small inline flag next to a rate ─────────────────────────────────────── */
.deal-flag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .7rem; line-height: 1; letter-spacing: .02em;
  background: var(--pr-gold); color: var(--pr-navy);
  padding: 4px 8px; border-radius: 5px; text-decoration: none; white-space: nowrap;
}
.deal-flag:hover { background: var(--pr-gold-2); color: var(--pr-navy); }

/* ── Promo code field (sits inside dark summary cards) ────────────────────── */
.promo-field { margin: 12px 0 4px; }
.promo-field label { display: block; font-family: 'DM Sans', sans-serif; font-size: .82rem; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.promo-field__row { display: flex; gap: 8px; }
.promo-field input {
  flex: 1; min-width: 0; font-family: 'DM Sans', sans-serif; font-size: 1rem; text-transform: uppercase;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; padding: 10px 12px;
}
.promo-field input::placeholder { color: rgba(255,255,255,.55); text-transform: none; }
.promo-field input:focus { outline: none; border-color: var(--pr-gold-2); }
.promo-field button {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .88rem; cursor: pointer;
  background: var(--pr-gold); color: var(--pr-navy); border: 0; border-radius: 10px; padding: 10px 16px;
}
.promo-field button:hover { background: var(--pr-gold-2); }
.promo-field button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.promo-msg { font-family: 'DM Sans', sans-serif; font-size: .82rem; margin: 6px 0 0; min-height: 1em; line-height: 1.45; }
.promo-msg.is-ok { color: #86efac; }
.promo-msg.is-err { color: #fca5a5; }
.promo-msg a { color: var(--pr-gold-2); }
.gs-row.is-discount .gs-val, .is-discount-val { color: #86efac !important; }

/* Day Shine nudge (light background variant) */
.dayshine-nudge {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--pr-navy); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 12px 0;
  font-family: 'DM Sans', sans-serif; font-size: .88rem; line-height: 1.45;
}
.dayshine-nudge.is-on { display: flex; }
.dayshine-nudge span { flex: 1 1 200px; }
.dayshine-nudge button {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .82rem; cursor: pointer;
  background: var(--pr-gold); color: var(--pr-navy); border: 0; border-radius: 999px; padding: 8px 14px;
}

@media (prefers-reduced-motion: reduce) {
  .promo-strip, .deal-pass, .deal-pass__claim { transition: none !important; }
}

/* Promo box under quote results. On light result cards it gets its own navy panel. */
.promo-host { margin-top: 14px; }
.promo-host--panel { background: var(--pr-navy); border-radius: 12px; padding: 14px 16px; }

/* Pass with a photo on the left */
.deal-pass--photo { grid-template-columns: 170px 1fr 190px; }
.deal-pass__img { position: relative; min-height: 100%; }
.deal-pass__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .deal-pass--photo { grid-template-columns: 1fr 190px; }
  .deal-pass--photo .deal-pass__img { display: none; }
}
@media (max-width: 640px) {
  .deal-pass--photo { grid-template-columns: 1fr; }
  .deal-pass--photo .deal-pass__img { display: block; height: 170px; }
}
.promo-field label a { color: var(--pr-gold-2); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }


/* ── Layout safety: grid columns may shrink below their content on phones ── */
.calc-card > *, .calc-fields > *, .calculator-card > *, .calc-outer > *, .stats-inner > * { min-width: 0; }

/* ── Rate board (used on Home, Parking Services, Get a Quote) ───────────────
   Dark background. Words in the page font, every number in DM Sans so
   digits read cleanly (Syne's zero looks like a letter "o"). */
.rb { font-family: 'DM Sans', sans-serif; }
.rb-note { font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.7); margin: 0 0 6px; }
.rb-list { list-style: none; margin: 0; padding: 0; }
.rb-row, .rb-deal {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.rb-l { flex: 1 1 auto; min-width: 0; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.9); line-height: 1.35; }
.rb-l small { display: block; overflow-wrap: anywhere; margin-top: 3px; font-size: .76rem; font-weight: 400; color: rgba(255,255,255,.66); line-height: 1.45; }
.rb-l small b { color: var(--pr-gold-2); font-weight: 700; letter-spacing: .02em; }
.rb-p {
  flex: 0 0 auto; text-align: right; white-space: nowrap;
  font-size: 1.12rem; font-weight: 700; color: var(--pr-gold-2); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.rb-p em { display: block; font-style: normal; font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .06em; }
.rb-p b { display: block; margin-top: 4px; font-size: .68rem; font-weight: 700; color: #fff; background: var(--pr-save); padding: 3px 7px; border-radius: 5px; letter-spacing: .02em; }
.rb-deals-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 18px 0 2px; padding-top: 4px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-gold-2);
}
.rb-deals-h a { font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.rb-deal {
  text-decoration: none; margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251,191,36,.35);
  background: linear-gradient(135deg, rgba(240,165,0,.14), rgba(240,165,0,.04));
}
.rb-deal:hover { border-color: var(--pr-gold-2); background: linear-gradient(135deg, rgba(240,165,0,.22), rgba(240,165,0,.06)); }
.rb-deal:focus-visible { outline: 3px solid var(--pr-gold-2); outline-offset: 2px; }
.rb-deal .rb-l { color: #fff; font-weight: 600; }
.rb-deal + .rb-deal { margin-top: 10px; }
@media (max-width: 380px) {
  .rb-l { font-size: .9rem; }
  .rb-p { font-size: 1.02rem; }
}
.calc-actions a, .calc-acts a, .rates-actions a { white-space: nowrap; }
@media (max-width: 420px) { .calc-actions a, .calc-acts a, .rates-actions a { font-size: .88rem; padding-left: 8px; padding-right: 8px; } }
.pricing-amount span { white-space: nowrap; }
@media (max-width: 380px) {
  .calc-actions, .calc-acts, .rates-actions { grid-template-columns: minmax(0, 1fr) !important; }
  .pricing-price .pricing-amount span { display: block; }
}
