/* ============================================================
   Eviniz.com.tr — Premium Emlak Platformu
   Ana Stil Dosyasi | Yesil + Beyaz Tema
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Degiskenleri ---- */
:root {
  --green-900: #1b5e20;
  --green-800: #2e7d32;
  --green-700: #388e3c;
  --green-600: #43a047;
  --green-500: #4caf50;
  --green-400: #66bb6a;
  --green-300: #81c784;
  --green-100: #e8f5e9;
  --green-50:  #f1f8f2;

  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --gray-900:  #111827;

  --danger:    #ef4444;
  --warning:   #f59e0b;
  --info:      #3b82f6;
  --success:   #22c55e;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-md:  0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 25px rgba(0,0,0,.08), 0 8px 10px rgba(0,0,0,.04);
  --shadow-xl:  0 25px 50px rgba(0,0,0,.12);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100vw; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font); }
ul, ol { list-style: none; }

/* ---- Yardimci Siniflar ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-green { color: var(--green-700); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-auto { margin-top: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
  overflow: visible;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.5px;
}

.brand-text span { color: var(--green-500); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: var(--green-50);
  color: var(--green-700);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--green-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--green-200, #c8e6c9);
}

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--gray-700);
  font-size: 1.4rem;
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--green-700);
  color: white;
  border-color: var(--green-700);
}
.btn-primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46,125,50,.35);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline:hover {
  background: var(--green-700);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { filter: brightness(0.9); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a4a1e 0%, #2e7d32 40%, #388e3c 70%, #1b5e20 100%);
  overflow: hidden;
  padding: 90px 0 70px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: #a5d6a7;
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  color: white;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.hero-stat span {
  font-size: 0.8rem;
  opacity: .7;
}

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  width: fit-content;
}

.search-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-500);
  transition: all var(--transition);
}

.search-tab.active {
  background: var(--green-700);
  color: white;
  box-shadow: var(--shadow-sm);
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color var(--transition);
  outline: none;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--green-500);
  background: white;
}

/* ============================================================
   SECTION BASLIK
   ============================================================ */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-700);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-title span { color: var(--green-700); }

/* ============================================================
   ILAN KARTI
   ============================================================ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green-200, #c8e6c9);
}

.listing-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-card-img img { transform: scale(1.06); }

.listing-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-sale {
  background: var(--green-700);
  color: white;
}

.badge-rent {
  background: var(--info);
  color: white;
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  font-size: 1rem;
  color: var(--gray-400);
}

.fav-btn:hover, .fav-btn.active {
  color: #ef4444;
  background: white;
  transform: scale(1.1);
}

.listing-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-700);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.listing-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.listing-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-top: auto;
}

.listing-feature {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.listing-feature svg, .listing-feature i {
  color: var(--green-500);
  font-size: 0.85rem;
}

.listing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ============================================================
   FORM ELEMANLARI
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: white;
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}

.form-control:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}

.form-control.is-invalid { border-color: var(--danger); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.input-group {
  position: relative;
}

.input-group .form-control { padding-right: 50px; }

.input-addon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 1px solid var(--gray-200);
  pointer-events: none;
}

/* Toggle Buton (Bireysel/Emlakci) */
.account-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.type-option {
  position: relative;
}

.type-option input { display: none; }

.type-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.type-label .icon {
  font-size: 1.6rem;
}

.type-label .title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.type-label .desc {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.type-option input:checked + .type-label {
  border-color: var(--green-500);
  background: var(--green-50);
}

.type-option input:checked + .type-label .title { color: var(--green-700); }

/* ============================================================
   ALERT MESAJLARI
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.alert-success {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.alert-warning {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}

.alert-info {
  background: #dbeafe;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-success  { background: #dcfce7; color: #15803d; }
.badge-warning  { background: #fef3c7; color: #d97706; }
.badge-danger   { background: #fee2e2; color: #dc2626; }
.badge-secondary { background: var(--gray-100); color: var(--gray-500); }
.badge-info     { background: #dbeafe; color: #2563eb; }
.badge-green    { background: var(--green-700); color: white; }

/* ============================================================
   KART
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.card-body { padding: 22px; }

.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ============================================================
   SAYFA BASLIK (Page Hero)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 40px 0;
  color: white;
}

.page-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-hero p {
  opacity: .75;
  font-size: 0.9rem;
  margin-top: 4px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  margin-top: 10px;
}

.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: .5; }

/* İlan Detay Grid */
.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: flex-start;
}

.listing-detail-grid > * {
  min-width: 0;
}

.detail-main-col {
  min-width: 0;
  overflow: hidden;
}

/* Galeri */
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  cursor: pointer;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-main:hover img { transform: scale(1.02); }

.gallery-count-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,.65);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.gallery-thumbs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

.gallery-thumb {
  flex: 0 0 calc(20% - 6.4px);
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

@media (max-width: 768px) {
  .gallery-thumb { flex: 0 0 calc(25% - 6px); }
}

@media (max-width: 480px) {
  .gallery-thumb { flex: 0 0 calc(33.333% - 5.33px); }
}

.gallery-thumb.active { border-color: var(--green-500); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail Sidebar */
.detail-sidebar { position: sticky; top: 84px; }

.price-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.price-card-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  padding: 20px;
  color: white;
}

.price-card-header .listing-no {
  font-size: 0.75rem;
  opacity: .7;
  margin-bottom: 4px;
}

.price-card-header .price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.price-card-header .type-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.price-card-body { padding: 20px; }

.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--gray-100);
}

.seller-avatar {
  width: 46px;
  height: 46px;
  background: var(--green-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.seller-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.seller-type {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.phone-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--green-50);
  border: 1px dashed var(--green-300, #81c784);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.phone-reveal:hover { background: #d0f0d2; }

.phone-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: 1px;
}

.phone-reveal-hint {
  font-size: 0.72rem;
  color: var(--green-600);
}

/* Feature Tags */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
}

.feature-tag.has-feature {
  background: var(--green-50);
  color: var(--green-700);
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr { border-bottom: 1px solid var(--gray-100); }
.info-table tr:last-child { border: none; }

.info-table td {
  padding: 10px 0;
  font-size: 0.875rem;
}

.info-table td:first-child {
  color: var(--gray-500);
  width: 45%;
}

.info-table td:last-child {
  font-weight: 600;
  color: var(--gray-800);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: .8;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* ============================================================
   SIDEBAR FILTRE
   ============================================================ */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.filter-sidebar {
  position: sticky;
  top: 84px;
}

.filter-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.filter-clear {
  font-size: 0.78rem;
  color: var(--green-600);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
}

.filter-body { padding: 16px 20px; }

.filter-group { margin-bottom: 20px; }

.filter-group:last-child { margin-bottom: 0; }

.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.filter-group select:focus,
.filter-group input:focus { border-color: var(--green-500); }

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
  cursor: pointer;
}

.checkbox-item input[type=checkbox] {
  accent-color: var(--green-600);
  width: 15px;
  height: 15px;
}

/* ============================================================
   KULLANICI PANELI
   ============================================================ */
.panel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
}

.panel-sidebar {
  position: sticky;
  top: 84px;
}

.panel-content {
  min-width: 0;
}

.panel-nav {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.panel-nav-user {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--green-50);
}

.panel-nav-avatar {
  width: 52px;
  height: 52px;
  background: var(--green-700);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.panel-nav-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.panel-nav-type {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.panel-nav-links { padding: 8px; }

.panel-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.panel-nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.panel-nav-link.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.panel-nav-link .icon { font-size: 1rem; width: 20px; }

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-icon-green { background: var(--green-50); color: var(--green-700); }
.stat-icon-blue  { background: #dbeafe; color: #2563eb; }
.stat-icon-red   { background: #fee2e2; color: #dc2626; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ============================================================
   FOTOGRAF YUKLEME
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--green-500);
  background: var(--green-50);
}

.upload-zone-icon { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 12px; }
.upload-zone h4 { font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.upload-zone p { font-size: 0.8rem; color: var(--gray-400); }

.upload-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-200);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,.6);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-cover {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--green-600);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.preview-cover-btn {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,.5);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  display: none;
}

.preview-item:hover .preview-cover-btn { display: block; }

/* ============================================================
   COKLU ADIM FORM (Ilan Ekle)
   ============================================================ */
.steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  transition: background var(--transition);
}

.step-item.active .step-dot {
  background: var(--green-600);
  color: white;
  box-shadow: 0 0 0 4px rgba(76,175,80,.2);
}

.step-item.done .step-dot {
  background: var(--green-700);
  color: white;
}

.step-item.done .step-line,
.step-item.active .step-line {
  background: var(--green-400);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-align: center;
  margin-top: 6px;
}

.step-item.active .step-label,
.step-item.done .step-label { color: var(--green-700); }

/* ============================================================
   POPÜLER SEHIRLER
   ============================================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.city-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.city-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.city-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.city-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.city-count {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ============================================================
   GUVEN ALANI
   ============================================================ */
.trust-section {
  background: var(--green-900);
  padding: 56px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item {
  text-align: center;
  color: white;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: .9;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.trust-desc {
  font-size: 0.8rem;
  opacity: .65;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-700);
}

.footer-brand .brand-text { color: white; font-size: 1.5rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green-400); }

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--green-400); color: var(--green-700); }
.page-btn.active { background: var(--green-700); border-color: var(--green-700); color: white; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   GIRIŞ / KAYIT
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, #a5d6a7 100%);
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .auth-page {
    align-items: center;
    padding: 24px 16px 100px;
  }
}

.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  padding: 28px 32px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-header a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-header img {
  display: block;
  margin: 0 auto 8px auto;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.85rem;
  opacity: .8;
  text-align: center;
}

.auth-body { padding: 28px 32px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-300);
  font-size: 0.8rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-footer {
  padding: 14px 32px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.auth-footer a { color: var(--green-700); font-weight: 600; }

/* ============================================================
   MOBIL RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .listing-detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .listings-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .panel-layout { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: none !important; } /* Alt navbar var, hamburger gizle */
  .search-fields { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .upload-previews { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; }
  /* Alt navbar için body padding */
  body { padding-bottom: 70px; }
  main { padding-bottom: 0; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

/* Mobil İlan Detay Sekmeleri (İlan Bilgileri / Açıklama) */
.mobile-detail-tabs {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
}

.mobile-detail-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.mobile-detail-tab.active {
  background: white;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .mobile-detail-tabs { display: grid; }
  .mobile-tab-content { display: none; }
  .mobile-tab-content.active { display: block; }
  
  /* İlan Açıklaması sekmesi aktifken sidebar ve harita/özellik bilgilerini gizle, sadece açıklama kartı kalsın */
  body.mobile-tab-desc-active .detail-sidebar { display: none !important; }

  /* Mobilde Price Kartını biraz daha kompakt yap */
  .price-card-header { padding: 14px 16px; }
  .price-card-header .price { font-size: 1.5rem; }
  .price-card-header .listing-no { font-size: 0.7rem; }
  .price-card-body { padding: 14px; }
  .seller-card { padding: 10px; margin-bottom: 10px; gap: 10px; }
  .seller-avatar { width: 36px; height: 36px; font-size: 1rem; }
  .seller-name { font-size: 0.85rem; }
  .phone-reveal { padding: 8px 12px; margin-bottom: 10px; }
  .phone-number { font-size: 0.88rem; }
  .price-card-body .btn-lg { padding: 10px 16px; font-size: 0.85rem; }
}

@media (max-width: 540px) {
  .listings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-page { padding: 20px 16px; }
  .auth-card { border-radius: var(--radius-lg); max-width: 100%; }
  .auth-body, .auth-header { padding: 20px; }
  .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .listings-grid.list-view .listing-card { display: flex; flex-direction: column; }
  .listings-grid.list-view .listing-card-img { width: 100%; aspect-ratio: 16/9; }
  /* Navbar buton düzeltme */
  .navbar-actions .btn-sm { padding: 6px 10px; font-size: 0.75rem; }
}

/* ============================================================
   MOBİL ALT NAVBAR (Bottom Toolbar)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: white;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  height: 64px;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  padding: 0 10px;
  margin: 0 auto;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  color: var(--gray-400);
  transition: all var(--transition);
  position: relative;
  padding: 6px 4px;
  min-width: 0;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--green-700);
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--green-600);
  border-radius: 0 0 4px 4px;
}

.mobile-nav-icon {
  position: relative;
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
  line-height: 1;
}

.mobile-nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* Ortadaki özel buton */
.mobile-nav-item.mobile-nav-center {
  position: relative;
  top: -12px;
}

.mobile-nav-center .mobile-nav-icon-wrap {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(56,142,60,.4);
  border: 3px solid white;
  transition: all var(--transition);
}

.mobile-nav-center:hover .mobile-nav-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(56,142,60,.5);
}

.mobile-nav-center .mobile-nav-label {
  color: var(--green-700);
  font-weight: 700;
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }

  /* Navbar logo mobile büyütme */
  .navbar-brand img {
    max-height: 48px !important;
  }

  .navbar-inner {
    height: 60px;
  }
}

/* ============================================================
   MOBİL FİLTRE DRAWER
   ============================================================ */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 997;
  backdrop-filter: blur(2px);
}

.filter-overlay.open { display: block; }

.filter-drawer {
  display: none;
  position: fixed;
  bottom: 64px; /* alt navbar yüksekliği */
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 998;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
}

.filter-drawer.open {
  display: block;
  transform: translateY(0);
}

.filter-drawer-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  cursor: pointer;
}

.filter-drawer-handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.filter-drawer-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1.2rem;
  padding: 4px;
  line-height: 1;
}

.filter-drawer-body {
  padding: 16px 20px;
}

.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius-sm);
  color: var(--green-700);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}

.filter-toggle-btn:hover {
  background: var(--green-50);
}

.filter-toggle-btn .filter-active-count {
  background: var(--green-700);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: none;
}

.filter-toggle-btn .filter-active-count.visible {
  display: inline-flex;
}

@media (max-width: 1024px) {
  .filter-toggle-btn { display: flex; }
}

/* ============================================================
   TABLO RESPONSIVE
   ============================================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   MOBIL MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.5);
}

.mobile-menu.open { display: block; }

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: white;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--green-800);
  color: white;
}

.mobile-menu-links {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.mobile-menu-link:hover {
  background: var(--green-50);
  color: var(--green-700);
}

/* ============================================================
   ILAN LISTESI TOOLBAR
   ============================================================ */
.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.listings-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.listings-count strong { color: var(--gray-800); font-weight: 700; }

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--gray-200);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.view-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: white;
}

.sort-select {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  color: var(--gray-700);
  cursor: pointer;
}

/* List view (yatay kart) */
.listings-grid.list-view {
  grid-template-columns: 1fr;
}

.listings-grid.list-view .listing-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: 1fr auto;
  align-items: stretch;
}

.listings-grid.list-view .listing-card > a {
  grid-column: 1 / 2;
  grid-row: 1 / -1;
  display: block;
}

.listings-grid.list-view .listing-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.listings-grid.list-view .listing-card-body {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  padding: 12px 16px 8px;
}

.listings-grid.list-view .listing-price {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.listings-grid.list-view .listing-title {
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.listings-grid.list-view .listing-location {
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.listings-grid.list-view .listing-features {
  display: none;
}

.listings-grid.list-view .listing-card-footer {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  padding: 6px 16px;
}

/* ============================================================
   ANIMASYONLAR
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.animate-fade-up { animation: fadeInUp 0.5s ease both; }
.animate-fade    { animation: fadeIn 0.4s ease both; }

.listing-card { animation: fadeInUp 0.4s ease both; }
.listing-card:nth-child(2) { animation-delay: 0.05s; }
.listing-card:nth-child(3) { animation-delay: 0.1s; }
.listing-card:nth-child(4) { animation-delay: 0.15s; }
.listing-card:nth-child(5) { animation-delay: 0.2s; }
.listing-card:nth-child(6) { animation-delay: 0.25s; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: .4; }
.empty-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.empty-desc { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 20px; }

/* ============================================================
   SCROLLBAR OZELLESTIRME
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   SECIM RENGI
   ============================================================ */
::selection { background: var(--green-200, #c8e6c9); color: var(--green-900); }
