.hidden {
  display: none !important;
}

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --emerald-600: #059669;
  --amber-500: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}
body {
  background-color: var(--slate-50);
  color: var(--slate-800);
}
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.lang-switcher {
  display: flex;
  align-items: center;
  margin-right: 15px;
  border-right: 1px solid var(--slate-200);
  padding-right: 15px;
}
.lang-dropdown {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  outline: none;
  transition: 0.2s;
  font-family: var(--font-family);
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2364748b" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"></path></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}
.lang-dropdown:hover {
  border-color: var(--blue-600);
}
.lang-dropdown:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-post-ad {
  background: linear-gradient(135deg, var(--emerald-600), #0d9488);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.auth-container {
  display: flex;
  align-items: center;
}
.btn-text {
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: var(--slate-700);
}
.category-tabs-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px 4px;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-pill {
  border: none;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cat-pill.active {
  background: var(--blue-600);
  color: #ffffff;
}

/* HERE IS THE HERO BACKGROUND IMAGE FIX FOR VEHICLES PAGE */
.hero-section {
  background:
    linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
    url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}
/* Category hero banners: bright photo layer (no dark overlay), text kept readable with a soft shadow */
.hero-section[class*="hero-"] { position: relative; isolation: isolate; }
.hero-section[class*="hero-"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; background-repeat: no-repeat; filter: brightness(1.35); }
.hero-section[class*="hero-"] h1, .hero-section[class*="hero-"] p { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
/* Extra-bright photos for pets, agriculture and sports */
.hero-section.hero-pets-animals::before, .hero-section.hero-agriculture::before, .hero-section.hero-sports::before { filter: brightness(2); }
.hero-section.hero-properties { background: #0f172a; }
.hero-section.hero-properties::before { background-image: url("../images/hero-properties.webp"); }
.hero-section.hero-electronics { background: #0f172a; }
.hero-section.hero-electronics::before { background-image: url("../images/hero-electronics.webp"); }
.hero-section.hero-furniture { background: #0f172a; }
.hero-section.hero-furniture::before { background-image: url("../images/hero-furniture.webp"); }
.hero-section.hero-agriculture { background: #0f172a; }
.hero-section.hero-agriculture::before { background-image: url("../images/hero-agriculture.webp"); }
.hero-section.hero-pets-animals { background: #0f172a; }
.hero-section.hero-pets-animals::before { background-image: url("../images/hero-pets-animals.webp"); }
.hero-section.hero-equipments { background: #0f172a; }
.hero-section.hero-equipments::before { background-image: url("../images/hero-equipments.webp"); }
.hero-section.hero-renting { background: #0f172a; }
.hero-section.hero-renting::before { background-image: url("../images/hero-renting.webp"); }
.hero-section.hero-auto-spare-parts { background: #0f172a; }
.hero-section.hero-auto-spare-parts::before { background-image: url("../images/hero-auto-spare-parts.webp"); }
.hero-section.hero-sports { background: #0f172a; }
.hero-section.hero-sports::before { background-image: url("../images/hero-sports.webp"); }
.hero-section.hero-musical-instruments { background: #0f172a; }
.hero-section.hero-musical-instruments::before { background-image: url("../images/hero-musical-instruments.webp"); }
.hero-section.hero-other-items { background: #0f172a; }
.hero-section.hero-other-items::before { background-image: url("../images/hero-other-items.webp"); }
@media (max-width: 700px) { .hero-section[class*="hero-"] { background-position: center; } }
.hero-content {
  max-width: 860px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero-subtext {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 24px;
}
.search-box {
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 8px;
}
.search-input-group,
.search-district-group {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  flex: 1;
  align-items: center;
}
.search-district-group {
  flex: 0.4;
}
.search-box input,
.search-box select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 500;
}
.btn-search-submit {
  background: var(--blue-600);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.popular-tags {
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.tag-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  cursor: pointer;
}
.main-layout {
  max-width: 1350px;
  margin: 0 auto;
  padding: 28px 20px;
}
.listings-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 24px;
}
.listings-header h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-count {
  background: var(--slate-200);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
}
.results-sub {
  font-size: 12px;
  color: var(--slate-500);
}
.sort-control select {
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 12px;
}
.listings-layout {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}
.sidebar-filters {
  width: 260px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 20px;
  flex-shrink: 0;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 12px;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 14px;
}
.btn-reset {
  background: none;
  border: none;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}
.filter-group {
  margin-bottom: 20px;
}
.filter-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 8px;
}
.filter-group select,
input[type="range"] {
  width: 100%;
}
.filter-group select {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}
.button-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.button-toggle-group button {
  background: #fff;
  border: 1px solid var(--slate-200);
  padding: 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.button-toggle-group button.active {
  background: #eff6ff;
  border-color: var(--blue-600);
  color: var(--blue-700);
}
.fuel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: #fff;
  border: 1px solid var(--slate-200);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.chip.active {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.price-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.price-display {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-600);
}
.safety-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  color: #92400e;
}
.safety-header {
  font-weight: 800;
  margin-bottom: 4px;
}
.center-content {
  flex: 1;
  min-width: 0;
}
.promo-banner-top {
  width: 100%;
  height: 120px;
  border-radius: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.promo-banner-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.promo-banner-top-text {
  position: absolute;
  top: 0;
  left: 0;
  padding: 25px;
  color: #fff;
}
.promo-banner-top-text h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 5px;
  color: #facc15;
}
.promo-banner-top-text p {
  font-size: 12px;
  margin-bottom: 10px;
}
.promo-banner-top-text button {
  background: #facc15;
  color: #000;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.vehicle-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: 0.2s;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}
.card-img-wrapper {
  height: 180px;
  position: relative;
  background: var(--slate-100);
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.badge-featured {
  background: var(--amber-500);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge-cond {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.card-location-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-top-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-400);
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-pill {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.card-bottom-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-amount {
  font-size: 16px;
  font-weight: 900;
  color: var(--blue-700);
}
.nego-text {
  font-size: 10px;
  color: var(--slate-400);
  font-weight: 600;
  display: block;
}
.btn-card-wa {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.right-ad-sidebar {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}
.side-promo-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.ad-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 9px;
  text-align: center;
  padding: 2px;
  z-index: 2;
  text-transform: uppercase;
}
.side-promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.side-promo-info {
  padding: 12px;
  text-align: center;
}
.side-promo-info h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}
.side-promo-info p {
  font-size: 11px;
  color: var(--blue-600);
  font-weight: 700;
  margin-bottom: 10px;
}
.side-promo-info button {
  background: var(--slate-900);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

/* NEW FOOTER STYLES */
.site-footer {
  background: #1e1b4b;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-top: 50px;
}
.footer-top {
  padding: 50px 20px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}
.footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}
.brand-col p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}
.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-bottom {
  background: #334155;
  padding: 25px 20px;
}
.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #475569;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.bottom-item {
  display: flex;
  flex-direction: column;
}
.bottom-item .sub {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bottom-item strong {
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
}
.social-box {
  align-items: flex-end;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}
.social-icons a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: 0.2s;
}
.social-icons a:hover {
  color: #38bdf8;
}
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .bottom-row {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .social-box {
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* PAGINATION STYLES */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  width: 100%;
  grid-column: 1 / -1;
}
.page-btn {
  background: #fff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.page-btn:hover:not(.disabled) {
  border-color: var(--blue-600);
  color: var(--blue-600);
}
.page-btn.active {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--slate-50);
}

/* v324: header pills (My Chats, My Account, Login / Register) */
.hd-pill{border:0;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;background:#f1f5f9;color:#334155;font-weight:700;font-size:14px;text-decoration:none;transition:.2s;white-space:nowrap;margin-right:10px;line-height:1.2}
.hd-pill:hover{background:#dbeafe;color:#1d4ed8}
.hd-pill svg{width:16px;height:16px;flex:none}
.hd-cnt{min-width:18px;height:18px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.hd-cnt[hidden]{display:none}
/* v329: Post Your Ad slow heartbeat; stops and lifts on hover */
@keyframes hdBeat{0%,60%,100%{transform:scale(1)}15%{transform:scale(1.07)}30%{transform:scale(1)}45%{transform:scale(1.07)}}
.btn-post-ad{border-radius:10px;animation:hdBeat 2.4s infinite}
.btn-post-ad:hover{animation:none;background:#047857;transform:translateY(-2px);box-shadow:0 8px 18px rgba(5,150,105,.4)}
.btn-post-ad:active{transform:scale(.96)}
@media (prefers-reduced-motion:reduce){.btn-post-ad{animation:none}}
