/* ═══════════════════════════════════════════════════
   SahibiMilanlar — Modern Premium Stil Dosyası (Tam Responsive)
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --primary:         #ffe100;     /* Signature Yellow Gold (Modern Sahibinden style) */
  --primary-hover:   #f0c800;
  --secondary:       #0f172a;     /* Deep Slate Navy (Header background, dark theme elements) */
  --secondary-light: #1e293b;     /* Mid Slate Navy */
  --accent:          #2563eb;     /* Modern Electric Blue (Prices, links, highlights) */
  --accent-hover:    #1d4ed8;
  --body-bg:         #f8fafc;     /* Clean off-white bg */
  --card-bg:         #ffffff;     /* White card bg */
  --text-main:       #0f172a;     /* Deep slate for readability */
  --text-muted:      #64748b;     /* Muted slate gray */
  --border:          #e2e8f0;     /* Light slate border */
  
  --success:         #10b981;     /* Emerald Green */
  --warning:         #f59e0b;     /* Amber */
  --danger:          #ef4444;     /* Rose Red */
  
  --sidebar-bg:      #ffffff;
  --sidebar-txt:     #334155;
  --sidebar-hover:   #f1f5f9;
  
  --radius-sm:       6px;
  --radius:          12px;
  --radius-lg:       18px;
  
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.05);
  --shadow:          0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md:       0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg:       0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
  
  --font:            'Inter', 'Nunito', 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── HEADER ──────────────────────────────────────── */
.site-header {
  background: var(--secondary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.logo span { 
  color: var(--primary); 
  font-weight: 900;
}

.logo:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.search-bar {
  flex: 1;
  display: flex;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  overflow: hidden;
  max-width: 620px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.search-bar:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 225, 0, 0.2);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  background: transparent;
  font-family: var(--font);
}

.search-bar:focus-within input {
  color: var(--text-main);
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-bar:focus-within input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 0 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}

.search-bar button:hover { 
  background: var(--primary-hover); 
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.btn-header {
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login { 
  background: transparent; 
  color: #fff; 
  border: 1.5px solid rgba(255,255,255,.3); 
}

.btn-login:hover { 
  background: rgba(255,255,255,.08); 
  border-color: rgba(255,255,255,.8);
}

.btn-register { 
  background: rgba(255, 255, 255, 0.15); 
  color: #fff; 
}

.btn-register:hover { 
  background: #fff; 
  color: var(--secondary);
}

.btn-post-ad { 
  background: var(--primary); 
  color: var(--secondary); 
  font-weight: 800; 
  box-shadow: 0 4px 12px rgba(255, 225, 0, 0.2);
}

.btn-post-ad:hover { 
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 225, 0, 0.35);
}

/* Header Nav */
.header-nav {
  background: var(--secondary-light);
  border-top: 1px solid rgba(255,255,255,.03);
}

.header-nav ul {
  display: flex;
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.header-nav ul::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.header-nav a i {
  font-size: 14px;
  opacity: 0.8;
}

.header-nav a:hover { 
  background: rgba(255,255,255,.05); 
  color: var(--primary); 
}

/* ─── LAYOUT ──────────────────────────────────────── */
.main-layout {
  display: flex;
  max-width: 1400px;
  margin: 24px auto;
  gap: 24px;
  padding: 0 24px;
  align-items: flex-start;
}

/* ─── SIDEBAR ─────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 94px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar-title {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--sidebar-txt);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar-cat i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.sidebar-cat:hover {
  background: var(--sidebar-hover);
  padding-left: 22px;
  color: var(--accent);
}

.sidebar-cat:hover i { 
  color: var(--accent); 
}

.sidebar-cat .badge {
  margin-left: auto;
  background: #e0f2fe;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ─── MAIN CONTENT ────────────────────────────────── */
.main-content { 
  flex: 1; 
  min-width: 0; 
}

/* ─── HERO BANNER ─────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px; 
  top: -50px;
  width: 280px; 
  height: 280px;
  background: radial-gradient(circle, rgba(255,225,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-banner h1 { 
  font-size: 30px; 
  font-weight: 900; 
  margin-bottom: 10px; 
  letter-spacing: -0.5px;
}

.hero-banner h1 i {
  color: var(--primary);
}

.hero-banner p { 
  opacity: .85; 
  font-size: 16px; 
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-stat { 
  text-align: left; 
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: var(--radius);
  min-width: 120px;
  flex: 1;
}

.hero-stat strong { 
  display: block; 
  font-size: 24px; 
  font-weight: 900; 
  color: var(--primary);
}

.hero-stat span { 
  font-size: 12px; 
  opacity: .75; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── URGENT LISTINGS ─────────────────────────────── */
.urgent-bar {
  background: #fff;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.urgent-bar .label {
  color: var(--danger);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.urgent-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.urgent-item {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 14px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
  border-radius: 20px;
  transition: var(--transition);
}

.urgent-item:hover { 
  background: var(--danger); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

/* ─── SECTION HEADERS ─────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.section-title i { 
  color: var(--accent); 
}

.see-all {
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.see-all:hover { 
  color: var(--accent-hover);
  text-decoration: none;
  transform: translateX(3px);
}

/* ─── LISTING CARDS ───────────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.listing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.listing-card .photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
  transition: var(--transition);
}

.listing-card:hover .photo {
  transform: scale(1.03);
}

.listing-card .photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 36px;
}

.listing-card .info { 
  padding: 16px; 
}

.listing-card .price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.listing-card .list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card .meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.listing-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.listing-card .urgent-badge {
  position: absolute;
  top: 10px; 
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
  z-index: 2;
}

.listing-card .fav-btn {
  position: absolute;
  top: 10px; 
  right: 10px;
  width: 32px; 
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.listing-card .fav-btn:hover { 
  color: var(--danger); 
  background: #fff;
  transform: scale(1.1);
}

.listing-card .fav-btn.active { 
  color: var(--danger);
  background: #fff;
}

/* ─── CARDS ───────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
}

.card + .card { 
  margin-top: 20px; 
}

/* ─── AI CHAT WIDGET ──────────────────────────────── */
.ai-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.ai-toggle-btn {
  width: 64px; 
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 237, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-toggle-btn:hover { 
  transform: scale(1.1) translateY(-2px); 
  box-shadow: 0 8px 24px rgba(37, 99, 237, 0.5);
}

.ai-chat-box {
  position: absolute;
  bottom: 80px; 
  right: 0;
  width: 380px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.ai-chat-box.open { 
  display: flex; 
  animation: slide-up-chat 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up-chat {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-chat-header {
  background: var(--secondary);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-header .ai-avatar {
  width: 36px; 
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.ai-chat-header strong { 
  flex: 1; 
  font-size: 15px; 
  font-weight: 700;
}

.ai-close { 
  background: none; 
  border: none; 
  color: rgba(255,255,255,0.7); 
  cursor: pointer; 
  font-size: 20px; 
  transition: var(--transition);
}

.ai-close:hover { 
  color: #fff; 
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.ai-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.ai-msg.bot { 
  background: #fff; 
  color: var(--text-main); 
  align-self: flex-start; 
  border-bottom-left-radius: 4px; 
  border: 1px solid var(--border);
}

.ai-msg.user { 
  background: var(--accent); 
  color: #fff; 
  align-self: flex-end; 
  border-bottom-right-radius: 4px; 
}

.ai-input-row {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 12px;
  gap: 10px;
  background: #fff;
}

.ai-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  outline: none;
  font-family: var(--font);
  transition: var(--transition);
}

.ai-input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.ai-input-row button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; 
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: var(--transition);
}

.ai-input-row button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ─── FORM STYLES ─────────────────────────────────── */
.form-group { 
  margin-bottom: 18px; 
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: var(--font);
  transition: var(--transition);
  background: #fff;
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

select.form-control { 
  cursor: pointer; 
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary { 
  background: var(--accent); 
  color: #fff; 
}

.btn-primary:hover { 
  background: var(--accent-hover); 
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.btn-outline { 
  background: transparent; 
  border: 2px solid var(--accent); 
  color: var(--accent); 
}

.btn-outline:hover { 
  background: var(--accent); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.btn-success { 
  background: var(--success); 
  color: #fff; 
}

.btn-success:hover { 
  background: #059669; 
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.btn-warning { 
  background: var(--warning); 
  color: #fff; 
}

.btn-warning:hover { 
  background: #d97706; 
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.btn-danger { 
  background: var(--danger); 
  color: #fff; 
}

.btn-danger:hover { 
  background: #dc2626; 
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

.btn-dark { 
  background: var(--secondary-light); 
  color: #fff; 
}

.btn-dark:hover { 
  background: var(--secondary); 
  transform: translateY(-1px);
}

.btn-lg { 
  padding: 14px 32px; 
  font-size: 16px; 
}

.btn-sm { 
  padding: 8px 16px; 
  font-size: 13px; 
}

.btn-full { 
  width: 100%; 
  justify-content: center; 
}

/* ─── PROGRESS STEPS ──────────────────────────────── */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-circle {
  width: 40px; 
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 1;
}

.step.active .step-circle { 
  border-color: var(--accent); 
  background: var(--accent); 
  color: #fff; 
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.step.done .step-circle { 
  border-color: var(--success); 
  background: var(--success); 
  color: #fff; 
}

.step-label { 
  font-size: 12px; 
  color: var(--text-muted); 
  font-weight: 700; 
  white-space: nowrap; 
}

.step.active .step-label { 
  color: var(--accent); 
}

.step.done .step-label { 
  color: var(--success); 
}

.step-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  min-width: 50px;
  margin-bottom: 24px;
  border-radius: 2px;
}

.step-line.done { 
  background: var(--success); 
}

/* ─── PHOTO UPLOAD ────────────────────────────────── */
.photo-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #f8fafc;
}

.photo-upload-area:hover { 
  border-color: var(--accent); 
  background: #eff6ff; 
}

.photo-upload-area i { 
  font-size: 44px; 
  color: var(--accent); 
  margin-bottom: 12px; 
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.photo-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.photo-thumb .remove {
  position: absolute;
  top: 4px; 
  right: 4px;
  width: 22px; 
  height: 22px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.photo-thumb .remove:hover {
  transform: scale(1.1);
}

.photo-count { 
  font-size: 12.5px; 
  color: var(--text-muted); 
  margin-top: 10px; 
  font-weight: 600;
}

/* ─── ALERT ───────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1.5px solid #bfdbfe; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1.5px solid #bbf7d0; }
.alert-danger  { background: #fff1f0; color: #b91c1c; border: 1.5px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1.5px solid #fef3c7; }

/* ─── BADGE ───────────────────────────────────────── */
.badge-circular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--secondary);
  color: #94a3b8;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
}

.footer-col h4 { 
  color: #fff; 
  font-size: 15px; 
  margin-bottom: 18px; 
  font-weight: 700; 
  letter-spacing: 0.3px;
}

.footer-col a { 
  display: block; 
  color: #94a3b8; 
  text-decoration: none; 
  font-size: 13.5px; 
  margin-bottom: 10px; 
  transition: var(--transition);
}

.footer-col a:hover { 
  color: var(--primary); 
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
  padding: 24px;
  font-size: 12.5px;
  color: #64748b;
}

.footer-bottom a {
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ─── ILAN DETAIL ─────────────────────────────────── */
.ilan-detail-grid { 
  display: grid; 
  grid-template-columns: 1fr 340px; 
  gap: 24px; 
}

.gallery-main { 
  border-radius: var(--radius); 
  overflow: hidden; 
  aspect-ratio: 4/3; 
  background: #f1f5f9; 
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.gallery-main img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.gallery-thumbs { 
  display: flex; 
  gap: 10px; 
  margin-top: 10px; 
  flex-wrap: wrap; 
}

.gallery-thumbs img {
  width: 76px; 
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.gallery-thumbs img:hover {
  border-color: #cbd5e1;
}

.gallery-thumbs img.active { 
  border-color: var(--accent); 
}

.seller-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.seller-card .seller-info { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  margin-bottom: 20px; 
}

.seller-avatar { 
  width: 52px; 
  height: 52px; 
  background: var(--accent); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #fff; 
  font-size: 22px; 
  font-weight: 700; 
  box-shadow: 0 4px 10px rgba(37,99,235,0.2);
}

.ilan-attrs { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
  margin: 20px 0; 
}

.attr-item { 
  background: #f8fafc; 
  border-radius: var(--radius-sm); 
  padding: 12px 16px; 
  border: 1px solid var(--border);
}

.attr-label { 
  font-size: 11px; 
  color: var(--text-muted); 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.attr-value { 
  font-size: 14.5px; 
  font-weight: 700; 
  margin-top: 4px; 
  color: var(--text-main);
}

/* ─── ADMIN TABLE ─────────────────────────────────── */
.admin-table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 13.5px; 
}

.admin-table th { 
  background: var(--secondary-light); 
  color: #fff; 
  padding: 12px 16px; 
  text-align: left; 
  font-weight: 700; 
}

.admin-table td { 
  padding: 14px 16px; 
  border-bottom: 1px solid var(--border); 
  color: var(--sidebar-txt);
}

.admin-table tr:hover td { 
  background: #f8fafc; 
}

/* ─── STATUS BADGES ───────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active   { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-passive  { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.status-deleted  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.status-draft    { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }

/* ─── CUSTOM ADDITIONS FOR SUBPAGES (EMLAK & OTO REHBER) ─── */
.tool-grid-link {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  border: 1px solid var(--border);
}

.tool-grid-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.08);
}

/* ─── HOME PAGE QUICK CATEGORIES ──────────────────── */
.quick-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  background: #f8fafc;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.quick-cat-item i {
  font-size: 26px;
  color: var(--accent);
  transition: var(--transition);
}
.quick-cat-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: var(--transition);
}
.quick-cat-item:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.quick-cat-item:hover i {
  color: var(--accent-hover);
  transform: scale(1.1);
}
.quick-cat-item:hover img {
  transform: scale(1.1);
}

/* ─── HOME PAGE AI BANNER CARDS ───────────────────── */
.ai-banners-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.ai-banner-card {
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}
.ai-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ai-banner-card.emlak {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}
.ai-banner-card.oto {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}
.ai-banner-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-banner-card p {
  font-size: 13.5px;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.5;
}
.ai-banner-card .btn-discover {
  background: #fff;
  font-weight: 700;
  align-self: flex-start;
  transition: var(--transition);
  border-radius: 30px;
  padding: 8px 20px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-banner-card.emlak .btn-discover {
  color: #1e3a8a;
}
.ai-banner-card.oto .btn-discover {
  color: #064e3b;
}
.ai-banner-card .btn-discover:hover {
  background: var(--primary);
  color: var(--secondary) !important;
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* ─── REHBER TOOL CARDS ───────────────────────────── */
.tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  border: 1px solid var(--border);
  border-top: 3.5px solid var(--tool-color, var(--accent));
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.08);
}
.tool-card i {
  font-size: 28px;
  color: var(--tool-color, var(--accent));
  margin-bottom: 12px;
  transition: var(--transition);
  display: inline-block;
}
.tool-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: var(--transition);
  display: inline-block;
}
.tool-card:hover i,
.tool-card:hover img {
  transform: scale(1.1);
}
.tool-card h3 {
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 6px;
  color: var(--text-main);
}
.tool-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ─── VEHICLE BRAND & FILTER STYLES ───────────────── */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  max-width: 100%;
}

.brand-logo-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #f1f5f9;
}

.brand-filter-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.brand-filter-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-filter-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.brand-filter-scroll::-webkit-scrollbar {
  height: 5px;
}

.brand-filter-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.brand-filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  min-width: 82px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.brand-filter-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: var(--transition);
}

.brand-filter-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand-filter-btn:hover img {
  transform: scale(1.1);
}

.brand-filter-btn.active {
  background: #eff6ff;
  border-color: var(--accent);
  color: var(--accent);
}

.brand-filter-btn.active img {
  transform: scale(1.1);
}

/* ========== MOBİL MENU TOGGLE (YENİ) ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  margin-left: 10px;
}

/* ========== MOBİL SIDEBAR TOGGLE BUTTON (YENİ) ========== */
.mobile-sidebar-toggle {
  display: none;
  margin-bottom: 16px;
  width: 100%;
}

/* ========== TABLO YATAY KAYDIRMA (YENİ) ========== */
.list-view-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

/* ========== RESPONSIVE DÜZENLEMELER (TAM KAPSAMLI) ========== */

/* Tablet ve altı (max-width: 992px) */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-top {
    flex-wrap: wrap;
    position: relative;
  }
  
  .header-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .search-bar {
    order: 2;
    flex: 1;
    min-width: 180px;
  }
  
  .logo {
    order: 1;
  }
  
  .mobile-menu-toggle {
    order: 4;
  }
  
  .header-nav {
    display: none;
    width: 100%;
    order: 5;
    background: var(--secondary-light);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  
  .header-nav.active {
    display: block;
  }
  
  .header-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .header-nav li {
    width: 100%;
  }
  
  .header-nav a {
    padding: 12px 20px;
    justify-content: space-between;
  }
  
  .btn-header span:not(.btn-post-ad span) {
    display: none;
  }
  
  .btn-header {
    padding: 8px 12px;
  }
  
  .btn-post-ad span {
    display: inline;
  }
  
  .mobile-sidebar-toggle {
    display: block;
  }
  
  .sidebar {
    display: none;
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
  
  .sidebar.open {
    display: block;
  }
  
  .main-layout {
    flex-direction: column;
    padding: 0 16px;
  }
  
  .ilan-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .seller-card {
    position: static;
    margin-top: 20px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Telefon (max-width: 768px) */
@media (max-width: 768px) {
  .hero-banner {
    padding: 24px 16px;
  }
  
  .hero-banner h1 {
    font-size: 22px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .hero-stat {
    text-align: center;
    padding: 8px;
  }
  
  .urgent-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .urgent-list {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  
  .urgent-item {
    white-space: nowrap;
  }
  
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .listing-card .info {
    padding: 10px;
  }
  
  .listing-card .price {
    font-size: 14px;
  }
  
  .listing-card .list-title {
    font-size: 12px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .quick-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .quick-cat-item {
    padding: 12px 5px;
    font-size: 11px;
  }
  
  .ai-banners-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .ai-banner-card {
    padding: 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 30px 16px;
  }
  
  .ilan-attrs {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 16px;
  }
  
  .steps-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    width: 70px;
  }
  
  .step-line {
    display: none;
  }
  
  /* Tablo yatay kaydırma */
  .list-view-table,
  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .list-view-table th,
  .list-view-table td,
  .compare-table th,
  .compare-table td {
    padding: 8px 12px;
    min-width: 100px;
  }
}

/* Küçük telefon (max-width: 480px) */
@media (max-width: 480px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
  
  .header-actions .btn-post-ad {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .hero-banner h1 {
    font-size: 18px;
  }
  
  .hero-banner p {
    font-size: 13px;
  }
  
  .btn, .btn-lg {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .quick-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-col .social-links {
    justify-content: center;
  }
  
  .ai-chat-box {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 70px;
  }
  
  .gallery-thumbs img {
    width: 60px;
    height: 45px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dokunmatik hedef boyutları iyileştirmesi */
button, 
a.btn, 
.sidebar-cat,
.listing-card .fav-btn,
.ai-type-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}