/* ===========================
   İLAN SİSTEMİ - MAIN STYLES
   =========================== */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --danger: #e76f51;
  --bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f1f3f4;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all .2s ease;
  --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Hakkımızda, gizlilik, kullanım şartları, iletişim — footer ile aynı max genişlik (1200px) */
.page-static {
  padding: 40px 0 48px;
  box-sizing: border-box;
}
.page-static .breadcrumb {
  margin-bottom: 16px;
}

/* ======= HEADER ======= */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 3px solid var(--primary);
  width: 100%;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 70px;
  width: 100%;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; color: var(--primary);
  white-space: nowrap;
}
.logo-img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-img { height: 28px; }
}
.logo-icon {
  width: 40px; height: 40px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 18px;
}
.logo-text { color: var(--secondary); }
.logo-text span { color: var(--primary); }

.header-search {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}
.header-search form {
  display: flex; background: var(--gray-100);
  border: 2px solid transparent; border-radius: 50px;
  overflow: hidden; transition: var(--transition);
}
.header-search form:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(230,57,70,.1);
}
.header-search input {
  flex: 1; border: none; background: transparent;
  padding: 10px 16px; font-size: 14px; outline: none;
}
.header-search button {
  background: var(--primary); color: #fff; border: none;
  padding: 0 18px; cursor: pointer; font-size: 15px;
}
.header-search button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.header-sahibinden {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  transition: var(--transition);
}
.header-sahibinden:hover {
  border-color: #f6a600;
  color: var(--secondary);
}
.header-sahibinden-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.header-sahibinden-text {
  color: var(--gray-700);
  letter-spacing: -0.02em;
}
.header-sahibinden--mobile {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .iletisim-page-grid { grid-template-columns: 1fr !important; }
}
.btn-ghost {
  padding: 8px 16px; border: 2px solid var(--gray-200);
  border-radius: 50px; font-weight: 600; font-size: 13px;
  color: var(--gray-800);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  padding: 8px 18px; background: var(--primary); color: #fff;
  border-radius: 50px; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; border: none;
  cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-block { display: flex !important; width: 100%; justify-content: center; }

.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--gray-800); padding: 4px;
}

/* ======= CAT NAV ======= */
.cat-nav { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.cat-nav-list {
  display: flex; overflow-x: auto; gap: 0;
  scrollbar-width: none;
}
.cat-nav-list::-webkit-scrollbar { display: none; }
.cat-nav-list li a {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: var(--transition);
}
.cat-nav-list li a i { font-size: 18px; }
.cat-nav-list li a:hover { border-bottom-color: currentColor; background: var(--gray-100); }

/* ======= HERO ======= */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 1.15rem; opacity: .85; margin-bottom: 32px; }
.hero-search {
  max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 60px;
  display: flex; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; border: none; padding: 16px 24px;
  font-size: 15px; outline: none; color: var(--text);
}
.hero-search select {
  border: none; border-left: 1px solid var(--gray-200);
  padding: 0 16px; font-size: 13px; background: var(--gray-100);
  outline: none; cursor: pointer; color: var(--gray-800);
}
.hero-search button {
  background: var(--primary); color: #fff; border: none;
  padding: 0 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-stats {
  margin-top: 28px;
  display: flex; justify-content: center; gap: 32px;
}
.hero-stats span {
  font-size: 13px; opacity: .8;
}
.hero-stats strong { font-size: 18px; font-weight: 800; display: block; opacity: 1; }

/* ======= SECTIONS ======= */
.section { padding: 48px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.section-title span { color: var(--primary); }
.see-all { color: var(--primary); font-weight: 600; font-size: 13px; }
.see-all:hover { text-decoration: underline; }

/* ======= KATEGORİ KARTLARI ======= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 2px solid transparent;
}
.cat-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: currentColor;
}
.cat-card-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; margin: 0 auto 12px;
}
.cat-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cat-card span { font-size: 12px; color: var(--gray-600); }

/* ======= İLAN KARTLARI ======= */
.ilanlar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ilan-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative;
}
.ilan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ilan-card-img {
  aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100);
  position: relative;
}
.ilan-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.ilan-card:hover .ilan-card-img img { transform: scale(1.06); }
.ilan-card-img .no-img {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 48px; color: var(--gray-400);
}
.ilan-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.ilan-badge.vitrin { background: #f59e0b; }
.ilan-badge.acil { background: var(--danger); }
.ilan-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; background: rgba(255,255,255,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--gray-600);
  transition: var(--transition); border: none;
}
.ilan-fav:hover, .ilan-fav.active { color: var(--primary); }

.ilan-card-body { padding: 14px; }
.ilan-card-cat {
  font-size: 11px; color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.ilan-card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ilan-card-price {
  font-size: 18px; font-weight: 800; color: var(--primary);
  margin-bottom: 10px;
}
.ilan-card-price small {
  font-size: 12px; font-weight: 500; color: var(--gray-600);
}
.ilan-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--gray-100);
  font-size: 11px; color: var(--gray-600);
}
.ilan-card-location { display: flex; align-items: center; gap: 4px; }

/* ======= İLAN DETAY ======= */
.ilan-detail {
  padding: 32px 0;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.ilan-detail-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
  min-width: 0;
}
.ilan-detail-grid > div {
  min-width: 0;
  max-width: 100%;
}
.ilan-gallery {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  max-width: 100%; width: 100%; box-sizing: border-box;
}
.gallery-main {
  aspect-ratio: 4/3; overflow: hidden;
  max-width: 100%; position: relative;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; max-width: 100%;
  cursor: zoom-in;
}
.gallery-thumbs {
  display: flex; gap: 8px; padding: 12px; overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery-thumbs img {
  width: 70px; height: 55px; object-fit: cover; flex-shrink: 0;
  border-radius: 6px; cursor: pointer; opacity: .6;
  transition: var(--transition); border: 2px solid transparent;
  max-width: none;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover {
  opacity: 1; border-color: var(--primary);
}

.ilan-ozellik-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-width: 0;
}
.ilan-ozellik-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* İlan görsel lightbox */
.ilan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 16px;
  box-sizing: border-box;
  touch-action: manipulation;
}
.ilan-lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ilan-lightbox-inner img {
  max-width: 100%;
  max-height: min(92vh, 100dvh);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  user-select: none;
}
.ilan-lightbox-close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ilan-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.ilan-lightbox-prev,
.ilan-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ilan-lightbox-prev { left: 8px; }
.ilan-lightbox-next { right: 8px; }
.ilan-lightbox-prev:hover,
.ilan-lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }

.ilan-info { background: var(--white); border-radius: var(--radius); padding: 24px; }
.ilan-info h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.ilan-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ilan-tag {
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  font-weight: 700; background: var(--gray-100); color: var(--gray-600);
}
.ilan-tag.primary { background: rgba(230,57,70,.1); color: var(--primary); }
.ilan-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.ilan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.ilan-meta-item label { font-size: 11px; color: var(--gray-600); text-transform: uppercase; font-weight: 700; display: block; }
.ilan-meta-item span { font-size: 14px; font-weight: 600; }
.ilan-desc h2 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.ilan-desc p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }
.ilan-aciklama-content { font-size: 14px; color: var(--gray-600); line-height: 1.8; word-wrap: break-word; }
.ilan-aciklama-content p { margin: 0 0 0.75em 0; }
.ilan-aciklama-content p:last-child { margin-bottom: 0; }
.ilan-aciklama-content ul, .ilan-aciklama-content ol { margin: 0.5em 0 0.75em 1.25em; padding: 0; }
.ilan-aciklama-content li { margin-bottom: 0.25em; }

.ilan-sidebar {}
.seller-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.seller-card h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; color: var(--gray-600); }
.seller-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-avatar {
  width: 48px; height: 48px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 800; font-size: 18px;
}
.seller-name { font-weight: 700; font-size: 15px; }
.seller-since { font-size: 12px; color: var(--gray-600); }
.btn-tel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; background: var(--success); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  margin-bottom: 8px; border: none; cursor: pointer; transition: var(--transition);
}
.btn-tel:hover { background: #22867a; }
.btn-msg {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; background: var(--white); color: var(--secondary);
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition);
}
.btn-msg:hover { border-color: var(--secondary); background: var(--gray-100); }

/* ======= FORM ======= */
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; color: var(--secondary); }
.form-subtitle { color: var(--gray-600); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--gray-800); }
.form-label .req { color: var(--primary); }
.form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; outline: none;
  transition: var(--transition); background: var(--white);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(230,57,70,.08); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* Cloudflare Turnstile: iframe sabit genişlikte — tam genişlik alan içinde ortala (masaüstü boşluk sorunu) */
.turnstile-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.btn-submit {
  width: 100%; padding: 14px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-weight: 800;
  font-size: 16px; cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ======= ALERTS ======= */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ======= PAGINATION ======= */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.pagination a, .pagination span {
  width: 38px; height: 38px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 14px; border: 2px solid var(--gray-200); color: var(--gray-800);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ======= BREADCRUMB ======= */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--gray-600);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ======= FILTER ======= */
.filter-bar {
  background: var(--white); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
}
.filter-bar .form-group { margin: 0; flex: 1; min-width: 150px; }
.btn-filter {
  padding: 11px 20px; background: var(--secondary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-weight: 700;
  cursor: pointer; white-space: nowrap; font-size: 14px;
}
.btn-filter:hover { background: var(--accent); }
.btn-reset {
  padding: 11px 16px; background: var(--white); color: var(--gray-600);
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; font-size: 13px;
}

.listing-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.listing-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.listing-sidebar .form-group { margin-bottom: 12px; }
.listing-sidebar .btn-filter, .listing-sidebar .btn-reset { width: 100%; justify-content: center; display: inline-flex; }
.listing-results { min-width: 0; }

/* İlanlar: KM / Yıl / Fiyat — başlık + min - max (yan yana) */
.listing-filter-ranges {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.listing-range-block { margin: 0; }
.listing-range-heading {
  font-weight: 800;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.listing-range-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.listing-range-input {
  flex: 1;
  min-width: 0;
  background: var(--white);
}
.listing-range-dash {
  color: var(--gray-500);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  user-select: none;
}
.listing-filter-ranges .listing-range-input::placeholder {
  color: var(--gray-400);
  text-transform: lowercase;
}

/* ======= PANEL ======= */
.panel-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0; }
.panel-sidebar { background: var(--white); border-radius: var(--radius); padding: 20px; height: fit-content; }
.panel-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  color: var(--gray-800); transition: var(--transition); margin-bottom: 2px;
}
.panel-nav a:hover, .panel-nav a.active {
  background: rgba(230,57,70,.08); color: var(--primary);
}
.panel-nav a i { width: 18px; text-align: center; }
.panel-content {}
.panel-header { margin-bottom: 20px; }
.panel-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--secondary); }

/* ======= STATS ======= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; margin-bottom: 12px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-label { font-size: 13px; color: var(--gray-600); }

/* ======= TABLE ======= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th { background: var(--gray-100); padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--gray-600); }
table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); font-size: 14px; vertical-align: middle; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--gray-100); }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.status-aktif { background: #d1fae5; color: #065f46; }
.status-pasif { background: var(--gray-200); color: var(--gray-600); }
.status-onay { background: #fef3c7; color: #92400e; }
.status-red { background: #fee2e2; color: #991b1b; }

/* ======= MOBILE ======= */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 2000; flex-direction: column; padding: 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--gray-100); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mobile-close { background: none; border: none; font-size: 22px; cursor: pointer; margin-bottom: 16px; align-self: flex-end; }

.site-footer { margin-top: 48px; background: #000000; color: #d1d5db; overflow-x: hidden; }
.footer-grid { display: grid; gap: 24px; padding: 36px 0 28px; }
.footer-col { min-width: 0; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom ul { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    gap: 12px;
  }
  .site-header .logo {
    min-width: 0;
    flex: 1 1 auto;
  }
  .site-header .logo .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .site-header .logo .logo-img {
    max-width: min(100%, calc(100vw - 88px));
    object-position: left center;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .header-search, .header-actions { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ilanlar-grid { grid-template-columns: repeat(2, 1fr); }
  .ilan-detail-grid { grid-template-columns: 1fr; }
  .ilan-ozellik-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  /* Footer: header’daki repeat(N,1fr) mobilde yatay taşmayı kırar — tek sütun */
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 22px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom p { margin: 0; max-width: 100%; }
  /* Turnstile: mobilde taşmayı önlemek için hafif ölçekle (ortadan, masaüstüyle tutarlı) */
  .turnstile-wrap {
    max-width: 100%;
    overflow: hidden;
  }
  .turnstile-wrap .cf-turnstile {
    transform: scale(0.88);
    transform-origin: center top;
    margin-bottom: -6px;
  }
}
@media (max-width: 480px) {
  .ilanlar-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ilan-ozellik-grid { grid-template-columns: 1fr; }
}
