/* Eksper Araç Kiralama — tek stil dosyası.
   Renk ve ölçüler CSS değişkenlerinde; panel de aynı değişkenleri kullanır. */

:root {
  --orange: #f36f21;
  --orange-dark: #d95c14;
  --orange-soft: #fff3ec;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e8eaee;
  --bg: #f5f6f8;
  --white: #fff;
  --green: #16a34a;
  --green-soft: #eaf7ee;
  --red: #dc2626;
  --red-soft: #fdeceb;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .12);
  --wrap: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ─── düğmeler ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; background: var(--white);
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ─── üst bar ──────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 32px; height: 78px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--orange);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.logo-name { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1; display: block; }
.logo-tag { font-size: 12.5px; color: var(--orange); font-weight: 600; }

.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { font-weight: 500; color: #333; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--orange); border-color: var(--orange); }

.header-phone { display: flex; align-items: center; gap: 12px; }
.phone-ring {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--orange); flex: none;
}
.header-phone strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.header-phone span { font-size: 12px; color: var(--muted); }

.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ─── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 16, .8) 0%, rgba(10, 12, 16, .5) 45%, rgba(10, 12, 16, .12) 100%);
}
.hero-inner { position: relative; padding: 112px 0 170px; max-width: 620px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { font-size: 19px; color: rgba(255, 255, 255, .9); max-width: 520px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; }

/* ─── arama kutusu ─────────────────────────────────────────────────────── */
.search-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px; display: grid; gap: 16px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr .9fr auto;
  align-items: end;
}
.hero .search-card { margin: -70px auto 0; position: relative; z-index: 5; max-width: var(--wrap); }
.search-field label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 8px; }
.search-field .control {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 48px;
  background: var(--white);
}
.search-field .control:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.search-field .control svg { flex: none; color: var(--orange); }
.search-field input, .search-field select {
  border: 0; outline: 0; width: 100%; height: 100%; font: inherit; color: var(--ink); background: none;
}
.search-card .btn { height: 48px; }

/* ─── bölümler ─────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--orange); font-weight: 600; font-size: 14px; }

/* ─── araç kartı ───────────────────────────────────────────────────────── */
.car-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.car-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s;
}
.car-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.car-media { position: relative; aspect-ratio: 16 / 10; background: #f2f3f5; display: block; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border-radius: 999px; padding: 5px 11px;
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--green); }
.badge-busy { color: var(--red); }

.car-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 16.5px; margin: 0 0 2px; }
.car-cat { font-size: 13px; color: var(--muted); }

.car-specs {
  display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 14px 0 16px;
  font-size: 13px; color: #4b5563;
}
.car-specs span { display: inline-flex; align-items: center; gap: 6px; }
.car-specs svg { color: #9aa1ad; }

.car-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ─── avantajlar ───────────────────────────────────────────────────────── */
.features {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature { display: flex; gap: 14px; }
.feature svg { color: var(--orange); flex: none; }
.feature strong { display: block; font-size: 15px; }
.feature span { font-size: 13.5px; color: var(--muted); }

/* ─── filtre + liste ───────────────────────────────────────────────────── */
.layout-side { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.panel h3 { font-size: 15px; margin-bottom: 14px; }
.filter-group { margin-bottom: 18px; }
.filter-group > span { display: block; font-size: 12.5px; font-weight: 600; color: #4b5563; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 14px; cursor: pointer; }

/* ─── formlar ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}
.field .err { color: var(--red); font-size: 12.5px; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.alert { border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: var(--red-soft); color: #991b1b; }
.alert-ok { background: var(--green-soft); color: #14532d; }

/* ─── araç detayı ──────────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.detail-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.spec { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.spec span { display: block; font-size: 12.5px; color: var(--muted); }
.spec strong { font-size: 15px; }

.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-weight: 700;
}

/* ─── ofis kartları ────────────────────────────────────────────────────── */
.office-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.office-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.office-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.office-body { padding: 18px; }
.office-body h3 { font-size: 16px; margin-bottom: 4px; }
.office-meta { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; margin-top: 12px; }

/* ─── tablo ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; }
table.data tr:hover td { background: #fcfcfd; }

.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.chip-pending { background: #fff7e6; color: #b45309; }
.chip-confirmed { background: var(--green-soft); color: #15803d; }
.chip-completed { background: #eef2ff; color: #4338ca; }
.chip-cancelled { background: var(--red-soft); color: #b91c1c; }

/* ─── alt bilgi ────────────────────────────────────────────────────────── */
.footer { background: #14161a; color: #b6bcc6; padding: 56px 0 26px; margin-top: 72px; font-size: 14px; }
.footer a:hover { color: var(--orange); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .logo-name { color: #fff; }
.footer-bottom {
  border-top: 1px solid #262a31; margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}

/* ─── panel ────────────────────────────────────────────────────────────── */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--bg); }
.admin-side { background: #14161a; color: #cfd4dc; padding: 22px 16px; }
.admin-side .logo { margin: 0 6px 26px; }
.admin-side .logo-name { color: #fff; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav a { padding: 10px 12px; border-radius: 9px; font-size: 14.5px; display: flex; justify-content: space-between; }
.admin-nav a:hover { background: #1e2128; color: #fff; }
.admin-nav a.active { background: var(--orange); color: #fff; }
.admin-nav .count { background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 0 8px; font-size: 12px; }

.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-top h1 { font-size: 24px; margin: 0; }

.stat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 26px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.login-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; width: 100%; max-width: 400px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.toolbar input, .toolbar select {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font: inherit; background: var(--white);
}
.row-actions { display: flex; gap: 6px; }

/* ─── uyarlanabilir ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .search-card { grid-template-columns: 1fr 1fr 1fr; }
  .detail, .layout-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0; background: var(--white);
    flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header .wrap { gap: 14px; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { padding: 16px; }
  .admin-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .search-card { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 120px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-phone .phone-text { display: none; }
}
