/* ============================================================
   KOLAY YOLCULUK — Design System
   Mobile-first stylesheet. No framework dependencies.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colors — Primary (Orange) 50-950 scale */
  --color-primary-50: #FEF7E8;
  --color-primary-100: #FDECC6;
  --color-primary-200: #FBD88E;
  --color-primary: #f5a623;
  --color-primary-hover: #D4901E;
  --color-primary-active: #B07818;
  --color-primary-disabled: #FBD88E;
  --color-primary-surface: #FEF7E8;

  /* Colors — Secondary (Navy) */
  --color-secondary: #172841;
  --color-secondary-50: #E8ECF0;
  --color-secondary-100: #C5D0DB;
  --color-secondary-400: #3D5670;
  --color-secondary-hover: #122137;

  /* Colors — Accent (Cyan) */
  --color-accent: #71d1e8;
  --color-accent-50: #EDF9FC;
  --color-accent-700: #2DA0B8;
  --color-accent-900: #1A5C6B;

  /* Colors — Neutrals (Stone-tinted, warm) */
  --color-text: #2C2A26;
  --color-text-light: #7C7972;
  --color-text-muted: #A9A69E;
  --color-bg: #FAF9F7;
  --color-bg-card: #ffffff;
  --color-bg-input: #F5F4F0;
  --color-border: #D6D3CC;
  --color-border-light: #E7E5E0;

  /* Colors — Semantic */
  --color-success: #16A34A;
  --color-success-bg: #F0FDF4;
  --color-success-border: #BBF7D0;
  --color-warning: #D97706;
  --color-warning-bg: #FFFBEB;
  --color-warning-border: #FDE68A;
  --color-danger: #DC2626;
  --color-danger-bg: #FEF2F2;
  --color-danger-border: #FECACA;
  --color-info: #2563EB;
  --color-info-bg: #EFF6FF;
  --color-info-border: #BFDBFE;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-pill: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 4px 12px rgba(245, 166, 35, 0.3);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --text-xs: 10px;
  --text-sm: 11px;
  --text-base: 12px;
  --text-md: 13px;
  --text-lg: 14px;
  --text-xl: 15px;
  --text-2xl: 16px;
  --text-3xl: 18px;
  --text-4xl: 20px;
  --text-heading: 24px;
}

/* --- @font-face --- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-md);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-primary); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-content {
  padding: var(--space-xl) 0;
}

/* Content page template (FAQ, Contact, About, etc.) */
.content-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.content-card h1 {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.content-card h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-card p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover { background-color: var(--color-primary-hover); color: white; }
.btn-primary:active { background-color: var(--color-primary-active); }
.btn-primary:disabled { background-color: var(--color-primary-disabled); color: var(--color-text-light); box-shadow: none; cursor: not-allowed; }

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover { background-color: var(--color-secondary-hover); color: white; }

.btn-block {
  display: flex;
  width: 100%;
  padding: var(--space-lg);
  font-size: var(--text-xl);
  border-radius: var(--radius-lg);
}

/* --- Validation States --- */
.border-danger { border-color: var(--color-danger) !important; }
.text-danger { color: var(--color-danger); }

/* --- Form Inputs --- */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  color: #333;
  background: var(--color-bg-card);
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-input::placeholder { color: #bbb; }

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 3px;
}

.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row .form-group { flex: 1; }

/* --- Pills / Badges --- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pill-active {
  background-color: var(--color-primary);
  color: white;
}

.pill-inactive {
  background-color: var(--color-border-light);
  color: var(--color-text-light);
}

.pill-inactive:hover { background-color: var(--color-border); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-primary-100);
  color: var(--color-warning);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--space-xs);
  vertical-align: middle;
}

/* --- Navbar --- */
.navbar {
  background-color: var(--color-secondary);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.navbar-logo-light { color: white; }
.navbar-logo-accent { color: var(--color-primary); }

.navbar-hamburger {
  color: white;
  font-size: var(--text-4xl);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  background: none;
  border: none;
}

/* Desktop nav links (hidden on mobile) */
.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  font-weight: 500;
  transition: color 0.15s;
}

.navbar-link:hover { color: var(--color-primary); }

/* Mobile slide menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 200;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: white;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.menu-panel.open { transform: translateX(0); }

.menu-header {
  background: var(--color-secondary);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-title {
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
}

.menu-close {
  color: white;
  font-size: var(--text-3xl);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  background: none;
  border: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.15s;
}

.menu-item:hover { background-color: var(--color-bg-input); }

.menu-icon { width: 20px; text-align: center; }

.menu-divider { height: var(--space-sm); background: var(--color-bg); }

.menu-section-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-md) var(--space-lg) var(--space-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-footer {
  padding: var(--space-lg);
  background: var(--color-bg-input);
  border-top: 1px solid var(--color-border);
}

.menu-footer-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.menu-footer-phone {
  font-size: var(--text-md);
  color: var(--color-secondary);
  font-weight: 600;
}

.menu-footer-lang {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* --- Footer --- */
.footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
}

.footer-section-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-link {
  display: block;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xs) 0;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--color-primary); }

.footer-trust {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
}

.footer-trust img { height: 32px; opacity: 0.7; }

.footer-contact {
  padding-top: var(--space-xl);
}

.footer-contact-phone {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
}

.footer-copyright {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Flight Cards --- */
.flight-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid transparent;
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.flight-card:hover { box-shadow: var(--shadow-md); }
.flight-card--cheapest { border-left-color: var(--color-primary); }

.flight-card__row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.flight-card__airline-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: contain;
}

.flight-card__info { flex: 1; }

.flight-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.flight-card__time {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-secondary);
}

.flight-card__price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.flight-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.flight-card__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.flight-card__detail {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Day badge (+1, +2) */
.day-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary-100);
  color: var(--color-warning);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--space-xs);
  margin-left: var(--space-xs);
  cursor: pointer;
  position: relative;
  vertical-align: super;
  font-size: 9px;
  transition: background-color 0.15s;
}

.day-badge:hover,
.day-badge.active {
  background: var(--color-primary);
  color: white;
}

.day-badge__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 10;
}

.day-badge__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-secondary);
}

.day-badge:hover .day-badge__tooltip,
.day-badge.active .day-badge__tooltip {
  display: block;
}

/* Stop status colors */
.status-direct { color: var(--color-success); font-weight: 500; }
.status-1stop { color: var(--color-warning); font-weight: 500; cursor: pointer; }
.status-2stop { color: var(--color-danger); font-weight: 500; cursor: pointer; }

/* Stop detail expansion */
.stop-detail {
  display: none;
  background: var(--color-bg-input);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

.stop-detail.show { display: block; }

.stop-leg {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.stop-leg + .stop-leg { border-top: 1px dashed var(--color-border); }

.stop-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  flex-shrink: 0;
}

.stop-dot--departure { background: var(--color-accent); }
.stop-dot--stop { background: var(--color-primary); }
.stop-dot--arrival { background: var(--color-secondary); }

.stop-layover {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-warning);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-warning-bg);
  border-radius: var(--space-xs);
  margin: var(--space-xs) 0;
}

.airline-tag {
  display: inline-block;
  font-size: 9px;
  background: var(--color-border-light);
  color: var(--color-text-light);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Multi-airline overlapping icons */
.airline-icons-overlap {
  display: flex;
  flex-shrink: 0;
}

.airline-icons-overlap .flight-card__airline-icon {
  width: 24px;
  height: 24px;
  border: 2px solid white;
  margin-right: -8px;
}

.airline-icons-overlap .flight-card__airline-icon:last-child {
  margin-right: 0;
}

/* --- Checkout Wizard --- */
.wizard-header {
  background: var(--color-secondary);
  color: white;
  padding: var(--space-md) var(--space-lg);
}

.wizard-back {
  font-size: var(--text-base);
  opacity: 0.7;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

.wizard-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-xs);
}

.wizard-progress {
  display: flex;
  padding: 0 var(--space-lg) var(--space-md);
  background: var(--color-secondary);
  gap: var(--space-xs);
}

.wizard-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.2s;
}

.wizard-dot--active { background: var(--color-primary); }
.wizard-dot--done { background: var(--color-success); }

.wizard-labels {
  display: flex;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-secondary);
  gap: var(--space-xs);
}

.wizard-label {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}

.wizard-label--active { color: var(--color-primary); font-weight: 600; }
.wizard-label--done { color: var(--color-success); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-body {
  background: var(--color-bg-card);
  padding: var(--space-lg);
}

/* Flight summary (expandable) */
.flight-summary {
  background: var(--color-bg-input);
  border-radius: var(--radius-lg);
  margin: var(--space-md) var(--space-lg) 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.flight-summary__header {
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.15s;
}

.flight-summary__header:hover { background: var(--color-border-light); }

.flight-summary__route {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-secondary);
}

.flight-summary__brief {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.flight-summary__price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.flight-summary__chevron {
  margin-left: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  transition: transform 0.2s;
}

.flight-summary.open .flight-summary__chevron {
  transform: rotate(180deg);
}

.flight-summary__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.flight-summary.open .flight-summary__detail {
  max-height: 800px;
}

.flight-summary__detail-inner {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* Leg timeline */
.leg-section { padding: var(--space-md) 0; }
.leg-section + .leg-section { border-top: 1px dashed var(--color-border); }

.leg-header {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leg-badge {
  font-size: 9px;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.leg-badge--departure { background: var(--color-secondary); color: white; }
.leg-badge--return { background: var(--color-accent-700); color: #ffffff; }

/* Passenger card */
.passenger-card {
  background: var(--color-bg-input);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.passenger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.passenger-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-secondary);
}

.passenger-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-border-light);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-pill);
}

/* Baggage options */
.baggage-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}

.baggage-option--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
}

.baggage-option__icon { font-size: var(--text-4xl); width: 36px; text-align: center; }

.baggage-option__info { flex: 1; }

.baggage-option__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-secondary);
}

.baggage-option__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 1px;
}

.baggage-option__price {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-primary);
}

.baggage-option__check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: white;
  transition: all 0.15s;
}

.baggage-option--selected .baggage-option__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Installment options */
.installment-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-base);
}

.installment-option--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
}

.installment-label {
  color: var(--color-secondary);
  font-weight: 500;
}

.installment-amount {
  color: var(--color-primary);
  font-weight: 700;
}

/* Sticky bottom bar */
.wizard-bottom {
  background: var(--color-bg-card);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.wizard-bottom__price-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.wizard-bottom__price-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Homepage --- */
.hero {
  background: var(--color-bg-card);
  padding: var(--space-xl) var(--space-lg);
}

.hero__title {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.2;
}

.hero__title--accent { color: var(--color-primary); }

.hero__search-card {
  background: var(--color-bg-input);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.trip-type-pills {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.swap-button {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: var(--space-xs) auto;
  font-size: var(--text-base);
}

.popular-routes {
  padding: var(--space-xl) var(--space-lg);
}

.popular-routes__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.popular-routes__scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
}

.popular-routes__scroll::-webkit-scrollbar { display: none; }

.route-card {
  min-width: 140px;
  background: var(--color-bg-input);
  border-radius: var(--radius-xl);
  overflow: hidden;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.route-card__image {
  height: 100px;
  background: var(--color-bg-input);
  background-size: cover;
  background-position: center;
}

.route-card__info { padding: var(--space-sm); }

.route-card__city {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary);
}

.route-card__price {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Search Page --- */
.search-header {
  background: var(--color-secondary);
  color: white;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.search-header__route {
  font-size: var(--text-base);
  font-weight: 600;
}

.search-header__info {
  font-size: var(--text-sm);
  opacity: 0.7;
}

.filter-pills {
  background: var(--color-bg-card);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.flight-list {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Domestic two-column header */
.domestic-columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.domestic-column__header {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 700;
  color: white;
  text-align: center;
}

.domestic-column__header--departure { background: var(--color-primary); }
.domestic-column__header--return { background: var(--color-accent-700); color: #ffffff; }

/* --- Filter System --- */

/* Custom checkbox — large, touch-friendly, Airbnb style */
.ky-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  padding: var(--space-xs) 0;
}

.ky-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ky-checkbox__box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  background: var(--color-bg-card);
}

.ky-checkbox__box::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
  margin-top: -2px;
}

.ky-checkbox input:checked + .ky-checkbox__box {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.ky-checkbox input:checked + .ky-checkbox__box::after {
  transform: rotate(45deg) scale(1);
}

.ky-checkbox:hover .ky-checkbox__box {
  border-color: var(--color-secondary);
}

.ky-checkbox__label {
  margin-left: var(--space-sm);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text);
  user-select: none;
}

/* Toggle switch variant (for single on/off filters) */
.ky-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  padding: var(--space-xs) 0;
}

.ky-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ky-toggle__track {
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ky-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.ky-toggle input:checked + .ky-toggle__track {
  background: var(--color-secondary);
}

.ky-toggle input:checked + .ky-toggle__track::after {
  transform: translateX(20px);
}

.ky-toggle__label {
  margin-left: var(--space-sm);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text);
  user-select: none;
}

/* Filter badge on pill */
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  margin-left: var(--space-xs);
  padding: 0 4px;
}

/* Result count */
.result-count {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-align: center;
}

.result-count strong { color: var(--color-text); }

/* Clear filters */
.filter-clear {
  font-size: var(--text-sm);
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
}

.filter-clear:hover { text-decoration: underline; }

/* Filter section */
.filter-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.filter-section:last-child { border-bottom: none; }

.filter-section__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.filter-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

/* Price range inputs */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.price-range-input {
  flex: 1;
  padding: var(--space-sm) var(--space-sm);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  font-family: var(--font-family);
  background: var(--color-bg-card);
  -moz-appearance: textfield;
}

.price-range-input::-webkit-inner-spin-button,
.price-range-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-range-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.price-range-separator {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Price histogram */
.price-histogram {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 40px;
  margin-bottom: var(--space-xs);
  padding: 0 2px;
}

.price-histogram__bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  transition: background-color 0.15s;
}

.price-histogram__bar--active {
  background: var(--color-primary);
  opacity: 0.7;
}

.price-histogram__bar--inactive {
  background: var(--color-border);
  opacity: 0.4;
}

/* Time slot quick buttons */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.time-slot {
  flex: 1;
  min-width: 0;
  padding: var(--space-sm) var(--space-xs);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-family);
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-slot:hover {
  border-color: var(--color-secondary);
}

.time-slot--active {
  background: var(--color-primary-50);
  border-color: var(--color-primary);
  color: var(--color-secondary);
}

.time-slot--active::before {
  content: '✓ ';
  font-size: 10px;
}

/* Airline filter checkboxes */
.airline-filter { }

.airline-filter__toggle-all {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-xs);
  min-height: 44px;
  cursor: pointer;
}

.airline-filter__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-md);
  cursor: pointer;
  min-height: 44px;
  border-bottom: 1px solid var(--color-border-light);
}

.airline-filter__item:last-child { border-bottom: none; }

.airline-filter__item:active {
  background: var(--color-bg-input);
  border-radius: var(--radius-sm);
}

.airline-filter__logo {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.airline-filter__name {
  flex: 1;
  color: var(--color-text);
  font-weight: 500;
}

.airline-filter__price {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile filter sheet */
.filter-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.filter-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90vh;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 401;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.filter-sheet.open {
  transform: translateY(0);
}

.filter-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.filter-sheet__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.filter-sheet__close {
  background: none;
  border: none;
  font-size: var(--text-4xl);
  color: var(--color-text-light);
  cursor: pointer;
  padding: var(--space-xs);
}

.filter-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

.filter-sheet__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.filter-sheet__show-btn {
  display: flex;
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-cta);
}

/* Desktop: hide mobile sheet, show sidebar filters */
@media (min-width: 1024px) {
  .filter-sheet-overlay,
  .filter-sheet { display: none; }

  .filter-sidebar {
    display: block;
  }

  .filter-pills .pill[data-filter="open"] { display: none; }
}

/* Mobile: hide sidebar, show sheet trigger */
@media (max-width: 1023px) {
  .filter-sidebar { display: none; }
}

/* --- Flash Messages --- */
.flash {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-md);
  animation: flashFadeIn 0.3s ease;
}

.flash--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.flash--error { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger-border); }
.flash--info { background: var(--color-info-bg); color: var(--color-info); border: 1px solid var(--color-info-border); }
.flash--warning { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid var(--color-warning-border); }

.flash__close {
  cursor: pointer;
  font-size: var(--text-3xl);
  opacity: 0.5;
  background: none;
  border: none;
  color: inherit;
}

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

/* --- Loading Screen --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.loading-overlay.show { display: flex; }

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  z-index: 300;
  font-size: var(--text-base);
}

.cookie-banner a { color: var(--color-primary); }

.cookie-banner__accept {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* --- Responsive: Tablet --- */
@media (min-width: 768px) {
  .container { padding: 0 var(--space-2xl); }

  .hero { padding: var(--space-3xl); text-align: center; }
  .hero__search-card { max-width: 600px; margin: var(--space-xl) auto 0; }

  .domestic-columns { flex-direction: row; }
  .domestic-columns > * { flex: 1; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-routes__scroll { flex-wrap: wrap; }
  .route-card { min-width: 180px; }
}

/* --- Responsive: Desktop --- */
@media (min-width: 1024px) {
  .navbar-hamburger { display: none; }
  .navbar-links { display: flex; }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }

  .filter-sidebar {
    position: sticky;
    top: 60px;
    align-self: start;
  }

  .popular-routes__scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .route-card { min-width: auto; }
}

/* =========================================================
   SEO Landing Pages (yurtici / yurtdisi)
   ========================================================= */

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.seo-link-grid--airlines {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.seo-link-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background 0.15s ease, transform 0.15s ease;
}

.seo-link-item a:hover {
  background: var(--color-bg-input);
  transform: translateY(-2px);
}

.seo-link-item img {
  width: 80px;
  height: auto;
  display: block;
  margin-bottom: var(--space-xs);
}

.seo-link-item p {
  font-size: var(--text-xs);
  margin: 0;
  line-height: 1.3;
  color: var(--color-text-light);
}

@media (max-width: 480px) {
  .seo-link-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  .seo-link-item img {
    width: 64px;
  }
}

/* =========================================================
   Istanbul Tours Page
   ========================================================= */

/* Carousel */
.istanbul-tours-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-input);
}

.carousel-track {
  position: relative;
  width: 100%;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel-btn--prev {
  left: var(--space-md);
}

.carousel-btn--next {
  right: var(--space-md);
}

.carousel-indicators {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: #fff;
}

/* Tour selector */
.tour-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.tour-selector__btn {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-input);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tour-selector__btn:hover,
.tour-selector__btn--active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* Tour tabs */
.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.tour-tab {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tour-tab:hover {
  color: var(--color-primary);
}

.tour-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Tour tab content */
.tour-tab-content {
  padding: var(--space-md) 0;
}

/* Tour info grid */
.tour-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-input);
  border-radius: var(--radius-md);
}

.tour-info-label {
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
}

.tour-info-value {
  color: var(--color-text);
}

/* Tour guide layout */
.tour-guide {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.tour-guide__bio {
  flex: 1;
  min-width: 200px;
}

.tour-guide__photo img {
  max-width: 200px;
  border-radius: var(--radius-md);
  display: block;
}

/* Tour gallery */
.tour-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.tour-gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.tour-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.tour-gallery a:hover img {
  transform: scale(1.04);
}

/* Tour payment terms */
.tour-payment {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.tour-payment__terms {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Autocomplete dropdown */
.ky-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.ky-autocomplete-list li {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  transition: background 0.15s ease;
}

.ky-autocomplete-list li:hover {
  background: var(--color-bg-input);
}

.ky-autocomplete-list a {
  color: var(--color-text);
  text-decoration: none;
}

