/*
 * 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.
 */

/* Body and HTML base setup */
html,
body {
  height: 100%;
  margin: 0;
}

/* Main container layout */
main.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content wrapper - will take up remaining space */
.content-wrapper {
  flex: 1 0 auto;
  width: 100%;
}

/* Layout utility fallbacks used by action groups across the app. */
.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Orders */
.orders-page {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.orders-empty {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
}

.orders-empty__copy {
  max-width: 36rem;
  margin-inline: auto;
}

/* Flight results */
.flight-results-page {
  position: relative;
  isolation: isolate;
  margin-inline: calc(50% - 50vw);
  min-height: 100vh;
  overflow: hidden;
  background: #f8fafc;
  color: #0f172a;
}

.flight-results-shell {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  padding: 3.5rem 0 6rem;
}

.flight-results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(34rem, 0.85fr);
  align-items: end;
  gap: 3rem;
  padding-bottom: 2.25rem;
}

.flight-results-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.flight-results-back-link:hover {
  color: #1d4ed8;
}

.flight-results-back-link svg,
.flight-results-book-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.flight-results-eyebrow {
  margin: 0;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.flight-results-route {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.45rem;
}

.flight-results-route h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.flight-results-route-line {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 9rem;
  color: #2563eb;
}

.flight-results-route-line span {
  flex: 1;
  height: 1px;
  background: #bfdbfe;
}

.flight-results-route-line svg {
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 0.45rem;
  transform: rotate(7deg);
}

.flight-results-subtitle {
  margin: 0.9rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.flight-results-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.flight-results-summary div {
  min-width: 0;
  padding: 1rem 1.1rem;
}

.flight-results-summary div + div {
  border-left: 1px solid #e2e8f0;
}

.flight-results-summary dt,
.flight-results-selection-route small,
.flight-results-selection-total small {
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.flight-results-summary dd {
  margin: 0.3rem 0 0;
  overflow: hidden;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-results-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20.5rem;
  align-items: start;
  gap: 1.5rem;
}

.flight-results-list {
  min-width: 0;
}

.flight-results-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flight-results-list-heading h2,
.flight-results-selection-card h2,
.flight-results-empty h2 {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.flight-results-list-heading > span {
  color: #64748b;
  font-size: 0.78rem;
}

.flight-offer-card {
  position: relative;
  margin-bottom: 0.85rem;
}

.flight-offer-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.flight-offer-label {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 12px 30px rgba(15, 23, 42, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.flight-offer-label:hover {
  border-color: #bfdbfe;
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.09);
  transform: translateY(-1px);
}

.flight-offer-radio:focus-visible + .flight-offer-label {
  outline: 3px solid rgba(59, 130, 246, 0.28);
  outline-offset: 3px;
}

.flight-offer-radio:checked + .flight-offer-label {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb, 0 18px 42px rgba(37, 99, 235, 0.12);
}

.flight-offer-check {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  display: flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  transition: all 160ms ease;
}

.flight-offer-check svg {
  width: 0.9rem;
  height: 0.9rem;
}

.flight-offer-radio:checked + .flight-offer-label .flight-offer-check {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.flight-offer-main {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  min-width: 0;
  padding: 1.2rem 1.25rem 1.05rem 2.9rem;
}

.flight-offer-airline {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0.7rem;
  padding-top: 0.1rem;
}

.flight-offer-airline > span:last-child {
  min-width: 0;
}

.flight-offer-airline strong,
.flight-offer-airline small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-offer-airline strong {
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 750;
}

.flight-offer-airline small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.68rem;
}

.flight-offer-logo {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  object-fit: contain;
  padding: 0.2rem;
}

.flight-offer-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.flight-offer-journeys {
  display: grid;
  min-width: 0;
  gap: 0.85rem;
}

.flight-journey-row {
  display: grid;
  grid-template-columns: 3.8rem 5rem minmax(6rem, 1fr) 5rem 5.6rem;
  align-items: center;
  gap: 0.55rem;
}

.flight-journey-row + .flight-journey-row {
  padding-top: 0.8rem;
  border-top: 1px dashed #e2e8f0;
}

.flight-journey-direction {
  color: #64748b;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flight-journey-time strong,
.flight-journey-time small {
  display: block;
}

.flight-journey-time strong {
  color: #0f172a;
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.flight-journey-time small {
  margin-top: 0.08rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.flight-journey-time--arrival {
  text-align: right;
}

.flight-journey-track {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.flight-journey-track small,
.flight-journey-track em {
  color: #94a3b8;
  font-size: 0.61rem;
  font-style: normal;
  line-height: 1;
}

.flight-journey-track > span {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 0.38rem 0;
  background: #cbd5e1;
}

.flight-journey-track i {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #2563eb;
  transform: translateY(-50%);
}

.flight-journey-track em {
  color: #059669;
  font-weight: 750;
}

.flight-journey-date {
  color: #64748b;
  font-size: 0.65rem;
  text-align: right;
}

.flight-offer-details {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f1f5f9;
}

.flight-offer-details > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 650;
}

.flight-offer-details svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #94a3b8;
}

.flight-offer-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 1.35rem 1.25rem;
  border-left: 1px solid #f1f5f9;
  background: #fbfdff;
  text-align: right;
}

.flight-offer-price small,
.flight-offer-price em {
  color: #64748b;
  font-size: 0.64rem;
  font-style: normal;
}

.flight-offer-price strong {
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.flight-offer-select-copy {
  margin-top: 0.7rem;
  border-radius: 0.55rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 0.42rem 0.65rem;
}

.flight-offer-radio:checked + .flight-offer-label .flight-offer-select-copy {
  background: #2563eb;
  color: #fff;
}

.flight-offer-select-copy-selected {
  display: none;
}

.flight-offer-radio:checked + .flight-offer-label .flight-offer-select-copy-default {
  display: none;
}

.flight-offer-radio:checked + .flight-offer-label .flight-offer-select-copy-selected {
  display: inline;
}

.flight-results-selection {
  position: sticky;
  top: 1.5rem;
}

.flight-results-selection-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
  padding: 1.5rem;
}

.flight-results-selection-copy {
  min-height: 3rem;
  margin: 0.65rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.55;
}

.flight-results-selection-route {
  display: grid;
  grid-template-columns: 1fr 2.25rem 1fr;
  align-items: center;
  margin: 1.35rem 0;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.flight-results-selection-route > span:last-child {
  text-align: right;
}

.flight-results-selection-route strong,
.flight-results-selection-route small {
  display: block;
}

.flight-results-selection-route strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.flight-results-selection-route svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563eb;
}

.flight-results-selection-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
}

.flight-results-selection-total span,
.flight-results-selection-total small,
.flight-results-selection-total em {
  display: block;
}

.flight-results-selection-total em {
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.65rem;
  font-style: normal;
}

.flight-results-selection-total > strong {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.flight-results-book-button,
.flight-results-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 1.2rem;
  border: 0;
  border-radius: 0.75rem;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.2);
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.flight-results-book-button:hover:not(:disabled),
.flight-results-primary-link:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.flight-results-book-button:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.flight-results-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  color: #94a3b8;
  font-size: 0.65rem;
}

.flight-results-secure-note svg {
  width: 0.8rem;
  height: 0.8rem;
}

.flight-results-loading,
.flight-results-empty {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.flight-results-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 10rem;
}

.flight-results-loading .homepage-loading-mark {
  margin: 0;
}

.flight-results-loading strong,
.flight-results-loading span {
  display: block;
}

.flight-results-loading span {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.8rem;
}

.flight-results-empty {
  max-width: 44rem;
  margin: 1rem auto 0;
  padding: 4rem;
  text-align: center;
}

.flight-results-empty-icon {
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: #eff6ff;
  color: #2563eb;
}

.flight-results-empty-icon svg {
  width: 2rem;
  height: 2rem;
}

.flight-results-empty > p:not(.flight-results-eyebrow) {
  max-width: 31rem;
  margin: 0.75rem auto 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
}

.flight-results-empty .flight-results-primary-link {
  width: auto;
  min-width: 10rem;
  padding-inline: 1.4rem;
}

@media (max-width: 1100px) {
  .flight-results-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flight-results-form {
    grid-template-columns: 1fr;
  }

  .flight-results-selection {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .flight-results-shell {
    width: min(100% - 1.5rem, 82rem);
    padding-top: 2rem;
  }

  .flight-results-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flight-results-summary div:nth-child(3) {
    border-left: 0;
  }

  .flight-results-summary div:nth-child(n + 3) {
    border-top: 1px solid #e2e8f0;
  }

  .flight-offer-label,
  .flight-offer-main {
    grid-template-columns: 1fr;
  }

  .flight-offer-main {
    gap: 1rem;
    padding-right: 1rem;
  }

  .flight-offer-price {
    align-items: flex-start;
    border-top: 1px solid #f1f5f9;
    border-left: 0;
    text-align: left;
  }

  .flight-journey-row {
    grid-template-columns: 3.4rem 4.6rem minmax(4rem, 1fr) 4.6rem;
  }

  .flight-journey-date {
    display: none;
  }

  .flight-results-list-heading > span {
    display: none;
  }
}

/* Footer wrapper */
.footer-wrapper {
  flex-shrink: 0;
  width: 100%;
  background-color: white;
  padding-top: 2rem;
  margin-top: auto;
  z-index: -1;
}

.chat-markdown {
  overflow-wrap: anywhere;
}

.chat-autocomplete-results [role="option"].selected_item {
  background-color: var(--color-blue-100, #dbeafe);
}

.chat-markdown p,
.chat-markdown ul,
.chat-markdown ol,
.chat-markdown blockquote,
.chat-markdown pre,
.chat-markdown table {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.chat-markdown > :last-child {
  margin-bottom: 0;
}

.chat-markdown ul,
.chat-markdown ol {
  padding-left: 1.25rem;
}

.chat-markdown ul {
  list-style: disc;
}

.chat-markdown ol {
  list-style: decimal;
}

.chat-markdown li {
  margin: 0.25rem 0;
}

.chat-markdown a {
  color: #2563eb;
  text-decoration: underline;
}

.chat-markdown a.chat-product-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.chat-markdown code {
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.65);
  padding: 0.1rem 0.25rem;
  font-size: 0.875em;
}

.chat-markdown pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 0.375rem;
  background-color: rgba(17, 24, 39, 0.08);
  padding: 0.75rem;
}

.chat-markdown pre code {
  background-color: transparent;
  padding: 0;
}

.chat-markdown blockquote {
  border-left: 3px solid #d97706;
  padding-left: 0.75rem;
  color: #4b5563;
}

.chat-markdown table {
  max-width: 100%;
  border-collapse: collapse;
}

.chat-markdown th,
.chat-markdown td {
  border: 1px solid rgba(75, 85, 99, 0.28);
  padding: 0.375rem 0.5rem;
}

.mobile-scanner-page {
  margin-top: -50px;
  min-height: 100vh;
  min-height: 100dvh;
}

.mobile-scanner-shell {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
}

.mobile-scanner-header {
  background: rgba(248, 250, 252, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.875rem);
}

.mobile-scanner-empty-body {
  min-height: calc(100vh - 14rem);
  min-height: calc(100dvh - 14rem);
}

.mobile-scanner-result-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.035),
    0 8px 18px rgba(15, 23, 42, 0.035);
}

.mobile-scanner-result-grid {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 2.5rem;
  align-items: start;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
}

.mobile-scanner-result-image {
  width: 5rem;
  height: 6rem;
}

.mobile-scanner-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.375rem;
}

.mobile-scanner-pill {
  border-color: rgba(148, 163, 184, 0.36);
  line-height: 1.25rem;
}

.mobile-scanner-actions {
  display: flex;
  justify-content: flex-end;
  align-self: start;
  justify-self: end;
}

.mobile-scanner-action-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.375rem;
  background: #f8fafc;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.mobile-scanner-action-button:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.28);
  outline-offset: 2px;
}

.mobile-scanner-action-button svg {
  overflow: visible;
}

.mobile-scanner-action-button:active {
  background: #f1f5f9;
}

.mobile-scanner-menu {
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.035),
    0 8px 18px rgba(15, 23, 42, 0.035);
}

/* Homepage */
.homepage-desktop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.85);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 87% 12%, rgba(191, 219, 254, 0.72), transparent 29rem),
    linear-gradient(135deg, #f8fbff 0%, #eff6ff 48%, #f8fafc 100%);
}

.homepage-desktop__glow {
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(2px);
  pointer-events: none;
}

.homepage-desktop__glow--one {
  top: -9rem;
  right: 6%;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.28);
}

.homepage-desktop__glow--two {
  right: -7rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  background: rgba(147, 197, 253, 0.24);
}

.homepage-service-tab {
  display: inline-flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 2px solid transparent;
  padding: 0 1.4rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 150ms ease, background-color 150ms ease;
}

.homepage-service-tab:hover {
  background: #f8fafc;
  color: #0f172a;
}

.homepage-service-tab--active {
  border-bottom-color: #1d4ed8;
  color: #1d4ed8;
}

.homepage-trip-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  border-radius: 0.85rem;
  background: #f1f5f9;
  padding: 0.25rem;
}

.homepage-trip-option {
  min-height: 2.5rem;
  border-radius: 0.65rem;
  padding: 0.5rem 1.15rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.homepage-trip-option[aria-selected="true"] {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.homepage-field-label {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  left: 1rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.homepage-field,
.homepage-mobile-field {
  min-height: 4.25rem;
}

.homepage-swap-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbeafe;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
  transition: transform 180ms ease, background-color 180ms ease;
}

.homepage-swap-button:hover {
  transform: rotate(180deg);
  background: #dbeafe;
}

.homepage-swap-button:focus-visible,
.homepage-trip-option:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.25);
  outline-offset: 2px;
}

.homepage-benefit {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(12px);
}

.homepage-benefit strong {
  display: block;
  color: #0f172a;
}

.homepage-benefit p {
  margin-top: 0.15rem;
}

.homepage-benefit__number {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.homepage-loading-mark {
  display: flex;
  width: 3.75rem;
  height: 3.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  background: #dbeafe;
  color: #1d4ed8;
  animation: homepage-flight-pulse 1.4s ease-in-out infinite;
}

/*
 * Flowbite builds datepickers at runtime, so Tailwind cannot discover the
 * utility classes in the generated markup. Keep the popup layout and theme
 * here instead of relying on utilities that may not be present in the build.
 */
.datepicker-dropdown {
  z-index: 60;
  padding-top: 0.5rem;
}

.datepicker-dropdown .datepicker-picker {
  width: 18rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.datepicker-dropdown .datepicker-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.datepicker-dropdown .datepicker-header .datepicker-controls {
  margin-bottom: 0.5rem;
}

.datepicker-dropdown .datepicker-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.datepicker-dropdown .datepicker-controls button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.datepicker-dropdown .prev-btn,
.datepicker-dropdown .next-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
}

.datepicker-dropdown .prev-btn svg,
.datepicker-dropdown .next-btn svg {
  width: 1rem;
  height: 1rem;
}

.datepicker-dropdown .view-switch {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.datepicker-dropdown .datepicker-main {
  padding: 0.25rem;
}

.datepicker-dropdown .datepicker-view,
.datepicker-dropdown .days {
  display: flex;
  width: 100%;
}

.datepicker-dropdown .days {
  flex-direction: column;
}

.datepicker-dropdown .days-of-week,
.datepicker-dropdown .datepicker-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.datepicker-dropdown .days-of-week {
  margin-bottom: 0.25rem;
}

.datepicker-dropdown .dow {
  height: 1.75rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.75rem;
  text-align: center;
}

.datepicker-dropdown .datepicker-cell {
  display: flex;
  min-width: 0;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.625rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 2.25rem;
  text-align: center;
  cursor: pointer;
}

.datepicker-dropdown .datepicker-cell.prev,
.datepicker-dropdown .datepicker-cell.next,
.datepicker-dropdown .datepicker-cell.disabled {
  color: #cbd5e1;
}

.datepicker-dropdown .datepicker-cell:hover,
.datepicker-dropdown .datepicker-cell.focused {
  background: #eff6ff;
  color: #1d4ed8;
}

.datepicker-dropdown .datepicker-cell.range {
  border-radius: 0;
  background: #dbeafe;
  color: #1e40af;
}

.datepicker-dropdown .datepicker-cell.selected,
.datepicker-dropdown .datepicker-cell.range-start,
.datepicker-dropdown .datepicker-cell.range-end {
  border-radius: 0.625rem;
  background: #2563eb;
  color: #fff;
}

.datepicker-dropdown .datepicker-cell.today:not(.selected, .range-start, .range-end) {
  box-shadow: inset 0 0 0 1px #60a5fa;
  color: #1d4ed8;
}

.datepicker-dropdown .datepicker-footer .datepicker-controls {
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.datepicker-dropdown .datepicker-footer button {
  width: 50%;
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.datepicker-dropdown .datepicker-footer .today-btn {
  background: #2563eb;
  color: #fff;
}

@keyframes homepage-flight-pulse {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.18);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
}

.homepage-mobile-body {
  background: #f8fafc;
}

.homepage-mobile-main {
  min-height: 100vh;
  min-height: 100dvh;
}

.homepage-mobile {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.72), transparent 20rem),
    #f8fafc;
}

.homepage-mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.86);
  padding: max(0.8rem, env(safe-area-inset-top, 0px)) 1.25rem 0.8rem;
  backdrop-filter: blur(20px) saturate(160%);
}

.homepage-mobile-tab {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  padding: 0.55rem 1rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
}

.homepage-mobile-tab--active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.18);
}

.homepage-trip-switch--mobile {
  display: grid;
  width: 100%;
}

.homepage-trip-switch--mobile .homepage-trip-option {
  min-height: 2.75rem;
}

.homepage-mobile-swap {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 1rem;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.homepage-mobile-submit {
  margin: 1.25rem -0.25rem -0.25rem;
  padding: 0.35rem 0.25rem max(0.25rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 25%);
}

@media (prefers-reduced-motion: reduce) {
  .homepage-loading-mark {
    animation: none;
  }

  .homepage-swap-button,
  .homepage-trip-option {
    transition: none;
  }
}

/* Wallet transaction pagination */
.wallet-pagination {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 1rem 1.25rem;
}

.wallet-pagination__summary {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.wallet-pagination__summary strong,
.wallet-pagination__mobile-status strong {
  color: #0f172a;
  font-weight: 600;
}

.wallet-pagination__controls,
.wallet-pagination__pages {
  display: flex;
  align-items: center;
}

.wallet-pagination__controls {
  width: 100%;
  justify-content: space-between;
  gap: 0.5rem;
}

.wallet-pagination__pages {
  display: none;
  gap: 0.25rem;
}

.wallet-pagination__direction,
.wallet-pagination__page,
.wallet-pagination__gap {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.wallet-pagination__direction,
.wallet-pagination__page {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.wallet-pagination__direction {
  gap: 0.375rem;
  padding-inline: 0.75rem;
}

.wallet-pagination__direction svg {
  width: 1rem;
  height: 1rem;
}

.wallet-pagination__direction:hover,
.wallet-pagination__page:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.wallet-pagination__direction:focus-visible,
.wallet-pagination__page:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.wallet-pagination__page.is-current {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.wallet-pagination__direction.is-disabled {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.wallet-pagination__gap {
  min-width: 1.75rem;
  color: #94a3b8;
}

.wallet-pagination__mobile-status {
  color: #64748b;
  font-size: 0.8125rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .wallet-pagination {
    flex-direction: row;
  }

  .wallet-pagination__controls {
    width: auto;
  }

  .wallet-pagination__pages {
    display: flex;
  }

  .wallet-pagination__mobile-status {
    display: none;
  }
}

@import "pagy";
@import "blog";

@media print {

  nav,
  footer {
    display: none !important;
  }
}
