/* Gezilife - Ana stil */
:root {
  --primary: #013F7F;
  --primary-dark: #012c5a;
  --pink: #FC237E;
  --accent: #FC5936;
  --brand-gradient: linear-gradient(135deg, #FC237E 0%, #FC5936 100%);
  --dark: #0f2138;
  --muted: #64748b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(1, 63, 127, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: clip => yatay taşmayı keser AMA scroll konteyneri oluşturmaz,
   böylece .header-stack'in position:sticky özelliği çalışmaya devam eder.
   (overflow-x: hidden sticky'yi bozardı.) */
html, body { overflow-x: clip; max-width: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6, .btn, .logo, button, input, select, textarea {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Top bar ---- */
.top-bar { background: var(--primary-dark); color: #dbe6f3; font-size: 0.82rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.top-bar-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-info a { color: #dbe6f3; display: inline-flex; align-items: center; gap: 6px; }
.top-bar-info a:hover, .top-bar-social a:hover { color: #fff; }
.top-bar-info i { color: var(--pink); }
.top-bar-social { display: flex; align-items: center; gap: 14px; }
.top-bar-social a { color: #dbe6f3; font-size: 0.95rem; }
.top-bar-tursab { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.top-bar-tursab i { color: var(--accent); }

/* ---- Header ---- */
/* Top bar + header birlikte sticky kalsın */
.header-stack {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  background: var(--card);
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 10px 14px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; display: block; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; }
.footer-logo img { height: 40px; width: auto; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--bg); color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.nav-backdrop { display: none; }
.nav-mobile-auth { display: none; }
.nav-drawer-head { display: none; }
.nav-close { background: none; border: none; font-size: 1.5rem; color: var(--dark); cursor: pointer; line-height: 1; }
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
  .header-inner { gap: 12px; }
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-auth { display: flex; align-items: center; gap: 10px; }
.header-auth .auth-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  font-size: 1.1rem; color: var(--primary); background: var(--bg);
  transition: background .15s;
}
.cart-link:hover { background: #e6ecf4; color: var(--primary-dark); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--card);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--brand-gradient); color: #fff; }
.btn-accent:hover { filter: brightness(1.05); color: #fff; }
.btn-ghost { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-block { width: 100%; text-align: center; }
.btn-danger { background: var(--error); color: #fff; }

/* ---- Flash ---- */
.flash-wrap { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; font-weight: 500; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash-info { background: #dbeafe; color: #1e40af; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: 0.92; max-width: 640px; margin: 0 auto 28px; }

/* ---- Search box ---- */
.search-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: -40px auto 0;
  position: relative;
}
.search-box .field { flex: 1; min-width: 160px; }
.search-box label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 4px; }
.search-box input, .search-box select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.95rem;
}

/* ---- Flight search extras ---- */
.flight-search .field label i { color: var(--pink); margin-right: 4px; }
.swap-field { flex: 0 0 auto !important; min-width: 0 !important; display: flex; align-items: flex-end; }
.swap-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }

.route-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.route-chips-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.route-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 0.85rem; font-weight: 600; color: var(--dark);
  box-shadow: 0 2px 8px rgba(1,63,127,.05); transition: all .15s;
}
.route-chip i { color: var(--pink); font-size: 0.75rem; }
.route-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

/* ---- Destinations ---- */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dest-card {
  height: 220px; border-radius: var(--radius); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 18px; color: #fff; font-size: 1.25rem; font-weight: 700;
  box-shadow: var(--shadow); transition: transform .2s;
}
.dest-card:hover { transform: scale(1.02); color: #fff; }

/* ---- Feature strip ---- */
.feature-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; gap: 12px; align-items: center; }
.feature-ic { font-size: 1.5rem; color: var(--pink); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(252,35,126,.08); border-radius: 10px; flex-shrink: 0; }
.feature-item strong { display: block; }
.feature-item p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-title { font-size: 1.8rem; margin-bottom: 8px; }
.section-subtitle { color: var(--muted); margin-bottom: 32px; }

/* ---- Cards ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}
.card:hover { transform: translateY(-4px); }
.card-img { height: 190px; background: #e2e8f0 center/cover no-repeat; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.15rem; margin-bottom: 6px; }
.card-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-top: auto; }
.card-footer { padding: 0 18px 18px; }

.badge {
  display: inline-block; background: var(--bg); color: var(--muted);
  padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}
.badge-accent { background: #ffe3ef; color: #b0165a; }

/* ---- Flight rows ---- */
.flight-row {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; display: grid; grid-template-columns: 1.1fr 2fr 1fr; align-items: center; gap: 20px; margin-bottom: 14px;
  border: 1px solid transparent; transition: box-shadow .15s, border-color .15s;
}
.flight-row:hover { box-shadow: 0 8px 28px rgba(1,63,127,.14); border-color: #e6ecf4; }
.fr-airline { display: flex; align-items: center; gap: 12px; }
.fr-logo { width: 42px; height: 42px; border-radius: 10px; background: rgba(1,63,127,.08); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.fr-airline strong { display: block; font-size: 0.98rem; }
.fr-airline small { color: var(--muted); font-size: 0.8rem; }

.fr-times { display: flex; align-items: center; gap: 16px; justify-content: center; }
.fr-time { text-align: center; }
.fr-time strong { display: block; font-size: 1.25rem; color: var(--dark); line-height: 1.1; }
.fr-time span { display: block; font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.fr-time small { color: var(--muted); font-size: 0.72rem; }
.fr-path { display: flex; flex-direction: column; align-items: center; min-width: 90px; color: var(--muted); }
.fr-path .fr-dur { font-size: 0.75rem; color: var(--muted); }
.fr-path .fr-line { display: block; width: 90px; height: 1px; background: var(--border); position: relative; margin: 6px 0; }
.fr-path .fr-line i { position: absolute; right: -2px; top: -7px; color: var(--pink); font-size: 0.8rem; background: var(--card); padding-left: 3px; }
.fr-path small { font-size: 0.7rem; }

.fr-buy { text-align: right; }
.fr-price { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.fr-seats { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 8px; }

/* ---- Forms ---- */
.form-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; max-width: 480px; margin: 40px auto;
}
.form-card.wide { max-width: 760px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.table tbody tr:hover { background: var(--bg); }

/* ---- Cart ---- */
.cart-summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin: 16px 0; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #cbd5e1; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; padding: 48px 0; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: #cbd5e1; font-size: 0.9rem; line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-col a { color: #cbd5e1; }
.footer-company { border-top: 1px solid #1e293b; padding: 26px 0; }
.footer-company-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: center; }
.footer-company h4 { color: #fff; margin-bottom: 10px; }
.footer-company p { color: #94a3b8; font-size: 0.85rem; margin-bottom: 4px; }
.footer-badges { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tursab-badge { background: #fff; color: #0e7490; font-weight: 800; padding: 10px 16px; border-radius: 8px; text-align: center; line-height: 1.1; }
.tursab-badge small { color: var(--muted); font-weight: 600; }
.pay-badge { background: #1e293b; color: #cbd5e1; padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; }

/* ---- Payment methods strip ---- */
.footer-pay { border-top: 1px solid #1e293b; padding: 22px 0; }
.footer-pay-inner { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.footer-pay-label { color: #94a3b8; font-size: 0.85rem; }
.footer-pay-icons { display: flex; align-items: center; gap: 16px; }
.footer-pay-icons i { font-size: 2.1rem; color: #cbd5e1; transition: color .15s; }
.footer-pay-icons i.fa-cc-visa:hover { color: #1a1f71; }
.footer-pay-icons i.fa-cc-mastercard:hover { color: #eb001b; }
.footer-pay-icons .pay-troy { font-weight: 800; font-size: 1.05rem; color: #cbd5e1; letter-spacing: .04em; background: #1e293b; padding: 6px 12px; border-radius: 6px; }
.footer-pay-secure { color: #94a3b8; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-pay-secure i { color: var(--success); font-size: 1.05rem; }

.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 0; font-size: 0.85rem; }
.footer-bottom .container { text-align: center; }

/* ---- Content: stats band ---- */
.stats-band { background: var(--brand-gradient); color: #fff; padding: 40px 0; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.stat-lbl { font-size: 0.95rem; opacity: 0.92; }

/* ---- Content: two column with icon list ---- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 4px solid var(--pink); }
.mv-card .mv-ic { font-size: 1.6rem; color: var(--pink); margin-bottom: 12px; }
.mv-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

.check-list { list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list li i { color: var(--success); margin-top: 4px; }

.section-alt { background: #fff; }

/* ---- CTA band ---- */
.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.cta-band h2 { font-size: 1.7rem; margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 20px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; }
.page-head { background: var(--card); padding: 40px 0; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: 2rem; }
.page-head p { color: var(--muted); }

/* ---- Page hero (breadcrumb) ---- */
.page-hero { background-size: cover; background-position: center; color: #fff; padding: 54px 0 46px; }
.page-hero h1 { font-size: 2.1rem; margin-bottom: 6px; }
.page-hero p { opacity: .92; max-width: 680px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; margin-bottom: 14px; color: #cdd9e8; }
.breadcrumbs a { color: #cdd9e8; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .current { color: #fff; font-weight: 600; }
.breadcrumbs .sep { opacity: .55; font-size: .75rem; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .nav-toggle { display: block; order: 3; }
  .main-nav { position: static; flex: 0; }
  .main-nav ul {
    position: fixed; top: 0; right: 0; width: 290px; max-width: 84vw; height: 100vh; height: 100dvh;
    background: #fff; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    padding: 14px 16px 28px; gap: 2px; box-shadow: -6px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .25s ease; z-index: 300; overflow-y: auto;
  }
  body.nav-open .main-nav ul { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  /* Drawer, sticky header-stack'in stacking context'i içinde: menü açıkken
     header-stack'i backdrop'un ÜSTÜNE çıkar ki drawer tıklanabilir olsun. */
  body.nav-open .header-stack { z-index: 400; }
  .main-nav ul li { width: 100%; }
  .main-nav a { display: block; padding: 13px 14px; font-size: 0.95rem; border-bottom: 1px solid var(--border); border-radius: 8px; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,33,56,.55); z-index: 250; opacity: 0; visibility: hidden; transition: opacity .25s; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .header-inner { justify-content: space-between; }
  .header-auth { display: none; }
  .nav-drawer-head { display: flex !important; align-items: center; justify-content: space-between; padding: 4px 4px 14px; margin-bottom: 8px; border-bottom: 2px solid var(--border); }
  .nav-drawer-head img { height: 38px; width: auto; }
  .nav-mobile-auth { display: block; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--border); }
  .nav-mobile-auth a { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 600; border-bottom: none; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .flight-row { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .fr-times { justify-content: space-between; }
  .fr-buy { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
  .fr-buy .fr-seats { margin: 0; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat-num { font-size: 1.9rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 20px; }
  .cta-band h2 { font-size: 1.35rem; }
}
@media (max-width: 992px) {
  .top-bar-inner { justify-content: center; padding: 8px 0; }
  .top-bar-info { justify-content: center; flex: 1; }
  .top-bar-social { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .logo img { height: 38px; }
  .header-inner { gap: 10px; padding: 9px 14px; }
  .top-bar { font-size: 0.72rem; }
  .top-bar-inner { justify-content: center; padding: 9px 0; row-gap: 5px; column-gap: 14px; }
  .top-bar-info { gap: 5px 14px; font-size: 0.72rem; flex-wrap: wrap; justify-content: center; }
  .top-bar-info a, .top-bar-tursab { white-space: nowrap; }
  .top-bar-tursab { width: 100%; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  /* footer-grid, .container sınıfını da taşıdığı için genel .container padding'i
     dikey boşluğu eziyordu; footer için dikey padding'i geri veriyoruz. */
  .footer-grid { grid-template-columns: 1fr; padding: 40px 18px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.9rem; }
  .cart-summary, .grid[style] { grid-template-columns: 1fr !important; }
  .footer-company-grid { grid-template-columns: 1fr; }
}
