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

:root {
  --purple: #6B21A8;
  --purple-dark: #581C87;
  --purple-light: #7C3AED;
  --purple-bg: #F5F0FF;
  --purple-nav: #5B21B6;
  --orange: #F97316;
  --green: #16A34A;
  --red: #DC2626;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--gray-100); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* Header */
.header { background: white; border-bottom: 1px solid var(--gray-200); padding: 12px 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; gap: 16px; }
.logo-text { font-size: 26px; font-weight: 800; color: var(--purple); }
.logo-sub { font-size: 11px; color: var(--gray-500); }
.search-bar { flex: 1; display: flex; border: 2px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.search-bar:focus-within { border-color: var(--purple); }
.search-input { flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 14px; }
.search-btn { background: var(--purple); color: white; border: none; padding: 0 20px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.search-btn:hover { background: var(--purple-dark); }
.btn-post { background: var(--purple); color: white; border: none; padding: 10px 18px; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-post:hover { background: var(--purple-dark); }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--gray-600); font-size: 20px; padding: 6px; position: relative; }
.icon-btn:hover { color: var(--purple); }
.user-menu { display: flex; align-items: center; gap: 8px; cursor: pointer; background: var(--gray-100); padding: 6px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; }

/* Navbar */
.navbar { background: var(--purple-nav); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); padding: 14px 16px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 5px; transition: background 0.2s; }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.2); color: white; border-bottom: 2px solid white; }
.nav-links a.home { font-size: 18px; padding: 10px 16px; }

/* Category tabs */
.cat-tabs { background: white; border-bottom: 1px solid var(--gray-200); padding: 0 20px; }
.cat-tabs .container { display: flex; gap: 4px; overflow-x: auto; }
.cat-tab { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-size: 14px; font-weight: 500; color: var(--gray-600); white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.cat-tab:hover { color: var(--purple); }
.cat-tab.active { color: var(--purple); border-bottom-color: var(--purple); background: var(--purple-bg); }
.cat-tab .icon { font-size: 18px; }
.cat-tab .count { font-size: 12px; color: var(--gray-400); }

/* Page layout */
.page-body { padding: 20px 0; }
.listings-layout { display: grid; grid-template-columns: 240px 1fr 300px; gap: 20px; align-items: start; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--purple); }
.breadcrumb span { color: var(--gray-300); }
.page-title h1 { font-size: 26px; font-weight: 800; color: var(--gray-900); }
.page-title p { font-size: 14px; color: var(--gray-500); margin-top: 2px; }

/* Sidebar filter */
.sidebar { background: white; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.sidebar h3 { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.filter-group { margin-bottom: 20px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; display: block; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--gray-700); transition: background 0.2s; cursor: pointer; }
.cat-list a:hover { background: var(--purple-bg); color: var(--purple); }
.cat-list a.active { background: var(--purple-bg); color: var(--purple); font-weight: 600; }
.cat-list a .cat-icon { font-size: 16px; margin-right: 8px; }
.cat-list a .num { font-size: 12px; color: var(--gray-400); }
.cat-list a.active .num { color: var(--purple); }
.price-range { display: flex; gap: 8px; }
.price-range input { flex: 1; border: 1px solid var(--gray-300); border-radius: 6px; padding: 8px 10px; font-size: 13px; outline: none; }
.price-range input:focus { border-color: var(--purple); }
.price-slider { margin-top: 10px; width: 100%; accent-color: var(--purple); }
.select-filter { width: 100%; border: 1px solid var(--gray-300); border-radius: 6px; padding: 8px 10px; font-size: 13px; outline: none; color: var(--gray-700); background: white; cursor: pointer; }
.select-filter:focus { border-color: var(--purple); }
.btn-filter { background: var(--purple); color: white; border: none; padding: 11px; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 600; width: 100%; margin-top: 8px; }
.btn-filter:hover { background: var(--purple-dark); }
.btn-clear { background: none; border: 1px solid var(--gray-300); color: var(--gray-600); padding: 9px; border-radius: var(--radius); cursor: pointer; font-size: 13px; width: 100%; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-clear:hover { border-color: var(--red); color: var(--red); }

/* Main content */
.main-content { }
.filters-bar { background: white; border-radius: var(--radius); padding: 12px 16px; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.filter-select { border: 1px solid var(--gray-200); border-radius: 6px; padding: 8px 12px; font-size: 13px; color: var(--gray-700); outline: none; background: white; cursor: pointer; }
.filter-select:focus { border-color: var(--purple); }
.filter-spacer { flex: 1; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { background: none; border: 1px solid var(--gray-200); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--gray-500); transition: all 0.2s; }
.view-btn.active, .view-btn:hover { background: var(--purple); border-color: var(--purple); color: white; }

/* Listing grid */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.listing-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.listing-thumb { position: relative; height: 180px; overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.listing-card:hover .listing-thumb img { transform: scale(1.05); }
.listing-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-premium { background: var(--orange); color: white; }
.badge-vip { background: #EAB308; color: white; }
.listing-heart { position: absolute; top: 10px; right: 10px; background: white; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray-400); font-size: 16px; box-shadow: var(--shadow); transition: color 0.2s; }
.listing-heart:hover { color: var(--red); }
.listing-body { padding: 14px; }
.listing-title { font-size: 15px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.listing-price { font-size: 18px; font-weight: 800; color: var(--purple); margin-bottom: 8px; }
.listing-price.rent { font-size: 15px; }
.listing-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gray-500); }
.listing-loc { display: flex; align-items: center; gap: 4px; }
.listing-time { font-size: 11px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.page-btn { width: 38px; height: 38px; border: 1px solid var(--gray-200); background: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: var(--gray-700); transition: all 0.2s; }
.page-btn:hover { border-color: var(--purple); color: var(--purple); }
.page-btn.active { background: var(--purple); border-color: var(--purple); color: white; font-weight: 700; }
.page-btn.arrow { font-size: 16px; }

/* Right sidebar */
.right-sidebar { display: flex; flex-direction: column; gap: 16px; }
.ad-box { background: linear-gradient(135deg, var(--purple) 0%, #4C1D95 100%); border-radius: var(--radius-lg); padding: 20px; color: white; }
.ad-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.ad-box p { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.ad-box-feature { font-size: 13px; color: rgba(255,255,255,0.9); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.btn-post-ad { background: white; color: var(--purple); border: none; padding: 11px 20px; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 700; width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-post-ad:hover { background: var(--gray-100); }

.vip-box { background: white; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.vip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vip-header h3 { font-size: 15px; font-weight: 700; }
.vip-header a { font-size: 13px; color: var(--purple); font-weight: 600; }
.vip-item { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.vip-item img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.vip-badge { display: inline-block; background: #EAB308; color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; width: fit-content; }
.vip-title { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.vip-price { font-size: 16px; font-weight: 700; color: var(--purple); }
.vip-loc { font-size: 12px; color: var(--gray-500); }
.vip-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.vip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); }
.vip-dot.active { background: var(--purple); }

.top-viewed { background: white; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.top-viewed h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.top-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.top-item:last-child { border-bottom: none; }
.top-num { font-size: 18px; font-weight: 800; color: var(--gray-200); width: 24px; }
.top-item-body { flex: 1; }
.top-item-title { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.top-item-price { font-size: 13px; font-weight: 700; color: var(--purple); }

/* Newsletter */
.newsletter { background: var(--purple); color: white; padding: 28px 0; }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.newsletter-text p { font-size: 13px; color: rgba(255,255,255,0.8); }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 380px; }
.newsletter-form input { flex: 1; border: none; padding: 11px 16px; border-radius: var(--radius); font-size: 14px; outline: none; }
.newsletter-form button { background: white; color: var(--purple); border: none; padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.newsletter-social { display: flex; gap: 10px; align-items: center; }
.newsletter-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.social-link { width: 34px; height: 34px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 15px; }
.social-link:hover { background: rgba(255,255,255,0.3); }
.footer { background: #111; color: rgba(255,255,255,0.5); padding: 8px 0; text-align: center; font-size: 12px; }

@media (max-width: 1100px) {
  .listings-layout { grid-template-columns: 200px 1fr; }
  .right-sidebar { display: none; }
  .listing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .listings-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .listing-grid { grid-template-columns: 1fr; }
}
