/* =============================================
   INDITAP.AZ — Main Stylesheet
   Modern, Animated, Responsive
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary:       #667eea;
  --primary-dark:  #5a6fd6;
  --primary-light: #e8ebff;
  --secondary:     #f6416c;
  --accent:        #ffd700;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;

  --bg:            #f8f9fc;
  --bg-white:      #ffffff;
  --bg-card:       #ffffff;
  --surface:       #f1f3f9;

  --text:          #1a1d2e;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        #e5e7eb;
  --border-light:  #f3f4f6;

  --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.15);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);

  --header-h: 64px;
  --nav-h:    52px;
  --font: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top:  4px; } .mt-2 { margin-top:  8px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom:  4px; } .mb-2 { margin-bottom:  8px; }
.mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.hidden { display: none !important; }
.btn-block { display: block; width: 100%; text-align: center; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.12); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(102,126,234,.4);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(102,126,234,.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #e0355f);
  color: #fff;
  box-shadow: 0 4px 15px rgba(246,65,108,.4);
}
.btn-secondary:hover { color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface); color: var(--primary); }

.btn-ghost-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost-outline:hover { background: var(--primary-light); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-post {
  background: linear-gradient(135deg, #f6416c, #e0355f);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(246,65,108,.45);
  padding: 10px 22px;
}
.btn-post:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(246,65,108,.55); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-top { border-bottom: 1px solid var(--border-light); }

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

/* Logo */
.logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(102,126,234,.4);
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
}
.logo-text strong { color: var(--primary); }
.logo-dot { color: var(--secondary); }

/* Search */
.header-search { flex: 1; max-width: 600px; }
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102,126,234,.12);
  background: var(--bg-white);
}
.search-input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.search-input::placeholder { color: var(--text-light); }
.search-region {
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  max-width: 140px;
}
.search-btn {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-admin { color: var(--warning) !important; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.mobile-menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Category Nav */
.category-nav {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--nav-h);
  white-space: nowrap;
}
.category-nav-list li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.category-nav-list li a:hover,
.category-nav-list li a.active {
  color: var(--cat-color, var(--primary));
  border-bottom-color: var(--cat-color, var(--primary));
  background: rgba(0,0,0,.02);
}
.category-nav-list li a i { font-size: 14px; }
.cat-all a { color: var(--primary) !important; font-weight: 600; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: right var(--transition-slow);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-inner { padding: 80px 24px 24px; }
.mobile-search { margin-bottom: 20px; }
.mobile-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.mobile-search input {
  flex: 1; padding: 10px 14px;
  border: none; outline: none;
  background: transparent;
  font-size: 14px;
}
.mobile-search button {
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}
.mobile-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition);
}
.mobile-nav li a:hover { color: var(--primary); }
.mobile-nav li.divider { height: 1px; background: var(--border); margin: 8px 0; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.mobile-overlay.show { opacity: 1; visibility: visible; }

/* =============================================
   FLASH MESSAGES
   ============================================= */
.flash-message {
  padding: 14px 0;
  font-weight: 500;
  font-size: 14px;
  animation: slideDown .4s ease;
}
.flash-message .container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }
.flash-info    { background: #dbeafe; color: #1e40af; }
.flash-warning { background: #fef3c7; color: #92400e; }
.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: .6;
  transition: opacity var(--transition);
  color: inherit;
}
.flash-close:hover { opacity: 1; }

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content { min-height: calc(100vh - var(--header-h) - var(--nav-h)); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f6416c 100%);
  padding: 180px 0 200px;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}
.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.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: #fff;
  animation: float 6s ease-in-out infinite;
}
.hero-shapes span:nth-child(1) { width:300px;height:300px; top:-80px; left:-80px; animation-delay:0s; }
.hero-shapes span:nth-child(2) { width:200px;height:200px; top:20%; right:-60px; animation-delay:2s; }
.hero-shapes span:nth-child(3) { width:150px;height:150px; bottom:-40px; left:30%; animation-delay:4s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(10deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 1.15rem;
  opacity: .85;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-search-box {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
  gap: 0;
}
.hero-search-box input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
}
.hero-search-box select {
  border: none;
  border-left: 1px solid var(--border);
  padding: 18px 16px;
  font-size: 14px;
  color: var(--text-muted);
  background: #fff;
  outline: none;
  cursor: pointer;
  min-width: 130px;
}
.hero-search-box button {
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--secondary), #e0355f);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.hero-search-box button:hover { background: linear-gradient(135deg, #e0355f, #c42d54); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 16px 28px;
  min-width: 130px;
  transition: background .25s, transform .25s;
}
.hero-stat:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-3px);
}
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  letter-spacing: .3px;
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section { padding: 60px 0; }
.section-alt { background: var(--surface); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.section-link:hover { color: var(--primary-dark); }
.section-link i { transition: transform var(--transition); }
.section-link:hover i { transform: translateX(4px); }

/* =============================================
   CATEGORY CARDS
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-color);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover { border-color: var(--cat-color); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card:hover::before { opacity: .05; }
.category-card:hover .cat-card-icon { transform: scale(1.15) rotate(-5deg); }
.category-card:hover .cat-card-name { color: var(--cat-color); }

.cat-card-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  background: var(--cat-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
  transition: transform var(--transition);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.cat-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  transition: color var(--transition);
  position: relative;
}
.cat-card-count {
  font-size: 12px;
  color: var(--text-light);
  position: relative;
}

/* =============================================
   LISTING CARDS
   ============================================= */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.listings-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.listing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  animation: fadeInUp .5s ease both;
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger animation */
.listing-card:nth-child(1)  { animation-delay: .05s; }
.listing-card:nth-child(2)  { animation-delay: .10s; }
.listing-card:nth-child(3)  { animation-delay: .15s; }
.listing-card:nth-child(4)  { animation-delay: .20s; }
.listing-card:nth-child(5)  { animation-delay: .25s; }
.listing-card:nth-child(6)  { animation-delay: .30s; }
.listing-card:nth-child(7)  { animation-delay: .35s; }
.listing-card:nth-child(8)  { animation-delay: .40s; }

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.listing-card:hover .card-image img { transform: scale(1.06); }

.card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-featured { background: linear-gradient(135deg, var(--accent), #f59e0b); color: #78350f; }
.badge-urgent   { background: linear-gradient(135deg, var(--secondary), #e0355f); color: #fff; }
.badge-free     { background: linear-gradient(135deg, var(--success), #059669); color: #fff; }
.badge-new      { background: linear-gradient(135deg, var(--info), #2563eb); color: #fff; }

.card-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  z-index: 2;
  font-size: 14px;
}
.card-fav:hover, .card-fav.active { background: #fff; color: var(--secondary); transform: scale(1.1); }
.card-fav.active i { font-weight: 900; }

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

.card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card:hover .card-title { color: var(--primary); }

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.price-amount { color: var(--primary); }
.price-free   { color: var(--success); font-weight: 700; font-size: 15px; }
.price-swap   { color: var(--warning); font-weight: 700; font-size: 15px; }
.price-negotiable { color: var(--text-muted); font-size: 14px; font-weight: 500; }

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
  flex-wrap: wrap;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-meta-item i { font-size: 11px; }

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

/* Sidebar */
.listings-sidebar { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 20px); }

.filter-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 16px;
}
.filter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.filter-card-head h4 { font-size: 14px; font-weight: 700; }
.filter-card-head i { color: var(--text-muted); transition: transform var(--transition); font-size: 12px; }
.filter-card.collapsed .filter-card-head i { transform: rotate(-90deg); }
.filter-card.collapsed .filter-card-body { display: none; }
.filter-card-body { padding: 16px 20px; }

.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; display: block; }

.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: border-color var(--transition);
}
.filter-input:focus { border-color: var(--primary); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range span { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.price-range input { width: calc(50% - 14px); }

.filter-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: color var(--transition);
}
.filter-check input[type=checkbox] { display: none; }
.check-box {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-check input:checked + .check-box {
  background: var(--primary);
  border-color: var(--primary);
}
.filter-check input:checked + .check-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.filter-check:hover { color: var(--primary); }

/* Listings Main */
.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.listings-count { font-size: 14px; color: var(--text-muted); }
.listings-count strong { color: var(--text); }

.sort-select {
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--primary); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}
.view-btn.active, .view-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* List view */
.listings-grid.list-view {
  grid-template-columns: 1fr;
}
.listings-grid.list-view .listing-card {
  flex-direction: row;
}
.listings-grid.list-view .card-image {
  width: 220px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.listings-grid.list-view .card-body { padding: 20px; }

/* =============================================
   LISTING DETAIL PAGE
   ============================================= */
.listing-detail { padding: 30px 0; }
.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* Image Gallery */
.gallery { margin-bottom: 24px; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface);
  margin-bottom: 12px;
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--transition);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  z-index: 2;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-count {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Detail Content */
.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.detail-meta-item i { color: var(--primary); width: 16px; text-align: center; }
.detail-meta-item strong { color: var(--text); }

.detail-section { margin-bottom: 28px; }
.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}
.detail-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
}

/* Sidebar Contact Card */
.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}
.contact-card-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 20px;
}
.contact-price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.contact-price-sub { font-size: 13px; opacity: .8; }

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

.seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.seller-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.seller-joined { font-size: 12px; color: var(--text-muted); }

.contact-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-phone {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,.3);
}
.btn-phone:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.4); }
.btn-message {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.btn-message:hover { color: #fff; transform: translateY(-1px); }
.btn-fav-detail {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
}
.btn-fav-detail:hover, .btn-fav-detail.active {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(246,65,108,.05);
}
.btn-fav-detail.active i { font-weight: 900; }
.btn-report { font-size: 12px; color: var(--text-light); justify-content: center; margin-top: 8px; }
.btn-report:hover { color: var(--danger); }

/* =============================================
   FORMS (Login / Register / Post)
   ============================================= */
.form-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea15, #f6416c10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: scaleIn .4s ease;
}
.form-card-wide { max-width: 760px; }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.form-card-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 32px;
  text-align: center;
  color: #fff;
}
.form-card-head h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.form-card-head p { font-size: 14px; opacity: .85; }
.form-card-head .form-logo { margin-bottom: 20px; }
.form-card-head .form-logo span {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto;
  backdrop-filter: blur(4px);
}

.form-card-body { padding: 32px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: all var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102,126,234,.12);
}
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--text-light); }

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

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

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

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

.form-divider { text-align: center; margin: 20px 0; position: relative; }
.form-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.form-divider span { background: var(--bg-white); padding: 0 12px; font-size: 13px; color: var(--text-muted); position: relative; }

.form-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
  transition: color var(--transition);
}
.password-toggle:hover { color: var(--primary); }

/* Image Upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  position: relative;
}
.image-upload-area:hover, .image-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.image-upload-area input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-icon { font-size: 40px; color: var(--text-light); margin-bottom: 12px; }
.upload-text { font-weight: 600; margin-bottom: 4px; }
.upload-hint { font-size: 13px; color: var(--text-muted); }

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}
.preview-item.primary-img { border-color: var(--primary); }
.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: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background var(--transition);
}
.preview-remove:hover { background: var(--danger); }
.preview-primary-badge {
  position: absolute;
  bottom: 4px; left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 30px 0;
}
.dashboard-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}
.dash-user-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}
.dash-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.4);
}
.dash-user-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.dash-user-email { font-size: 12px; opacity: .8; }

.dash-nav {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.dash-nav a:last-child { border-bottom: none; }
.dash-nav a i { width: 18px; color: var(--text-muted); }
.dash-nav a:hover, .dash-nav a.active { background: var(--primary-light); color: var(--primary); }
.dash-nav a:hover i, .dash-nav a.active i { color: var(--primary); }
.dash-nav a .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.dashboard-content {}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dash-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition);
}
.dash-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}
.dash-stat-num { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.dash-stat-label { font-size: 13px; color: var(--text-muted); }

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: #1a1d2e;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-logo .logo-text { color: #fff; }
.admin-nav { padding: 16px 0; }
.admin-nav-section { padding: 8px 20px 4px; font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--primary);
}
.admin-nav a i { width: 18px; }
.admin-main { background: var(--bg); padding: 28px; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-page-title { font-size: 1.4rem; font-weight: 800; }
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-light);
}
.admin-stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.admin-stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.admin-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   TABLES
   ============================================= */
.table-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--surface);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.status-active   { background: #d1fae5; color: #065f46; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-sold     { background: #e0e7ff; color: #3730a3; }
.status-inactive { background: var(--surface); color: var(--text-muted); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0 12px;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102,126,234,.4);
}
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: .3;
}
.empty-state h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; font-weight: 700; }
.empty-state p { font-size: 15px; margin-bottom: 24px; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(102,126,234,.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #1a1d2e; color: rgba(255,255,255,.8); margin-top: 60px; }

.footer-top { padding: 60px 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand .footer-logo .logo-text { color: #fff; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: rgba(255,255,255,.6);
}

.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.1);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a i { width: 16px; font-size: 12px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
}
.contact-list li i { margin-top: 3px; color: var(--primary); width: 16px; flex-shrink: 0; }
.contact-list li a { color: rgba(255,255,255,.6); text-decoration: none; }
.contact-list li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom strong { color: rgba(255,255,255,.8); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  animation: zoomIn .3s ease;
}
@keyframes zoomIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   SKELETON LOADER
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 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; }
}

/* =============================================
   TOOLTIP
   ============================================= */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(.8);
  background: #1a1d2e;
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* =============================================
   ANIMATIONS (entrance)
   ============================================= */
.animate-fade-in { animation: fadeIn .6s ease both; }
.animate-slide-up { animation: fadeInUp .6s ease both; }
.animate-slide-right { animation: slideRight .6s ease both; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .listings-layout { grid-template-columns: 1fr; }
  .listings-sidebar { position: static; }
  .listing-detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .header-actions .btn-ghost, .header-actions .btn-ghost-outline { display: none; }
  .mobile-menu-toggle { display: flex; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .hero { padding: 100px 0 120px; min-height: 560px; }
  .hero-search-box { flex-direction: column; border-radius: var(--radius); }
  .hero-search-box select { border-left: none; border-top: 1px solid var(--border); min-width: unset; }
  .hero-search-box button { border-radius: 0 0 var(--radius) var(--radius); }
  .hero-stats { gap: 24px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .hero-title { font-size: 1.7rem; }
  .form-card-body { padding: 24px 20px; }
  .dash-stats { grid-template-columns: 1fr; }
  .listings-grid.list-view .listing-card { flex-direction: column; }
  .listings-grid.list-view .card-image { width: 100%; }
}

@media (max-width: 360px) {
  .listings-grid { grid-template-columns: 1fr; }
}
/* =============================================
   PULSE ANIMATION (message badge)
   ============================================= */
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(246,65,108,.5); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(246,65,108,0); }
}

/* =============================================
   COMPARE BUTTON (listing card)
   ============================================= */
.compare-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  color: var(--primary); cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
}
.compare-btn:hover, .compare-btn.added {
  background: var(--primary); color: #fff;
}

/* =============================================
   LEAFLET MAP
   ============================================= */
#listingMap {
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--border-light);
}

/* =============================================
   DRAG-DROP IMAGE SORTING
   ============================================= */
.sortable-images { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap:10px; margin-top:16px; }
.sortable-img-item {
  position: relative; aspect-ratio:1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: grab; user-select: none;
  transition: all var(--transition);
}
.sortable-img-item:active { cursor: grabbing; }
.sortable-img-item.dragging { opacity:.4; transform: scale(.95); border-color: var(--primary); }
.sortable-img-item.drag-over { border-color: var(--primary); transform: scale(1.04); box-shadow: var(--shadow-md); }
.sortable-img-item.primary-img { border-color: var(--primary); }
.sortable-img-item img { width:100%; height:100%; object-fit:cover; pointer-events:none; }
.sort-drag-handle {
  position: absolute; top:4px; left:4px;
  background: rgba(0,0,0,.5); color:#fff;
  border-radius: 4px; padding: 2px 5px;
  font-size: 10px; cursor: grab;
}
.sort-primary-btn {
  position: absolute; bottom:4px; left:4px; right:28px;
  background: rgba(0,0,0,.55); color:#fff;
  border:none; border-radius:4px; font-size:9px;
  padding: 2px 4px; cursor:pointer; font-weight:700;
  text-align:center; transition: background var(--transition);
}
.sort-primary-btn:hover { background: var(--primary); }
.sortable-img-item.primary-img .sort-primary-btn { background: var(--primary); }

/* =============================================
   RECENT LISTINGS (listing detail)
   ============================================= */
.recent-listings-strip {
  display: flex; gap: 12px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 4px;
}
.recent-listings-strip::-webkit-scrollbar { display:none; }
.recent-strip-card {
  flex-shrink: 0; width: 160px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all var(--transition);
}
.recent-strip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.recent-strip-card img { width:100%; height:100px; object-fit:cover; }
.recent-strip-body { padding: 8px 10px; }
.recent-strip-title { font-size: 12px; font-weight: 600; line-height:1.3; margin-bottom:3px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.recent-strip-price { font-size: 12px; font-weight:700; color:var(--primary); }

/* =============================================
   HERO SLIDER
   ============================================= */

.hero-slider-wrap {
    position: relative;
    overflow: hidden;
}

/* Fon şəkil layları */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease, transform 6s ease;
    transform: scale(1.04);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Qaranlıq overlay — mətni oxunaqlı edir */
.hero-slider-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(10,14,40,.75) 0%, rgba(10,14,40,.35) 60%, rgba(10,14,40,.55) 100%),
        linear-gradient(to bottom, rgba(10,14,40,.25) 0%, rgba(10,14,40,.15) 40%, rgba(10,14,40,.65) 100%);
    z-index: 1;
}

/* Slider olduqda hero mətn rəngi */
.hero-slider-wrap .hero-title {
    color: #fff;
}
.hero-slider-wrap .hero-title span {
    color: #ffd700;
}
.hero-slider-wrap .hero-subtitle {
    color: rgba(255,255,255,.88);
}
.hero-slider-wrap .hero-stat-num,
.hero-slider-wrap .hero-stat-label {
    color: #fff;
}
.hero-slider-wrap .hero-stat {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
}

/* Ox düymələri */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.18);
    border: 2px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background .25s, transform .25s;
    backdrop-filter: blur(6px);
}
.hero-slider-arrow:hover {
    background: rgba(255,255,255,.35);
    transform: translateY(-50%) scale(1.08);
}
.hero-slider-prev { left: 20px; }
.hero-slider-next { right: 20px; }

/* Dot indikatorları */
.hero-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    align-items: center;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: 2px solid rgba(255,255,255,.6);
    cursor: pointer;
    transition: all .3s;
    padding: 0;
}
.slider-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 99px;
}

/* Slide mətn blokları */
.slide-text-block {
    display: none;
}
.slide-text-block.active {
    display: block;
    animation: slideTextIn .6s ease;
}

@keyframes slideTextIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobil uyğunluğu */
@media (max-width: 640px) {
    .hero-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .hero-slider-prev { left: 10px; }
    .hero-slider-next { right: 10px; }
    .hero-slider-dots { bottom: 16px; }
}

/* =============================================
   HƏRRAC / AUCTION STİLLƏRİ
   ============================================= */

/* Badge — canlı indikator */
.auction-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
}
.auction-badge-ended {
    background: rgba(107,114,128,.85);
}
.auction-badge-urgent {
    background: rgba(239,68,68,.92);
    animation: urgentPulse 1.2s ease-in-out infinite;
}
@keyframes urgentPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
    50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.auction-live-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: liveBlink .9s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes liveBlink {
    0%,100% { opacity: 1; }
    50%      { opacity: .3; }
}

/* Ana səhifə hərrac grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .auction-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .auction-grid { grid-template-columns: 1fr; } }

/* Kart */
.auction-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
}
.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
}
.auction-card-ending {
    border: 2px solid #ef4444;
    box-shadow: 0 0 0 3px #fee2e2;
}

.auction-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.auction-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.auction-card:hover .auction-card-img img {
    transform: scale(1.05);
}
.auction-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
}
.auction-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}
.auction-card-bids {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.auction-card-body {
    padding: 16px;
}
.auction-card-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 12px;
}
.auction-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.auction-card-price-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.auction-card-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #059669;
    line-height: 1;
}
.auction-card-price span {
    font-size: 13px;
    font-weight: 600;
}
.auction-card-timer {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.3;
}
.auction-card-timer-urgent {
    color: #ef4444;
    animation: urgentPulse 1.2s ease-in-out infinite;
}

/* Hərrac detail — geri sayım */
.auction-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    transition: color .3s;
}
.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}
.cd-num {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 52px;
    text-align: center;
    letter-spacing: 1px;
}
.cd-label {
    font-size: 10px;
    opacity: .7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cd-sep {
    font-size: 1.6rem;
    font-weight: 900;
    opacity: .6;
    margin-bottom: 14px;
}

/* Bid düyməsi */
.auction-bid-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    letter-spacing: .3px;
    background: linear-gradient(135deg, #4338ca, #6366f1) !important;
}
.auction-bid-btn:hover {
    background: linear-gradient(135deg, #3730a3, #4f46e5) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,.35) !important;
}

/* Mini geri sayım (siyahı səhifəsi) */
.mini-countdown {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.mini-countdown-urgent {
    color: #ef4444;
}
