/**
 * Lokrio flight route banners — sliding carousel.
 */
.lfrb {
  --lfrb-ink: #0b1c2c;
  --lfrb-muted: #5b6b7c;
  --lfrb-orange: #ff6900;
  margin: 28px 0 8px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lfrb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.lfrb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lfrb-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lfrb-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lfrb-orange);
}

.lfrb-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lfrb-ink);
}

.lfrb-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: #eef3f7;
  border: 1px solid #d7e2eb;
  min-width: 240px;
}

.lfrb-toggle-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #0b1c2c;
  box-shadow: 0 6px 18px rgba(11, 28, 44, 0.22);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.lfrb[data-scope="international"] .lfrb-toggle-pill {
  transform: translateX(100%);
}

.lfrb-tog {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--lfrb-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.lfrb-tog.is-on {
  color: #fff;
}

.lfrb-nav {
  display: inline-flex;
  gap: 8px;
}

.lfrb-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d7e2eb;
  background: #fff;
  color: var(--lfrb-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 28, 44, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lfrb-nav-btn:hover {
  background: var(--lfrb-ink);
  color: #fff;
  transform: translateY(-1px);
}

.lfrb-stage {
  position: relative;
}

.lfrb-panel[hidden],
.lfrb-panel:not(.is-active) {
  display: none !important;
}

.lfrb-panel.is-active {
  display: block !important;
  animation: lfrbPanelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lfrbPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lfrb-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 6px 4px 10px;
}

.lfrb-viewport::-webkit-scrollbar {
  display: none;
}

.lfrb-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.lfrb-card {
  position: relative;
  flex: 0 0 min(340px, 78vw);
  width: min(340px, 78vw);
  min-height: 228px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  isolation: isolate;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(11, 28, 44, 0.14);
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

@media (min-width: 900px) {
  .lfrb-card {
    flex-basis: 360px;
    width: 360px;
  }
}

.lfrb-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 22px 44px rgba(11, 28, 44, 0.24);
}

.lfrb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lfrb-card:hover .lfrb-bg {
  transform: scale(1.12);
}

.lfrb-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8, 18, 32, 0.88) 0%, rgba(8, 18, 32, 0.55) 42%, rgba(8, 18, 32, 0.18) 72%, rgba(8, 18, 32, 0.35) 100%);
}

.lfrb-card--gulf .lfrb-shade {
  background: linear-gradient(110deg, rgba(18, 12, 40, 0.9) 0%, rgba(70, 28, 18, 0.45) 55%, rgba(18, 12, 40, 0.35) 100%);
}

.lfrb-card--hub .lfrb-shade {
  background: linear-gradient(110deg, rgba(55, 8, 28, 0.9) 0%, rgba(20, 10, 30, 0.4) 60%, rgba(55, 8, 28, 0.35) 100%);
}

.lfrb-card--india .lfrb-shade {
  background: linear-gradient(110deg, rgba(28, 18, 8, 0.88) 0%, rgba(90, 45, 12, 0.35) 55%, rgba(20, 30, 50, 0.4) 100%);
}

.lfrb-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 228px;
  padding: 18px 18px 16px;
}

.lfrb-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 105, 0, 0.92);
  color: #fff;
}

.lfrb-body h3 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.lfrb-iata {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd7b8 !important;
  max-width: none !important;
}

.lfrb-body p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  max-width: 26ch;
}

.lfrb-airlines {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Logo mark + readable airline name — no box */
.lfrb-airline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
  transition: transform 0.22s ease;
}

.lfrb-card:hover .lfrb-airline {
  transform: translateY(-1px);
  border: none !important;
  box-shadow: none !important;
}

.lfrb-airline img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  background: transparent !important;
  padding: 0;
  filter:
    drop-shadow(0 0 1px #fff)
    drop-shadow(1px 0 0 #fff)
    drop-shadow(-1px 0 0 #fff)
    drop-shadow(0 1px 0 #fff)
    drop-shadow(0 -1px 0 #fff)
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.lfrb-airline-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.lfrb-cta {
  margin-top: 10px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--lfrb-ink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lfrb-card:hover .lfrb-cta {
  background: var(--lfrb-orange);
  color: #fff;
  transform: translateX(2px);
}

.lfrb-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
  min-height: 12px;
}

.lfrb-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c5d0db;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.lfrb-dot.is-on {
  width: 22px;
  background: var(--lfrb-orange);
}

@media (max-width: 640px) {
  .lfrb {
    margin: 20px 0 6px;
  }

  .lfrb-inner {
    padding: 0 12px;
  }

  .lfrb-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .lfrb-title {
    font-size: 22px;
    letter-spacing: -0.035em;
  }

  .lfrb-kicker {
    font-size: 10px;
  }

  .lfrb-toggle {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    max-width: 280px;
  }

  .lfrb-tog {
    font-size: 12px;
    padding: 10px 12px;
  }

  .lfrb-head-right {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .lfrb-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .lfrb-viewport {
    margin: 0 -12px;
    padding: 4px 12px 14px;
    scroll-padding-inline: 12px;
  }

  .lfrb-track {
    gap: 12px;
  }

  /* Full-bleed premium mobile cards */
  .lfrb-card {
    flex: 0 0 min(300px, 84vw);
    width: min(300px, 84vw);
    min-height: 280px;
    border-radius: 22px;
    box-shadow:
      0 16px 36px rgba(11, 28, 44, 0.22),
      0 2px 0 rgba(255, 255, 255, 0.06) inset;
  }

  .lfrb-card:hover,
  .lfrb-card:active {
    transform: none;
  }

  .lfrb-shade {
    background:
      linear-gradient(180deg, rgba(8, 18, 32, 0.25) 0%, rgba(8, 18, 32, 0.15) 35%, rgba(8, 18, 32, 0.72) 68%, rgba(8, 18, 32, 0.94) 100%);
  }

  .lfrb-card--gulf .lfrb-shade,
  .lfrb-card--hub .lfrb-shade,
  .lfrb-card--india .lfrb-shade {
    background:
      linear-gradient(180deg, rgba(8, 18, 32, 0.22) 0%, rgba(8, 18, 32, 0.18) 38%, rgba(8, 18, 32, 0.78) 70%, rgba(8, 18, 32, 0.95) 100%);
  }

  .lfrb-body {
    min-height: 280px;
    padding: 16px 16px 18px;
    gap: 5px;
    justify-content: flex-end;
  }

  .lfrb-badge {
    font-size: 9px;
    padding: 5px 9px;
    margin-bottom: 2px;
  }

  .lfrb-body h3 {
    font-size: 18px;
    line-height: 1.18;
    margin-top: 2px;
  }

  .lfrb-iata {
    font-size: 11px !important;
    letter-spacing: 0.08em;
  }

  .lfrb-body p {
    font-size: 12px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
  }

  .lfrb-airlines {
    gap: 8px 12px;
    margin-top: 10px;
  }

  .lfrb-airline {
    gap: 7px;
  }

  .lfrb-airline img {
    width: 34px;
    height: 34px;
    max-width: 34px;
  }

  .lfrb-airline-name {
    font-size: 12px;
    font-weight: 800;
  }

  .lfrb-cta {
    margin-top: 12px;
    font-size: 13px;
    padding: 11px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }

  .lfrb-dots {
    margin-top: 2px;
    gap: 6px;
  }

  .lfrb-dot {
    width: 7px;
    height: 7px;
  }

  .lfrb-dot.is-on {
    width: 20px;
  }
}

@media (max-width: 380px) {
  .lfrb-card {
    flex-basis: 88vw;
    width: 88vw;
    min-height: 268px;
  }

  .lfrb-body {
    min-height: 268px;
  }

  .lfrb-body h3 {
    font-size: 17px;
  }

  .lfrb-airline-name {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lfrb-toggle-pill,
  .lfrb-card,
  .lfrb-bg,
  .lfrb-airline,
  .lfrb-cta,
  .lfrb-viewport {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .lfrb-panel.is-active {
    animation: none !important;
  }
}
