/* =========================================================
   Bilet Baba — Components
   ========================================================= */

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: all var(--tx-base);
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary-soft);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-primary); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-lg { padding: 14px 28px; font-size: var(--fs-base); border-radius: var(--r-md); }
.btn-xl { padding: 16px 32px; font-size: var(--fs-md); border-radius: var(--r-md); }
.btn-block { width: 100%; }

/* ============== NAVBAR ============== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--navbar-h);
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, .6);
  transition: box-shadow var(--tx-base), background var(--tx-base);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, .95);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.navbar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.navbar-logo {
  display: flex;
  align-items: center;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
}
.navbar-logo .accent { color: var(--gray-900); }
.navbar-logo .dot { color: var(--primary); }
.navbar-tursab { display: none; }

.navbar-agency {
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--gray-500);
  letter-spacing: .025em;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.nav-links {
  display: flex;
  gap: var(--sp-1);
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-600);
  transition: all var(--tx-fast);
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-link.active { background: var(--primary-50); color: var(--primary-700); }
.nav-link svg { stroke: currentColor; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ── Nav user menu ─────────────────────────────────── */
.nav-user-menu { position: relative; }

.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: all .15s;
}
.nav-user-btn:hover { background: var(--gray-200); }

.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  padding: 4px;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }

.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  width: 100%;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 500;
  transition: background .1s;
}
.nav-dropdown-item:hover { background: var(--gray-100); }
.nav-dropdown-item svg { color: var(--gray-500); flex-shrink: 0; }

.nav-dropdown-sep { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.nav-logout-btn { color: var(--primary); }
.nav-logout-btn svg { color: var(--primary); }
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--tx-fast);
}
.lang-trigger:hover { border-color: var(--primary); color: var(--primary); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: var(--z-dropdown);
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  transition: background var(--tx-fast);
}
.lang-menu a:hover  { background: var(--gray-100); color: var(--gray-900); }
.lang-menu a.active { background: var(--primary-50); color: var(--primary-700); font-weight: var(--fw-semibold); }

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--gray-700);
  flex-shrink: 0;
}
.mobile-toggle:hover { background: var(--gray-200); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  inset: var(--navbar-h) 0 0 0;
  background: var(--white);
  padding: var(--sp-6);
  z-index: var(--z-overlay);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link {
  display: flex;
  padding: var(--sp-4);
  font-size: var(--fs-md);
  border-bottom: 1px solid var(--gray-100);
  border-radius: 0;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  z-index: 2; /* stacking context above stats section — replaces isolation:isolate */
  padding: calc(var(--navbar-h) + var(--sp-16)) 0 var(--sp-16);
  background: var(--gradient-soft);
  overflow: visible;
}
/* Decorative blob container */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--gradient-hero);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(220,38,38,.18), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 0);
}

.hero-content { text-align: center; position: relative; z-index: 1; }
.hero-tag { margin-bottom: var(--sp-5); }
.hero-title {
  margin-bottom: var(--sp-5);
  font-size: clamp(36px, 6vw, var(--fs-7xl));
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-title .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  max-width: 620px;
  margin: 0 auto var(--sp-10);
  color: var(--gray-600);
  font-size: clamp(15px, 2vw, var(--fs-lg));
  line-height: var(--lh-relaxed);
}

/* ============== SEARCH BOX ============== */
.search-box {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: visible;
  position: relative;
}

/* Top product tabs */
.search-tabs {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-3) 0;
  border-bottom: 1px solid var(--gray-100);
  overflow-x: auto;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--gray-500);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--tx-fast);
}
.search-tab svg { width: 18px; height: 18px; }
.search-tab:hover { color: var(--gray-900); }
.search-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.search-form { display: none; }
.search-form.active { display: block; }

/* === Sub-tabs row (trip type + direct-only toggle) === */
.search-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) 0;
  flex-wrap: wrap;
}
.trip-type {
  display: inline-flex;
  background: var(--gray-50);
  border-radius: var(--r-full);
  padding: 4px;
  gap: 2px;
}
.trip-type button {
  padding: 8px 18px;
  border: none;
  background: transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--tx-fast);
}
.trip-type button.active {
  background: var(--white);
  color: var(--primary);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-sm);
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-weight: var(--fw-medium);
  user-select: none;
}
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--gray-300);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--tx-fast);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--tx-fast);
  box-shadow: var(--shadow-xs);
}
.toggle-switch input { display: none; }
.toggle-switch.active { background: var(--primary); }
.toggle-switch.active::after { transform: translateX(16px); }

/* === Single-row fields layout === */
.search-row-flight {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 0.9fr 0.9fr auto;
  gap: 1px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--gray-100);
  border-radius: var(--r-xl);
  margin: var(--sp-4) var(--sp-5) var(--sp-5);
  align-items: stretch;
}
.search-row-flight .field {
  background: var(--white);
  padding: 10px 14px;
  position: relative;
  cursor: pointer;
  transition: background var(--tx-fast);
}
.search-row-flight .field:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.search-row-flight .field:hover { background: #fefefe; }
.search-row-flight .field.has-focus {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--primary) inset;
  border-radius: var(--r-md);
  z-index: 2;
}
.search-row-flight .field-label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--gray-500);
  letter-spacing: .03em;
  margin-bottom: 4px;
  display: block;
}
.search-row-flight .field-content {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}
.search-row-flight .field-content input {
  border: none;
  outline: none;
  width: 100%;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
  background: transparent;
  padding: 0;
}
.search-row-flight .field-content input::placeholder { color: var(--gray-400); font-weight: var(--fw-regular); }
.search-row-flight .field-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
  flex: 1;
}
.search-row-flight .field-placeholder {
  font-size: var(--fs-sm);
  color: var(--gray-400);
  font-weight: var(--fw-regular);
}
.search-row-flight .search-submit {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 0 32px;
  margin: 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter var(--tx-fast);
  white-space: nowrap;
}
.search-row-flight .search-submit:hover { filter: brightness(1.08); }
.search-row-flight .search-submit svg { stroke: var(--white); }

/* === City chips (selected items) === */
.city-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 10px;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.city-chip .chip-x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background var(--tx-fast);
  border: none;
  flex-shrink: 0;
}
.city-chip .chip-x:hover { background: var(--primary); }

/* Legacy (used by Hotel/Transfer/eSIM forms) */
.search-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr;
  gap: var(--sp-3);
  align-items: end;
  padding: var(--sp-5);
}
.search-fields-hotel    { grid-template-columns: 2fr 1fr 1fr 1fr; }
.search-fields-transfer { grid-template-columns: 1fr 1fr 1fr 1fr; }
.search-fields-esim     { grid-template-columns: 1fr; }

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
}
.field-input {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  transition: all var(--tx-fast);
  cursor: pointer;
}
.field-input:hover { border-color: var(--gray-200); }
.field-input:focus-within {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.field-input svg { stroke: var(--primary); flex-shrink: 0; }
.field-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  min-width: 0;
}
.field-input input::placeholder { color: var(--gray-400); font-weight: var(--fw-regular); }
.field-input .field-value {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-900);
}
.field-caret { color: var(--gray-400); flex-shrink: 0; }

.swap-btn {
  align-self: end;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--gradient-primary);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--tx-base);
}
.swap-btn:hover { transform: rotate(180deg); }
.swap-btn svg { stroke: var(--white); }

.search-submit {
  width: 100%;
  margin-top: var(--sp-5);
  padding: 16px;
  font-size: var(--fs-md);
  border-radius: var(--r-md);
}

/* Autocomplete dropdown */
.autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2xl);
  max-height: 520px;
  overflow-y: auto;
  z-index: 500;       /* yüksek tut — stats vb. üstünde kalsın */
  display: none;
  padding: var(--sp-3);
}
.autocomplete.open { display: block; }
.ac-section { margin-bottom: var(--sp-4); }
.ac-section:last-child { margin-bottom: 0; }
.ac-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  padding: 0 8px var(--sp-2);
}
.ac-section-title svg { stroke: var(--gray-500); width: 14px; height: 14px; }
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background var(--tx-fast);
}
.autocomplete-item:hover, .autocomplete-item.highlighted { background: var(--gray-50); }
.autocomplete-item .item-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.autocomplete-item .item-icon svg { width: 16px; height: 16px; }
.autocomplete-item .item-body { flex: 1; min-width: 0; }
.autocomplete-item .city { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--gray-900); }
.autocomplete-item .country { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.autocomplete-item .iata {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-bold);
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 8px;
  border-radius: var(--r-xs);
}

/* Grouped autocomplete: city + indented airports */
.autocomplete-item.ac-city .item-icon {
  background: transparent;
  font-size: 24px;
}
.autocomplete-item.ac-city .city {
  font-weight: var(--fw-bold);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.autocomplete-item.ac-city .ac-meta {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: var(--fw-medium);
  text-transform: none;
}
.autocomplete-item.ac-city .ac-badge.popular {
  background: var(--primary-50);
  color: var(--primary);
  font-size: 10px;
  font-weight: var(--fw-bold);
  padding: 2px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.autocomplete-item.ac-airport {
  padding-left: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.autocomplete-item.ac-airport .ac-indent {
  width: 18px;
  flex-shrink: 0;
  position: relative;
}
.autocomplete-item.ac-airport .ac-indent::before {
  content: '';
  position: absolute;
  left: 9px;
  top: -2px;
  bottom: 50%;
  width: 1px;
  background: var(--gray-200);
}
.autocomplete-item.ac-airport .ac-indent::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--gray-200);
}
.autocomplete-item.ac-airport .airport-icon {
  width: 24px; height: 24px;
  background: transparent;
  color: var(--gray-500);
}
.autocomplete-item.ac-airport .airport-icon svg { width: 14px; height: 14px; }
.autocomplete-item.ac-airport .city {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--gray-700);
}

/* Popular destinations grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding: 0 var(--sp-2);
}
.popular-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3) 8px;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--tx-fast);
  background: var(--white);
}
.popular-tile:hover {
  border-color: var(--primary-200);
  background: var(--primary-50);
  transform: translateY(-2px);
}
.popular-tile .tile-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: var(--fw-bold);
}
.popular-tile .tile-name {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
}

/* === Loading overlay === */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  animation: fadeInUp .25s ease;
}
.loading-overlay.active { display: flex; }

.loading-card {
  background: var(--white);
  border-radius: var(--r-2xl);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}
.loading-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.loading-header h3 { color: var(--white); font-size: var(--fs-xl); margin-bottom: 4px; }
.loading-header p  { color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.loading-plane {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: planeFly 1.5s ease-in-out infinite;
}
.loading-plane svg { width: 28px; height: 28px; stroke: var(--white); fill: var(--white); }
@keyframes planeFly {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4px, -4px); }
}

.loading-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.loading-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--gray-50);
  border-radius: var(--r-md);
}
.loading-row .row-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.loading-row .row-icon svg { width: 16px; height: 16px; }
.loading-row .row-info { flex: 1; min-width: 0; }
.loading-row .row-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--gray-900); }
.loading-row .row-sub   { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.loading-progress {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--gray-100);
}
.loading-progress p { font-size: 12px; color: var(--gray-600); margin-bottom: 8px; }
.progress-bar {
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
}
.progress-bar::after {
  content: '';
  position: absolute;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--r-full);
  animation: progressPulse 1.8s ease-in-out infinite;
}
@keyframes progressPulse {
  0%   { left: -30%; width: 30%; }
  50%  { left: 35%; width: 50%; }
  100% { left: 100%; width: 30%; }
}

/* Pax dropdown */
.pax-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-4);
  z-index: var(--z-dropdown);
  min-width: 280px;
}
.pax-dropdown.open { display: block; }
.pax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--gray-100);
}
.pax-row:last-of-type { border-bottom: none; }
.pax-row .pax-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.pax-row .pax-hint { font-size: var(--fs-xs); color: var(--gray-500); display: block; }
.pax-counter { display: flex; align-items: center; gap: var(--sp-3); }
.pax-counter button {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--primary);
  font-size: 18px; font-weight: var(--fw-bold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: all var(--tx-fast);
}
.pax-counter button:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pax-counter button:disabled { opacity: .4; cursor: not-allowed; }
.pax-counter span { min-width: 24px; text-align: center; font-weight: var(--fw-bold); }

/* ============== STATS ============== */
.stats {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}
.stat-num {
  font-size: clamp(28px, 4vw, var(--fs-4xl));
  font-weight: var(--fw-extra);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat-label { font-size: var(--fs-sm); color: var(--gray-600); margin-top: 4px; font-weight: var(--fw-medium); }

/* ============== FEATURES ============== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.feature {
  padding: var(--sp-8);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  transition: all var(--tx-base);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--primary-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.feature-icon svg { width: 28px; height: 28px; stroke: currentColor; }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature p { color: var(--gray-600); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* ============== DESTINATIONS ============== */
.destinations {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-4);
  height: 600px;
}
.dest-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.dest-card:nth-child(1) { grid-row: span 2; }
.dest-card .dest-img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform var(--tx-slow);
}
.dest-card:hover .dest-img { transform: scale(1.08); }
.dest-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 80%);
}
.dest-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-5);
  color: var(--white);
  z-index: 2;
}
.dest-info h3 { color: var(--white); margin-bottom: 4px; }
.dest-info .dest-meta { font-size: var(--fs-xs); opacity: .85; margin-bottom: var(--sp-2); }
.dest-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--gradient-primary);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

/* ============== FAQ ============== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.faq-item {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--tx-fast);
}
.faq-item.open { border-color: var(--primary-200); background: var(--primary-50); }
.faq-q {
  width: 100%;
  padding: var(--sp-5);
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  transition: background var(--tx-fast);
}
.faq-q:hover { background: var(--gray-50); }
.faq-q svg { stroke: var(--gray-500); transition: transform var(--tx-base); flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); stroke: var(--primary); }
.faq-a {
  display: none;
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--gray-700);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.faq-item.open .faq-a { display: block; animation: fadeInUp .25s ease; }

/* ============== CTA SECTION ============== */
.cta {
  background: var(--gradient-cta);
  color: var(--white);
  padding: var(--sp-16) 0;
  text-align: center;
  border-radius: var(--r-2xl);
  margin: var(--sp-16) auto;
  max-width: calc(var(--container-max) - 48px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,.15), transparent 60%);
}
.cta * { position: relative; }
.cta h2 { color: var(--white); margin-bottom: var(--sp-4); }
.cta p { max-width: 540px; margin: 0 auto var(--sp-6); opacity: .9; }
.cta .btn {
  background: var(--white);
  color: var(--primary);
  font-weight: var(--fw-bold);
}
.cta .btn:hover { background: var(--gray-50); transform: translateY(-2px); }

/* ============== FOOTER LEGAL SECTION ============== */
.footer-legal-section {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  padding: var(--sp-10) 0;
}
.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.footer-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
}
.footer-info-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--gray-100);
  letter-spacing: .02em;
}
.footer-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.footer-info-table tr { border-bottom: 1px solid var(--gray-100); }
.footer-info-table tr:last-child { border-bottom: none; }
.footer-info-table td {
  padding: 8px 4px;
  vertical-align: top;
  line-height: 1.5;
}
.footer-info-table td:first-child {
  font-weight: var(--fw-semibold);
  color: var(--gray-700);
  white-space: nowrap;
  padding-right: 16px;
  width: 40%;
}
.footer-info-table td:last-child { color: var(--gray-600); }
.footer-info-table a { color: var(--primary); text-decoration: none; }
.footer-info-table a:hover { text-decoration: underline; }

/* Badges */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: stretch;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-6);
}
.footer-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  box-shadow: var(--shadow-xs);
  min-width: 160px;
}
.footer-badge-link { text-decoration: none; transition: all var(--tx-fast); }
.footer-badge-link:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.footer-badge-text { display: flex; flex-direction: column; gap: 2px; }
.footer-badge-name { font-weight: var(--fw-semibold); color: var(--gray-800); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.footer-badge-val  { font-weight: var(--fw-bold); color: var(--gray-900); font-size: var(--fs-sm); }

.footer-badge-tursab {
  background: #c8102e;
  color: #fff;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
}
.footer-badge-tursab-header { font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.footer-badge-tursab-sub    { font-size: 9px;  font-weight: 600; opacity: .9; margin-top: 1px; }
.footer-badge-tursab-no     { font-size: 9px;  margin-top: 4px; opacity: .85; }
.footer-badge-tursab-no strong { font-weight: 700; }

/* ═══ Certification Table (IATA / TCH / TÜRSAB / ETBİS) ═══ */
.cert-table {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  margin-top: var(--sp-6);
}
.cert-tr {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cert-tr:first-child { border-bottom: 1px solid #E2E8F0; }
.cert-td {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: #fff;
}
.cert-tr .cert-td + .cert-td { border-left: 1px solid #E2E8F0; }
.cert-td-link {
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.cert-td-link:hover { background: #F8FAFC; }
.cert-td-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cert-td-agency { font-size: .72rem; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-td-num { font-size: .82rem; color: #1E293B; font-weight: 600; }
.cert-td-num strong { font-weight: 700; color: #0F172A; }

/* TÜRSAB badge (CSS-drawn, matches official design) */
.tursab-box {
  flex-shrink: 0;
  background: #C8102E;
  color: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  text-align: center;
  width: 120px;
  border: 1px solid #991B1B;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.tursab-box-head { font-size: 12px; font-weight: 900; letter-spacing: .08em; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; margin-bottom: 4px; }
.tursab-box-line1,
.tursab-box-line2 { font-size: 7.5px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; }
.tursab-box-hint { font-size: 6px; line-height: 1.5; opacity: .9; margin: 4px 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 4px; }
.tursab-box-belge-label { font-size: 7px; font-weight: 600; opacity: .85; }
.tursab-box-no { font-size: 13px; font-weight: 900; letter-spacing: .05em; border-top: 1px solid rgba(255,255,255,.3); padding-top: 3px; margin-top: 2px; }
.cert-tursab-desc { font-size: .78rem; color: #334155; line-height: 1.6; }
.cert-tursab-no { font-size: .88rem; }

/* ETBİS */
.cert-td-etbis { align-items: center; }
.cert-qr-img { border: 1px solid #E2E8F0; border-radius: 6px; flex-shrink: 0; }
.cert-qr-placeholder {
  width: 88px; height: 88px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #94A3B8;
  flex-shrink: 0;
}
.cert-etbis-label { font-size: .95rem; font-weight: 700; color: #CC0000; }

@media (max-width: 768px) {
  .cert-tr { grid-template-columns: 1fr; }
  .cert-tr .cert-td + .cert-td { border-left: none; border-top: 1px solid #E2E8F0; }
  .cert-td { padding: 14px 16px; }
  .tursab-box { width: 100px; }
}

@media (max-width: 768px) {
  .footer-info-grid { grid-template-columns: 1fr; }
  .footer-badges { gap: var(--sp-3); }
  .footer-badge { min-width: 0; flex: 1; }
}

/* ============== MOBILE CALL WIDGET (full-screen, auto-open) ============== */
.mobile-call-screen {
  display: none;
}
@media (max-width: 768px) {
  .mobile-call-screen {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1300;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mcSlideIn .35s cubic-bezier(.22,.68,0,1.1);
  }
  .mobile-call-screen.open { display: block; }
}
@keyframes mcSlideIn {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

.mobile-call-inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 0;
}

.mobile-call-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  z-index: 2;
}
.mobile-call-close:hover { background: var(--gray-200); }

.mobile-call-logo {
  text-align: center;
  padding-top: 52px;
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.mc-logo-bilet { color: var(--primary); }
.mc-logo-baba  { color: var(--gray-900); }
.mc-logo-dot   { color: var(--primary); }

.mobile-call-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 24px;
  padding: 0 24px;
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 24px 12px;
  padding: 18px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(220,38,38,.35);
}

.mobile-call-sub {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 24px 20px;
}

.mobile-call-wait {
  background: var(--gray-50);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin: 0 24px;
  flex: 1;
}

.mobile-call-wait-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.mobile-call-wait-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.mobile-call-wait-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.mobile-call-wait-sub {
  font-size: 13px;
  color: var(--gray-500);
}

.mobile-call-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 24px;
  flex-shrink: 0;
}
.mobile-call-cta:hover { background: var(--primary-700); }

/* ============== FOOTER ============== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer-brand { color: var(--white); font-size: var(--fs-2xl); font-weight: var(--fw-extra); margin-bottom: var(--sp-3); }
.footer-tagline { font-size: var(--fs-sm); line-height: var(--lh-relaxed); max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--gray-400);
  transition: color var(--tx-fast);
}
.footer-col a:hover { color: var(--white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.footer-contact .row { display: flex; gap: var(--sp-2); align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; stroke: var(--gray-500); }

.social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.social a {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tx-fast);
}
.social a:hover { background: var(--primary); transform: translateY(-2px); }
.social svg { stroke: var(--white); width: 18px; height: 18px; }

.footer-bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
}
.footer-legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-legal a { color: var(--gray-500); transition: color var(--tx-fast); }
.footer-legal a:hover { color: var(--white); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .destinations { grid-template-columns: 1fr 1fr; height: auto; grid-template-rows: auto; }
  .destinations .dest-card { height: 240px; }
  .destinations .dest-card:nth-child(1) { grid-row: auto; height: 320px; grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .lang-switcher, .nav-actions .btn, .nav-actions .nav-link { display: none; }
  .nav-actions .btn-primary { display: inline-flex; }
  .mobile-toggle { display: flex; }
  /* Push nav-actions (avatar) + hamburger together to the right */
  .nav-actions { margin-left: auto; gap: var(--sp-2); }
  /* Logged-in: hide name+chevron, keep only avatar circle */
  .nav-user-name, .nav-user-btn > svg { display: none; }
  .nav-user-btn { padding: 4px 6px; border-radius: 50%; }
  .navbar-inner { gap: var(--sp-3); }
  /* Agency name: truncate on mobile */
  .navbar-agency { max-width: 160px; font-size: 8px; }

  /* Hero mobile */
  .hero { padding: calc(var(--navbar-h) + var(--sp-8)) 0 var(--sp-8); }
  .hero-title { font-size: clamp(28px, 8vw, 42px); }

  /* Search box mobile */
  .search-box { border-radius: var(--r-xl); margin: 0 var(--sp-4); }
  .search-tabs {
    padding: var(--sp-2) var(--sp-2) 0;
    gap: 0;
  }
  .search-tab { padding: 10px 12px; font-size: 11px; gap: 4px; }
  .search-tab svg { width: 14px; height: 14px; }
  .search-sub { padding: var(--sp-3) var(--sp-3) 0; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }

  /* Search form fields mobile */
  .search-row-flight {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: var(--sp-3);
    margin: var(--sp-3);
    border-radius: var(--r-md);
  }
  .search-row-flight .field { border-radius: var(--r-md) !important; }
  .search-row-flight .search-submit {
    border-radius: var(--r-md) !important;
    padding: 14px;
    width: 100%;
    justify-content: center;
    font-size: var(--fs-base);
  }

  .search-fields, .search-fields-hotel, .search-fields-transfer {
    grid-template-columns: 1fr;
  }
  .swap-btn { transform: rotate(90deg); align-self: center; margin: -8px 0; }
  .swap-btn:hover { transform: rotate(270deg); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { margin-inline: var(--container-pad); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .destinations { grid-template-columns: 1fr; }
  .destinations .dest-card:nth-child(1) { grid-column: auto; height: 280px; }
  .search-row-flight { margin: var(--sp-2); padding: var(--sp-2); }
  .trip-type button { padding: 6px 12px; font-size: 12px; }
}
