:root {
  --primary: #00a651;
  --primary-dark: #008c44;
  --bg: #f5f5f5;
  --border: #e5e5e5;
}
body { background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.text-success, .btn-success { background-color: var(--primary)!important; border-color: var(--primary)!important; }
.text-success { color: var(--primary)!important; background: none!important; }
.btn-success:hover { background-color: var(--primary-dark)!important; border-color: var(--primary-dark)!important; }
a.text-success { color: var(--primary)!important; }

/* HERO SEARCH */
.hero {
  background: linear-gradient(135deg, var(--primary), #007a3d);
  color: #fff;
  padding: 50px 0 30px;
  margin-bottom: 24px;
}
.hero h1 { font-weight: 700; }
.search-box { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.1); overflow: hidden; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* CATEGORY CHIPS */
.category-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 30px;
  text-decoration: none; color: #333; font-size: 14px;
  transition: all .2s;
}
.category-chip:hover { border-color: var(--primary); color: var(--primary); }
.category-chip i { font-size: 16px; }

/* LISTING CARD - default green-bordered for all listings */
.listing-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 1px rgba(0,166,81,.18), 0 4px 12px rgba(0,166,81,.12);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; height: 100%;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(0,166,81,.5), 0 8px 24px rgba(0,166,81,.25);
}
.listing-card .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.listing-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .img-wrap .badge-deal {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.7); color: #fff;
  padding: 3px 10px; border-radius: 4px; font-size: 12px;
}
.listing-card .img-wrap .fav-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.9); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.listing-card .img-wrap .fav-btn:hover { background: #fff; color: #e91e63; }
.listing-card .body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.listing-card .price { font-size: 18px; font-weight: 700; color: #222; margin: 0 0 6px; }
.listing-card .title { font-size: 14px; color: #444; margin-bottom: 8px; line-height: 1.4; }
.listing-card .meta { font-size: 12px; color: #888; margin-top: auto; }
.listing-card .meta i { margin-right: 3px; }

/* ============ VIP / PREMIUM / PROMOTED BADGES ============ */
.listing-card .img-wrap .badge-premium,
.listing-card .img-wrap .badge-vip,
.listing-card .img-wrap .badge-promote {
  position: absolute;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  text-transform: uppercase;
  pointer-events: none;
}
/* Premium - top-left, below deal badge - gold gradient + glow */
.listing-card .img-wrap .badge-premium {
  top: 36px; left: 8px;
  background: linear-gradient(135deg, #f7c948, #e0a800);
  color: #5a3e00;
  box-shadow: 0 0 12px rgba(255,193,7,.6), 0 2px 4px rgba(0,0,0,.25);
  animation: premium-glow 2s ease-in-out infinite alternate;
}
@keyframes premium-glow {
  from { box-shadow: 0 0 8px rgba(255,193,7,.5), 0 2px 4px rgba(0,0,0,.25); }
  to   { box-shadow: 0 0 18px rgba(255,193,7,.85), 0 2px 4px rgba(0,0,0,.25); }
}
/* VIP - top-left, below deal badge - blue gradient */
.listing-card .img-wrap .badge-vip {
  top: 36px; left: 8px;
  background: linear-gradient(135deg, #17a2b8, #0d6efd);
  color: #fff;
}
/* Promoted - bottom-left - green gradient */
.listing-card .img-wrap .badge-promote {
  bottom: 8px; left: 8px;
  background: linear-gradient(135deg, #28a745, #1c7430);
  color: #fff;
  animation: promote-pulse 1.6s ease-in-out infinite;
}
@keyframes promote-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* Card border highlights for premium/vip/promote */
.listing-card.premium {
  border: 2px solid #ffc107;
  box-shadow: 0 0 0 1px rgba(255,193,7,.3), 0 4px 12px rgba(255,193,7,.18);
  background: linear-gradient(180deg, #fffbeb, #fff 45%);
}
.listing-card.premium:hover {
  box-shadow: 0 0 0 1px rgba(255,193,7,.6), 0 8px 24px rgba(255,193,7,.3);
}
/* VIP cards keep the same green border as default but with a slight blue tint background */
.listing-card.vip {
  background: linear-gradient(180deg, #f0f9ff, #fff 45%);
}
/* Promoted cards: same green border as default - distinguishing only by badge */
.listing-card.promote {
  /* default green border applies */
}

/* Detail page badges - large size near title */
.detail-badges {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.detail-badges .b-premium,
.detail-badges .b-vip,
.detail-badges .b-promote {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.detail-badges .b-premium {
  background: linear-gradient(135deg, #f7c948, #e0a800);
  color: #5a3e00;
  box-shadow: 0 0 14px rgba(255,193,7,.55), 0 2px 6px rgba(0,0,0,.15);
}
.detail-badges .b-vip {
  background: linear-gradient(135deg, #17a2b8, #0d6efd);
  color: #fff;
}
.detail-badges .b-promote {
  background: linear-gradient(135deg, #28a745, #1c7430);
  color: #fff;
}

/* DETAIL PAGE */
.detail-gallery img { border-radius: 8px; max-height: 500px; object-fit: cover; width: 100%; }
.detail-thumbs { display: grid; grid-template-columns: repeat(auto-fill,minmax(80px,1fr)); gap: 8px; margin-top: 8px; }
.detail-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .7; }
.detail-thumbs img:hover, .detail-thumbs img.active { opacity: 1; border: 2px solid var(--primary); }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.spec-item { background: #f9f9f9; padding: 10px; border-radius: 6px; }
.spec-item small { color: #888; display: block; }
.spec-item strong { font-size: 15px; }

/* FORM */
.form-card { background: #fff; padding: 24px; border-radius: 10px; border: 1px solid var(--border); }

/* ADMIN */
.admin-sidebar { background: #1f2937; color: #fff; min-height: 100vh; padding: 20px 0; }
.admin-sidebar a { color: #cbd5e1; padding: 10px 20px; display: block; text-decoration: none; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #374151; color: #fff; }

/* ============ FOOTER ENHANCEMENTS ============ */
.footer-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: #555;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  transition: all .15s;
}
.footer-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,166,81,.2);
}
.footer-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 4px 14px;
}
.footer-loc-link {
  display: block;
  padding: 4px 0;
  color: #777;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px dotted transparent;
  transition: color .15s, border-color .15s;
}
.footer-loc-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 30px 0 20px; }
  .hero h1 { font-size: 24px; }
  .footer-loc-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
} 








































