.card__footer { flex-wrap: wrap; }
.card__actions { display: flex; gap: 6px; margin-left: auto; }
.compare-trip-btn.is-selected { background: var(--yellow, #facb48); border-color: var(--yellow, #facb48); }
.has-compare-trips { padding-bottom: 86px; }
.compare-bar {
  position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; align-items: center; gap: 12px; width: max-content;
  max-width: calc(100% - 24px); box-sizing: border-box; padding: 8px 12px 8px 18px;
  border: 1px solid #dce2eb; border-radius: 60px; background: #fff; color: #526079;
  box-shadow: 0 6px 20px #172b4d26; font-size: 14px; line-height: 20px; font-weight: 600;
}
.compare-bar[hidden] { display: none; }
.compare-open { border: 0; border-radius: 12px; background: var(--yellow, #facb48); color: #14233b; padding: 10px 14px; font: inherit; cursor: pointer; }
.compare-clear, .compare-close { border: 0; background: transparent; color: #526079; font-size: 30px; line-height: 1; width: 36px; height: 36px; flex-shrink: 0; cursor: pointer; }
.compare-dialog { width: min(1100px, calc(100% - 24px)); max-height: 85dvh; box-sizing: border-box; padding: 24px; border: 1px solid #dce2eb; border-radius: 20px; color: #14233b; background: #fff; }
.compare-dialog::backdrop { background: #14233b80; }
.compare-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compare-heading h2 { margin: 0; font-size: 24px; }
.compare-note { color: #526079; font-size: 13px; line-height: 1.5; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 16px; min-width: 170px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e9ef; line-height: 1.5; }
.compare-table th:first-child { min-width: 150px; position: sticky; left: 0; background: #f7f8fa; }
.compare-table thead th { background: #fff9e8; }
.compare-table a { color: inherit; }
.compare-remove { display: block; margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: #526079; text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }
.compare-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) {
  .has-compare-trips { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .compare-bar { bottom: calc(4px + env(safe-area-inset-bottom)); gap: 8px; padding: 5px 10px; font-size: 12px; line-height: 18px; max-width: calc(100% - 12px); }
  .compare-open { padding: 8px 10px; border-radius: 10px; }
  .compare-clear { width: 26px; height: 30px; font-size: 26px; }
  .compare-dialog { padding: 16px; }
  .compare-table { width: max-content; min-width: 100%; font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px; min-width: 0; line-height: 1.35; }
  .compare-table th:first-child { min-width: 88px; max-width: 104px; overflow-wrap: anywhere; }
  .compare-table th:nth-child(2), .compare-table td:nth-child(2) { max-width: 88px; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3) { max-width: 80px; }
  .compare-table th:nth-child(n+4), .compare-table td:nth-child(n+4) { max-width: 112px; }
  .compare-remove { margin-top: 4px; font-size: 11px; }
  .compare-date-line, .compare-flight-time, .compare-flight-date { display: block; white-space: nowrap; }
  .compare-flight-time { margin-top: 3px; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
  .compare-flight-date { color: #526079; font-size: 11px; }
  .compare-date-line + .compare-date-line { margin-top: 3px; }
}
