/* ============================================================
   PropSearch - Main Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;
  --secondary:     #f59e0b;
  --secondary-dark:#d97706;
  --success:       #10b981;
  --danger:        #ef4444;
  --dark:          #1e293b;
  --darker:        #0f172a;
  --gray:          #64748b;
  --light-gray:    #f1f5f9;
  --border:        #e2e8f0;
  --white:         #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:     0 10px 25px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.05);
  --shadow-xl:     0 20px 60px rgba(0,0,0,.12);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --transition:    all .2s ease;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: #f8fafc;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  z-index: 1050;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -.5px;
}
.navbar-brand i { color: var(--secondary); }
.navbar-main .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: .92rem;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.12);
}
.navbar-search {
  width: 380px;
}
.navbar-search .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: none;
  height: 40px;
  font-size: .9rem;
  background: rgba(255,255,255,.95);
}
.navbar-search .form-control:focus { box-shadow: none; }
.btn-search {
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 16px;
  height: 40px;
}
.btn-search:hover { background: var(--secondary-dark); color: var(--white); }

.btn-post-property {
  background: var(--secondary) !important;
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
}
.btn-post-property:hover { background: var(--secondary-dark) !important; transform: translateY(-1px); }

.btn-register {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
}

/* Badge for notifications */
.badge-notif {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.user-avatar-nav { display: flex; align-items: center; gap: 6px; }
.user-avatar-nav img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); object-fit: cover; }
.user-avatar-nav .avatar-initials {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-dropdown { min-width: 220px; border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 8px; }
.user-dropdown .dropdown-header { padding: 8px 12px; font-size: .85rem; }
.user-dropdown .dropdown-item {
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: .88rem; color: var(--dark);
  transition: var(--transition);
}
.user-dropdown .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.mobile-search-bar { background: var(--dark); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--darker) 0%, #1e3a5f 40%, #1a2f6b 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.4);
  color: var(--secondary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title .highlight { color: var(--secondary); }
.hero-subtitle { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 1.8rem; font-weight: 800; color: var(--secondary); display: block; }
.hero-stat-label { color: rgba(255,255,255,.6); font-size: .82rem; }

/* Hero Search Box */
.hero-search-box {
  background: rgba(255,255,255,.98);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}
.hero-search-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.search-tab-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
.search-tab-btn.active, .search-tab-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.hero-search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.search-field label { font-size: .82rem; font-weight: 600; color: var(--gray); margin-bottom: 6px; display: block; }
.search-field .form-select,
.search-field .form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  height: 46px;
  font-size: .9rem;
}
.search-field .form-select:focus,
.search-field .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.btn-hero-search {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  height: 46px;
  padding: 0 24px;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-hero-search:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.hero-nearby-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 600;
}
.popular-searches { margin-top: 14px; }
.popular-searches span { font-size: .8rem; color: var(--gray); }
.popular-search-tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--gray);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  cursor: pointer;
  transition: var(--transition);
  margin: 2px;
}
.popular-search-tag:hover { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-header { margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title { font-size: 2rem; font-weight: 800; color: var(--dark); }
.section-subtitle { color: var(--gray); font-size: 1rem; margin-top: 6px; }

/* ============================================================
   PROPERTY CARD
   ============================================================ */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37,99,235,.2);
}
.prop-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.prop-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .prop-img-wrap img { transform: scale(1.06); }
.prop-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.prop-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
}
.prop-badge-sale   { background: rgba(37,99,235,.85);  color: #fff; }
.prop-badge-rent   { background: rgba(16,185,129,.85); color: #fff; }
.prop-badge-both   { background: rgba(245,158,11,.85); color: #fff; }
.prop-badge-feat   { background: rgba(239,68,68,.85);  color: #fff; }
.prop-badge-type   { background: rgba(15,23,42,.7);    color: #fff; }
.btn-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: .9rem;
  color: var(--gray);
}
.btn-fav:hover, .btn-fav.active { background: var(--danger); color: var(--white); transform: scale(1.15); }

.prop-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prop-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.prop-price { font-size: 1.35rem; font-weight: 800; color: var(--dark); }
.prop-price-per { font-size: .75rem; color: var(--gray); }
.prop-title {
  font-size: .98rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-location { font-size: .83rem; color: var(--gray); margin-bottom: 12px; }
.prop-location i { color: var(--primary); margin-right: 4px; }
.prop-specs {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.prop-spec {
  display: flex; align-items: center; gap: 4px;
  font-size: .78rem; color: var(--gray);
}
.prop-spec i { color: var(--primary); font-size: .75rem; }
.prop-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
}
.prop-time { font-size: .75rem; color: var(--gray); }
.btn-view-prop {
  font-size: .8rem; font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 4px 14px;
  transition: var(--transition);
}
.btn-view-prop:hover { background: var(--primary); color: var(--white); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
}
.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}
.category-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
  transition: var(--transition);
}
.category-card:hover .category-icon { background: var(--primary); color: var(--white); }
.category-name { font-weight: 700; font-size: .95rem; }
.category-count { font-size: .78rem; color: var(--gray); margin-top: 4px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: var(--white); }
.how-step { text-align: center; padding: 20px; }
.how-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--primary);
  position: relative;
}
.how-icon::after {
  content: attr(data-step);
  position: absolute;
  top: -4px; right: -4px;
  width: 24px; height: 24px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-step h5 { font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--gray); font-size: .9rem; }

/* ============================================================
   AUTHENTICATION PAGES
   ============================================================ */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff5e4 100%);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-xl);
}
.auth-card-wide { max-width: 680px; }
.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--dark); }
.auth-logo i { color: var(--primary); }
.auth-logo span { font-size: 1.4rem; font-weight: 800; }
.auth-title { text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--gray); margin-bottom: 28px; font-size: .92rem; }

/* Input with icon */
.input-group-icon { position: relative; }
.input-group-icon > i:first-child {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray); z-index: 1; pointer-events: none; font-size: .9rem;
}
.input-group-icon .form-control { padding-left: 36px; }
.input-group-icon .btn-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--gray); cursor: pointer; padding: 4px;
}
.input-group-icon .btn-eye:hover { color: var(--dark); }

.btn-auth {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }

.auth-divider { position: relative; text-align: center; margin: 20px 0; }
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.auth-divider span {
  position: relative; background: var(--white);
  padding: 0 12px; color: var(--gray); font-size: .82rem;
}
.social-auth-btns { display: flex; gap: 10px; }
.btn-social-google, .btn-social-otp {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .88rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.btn-social-google { background: #fff; border: 1.5px solid var(--border); color: var(--dark); }
.btn-social-google:hover { background: #fef2f2; border-color: #ea4335; color: #ea4335; }
.btn-social-otp { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534; }
.btn-social-otp:hover { background: #dcfce7; }

.auth-footer { text-align: center; margin-top: 20px; color: var(--gray); font-size: .9rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Role Selector */
.role-selector { display: flex; gap: 10px; }
.role-option {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.role-option input { display: none; }
.role-option span { font-weight: 700; font-size: .88rem; }
.role-option small { color: var(--gray); font-size: .75rem; }
.role-option.active, .role-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.role-option.active i, .role-option:hover i { color: var(--primary); }

/* Step Indicator */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 4px; }
.step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.step span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; transition: var(--transition);
}
.step small { font-size: .7rem; color: var(--gray); }
.step.active span { background: var(--primary); color: var(--white); }
.step.done span { background: var(--success); color: var(--white); }
.step-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; transition: var(--transition); }
.step-line.active { background: var(--primary); }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
  padding: 24px 0;
  color: var(--white);
}
.search-filter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.filter-section-head {
  background: var(--dark);
  color: var(--white);
  padding: 14px 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.filter-body { padding: 16px; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-label { font-weight: 700; font-size: .85rem; color: var(--dark); margin-bottom: 10px; }
.filter-chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .78rem; font-weight: 600;
  cursor: pointer; color: var(--gray);
  transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.results-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.results-count { font-size: .9rem; color: var(--gray); }
.results-count strong { color: var(--dark); }
.view-btns { display: flex; gap: 4px; }
.btn-view-toggle {
  width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.btn-view-toggle.active, .btn-view-toggle:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Map view */
.map-container { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
#searchMap { height: 500px; }

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */
.prop-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { height: 420px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery-thumb {
  flex: 1; height: 80px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; opacity: .6;
  transition: var(--transition); border: 2px solid transparent;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.prop-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.prop-detail-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.prop-detail-price { font-size: 2rem; font-weight: 900; color: var(--primary); }
.prop-detail-price-sub { font-size: .85rem; color: var(--gray); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.spec-item {
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.spec-item i { font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; display: block; }
.spec-item .val { font-weight: 700; font-size: .95rem; }
.spec-item .lbl { font-size: .72rem; color: var(--gray); }
.amenity-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .8rem; font-weight: 600; margin: 3px;
}

/* Seller card */
.seller-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
}
.seller-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }
.seller-avatar-placeholder {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.dashboard-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky; top: 80px;
}
.sidebar-user-info { background: linear-gradient(135deg, var(--dark), #1a2744); padding: 24px; text-align: center; color: var(--white); }
.sidebar-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.3); margin-bottom: 10px; }
.sidebar-avatar-text {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--secondary); color: var(--white); font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.sidebar-name { font-weight: 700; font-size: 1.05rem; }
.sidebar-role { font-size: .8rem; opacity: .7; }

.sidebar-nav { padding: 10px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--dark); font-size: .9rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active-nav {
  background: var(--primary-light); color: var(--primary);
}
.sidebar-nav a i { width: 18px; text-align: center; color: var(--gray); }
.sidebar-nav a:hover i, .sidebar-nav a.active-nav i { color: var(--primary); }
.sidebar-nav a .nav-badge {
  margin-left: auto; background: var(--danger);
  color: var(--white); font-size: .65rem; padding: 1px 6px; border-radius: 10px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-icon-blue { background: #eff6ff; color: var(--primary); }
.stat-icon-green { background: #f0fdf4; color: var(--success); }
.stat-icon-amber { background: #fffbeb; color: var(--secondary); }
.stat-icon-red { background: #fef2f2; color: var(--danger); }
.stat-count { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--gray); margin-top: 3px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; min-width: 260px;
  background: var(--darker);
  display: flex; flex-direction: column;
  position: fixed; height: 100vh;
  overflow-y: auto; z-index: 100;
}
.admin-sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: 1.2rem; font-weight: 800;
}
.admin-sidebar-brand i { color: var(--secondary); }
.admin-nav { padding: 12px 8px; flex: 1; }
.admin-nav-section { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; padding: 12px 8px 6px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px; text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.1); color: var(--white);
}
.admin-nav a i { width: 18px; text-align: center; font-size: .9rem; }
.admin-nav a .admin-badge {
  margin-left: auto; background: var(--danger);
  color: var(--white); font-size: .65rem; padding: 2px 7px; border-radius: 10px;
}

.admin-content {
  margin-left: 260px;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  background: #f1f5f9;
}
.admin-topbar {
  background: var(--white);
  padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.admin-page-title { font-size: 1.1rem; font-weight: 700; }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-main { padding: 24px 28px; flex: 1; }

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg); padding: 20px;
  border: none; border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: var(--transition);
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.admin-stat-card .bg-icon {
  position: absolute; right: 16px; top: 16px;
  font-size: 2.5rem; opacity: .1;
}
.admin-stat-card.blue  { border-color: var(--primary); }
.admin-stat-card.green { border-color: var(--success); }
.admin-stat-card.amber { border-color: var(--secondary); }
.admin-stat-card.red   { border-color: var(--danger); }
.admin-stat-card.indigo { border-color: #6366f1; }
.admin-stat-card.cyan  { border-color: #06b6d4; }
.admin-stat-num { font-size: 2rem; font-weight: 900; }
.admin-stat-label { color: var(--gray); font-size: .82rem; }

.data-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table-head {
  background: var(--dark); color: var(--white);
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.table thead th {
  background: var(--light-gray);
  font-size: .82rem; font-weight: 700;
  color: var(--gray); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px; white-space: nowrap;
}
.table tbody tr:hover { background: #f8faff; }
.table tbody td { padding: 12px 16px; vertical-align: middle; font-size: .88rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,.75);
  margin-top: auto;
}
.footer-logo { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-logo i { color: var(--secondary); margin-right: 6px; }
.footer-desc { font-size: .85rem; opacity: .7; max-width: 280px; }
.footer-heading { font-size: .85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 24px 0; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-policy { color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-policy:hover { color: var(--white); }

/* Back to top */
.btn-back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: all .3s ease; z-index: 999;
}
.btn-back-top.show { opacity: 1; transform: translateY(0); }
.btn-back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   MISC / UTILITIES
   ============================================================ */
.page-loader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .3s ease;
}
.page-loader.hide { opacity: 0; pointer-events: none; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state i { font-size: 4rem; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h5 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: .9rem; }

/* Range slider */
.price-range-display {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--gray); margin-top: 6px;
}

/* Notification items */
.notif-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.notif-item:hover { background: var(--light-gray); }
.notif-item.unread { background: #f0f6ff; border-left: 3px solid var(--primary); }
.notif-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.notif-content .title { font-weight: 600; font-size: .88rem; margin-bottom: 2px; }
.notif-content .msg   { font-size: .8rem; color: var(--gray); }
.notif-content .time  { font-size: .72rem; color: var(--gray); margin-top: 3px; }

.otp-input { letter-spacing: 8px; font-size: 1.4rem; }

/* Accordion filter on mobile */
@media (max-width: 768px) {
  .hero-search-fields { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .auth-card { padding: 24px; }
  .role-selector { flex-wrap: wrap; }
  .role-option { min-width: 120px; }
}

/* Loading spinner */
.spinner-border-sm { width: 1rem; height: 1rem; }

/* Compare bar */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark); color: var(--white);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000; transform: translateY(100%); transition: var(--transition);
}
.compare-bar.show { transform: translateY(0); }

/* ============================================================
   ADMIN ADDITIONS
   ============================================================ */
.admin-stat-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.admin-stat-info { flex: 1; }
.admin-stat-num  { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.admin-stat-label{ font-size: .78rem; color: rgba(255,255,255,.75); margin-top: 2px; }
.admin-stat-card { display: flex; align-items: center; gap: 12px; background: var(--primary); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); transition: var(--transition); border-left: 4px solid rgba(255,255,255,.3); }
.admin-stat-card.teal   { background: #0d9488; }
.admin-stat-card.purple { background: #7c3aed; }
.admin-stat-card.orange { background: #ea580c; }
.admin-stat-card.dark   { background: var(--darker); }
.admin-stat-card:hover  { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.admin-nav-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); padding: 0 1.25rem; margin-top: 4px; margin-bottom: 4px; }
.admin-nav-badge { background: #ef4444; color: #fff; border-radius: 999px; font-size: .68rem; padding: 1px 7px; margin-left: auto; font-weight: 700; }
.admin-user-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.admin-topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.text-danger-light { color: #fca5a5 !important; }

/* Button xs */
.btn-xs { padding: 3px 8px; font-size: .75rem; border-radius: 6px; }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-zone:hover { border-color: var(--primary); background: #f0f6ff; }

/* stat-icon colors */
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.stat-icon-blue   { background: #dbeafe; color: var(--primary); }
.stat-icon-green  { background: #d1fae5; color: var(--success); }
.stat-icon-amber  { background: #fef3c7; color: var(--secondary); }
.stat-icon-red    { background: #fee2e2; color: var(--danger); }
.stat-icon-purple { background: #ede9fe; color: #7c3aed; }

/* nav-badge */
.nav-badge { background: #ef4444; color: #fff; border-radius: 999px; font-size: .65rem; padding: 1px 6px; font-weight: 700; margin-left: 4px; }

/* Profile stat card */
.stat-card { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-count { font-size: 1.5rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.stat-label { font-size: .78rem; color: var(--gray); }

/* admin-sidebar open on mobile */
@media (max-width: 992px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; height: 100%; z-index: 999; transition: left .25s ease; box-shadow: none; }
  .admin-sidebar.open { left: 0; box-shadow: 0 0 0 9999px rgba(0,0,0,.4); }
  .admin-content { margin-left: 0 !important; }
}
