:root {
  --primary: #0a0a0a;
  --primary-dark: #000000;
  --primary-light: #2a2a2a;
  --accent: #d4af37;
  --accent-dark: #a88521;
  --accent-soft: #f5e6a8;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e5e5;
  --border-light: #f5f5f5;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-hover: #f5f5f5;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #d4af37;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.10);
  --header-height: 68px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
}
.lang-switch button.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-dark); color: white; }
.btn-outline {
  background: white;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ==================== Hero ==================== */
.hero {
  position: relative;
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #fdf6e3 0%, #ffffff 100%);
  overflow: hidden;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 820px;
}
.hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.hero-search {
  display: flex;
  gap: 10px;
  background: white;
  padding: 10px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  flex-wrap: wrap;
}
.hero-search select, .hero-search input {
  border: 0;
  padding: 12px 14px;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  flex: 1;
  min-width: 150px;
  outline: none;
  border-right: 1px solid var(--border-light);
}
.hero-search select:last-of-type, .hero-search input:last-of-type { border-right: 0; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== Sections ==================== */
section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.section-head .section-sub {
  color: var(--text-muted);
  margin: 0;
}

/* ==================== Categories grid ==================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: all .15s ease;
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.cat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #fdf6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cat-card .cat-label {
  font-size: 13px;
  font-weight: 600;
}
.cat-card .cat-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== Listing grid ==================== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.listing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  color: var(--text);
}
.listing-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fdf6e3, #f5e6a8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
}
.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.listing-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.listing-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.listing-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}
.listing-loc {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.listing-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.listing-price-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.listing-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.listing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================== Listings page ==================== */
.page-header {
  background: var(--bg-soft);
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 34px;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.page-header p {
  color: var(--text-muted);
  margin: 0;
}

.listings-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0;
}

.filters {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow-y: auto;
}
.filter-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.filter-group input[type="checkbox"] { accent-color: var(--primary); }
.filter-group .range-inputs {
  display: flex;
  gap: 8px;
}
.filter-group input[type="number"], .filter-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--text);
}
.filter-group input:focus, .filter-group select:focus {
  border-color: var(--primary);
}
.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.results-count {
  color: var(--text-muted);
  font-size: 14px;
}
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text);
  outline: none;
}

.listings-grid-wrap .listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.no-results {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* ==================== Listing detail ==================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}

.detail-hero {
  background: linear-gradient(135deg, #fdf6e3, #f5e6a8);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  color: var(--primary);
  margin-bottom: 28px;
}
.detail h1 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.detail .meta-row {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail h2 {
  font-size: 20px;
  margin: 32px 0 14px;
  font-weight: 700;
}
.detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.kpi {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.kpi-value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}

.detail-description {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.detail-spec {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.detail-spec dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0;
}
.detail-spec dt {
  color: var(--text-muted);
  font-size: 13px;
}
.detail-spec dd {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.price-card .price-main {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.price-card .price-usd {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}
.price-card .divider {
  height: 1px;
  background: var(--border-light);
  margin: 18px 0;
}
.price-card .btn { width: 100%; margin-bottom: 10px; }
.price-card .seller-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.services-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 16px;
}
.services-hint h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}
.services-hint p {
  margin: 0 0 12px;
  color: #78350f;
  font-size: 13px;
}

/* ==================== Services page ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all .15s ease;
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-card .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.service-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.service-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  color: var(--text-muted);
}
.service-meta strong { color: var(--text); }

.providers {
  margin-top: 48px;
}
.provider-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.provider-row .provider-name {
  font-weight: 700;
  font-size: 15px;
}
.provider-row .provider-bio {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.provider-rating {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.provider-rating .star { color: var(--accent); }

/* ==================== Sell page ==================== */
.sell-hero {
  text-align: center;
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #fdf6e3 0%, #ffffff 100%);
}
.sell-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.sell-hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step {
  text-align: center;
  padding: 24px;
}
.step-num {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.step h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}
.step p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-field input, .form-field select, .form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary);
}
.form-note {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==================== How it works / CTA ==================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band h2 {
  color: white;
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 800;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
.cta-band .btn-accent {
  background: white;
  color: var(--primary);
}
.cta-band .btn-accent:hover { background: #fef3c7; }

/* ==================== Footer ==================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}
.footer-col h4 {
  color: white;
  font-size: 14px;
  margin: 0 0 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  color: #94a3b8;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 960px) {
  .hero h1 { font-size: 36px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-kpis { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 32px; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 28px; }
  .hero-search { flex-direction: column; }
  .hero-search select, .hero-search input { border-right: 0; border-bottom: 1px solid var(--border-light); }
  .hero-search .btn { width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-spec dl { grid-template-columns: 1fr; }
  .detail-kpis { grid-template-columns: 1fr 1fr; }
  .provider-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 26px; }
  .section-head h2 { font-size: 24px; }
}

/* ==================== BizBazar v2 additions ==================== */

/* 1. Photo in listing card */
.listing-image { position: relative; overflow: hidden; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.listing-card:hover .listing-image img { transform: scale(1.04); }
.listing-image .cat-overlay { position: absolute; bottom: 8px; left: 8px; font-size: 24px; }

/* 2. Save/heart button on cards */
.save-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: color 0.2s, background 0.2s; z-index: 2; }
.save-btn.saved, .save-btn:hover { color: #e63946; background: white; }

/* 3. Verified badge */
.verified-badge { display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; }

/* 4. WhatsApp / Telegram buttons */
.wa-btn { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: white; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.wa-btn:hover { opacity: 0.88; color: white; }
.tg-btn { display: inline-flex; align-items: center; gap: 6px; background: #0088cc; color: white; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.tg-btn:hover { opacity: 0.88; color: white; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* 5. Skeleton loaders */
.skeleton-card { pointer-events: none; }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-img { height: 180px; border-radius: 12px 12px 0 0; }
.sk-line { height: 14px; margin: 8px 0; }
.sk-short { width: 50%; }
.sk-med { width: 75%; }

/* 6. Compare bar (fixed bottom) */
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); color: white; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 1000; transform: translateY(100%); transition: transform 0.3s; }
.compare-bar.visible { transform: translateY(0); }
.compare-bar-items { display: flex; gap: 12px; flex-wrap: wrap; }
.compare-bar-item { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 4px 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.compare-bar-item button { background: none; border: none; color: white; cursor: pointer; font-size: 16px; line-height: 1; }
.compare-bar .btn-accent { white-space: nowrap; }
.compare-checkbox-wrap { position: absolute; top: 10px; left: 10px; z-index: 3; }
.compare-checkbox-wrap input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* 7. Photo gallery on detail page */
.listing-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: 16px; overflow: hidden; margin-bottom: 32px; max-height: 380px; }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-gallery .gallery-main { grid-row: span 2; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs img { flex: 1; min-height: 0; }
@media(max-width:640px){ .listing-gallery { grid-template-columns: 1fr; } .gallery-thumbs { flex-direction: row; } }

/* 8. Broker card on detail page */
.broker-card { display: flex; align-items: center; gap: 16px; background: var(--bg-soft); border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; margin: 24px 0; }
.broker-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.broker-card-info h4 { margin: 0 0 4px; font-size: 16px; }
.broker-card-info .broker-meta { font-size: 13px; color: #64748b; display: flex; gap: 12px; flex-wrap: wrap; }
.broker-card-info .broker-meta span { display: flex; align-items: center; gap: 4px; }
.broker-license { font-size: 11px; background: #fdf6e3; color: #a88521; border-radius: 20px; padding: 2px 10px; font-weight: 600; }

/* 9. Testimonials section */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.testimonial-card { background: white; border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); display: flex; flex-direction: column; gap: 16px; }
.testimonial-quote { font-size: 15px; line-height: 1.65; color: #334155; font-style: italic; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author-info strong { display: block; font-size: 14px; }
.testimonial-author-info span { font-size: 12px; color: #64748b; }
.testimonial-stars { color: #f59e0b; font-size: 13px; }
.deals-band { background: var(--primary); color: white; border-radius: 16px; padding: 32px 40px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; text-align: center; margin: 40px 0; }
.deals-band-stat strong { display: block; font-size: 32px; font-weight: 700; }
.deals-band-stat span { font-size: 14px; opacity: 0.8; }

/* 10. Recently viewed strip */
.recent-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.recent-card { flex: 0 0 220px; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.recent-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.recent-card img { width: 100%; height: 120px; object-fit: cover; }
.recent-card-body { padding: 10px 12px; }
.recent-card-body p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.recent-card-body span { font-size: 12px; color: var(--accent); font-weight: 700; }

/* 11. Plans / pricing cards */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 32px 0; }
.plan-card { border: 2px solid #e2e8f0; border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; position: relative; background: white; }
.plan-card.highlight { border-color: var(--accent); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; font-size: 12px; font-weight: 700; padding: 3px 16px; border-radius: 20px; white-space: nowrap; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.plan-price sup { font-size: 18px; vertical-align: super; }
.plan-price span { font-size: 14px; color: #64748b; font-weight: 400; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.plan-duration { font-size: 13px; color: #64748b; }

/* 12. Calculator cards */
.calc-card { background: white; border-radius: 20px; padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); max-width: 600px; margin: 0 auto; }
.calc-result { background: var(--bg-soft); border: 2px solid var(--primary); border-radius: 16px; padding: 28px; text-align: center; margin-top: 24px; }
.calc-result-label { font-size: 14px; color: #64748b; margin-bottom: 8px; }
.calc-result-value { font-size: 36px; font-weight: 800; color: var(--primary); }
.calc-result-sub { font-size: 14px; color: #64748b; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px){ .form-row { grid-template-columns: 1fr; } }

/* 13. Benchmark / market intel page */
.benchmark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 32px 0; }
.benchmark-card { background: white; border-radius: 16px; padding: 24px; border: 1px solid #e2e8f0; }
.benchmark-card h3 { margin: 0 0 16px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.benchmark-stat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.benchmark-stat:last-child { border: none; }
.benchmark-stat strong { color: var(--primary); }
.trend-up { color: #16a34a; }
.trend-down { color: #dc2626; }
.trend-stable { color: #64748b; }
.demand-bar { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 10px; }
.demand-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); }

/* 14. Map container */
.map-container { height: 70vh; min-height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; }

/* 15. Compare table */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { background: var(--primary); color: white; padding: 14px 20px; text-align: left; font-size: 14px; }
.compare-table td { padding: 12px 20px; border-bottom: 1px solid #f1f5f9; font-size: 14px; vertical-align: top; }
.compare-table tr:hover td { background: var(--bg-soft); }
.compare-table .metric-label { color: #64748b; font-weight: 500; }
.compare-table .metric-best { color: #16a34a; font-weight: 700; }
.compare-remove { background: none; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 12px; cursor: pointer; font-size: 13px; color: #64748b; }
.compare-remove:hover { border-color: var(--accent); color: var(--accent); }

/* 16. Broker profile page */
.broker-profile-header { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 40px; }
.broker-profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.broker-profile-meta { flex: 1; }
.broker-profile-meta h1 { margin: 0 0 8px; }
.broker-stats-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.broker-stat { text-align: center; }
.broker-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.broker-stat span { font-size: 13px; color: #64748b; }
.lang-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-tag { background: #fdf6e3; color: #a88521; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* 17. Form styles (used in sell.html, valuation, afford) */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 14px; font-weight: 600; color: #374151; }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid #d1d5db; border-radius: 10px; padding: 10px 14px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* 18. Misc utility additions */
.stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.rating-chip { display: inline-flex; align-items: center; gap: 4px; background: #fefce8; border: 1px solid #fde68a; color: #92400e; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.views-chip { display: inline-flex; align-items: center; gap: 4px; color: #64748b; font-size: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.kpi-payback { background: #fdf6e3; }
.kpi-margin { background: #f0fdf4; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Favorites count pill in nav */
.fav-count { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: white; border-radius: 10px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 2px; }
/* Small WhatsApp button on cards */
.wa-btn-sm { display: inline-flex; align-items: center; background: #25d366; color: white; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; text-decoration: none; margin-top: 8px; transition: opacity 0.2s; }
.wa-btn-sm:hover { opacity: 0.85; color: white; }
