/* ─── DUBIMOTORS GLOBAL STYLES ──────────────────────────────────────────────── */
/* Note: Inter font is loaded via <link rel="preconnect"> + <link rel="stylesheet"> in HTML <head> for faster delivery */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #E8450A;
  --orange-hover: #D03D09;
  --dark: #0D0D0D;
  --dark2: #161616;
  --dark3: #1E1E1E;
  --mid: #2A2A2A;
  --grey: #666;
  --light-grey: #F5F5F5;
  --border: #E8E8E8;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-width: 320px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }
input, textarea, select { font-family: 'Inter', sans-serif; }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── NAVBAR ─── */
.navbar {
  background: var(--dark);
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1A1A1A;
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-box {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: #AAAAAA;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: #1E1E1E;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-login {
  background: transparent;
  color: #AAAAAA;
  border: 1.5px solid #333;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-login:hover { border-color: #555; color: var(--white); }
.btn-place-ad {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-place-ad:hover { background: var(--orange-hover); }
/* Hamburger only visible on mobile */
.nav-hamburger { display: none; }
.mobile-nav-menu { display: none; }

/* ─── NAV ICON BUTTONS (bell, chat) ─── */
.nav-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #AAAAAA;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: #1E1E1E; color: var(--white); }
.nav-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--orange);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* ─── NAV USER AVATAR ─── */
.nav-user-btn {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-user-btn:hover .nav-user-avatar { border-color: var(--orange); }

/* ─── NAV DROPDOWN ─── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  min-width: 280px;
  z-index: 2000;
  overflow: hidden;
  animation: dropdownIn 0.15s ease;
}
.nav-dropdown.open { display: block; }
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  background: var(--light-grey);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.nav-dropdown-item:hover { background: var(--light-grey); }
.nav-dropdown-item.unread { background: #FFF8F6; }
.nav-dropdown-item-title { font-size: 13px; font-weight: 700; color: var(--dark); }
.nav-dropdown-item-sub { font-size: 11px; color: var(--grey); margin-top: 2px; }
.nav-dropdown-footer {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  border-top: 1px solid var(--border);
  background: var(--light-grey);
}
.nav-dropdown-footer:hover { text-decoration: underline; }
/* ─── NAV DROPDOWN EXTRAS ─── */
.nav-dd-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dd-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}

/* ─── SECTION ─── */
.section { padding: 72px 0; }
.section-alt { background: var(--light-grey); }
.section-dark { background: var(--dark); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
}
.section-title-white { color: var(--white); }
.section-subtitle {
  font-size: 15px;
  color: var(--grey);
  margin-top: 8px;
  line-height: 1.6;
}
.section-subtitle-white { color: rgba(255,255,255,0.55); }
.section-link {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ─── LISTING CARDS ─── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.listings-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.listings-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.listings-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #EEE;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.listing-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-new { background: var(--orange); color: var(--white); }
.badge-used { background: rgba(0,0,0,0.55); color: var(--white); }
.card-verified {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,180,80,0.9);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.card-body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; }
.card-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 4px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
  /* Clamp to 2 lines, ellipsis on overflow */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2); /* always reserve 2 lines of space */
}
.card-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pill {
  background: var(--light-grey);
  color: #666;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.card-location {
  font-size: 12px;
  color: var(--grey);
}
.card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-seller {
  font-size: 11px;
  color: var(--grey);
  font-weight: 500;
}
.btn-sm-orange {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-sm-orange:hover { background: var(--orange-hover); }

/* ─── CARD ENHANCEMENTS ─── */
.card-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
/* Right column: posted date + tags stacked vertically */
.card-posted-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}
.card-posted {
  font-size: 10px;
  color: #999;
  font-weight: 500;
  white-space: nowrap;
}
.card-tags-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}
.tag-purple {
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
/* Location row */
.card-location-row {
  margin-top: auto;
  padding-top: 6px;
}
/* Seller avatar + name in footer */
.card-seller-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.card-seller-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.card-seller-initials {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-footer-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.card-contact-btns {
  display: flex;
  gap: 4px;
}
/* Icon-only call/whatsapp buttons — match Details button height */
.btn-call-icon, .btn-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  flex-shrink: 0;
}
.btn-call-icon:hover, .btn-wa-icon:hover { opacity: 0.85; transform: scale(1.05); }
.btn-call-icon {
  background: #16a34a;
  color: #fff;
}
.btn-call-icon svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}
.btn-wa-icon {
  background: #25d366;
  color: #fff;
}
.btn-wa-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--orange);
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-white:hover { background: #F0F0F0; }

/* ─── FORM ELEMENTS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-label-white { color: var(--grey); }
.form-input {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: #AAAAAA; }
.form-input-dark {
  background: #1E1E1E;
  border-color: #2A2A2A;
  color: var(--white);
}
.form-input-dark::placeholder { color: #555; }
.form-input-dark:focus { border-color: var(--orange); }
textarea.form-input { resize: vertical; min-height: 110px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ─── FOOTER ─── */
.footer {
  background: #080808;
  padding: 56px 0 28px;
  border-top: 1px solid #1A1A1A;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--orange); }
.footer-brand-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  background: #1A1A1A;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2A2A2A;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  color: var(--grey);
}
.social-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.social-btn svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #1A1A1A;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 12px; color: #444; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #444; }
.footer-legal a:hover { color: var(--grey); }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--dark);
  padding: 48px 0 40px;
  border-bottom: 1px solid #1A1A1A;
}
.page-hero-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.page-hero-sub {
  font-size: 15px;
  color: #666;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--white); }

/* ─── FILTER BAR ─── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
  z-index: 1;
}
.filter-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 32px 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--orange); }
.filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--grey);
  font-weight: 500;
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  border-left: 4px solid var(--orange);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
  .listings-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Layout */
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }

  /* Navbar */
  .nav-links { display: none; }
  .navbar { height: 60px; }
  .nav-logo-text { font-size: 17px; }
  .btn-login { display: inline-flex; padding: 7px 12px; font-size: 12px; }
  .btn-place-ad { display: none; }  /* Hidden on mobile — bottom nav has Place Ad */
  .nav-right { gap: 6px; }
  /* Mobile hamburger menu */
  .nav-hamburger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; background: none; border: none; }
  .nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
  .mobile-nav-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: var(--dark); z-index: 999; padding: 16px; border-top: 1px solid #333; flex-direction: column; gap: 4px; overflow-y: auto; }
  .mobile-nav-menu.open { display: flex; }
  .mobile-nav-menu a { color: var(--white); text-decoration: none; padding: 12px 16px; font-size: 15px; font-weight: 600; border-radius: 8px; }
  .mobile-nav-menu a:hover, .mobile-nav-menu a.active { background: #1A1A1A; color: var(--orange); }

  /* Section headers */
  .section-title { font-size: 22px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-link { align-self: flex-start; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Page hero */
  .page-hero { padding: 32px 0 28px; }
  .page-hero-title { font-size: 24px; }

  /* Filter bar */
  .filter-bar .container { gap: 8px; }
  .filter-select { font-size: 12px; padding: 8px 28px 8px 10px; }

  /* Listing cards */
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .listings-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }  /* Override cols-3 on mobile */
  .listings-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-img-wrap { height: 160px; }
  .card-price { font-size: 16px; }
  .card-title { font-size: 13px; min-height: calc(1.35em * 2); }
  .card-body { padding: 10px 12px 8px; }
  .card-footer { padding: 8px 12px 12px; flex-wrap: wrap; gap: 6px; }
  .card-seller { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }
  .card-seller-avatar { width: 22px; height: 22px; }
  .card-seller-initials { width: 22px; height: 22px; font-size: 9px; }
  .pill { font-size: 9px; padding: 2px 7px; }
  .tag-purple { font-size: 9px; padding: 2px 7px; }
  .btn-call-icon, .btn-wa-icon { width: 28px; height: 28px; border-radius: 6px; }
  .btn-call-icon svg, .btn-wa-icon svg { width: 13px; height: 13px; }
  .btn-sm-orange { font-size: 11px; padding: 6px 10px; }
  .card-posted { font-size: 9px; }
}

@media (max-width: 480px) {
  /* Layout */
  .container { padding: 0 14px; }

  /* Listing cards: single column on very small screens */
  .listings-grid { grid-template-columns: 1fr; }
  .listings-grid.cols-3 { grid-template-columns: 1fr; }
  .listings-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-img-wrap { height: 200px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }

  /* Filter bar: wrap nicely */
  .filter-bar .container { flex-wrap: wrap; }
  .filter-select { flex: 1; min-width: 120px; }

  /* Page hero */
  .page-hero-title { font-size: 20px; }
  .page-hero-sub { font-size: 13px; }
}

/* ── Lightbox / Photo Carousel Overlay ── */
#dm-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.94);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#dm-lightbox.open { display: flex; }
#dm-lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#dm-lightbox-close:hover { background: rgba(255,255,255,0.25); }
#dm-lightbox-counter {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px; border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}
#dm-lightbox-img-wrap {
  position: relative;
  width: 100%; flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  padding: 60px 70px 80px;
}
#dm-lightbox-img-wrap.zoomed { cursor: zoom-out; }
#dm-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.25s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
#dm-lightbox-prev,
#dm-lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  color: #fff; font-size: 24px;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#dm-lightbox-prev:hover, #dm-lightbox-next:hover { background: rgba(255,255,255,0.28); }
#dm-lightbox-prev { left: 12px; }
#dm-lightbox-next { right: 12px; }
#dm-lightbox-thumbs {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; align-items: center;
  max-width: 90vw; overflow-x: auto;
  scrollbar-width: none; padding: 4px;
}
#dm-lightbox-thumbs::-webkit-scrollbar { display: none; }
.dm-lb-thumb {
  width: 56px; height: 42px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.dm-lb-thumb.active { opacity: 1; border-color: #E8450A; }
.dm-lb-thumb:hover { opacity: 0.8; }
.card-img-wrap { cursor: pointer; }
