/*
 * EAC Car Rental — müşteri portalı.
 *
 * Panelden AYRI bir stil dosyası: portal mobil öncelikli, büyük dokunma
 * hedefli ve tek elle kullanılacak şekilde tasarlandı. Panelin yoğun tablo
 * düzeni burada işe yaramaz.
 *
 * Dış kaynak yok: font, ikon, harita, hiçbir CDN çağrısı yapılmaz.
 */

:root {
  --navy: #0b1b33;
  --navy-2: #14294a;
  --brand: #1c4ed8;
  --brand-soft: #e8eefc;
  --ink: #12203a;
  --muted: #62718c;
  --line: #dce3ee;
  --bg: #f4f7fc;
  --card: #ffffff;
  --ok: #14804a;
  --ok-bg: #e6f4ec;
  --warn: #9a6100;
  --warn-bg: #fdf3e2;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(11, 27, 51, .08);
  --tap: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); }

/* ── giriş ekranı ─────────────────────────────────────────────────────── */

.auth-body {
  /* Lacivert zemin, üstte yumuşak bir ışık ve altta yol çizgisi dokusu.
     Düz renk fazla boştu; desen CSS ile çizilir, görsel dosyası yoktur. */
  background:
    radial-gradient(120% 62% at 50% -8%, rgba(60, 110, 220, .38) 0%, rgba(11, 27, 51, 0) 62%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 55%);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Alt kenarda kesik yol şeridi — markaya ait, jenerik bir doku değil. */
.auth-body::after {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background:
    linear-gradient(180deg, rgba(11, 27, 51, 0) 0%, rgba(11, 27, 51, .55) 100%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .22) 0 26px,
      rgba(255, 255, 255, 0) 26px 60px);
  background-position: 0 0, 0 42px;
  background-size: auto, auto 3px;
  background-repeat: no-repeat, repeat-x;
  pointer-events: none;
}

.auth {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 18px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.auth__brand { text-align: center; color: #fff; position: relative; z-index: 1; }
.auth__logo {
  width: 66px; height: 66px; margin: 0 auto 12px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  display: grid; place-items: center;
  font-weight: 800; letter-spacing: .06em; font-size: 21px;
  overflow: hidden;
}
/* Ayarlar'dan logo yüklendiğinde kutuyu tam doldurur. */
.auth__logo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 9px; }
.auth__brand h1 { margin: 0; font-size: 22px; letter-spacing: -.015em; }
.auth__brand p { margin: 4px 0 0; opacity: .72; font-size: 13.5px; }

/* Güven satırı: şirketin gerçek konumu ve çalışma vaadi. */
.auth__trust {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 14px; margin-top: 12px;
  color: rgba(255, 255, 255, .66); font-size: 12.5px;
}
.auth__trust span { display: inline-flex; align-items: center; gap: 5px; }
.auth__trust svg { opacity: .8; }

.auth__card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 18px 44px rgba(4, 14, 30, .3), 0 2px 6px rgba(4, 14, 30, .18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.auth__card h2 { margin: 0; font-size: 17.5px; letter-spacing: -.01em; }

.auth__contact { text-align: center; }
.auth__contact .muted { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 0 0 8px; }

.auth__foot { text-align: center; color: rgba(255, 255, 255, .6); font-size: 12.5px; margin: 0; }
.auth__foot a { color: rgba(255, 255, 255, .9); }

/* ── form ─────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 600; }

input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
textarea { min-height: 110px; resize: vertical; }

.btn {
  min-height: var(--tap);
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--block { width: 100%; }
.btn--link {
  background: none; border: none; color: var(--brand);
  min-height: 40px; font-weight: 600;
}
.btn--ghost { background: #fff; }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ── uyarı kutuları ───────────────────────────────────────────────────── */

.alert {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13.5px;
  border: 1px solid;
}
.alert--danger { background: var(--danger-bg); border-color: #f3c4c0; color: var(--danger); }
.alert--ok { background: var(--ok-bg); border-color: #b9e0c9; color: var(--ok); }
.alert--warn { background: var(--warn-bg); border-color: #f0d9ae; color: var(--warn); }
.alert--info { background: var(--brand-soft); border-color: #c3d3f7; color: var(--brand); }
[hidden] { display: none !important; }

/* ── uygulama kabuğu ──────────────────────────────────────────────────── */

.app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar__title { font-weight: 700; font-size: 15.5px; }
.topbar__sub { font-size: 12px; opacity: .7; }
.topbar button {
  background: rgba(255, 255, 255, .12); color: #fff; border: none;
  border-radius: 9px; min-height: 38px; padding: 8px 12px; font: inherit; cursor: pointer;
}

main.view { padding: 16px 14px 8px; max-width: 720px; margin: 0 auto; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.card__title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 0 0 10px; font-weight: 700;
}

.stat { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.stat + .stat { border-top: 1px dotted var(--line); }
.stat dt { color: var(--muted); margin: 0; font-size: 13.5px; }
.stat dd { margin: 0; font-weight: 600; text-align: right; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #eef2f8; color: var(--muted);
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--brand-soft); color: var(--brand); }

/* Hızlı işlem düğmeleri — tek elle basılacak kadar büyük. */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick .btn { min-height: 58px; font-size: 14.5px; flex-direction: column; gap: 3px; }
.quick .btn small { font-weight: 500; opacity: .7; font-size: 11.5px; }
.quick--single { grid-template-columns: 1fr; }

.list__item {
  display: block; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px; margin-bottom: 10px;
  font: inherit; color: inherit; cursor: pointer;
}
.list__row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.list__title { font-weight: 700; }
.list__meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.list__soon {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 4px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 600;
}

/* ── geri sayım şeridi ────────────────────────────────────────────────── */

/* Müşterinin ilk baktığı bilgi "ne kadar kaldı" — kartın en üstünde,
   tarihi kafadan hesaplatmadan. Teslim yaklaştıkça ton sertleşir. */
.countdown {
  display: flex; align-items: center; gap: 8px;
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  border: 1px solid;
}
.countdown strong { margin-left: auto; font-size: 15px; letter-spacing: -.01em; }
.countdown--ok { background: var(--ok-bg); border-color: #b9e0c9; color: var(--ok); }
.countdown--warn { background: var(--warn-bg); border-color: #f0d9ae; color: var(--warn); }
.countdown--danger { background: var(--danger-bg); border-color: #f3c4c0; color: var(--danger); }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; border: 1px solid var(--line); background: #eef2f8;
}

.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.empty { text-align: center; color: var(--muted); padding: 26px 12px; }

/* ── alt gezinme ──────────────────────────────────────────────────────── */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  background: none; border: none; font: inherit; cursor: pointer;
  padding: 9px 4px 10px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; min-height: 58px;
}
.tabbar button.is-active { color: var(--brand); font-weight: 700; }
/* Ikonlar currentColor ile boyanir; aktif sekme rengini kendiliginden alir. */
.tabbar svg { opacity: .55; transition: opacity .15s ease, transform .15s ease; }
.tabbar button.is-active svg { opacity: 1; transform: translateY(-1px); }

/* ── yükleniyor ───────────────────────────────────────────────────────── */

.loading { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }

@media (min-width: 640px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
}

/* ══ menü listesi ═══════════════════════════════════════════════════════ */

.menu { display: flex; flex-direction: column; }
.menu__item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 2px; min-height: var(--tap);
  background: none; border: none; border-bottom: 1px solid var(--line);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.menu__item:last-child { border-bottom: none; }
.menu__item > span:first-of-type { flex: 1; font-weight: 600; }
.menu__item svg { color: var(--brand); flex: none; }
.menu__chev { color: var(--muted); display: inline-flex; transform: rotate(180deg); }
.menu__chev svg { color: inherit; }

/* ══ kiralama yolculuğu ═════════════════════════════════════════════════ */

.journey {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; gap: 0;
}
.journey__step {
  flex: 1; text-align: center; position: relative;
  color: var(--muted); font-size: 10.5px; line-height: 1.25;
}
/* Adımları birleştiren çizgi; tamamlananlar marka rengine döner. */
.journey__step::before {
  content: ''; position: absolute; top: 9px; left: -50%;
  width: 100%; height: 2px; background: var(--line);
}
.journey__step:first-child::before { display: none; }
.journey__step.is-done::before { background: var(--brand); }
.journey__dot {
  position: relative; z-index: 1;
  width: 20px; height: 20px; margin: 0 auto 5px;
  border-radius: 50%; background: #fff;
  border: 2px solid var(--line);
  display: grid; place-items: center; color: #fff;
}
.journey__step.is-done .journey__dot { background: var(--brand); border-color: var(--brand); }
.journey__step.is-done { color: var(--ink); font-weight: 600; }
.journey__label { display: block; padding: 0 2px; }

/* ══ bakiye özeti ═══════════════════════════════════════════════════════ */

.sum { display: flex; flex-direction: column; gap: 2px; }
.sum__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
}
.sum__row:last-child { border-bottom: none; }
.sum__row--total {
  border-top: 2px solid var(--ink); border-bottom: none;
  margin-top: 4px; padding-top: 11px;
}
.sum__row--total span { font-weight: 700; }
.sum__row--total strong { font-size: 19px; }
.sum strong.ok { color: var(--ok); }
.sum strong.danger { color: var(--danger); }

/* ══ fotoğraflar ════════════════════════════════════════════════════════ */

.photo-group + .photo-group { margin-top: 14px; }
.photo-group__title {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 8px;
}
.photo-btn {
  padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 9px; overflow: hidden; display: block;
}
.photo-btn img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; border: 1px solid var(--line); background: #eef2f8;
  display: block;
}

/* Tam ekran görüntüleyici */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 14, 28, .96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.viewer__bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  color: #fff; font-size: 13px;
}
.viewer__title { opacity: .8; }
.viewer__close {
  background: rgba(255, 255, 255, .14); color: #fff; border: none;
  width: 38px; height: 38px; border-radius: 50%; font-size: 17px; cursor: pointer;
}
.viewer__img {
  max-width: 94vw; max-height: 74vh; object-fit: contain;
  border-radius: 10px; cursor: zoom-in; transition: transform .18s ease;
}
.viewer__img.is-zoom { transform: scale(1.9); cursor: zoom-out; }
.viewer__nav {
  position: absolute; bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 18px; color: #fff;
}
.viewer__count { font-size: 13px; opacity: .8; min-width: 62px; text-align: center; }
.viewer__arrow {
  background: rgba(255, 255, 255, .14); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
}
.viewer__arrow--next svg { transform: rotate(180deg); }

/* ══ teslim / iade karşılaştırması ══════════════════════════════════════ */

.compare { margin-top: 14px; }
.compare__head, .compare__row {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px;
  padding: 8px 0; align-items: baseline;
}
.compare__head {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line);
}
.compare__row { border-bottom: 1px dotted var(--line); font-size: 14px; }
.compare__label { color: var(--muted); font-size: 13px; }
.compare .alert { margin-top: 10px; }

/* ══ bilgi sayfaları ════════════════════════════════════════════════════ */

.prose { line-height: 1.65; white-space: pre-wrap; }
.qa { border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom: none; }
.qa summary {
  cursor: pointer; padding: 13px 0; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
  min-height: var(--tap); align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--brand); font-size: 19px; font-weight: 400; }
.qa[open] summary::after { content: '−'; }
.qa__body { padding: 0 0 13px; color: var(--muted); line-height: 1.6; }

.note {
  background: var(--brand-soft); border-radius: 10px;
  padding: 11px 13px; margin-top: 10px; font-size: 13.5px; line-height: 1.55;
}
.note--tip { background: var(--ok-bg); }

/* ══ gezi rehberi ═══════════════════════════════════════════════════════ */

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.place {
  display: flex; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; margin-bottom: 10px;
  font: inherit; color: inherit; cursor: pointer;
}
.place__img {
  width: 92px; height: 74px; flex: none; object-fit: cover;
  border-radius: 9px; background: #eef2f8;
}
.place__img--empty { display: grid; place-items: center; color: var(--muted); }
.place__body { min-width: 0; }
.place__title { font-weight: 700; }
.place__cat {
  display: inline-block; margin: 3px 0 4px; padding: 2px 8px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: 11.5px; font-weight: 700;
}
.place__sum {
  color: var(--muted); font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.place__hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 11px; margin-bottom: 12px; background: #eef2f8;
}

.route { margin: 0; padding-left: 20px; }
.route__item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
}
.route__item:last-child { border-bottom: none; }

/* ══ okunmamış bildirim ═════════════════════════════════════════════════ */

.list__item.is-unread { border-left: 3px solid var(--brand); background: #fbfcff; }

/* ══ hızlı işlemler ızgarası ════════════════════════════════════════════ */

.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.needs button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 78px; padding: 10px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: center; line-height: 1.25;
}
.needs button svg { color: var(--brand); }
.needs button:active { background: var(--brand-soft); }

/* ══ acil durum ═════════════════════════════════════════════════════════ */

.sos { display: flex; flex-direction: column; gap: 10px; }
.sos__btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 66px;
  border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); text-decoration: none;
}
.sos__btn strong { font-size: 26px; letter-spacing: -.02em; min-width: 62px; }
.sos__btn span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
/* 112 en belirgin olmalı: kaza anında aranan ilk numara. */
.sos__btn--112 {
  background: var(--danger); border-color: var(--danger); color: #fff;
}
.sos__btn--112 span { color: rgba(255, 255, 255, .85); }

.steps { margin: 0; padding-left: 20px; }
.steps li { padding: 7px 0; line-height: 1.55; }
.steps li + li { border-top: 1px dotted var(--line); }

/* Kaza kısayolu ızgarada ayrışsın — acil durumda gözle aranmasın. */
.needs button.is-sos { border-color: #f3c4c0; background: var(--danger-bg); color: var(--danger); }
.needs button.is-sos svg { color: var(--danger); }
