/* Skyro Arbaeen Monitor — Desert night watchboard */

:root {
  --ink: #0b1220;
  --ink-soft: #1a2740;
  --navy: #2d4570;
  --navy-mid: #3e5b8e;
  --teal: #26a69a;
  --teal-deep: #0f766e;
  --teal-soft: rgba(38, 166, 154, 0.14);
  --sand: #e8eef7;
  --sand-warm: #f4efe6;
  --sand-mix: #eef1f6;
  --price: #0f766e;
  --line: rgba(45, 69, 112, 0.16);
  --line-strong: rgba(45, 69, 112, 0.26);
  --muted: #5a6b84;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 7px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 56px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --tabular: "Vazirmatn", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: #c8d0dc;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* —— Atmosphere: let dusk road read —— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__img {
  width: 100%;
  height: 58vh;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.05) brightness(0.95) contrast(1.04);
}

.page-bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 18, 32, 0.42) 0%,
      rgba(29, 48, 78, 0.18) 18%,
      rgba(45, 69, 112, 0.08) 32%,
      rgba(232, 238, 247, 0.35) 52%,
      rgba(238, 241, 246, 0.88) 68%,
      #e8ecf2 100%
    );
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--topbar-h);
  height: auto;
  /* No transform/filter on sticky ancestors — keeps sticky reliable while scrolling */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(11, 18, 32, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eef7;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(11, 18, 32, 0.98);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.28);
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: var(--topbar-h);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-shrink: 0;
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.2;
}

.brand__name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 247, 0.78);
}

.brand__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: rgba(232, 238, 247, 0.85);
  white-space: nowrap;
}

.meta-chip__label {
  opacity: 0.7;
}

.meta-chip__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--tabular);
  color: #fff;
}

.meta-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.25);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.bale-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #dff7f3;
  background: rgba(38, 166, 154, 0.18);
  border: 1px solid rgba(38, 166, 154, 0.35);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.bale-chip:hover {
  background: rgba(38, 166, 154, 0.28);
  border-color: rgba(38, 166, 154, 0.5);
}

.bale-chip__short {
  display: none;
}

/* —— Main —— */
.main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

/* —— Intro: local scrim only —— */
.intro {
  margin-bottom: 16px;
  animation: fade-up 0.55s var(--ease) both;
}

.intro__scrim {
  display: inline-block;
  max-width: 36rem;
  padding: 12px 14px 14px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.52) 0%,
    rgba(29, 48, 78, 0.38) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(11, 18, 32, 0.18);
  color: #f4f7fb;
}

.intro__headline {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #fff;
}

.intro__lead {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(244, 247, 251, 0.9);
}

.intro__note {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(244, 247, 251, 0.62);
}

/* —— Bale promo banners —— */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(38, 166, 154, 0.16), rgba(45, 69, 112, 0.12)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(38, 166, 154, 0.28);
  animation: fade-up 0.55s var(--ease) 0.04s both;
}

.promo-banner--footer {
  margin: 18px 0 8px;
}

.promo-banner__title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.promo-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.promo-banner__text em {
  font-style: normal;
  font-weight: 700;
  color: var(--teal-deep);
}

.promo-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.promo-banner__cta:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.promo-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(45, 69, 112, 0.06);
  border: 1px dashed rgba(45, 69, 112, 0.22);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.promo-strip p {
  margin: 0;
}

.promo-strip__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.18);
}

.promo-strip__link {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.btn--auto {
  width: auto;
  min-width: 64px;
  color: #fff;
  background: linear-gradient(135deg, #3e5b8e, #26a69a);
  font-size: 0.72rem;
  white-space: nowrap;
}

.btn--auto:hover {
  filter: brightness(1.06);
}

.badge-full {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #9a3412;
  background: rgba(234, 88, 12, 0.12);
}

.ticket.is-full {
  opacity: 0.78;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Controls: station board strip (sticky — no transform animation) —— */
.controls {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  padding: 10px 12px 8px;
  margin: 0 0 10px;
  border-radius: 0;
  background: #eceff5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-block: 1px solid var(--line-strong);
  box-shadow: 0 10px 18px -12px rgba(11, 18, 32, 0.35);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin: 0 0 10px;
  border-radius: 8px;
  background: rgba(45, 69, 112, 0.1);
}

.mode-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.mode-switch__btn.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06);
}

.mode-switch__btn.is-active .mode-switch__icon {
  color: var(--teal-deep);
}

.mode-switch__icon {
  display: inline-flex;
  color: currentColor;
  opacity: 0.85;
}

.filters__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.field__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding-inline-start: 2px;
}

.field__control {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background:
    rgba(255, 255, 255, 0.75)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b84' d='M1.2 1.2L6 6l4.8-4.8'/%3E%3C/svg%3E")
    no-repeat left 12px center;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field__control:hover {
  border-color: rgba(38, 166, 154, 0.45);
}

.field__control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.filters__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  min-height: 26px;
}

.result-count {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-mid);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s var(--ease);
}

.result-count.is-updating {
  opacity: 0.45;
}

.clear-filters {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-deep);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s var(--ease);
}

.clear-filters:hover {
  background: var(--teal-soft);
}

.clear-filters[hidden] {
  display: none;
}

/* —— Results: translucent station board —— */
.results {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(45, 69, 112, 0.12);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: fade-up 0.55s var(--ease) 0.1s both;
}

.results.is-switching {
  animation: panel-fade 0.28s var(--ease);
}

@keyframes panel-fade {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.results__head {
  display: none;
  padding: 9px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(232, 238, 247, 0.55);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 132px minmax(150px, 1.4fr) 100px minmax(110px, 1fr) 132px 78px;
  gap: 12px;
  align-items: center;
}

.results.is-flight .results__head {
  grid-template-columns: 132px minmax(150px, 1.5fr) 100px minmax(110px, 1fr) 132px 78px;
}

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
}

.ticket {
  --notch: 7px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "carrier route price"
    "carrier meta cta";
  gap: 4px 10px;
  align-items: center;
  padding: 12px 14px 12px 12px;
  border-bottom: 1px dashed rgba(45, 69, 112, 0.18);
  background:
    linear-gradient(90deg, rgba(38, 166, 154, 0.14) 0 3px, transparent 3px),
    rgba(255, 255, 255, 0.55);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  animation: row-in 0.4s var(--ease) both;
}

/* boarding-pass side notches (mobile/strip cue) */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  border-radius: 50%;
  background: #d9dee8;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.ticket::before {
  right: calc(var(--notch) * -1);
  box-shadow: inset 1px 0 0 rgba(45, 69, 112, 0.12);
}

.ticket::after {
  left: calc(var(--notch) * -1);
  box-shadow: inset -1px 0 0 rgba(45, 69, 112, 0.12);
}

.ticket:last-child {
  border-bottom: none;
}

.ticket:hover {
  background:
    linear-gradient(90deg, rgba(38, 166, 154, 0.28) 0 3px, transparent 3px),
    rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
  z-index: 2;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticket__carrier {
  grid-area: carrier;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mono {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.carrier-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}

.ticket__carrier-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.25;
}

.ticket__type-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
}

.ticket__route {
  grid-area: route;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  min-width: 0;
}

.ticket__route-city {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--navy-mid), var(--teal));
  position: relative;
  border-radius: 2px;
  opacity: 0.8;
}

.ticket__arrow::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--teal);
  border-left: 1.5px solid var(--teal);
  transform: translateY(-50%) rotate(-45deg);
}

.ticket__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.ticket__date {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.ticket__detail {
  font-size: 0.74rem;
  color: var(--muted);
}

.ticket__detail:empty {
  display: none;
}

.ticket__price-block {
  grid-area: price;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: left;
}

.ticket__price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--price);
  font-variant-numeric: tabular-nums;
  font-family: var(--tabular);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ticket__price-unit {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-inline-start: 2px;
}

.badge-cheap {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.ticket__cta {
  grid-area: cta;
  justify-self: end;
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--primary {
  width: auto;
  min-width: 64px;
  color: #fff;
  background: var(--teal-deep);
  box-shadow: none;
}

.btn--primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.22);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--muted {
  width: auto;
  min-width: 64px;
  color: var(--muted);
  background: rgba(100, 116, 139, 0.12);
  cursor: default;
  font-size: 0.72rem;
  white-space: nowrap;
}

.ticket.is-full .ticket__price {
  color: var(--muted);
}

.btn--ghost {
  color: var(--navy-mid);
  background: rgba(45, 69, 112, 0.06);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(45, 69, 112, 0.1);
}

/* —— Empty —— */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.empty-state[hidden] {
  display: none;
}

.empty-state__art {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  opacity: 0.8;
  margin-bottom: 6px;
}

.empty-state__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.empty-state__text {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 1;
  padding: 20px 16px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(62, 91, 142, 0.35);
}

.footer a:hover {
  color: var(--teal-deep);
}

.footer__sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* —— Desktop —— */
@media (min-width: 720px) {
  .topbar__inner {
    padding: 0 24px;
  }

  .main {
    padding: 26px 24px 56px;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__title {
    font-size: 1rem;
  }

  .brand__name {
    font-size: 0.76rem;
  }

  .intro__scrim {
    padding: 14px 18px 16px;
  }

  .controls {
    padding: 12px 4px 10px;
  }

  .filters__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* —— Wide desktop table (avoid clipping Buy at ~768px) —— */
@media (min-width: 960px) {
  .results__head {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1.4fr) minmax(88px, 0.7fr) minmax(100px, 1fr) minmax(120px, 0.9fr) 72px;
  }

  .results.is-flight .results__head {
    grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1.5fr) minmax(88px, 0.7fr) minmax(100px, 1fr) minmax(120px, 0.9fr) 72px;
  }

  .ticket {
    grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1.4fr) minmax(88px, 0.7fr) minmax(100px, 1fr) minmax(120px, 0.9fr) 72px;
    grid-template-areas: "carrier route date detail price cta";
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
  }

  .results.is-flight .ticket {
    grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1.5fr) minmax(88px, 0.7fr) minmax(100px, 1fr) minmax(120px, 0.9fr) 72px;
  }

  .ticket::before,
  .ticket::after {
    display: none;
  }

  .ticket:hover {
    transform: none;
    background:
      linear-gradient(90deg, rgba(38, 166, 154, 0.35) 0 3px, transparent 3px),
      rgba(255, 255, 255, 0.72);
  }

  .ticket__carrier {
    flex-direction: row;
  }

  .ticket__meta {
    display: contents;
  }

  .ticket__date {
    grid-area: date;
  }

  .ticket__detail {
    grid-area: detail;
  }

  .ticket__price-block {
    grid-area: price;
    margin-top: 0;
    align-items: flex-start;
    text-align: right;
  }

  .ticket__cta {
    grid-area: cta;
    justify-self: stretch;
  }

  .btn--primary {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .ticket__type-tag {
    display: none;
  }

  .mono,
  .carrier-logo {
    border-radius: 10px;
  }
}

/* —— Narrow phones: compact topbar, keep brand —— */
@media (max-width: 640px) {
  .meta-chip__label {
    display: none;
  }

  .bale-chip__full {
    display: none;
  }

  .bale-chip__short {
    display: inline;
  }

  .brand__title {
    font-size: 0.8rem;
  }

  .topbar__meta {
    gap: 5px;
  }

  .meta-chip {
    padding: 4px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
