/*
 * Global UI polish layer for shared pages, booking flow, and filter/search views.
 */

:root {
  --ui-primary: #0c5699;
  --ui-primary-strong: #08447a;
  --ui-primary-soft: #e8f2fc;
  --ui-bg: #f2f6fb;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
  --ui-border: #dce6f3;
  --ui-card-shadow: 0 10px 24px rgba(8, 27, 58, 0.08);
  --ui-card-shadow-hover: 0 16px 36px rgba(8, 27, 58, 0.12);
}

html,
body {
  background: var(--ui-bg);
  color: var(--ui-text);
}

body.page-shell {
  min-height: 100vh;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Shared card/button polish */
.light-shadow,
.flight-block,
.sidebar.bg-white,
.bg-white.br-10 {
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-card-shadow);
}

.flight-block:hover {
  box-shadow: var(--ui-card-shadow-hover);
}

.cus-btn,
.flight-button .cus-btn,
.flight-button a.cus-btn,
.chat-toast__link {
  background: linear-gradient(180deg, var(--ui-primary) 0%, var(--ui-primary-strong) 100%);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}

.cus-btn:hover,
.flight-button .cus-btn:hover,
.flight-button a.cus-btn:hover {
  filter: brightness(1.03);
}

/* Flight listing filter sidebar */
.flight-listing-page .sidebar.bg-white {
  border-radius: 16px;
  overflow: hidden;
}

.flight-listing-page .sidebar-title {
  padding: 18px 24px;
  background: linear-gradient(180deg, #f5faff 0%, #edf5ff 100%);
  border-bottom: 1px solid var(--ui-border);
}

.flight-listing-page .sidebar-title h4 {
  color: #0f2744;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.flight-listing-page .filter-block .title h4 {
  color: #0f2744;
  font-weight: 700;
}

.flight-listing-page .filter-block .title i {
  color: var(--ui-primary);
}

.flight-listing-page .radio-tile.sidebar-radio,
.flight-listing-page .radio-tile.sidebar-departure-radio {
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #f8fbff;
  transition: all 0.18s ease;
}

.flight-listing-page .radio-button:checked + .radio-tile {
  border-color: var(--ui-primary);
  background: var(--ui-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(12, 86, 153, 0.22);
}

.flight-listing-page .custom-control-label {
  color: #18324f;
}

.flight-listing-page .flight-block {
  border-radius: 14px;
}

.flight-listing-page .flight-area {
  gap: 10px;
}

.flight-listing-page .airline-logo-sm {
  border-radius: 10px;
  border: 1px solid var(--ui-border);
  background: #fff;
}

.flight-listing-page .route-icon {
  opacity: 0.92;
}

.flight-listing-page .flight-button a {
  min-width: 106px;
  text-align: center;
}

/* Booking details page polish */
.booking-show-page .gradient-bg {
  background: linear-gradient(135deg, #0e4e8a 0%, #0b74b2 55%, #138dbf 100%);
}

.booking-show-page .glass-effect {
  border: 1px solid rgba(203, 213, 225, 0.7);
}

/* Better default focus state */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #2f80c5;
  outline-offset: 2px;
}

/* Pagy */
.pagy {
  display: flex;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #6b7280;
  justify-content: end;
}
.pagy > :not([hidden]) ~ :not([hidden]) {
  --space-reverse: 0;
  margin-right: calc(0.25rem * var(--space-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--space-reverse)));
}
.pagy a:not(.gap) {
  display: block;
  text-decoration: none;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  color: inherit;
}
.pagy a:not(.gap):hover {
  background-color: #d1d5db;
}
.pagy a:not(.gap):not([href]) { /* disabled links */
  cursor: default;
  background-color: #f3f4f6;
  color: #d1d5db;
}
.pagy a:not(.gap).current {
  background-color: #9ca3af;
  color: white;
}
.pagy label {
  white-space: nowrap;
  display: inline-block;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  padding: 0.125rem 0.75rem;
}
.pagy label input {
  line-height: 1.5rem;
  border-radius: 0.375rem;
  border-style: none;
  background-color: #f3f4f6;
}
