/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.pagy.series-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.pagy.series-nav a {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.pagy.series-nav a[href]:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #4338ca;
}

.pagy.series-nav a[aria-current="page"] {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
}

.pagy.series-nav a[aria-disabled="true"] {
  cursor: default;
  opacity: 0.5;
}

.pagy.series-nav a[role="separator"] {
  border-color: transparent;
  background: transparent;
  color: #9ca3af;
}

.mobile-admin-menu > summary::-webkit-details-marker {
  display: none;
}

.farejador-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.farejador-modal.hidden {
  display: none !important;
}

.farejador-modal__dialog {
  width: 100%;
  max-width: 44rem;
  margin: auto;
}

.farejador-modal__panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 2rem;
  background: #ffffff;
  color: #020617;
  box-shadow: 0 40px 120px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
}

.farejador-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem 2.25rem 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.farejador-modal__steps {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 0.875rem;
}

.farejador-modal__step-dot {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: width 250ms ease, background-color 250ms ease;
  width: 6px;
}

.farejador-modal__step-dot.active {
  width: 20px;
  background: #0f172a;
}

.farejador-modal__body {
  padding: 2.25rem;
}

.farejador-option {
  position: relative;
  border-width: 2px;
  border-style: solid;
  border-color: #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.farejador-option:hover {
  border-color: #fbbf24;
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.18);
}

.farejador-option--selected {
  border-color: #0f172a !important;
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22), 0 10px 30px rgba(15, 23, 42, 0.12);
}

.farejador-option--selected::after {
  content: "✓";
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.farejador-field {
  width: 100%;
  height: 3.25rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.875rem;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  padding: 0 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.farejador-field:focus {
  border-color: #f59e0b;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.farejador-field:hover:not(:focus) {
  border-color: #cbd5e1;
}

/* ── Farejador Plan Options ──────────────────────────────────── */

.farejador-plan-option--selected {
  border-color: #0f172a !important;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.farejador-plan-option--selected::after {
  content: "✓";
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* ── Boarding Pass Cards ─────────────────────────────────────── */

.boarding-pass {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10), 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.boarding-pass:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.boarding-pass__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: #0f172a;
}

.boarding-pass__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boarding-pass__discount {
  font-size: 1rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: -0.02em;
}

.boarding-pass__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1.25rem;
  gap: 1rem;
}

.boarding-pass__airport {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.boarding-pass__airport--right {
  align-items: flex-end;
}

.boarding-pass__iata {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
  line-height: 1;
}

.boarding-pass__city {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boarding-pass__line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  min-width: 0;
}

.boarding-pass__dots {
  flex: 1;
  height: 2px;
  border-top: 2px dashed #e2e8f0;
}

.boarding-pass__plane {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #f59e0b;
}

.boarding-pass__tear {
  margin: 0 1.25rem;
  border-top: 2px dashed #e2e8f0;
  position: relative;
}

.boarding-pass__tear::before,
.boarding-pass__tear::after {
  content: "";
  position: absolute;
  top: -0.625rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #f1f5f9;
  border-radius: 999px;
}

.boarding-pass__tear::before { left: -1.875rem; }
.boarding-pass__tear::after  { right: -1.875rem; }

.boarding-pass__footer {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.5rem 1.5rem;
  flex-wrap: wrap;
}

.boarding-pass__detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.boarding-pass__detail--price {
  margin-left: auto;
  align-items: flex-end;
}

.boarding-pass__detail-label {
  font-size: 0.6rem;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boarding-pass__detail-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.boarding-pass__price-original {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #94a3b8;
}

.boarding-pass__price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #16a34a;
  letter-spacing: -0.03em;
}

@media (max-width: 640px) {
  .farejador-modal {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .farejador-modal__panel {
    border-radius: 1.5rem;
  }

  .farejador-modal__header {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .farejador-modal__body {
    padding: 1.5rem;
  }
}
