/* ============================================================
   styles/main.css
   Global base styles shared across all pages.
   Page-specific overrides live in dashboard.css / admin.css
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --color-primary:      #14a800;
  --color-primary-dark: #0f8f00;
  --color-bg:           #f9f9f9;
  --color-white:        #ffffff;
  --color-text:         #222;
  --color-muted:        #555;
  --color-border:       #ccc;
  --color-danger:       #dc3545;
  --color-warning:      #ffc107;
  --shadow-sm:          0 2px 6px rgba(0,0,0,.08);
  --shadow-md:          0 4px 16px rgba(0,0,0,.10);
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          14px;
  --transition:         0.25s ease;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: #ffffff;
  border-bottom: 1.5px solid #f0f0f0;
  box-shadow: 0 1px 16px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(145deg, #1eca00, #0d8a00);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(20,168,0,.4);
  transition: transform .22s ease, box-shadow .22s ease;
}
.logo:hover .logo-icon {
  transform: scale(1.07) translateY(-1px);
  box-shadow: 0 6px 20px rgba(20,168,0,.45);
}
.logo-word {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.6px;
  line-height: 1;
  transition: color .18s;
}
.logo:hover .logo-word { color: #14a800; }

/* ── Desktop nav ── */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-list li { display: inline; }

.nav-link {
  text-decoration: none;
  color: #444;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  transition: color .18s, background .18s;
  display: inline-block;
}
.nav-link:hover  { color: #14a800; background: #f0faf0; }
.nav-link.active { color: #14a800; background: #edfce8; }

/* ── Right side: CTA + hamburger ── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #14a800;
  color: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(20,168,0,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.nav-cta::before {
  content: "+";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.nav-cta:hover {
  background: #0e8a00;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(20,168,0,.42);
}

/* ── Hamburger toggle ───────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 0;
  position: relative;
  z-index: 10002;
  transition: background .2s;
}
.menu-toggle:hover { background: rgba(20,168,0,.08); }

.bar {
  height: 2px;
  width: 22px;
  background: #222;
  border-radius: 2px;
  position: absolute;
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              opacity .2s,
              top .3s cubic-bezier(.4,0,.2,1);
}
.bar:nth-child(1) { top: 13px; }
.bar:nth-child(2) { top: 20px; }
.bar:nth-child(3) { top: 27px; }

.menu-toggle.open .bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ── Drawer: hidden on desktop, shown via JS on mobile ───────── */
.nav-drawer,
.nav-drawer-backdrop { display: none; }

/* ── Mobile Navbar ──────────────────────────────────────────── */
@media (max-width: 768px) {
  body { padding-top: 64px; }

  .navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 62px;
    padding: 0 18px;
    z-index: 10000;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
  }

  /* Green accent top line */
  .navbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14a800, #4cd900);
  }

  /* Logo on mobile */
  .logo { z-index: 10002; }
  .logo-icon { width: 38px; height: 38px; border-radius: 10px; }
  .logo-word  { font-size: 1.15rem; }

  /* Hide CTA on mobile */
  .nav-cta { display: none !important; }

  /* Hamburger on white bg */
  .menu-toggle {
    display: flex;
    width: 40px; height: 40px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #eee;
  }
  .menu-toggle:hover {
    background: #edfce8;
    border-color: #c2eeb8;
  }
  .menu-toggle.open {
    background: #edfce8;
    border-color: #14a800;
  }
  .bar { background: #333; }
  .menu-toggle.open .bar { background: #14a800; }

  /* Hide CTA on mobile (drawer footer has it) */
  .nav-cta { display: none !important; }

  .nav-list { display: none !important; }

  .nav-drawer          { display: flex; }
  .nav-drawer-backdrop  { display: block; }

  /* ── Backdrop ────────────────────────────────────────── */
  .nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10003;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-drawer-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Drawer panel ────────────────────────────────────── */
  .nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 82vw;
    max-width: 320px;
    height: 100dvh;
    background: #fff;
    z-index: 10004;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.18);
    border-radius: 20px 0 0 20px;
    overflow: hidden;
  }
  .nav-drawer.open { transform: translateX(0); }

  /* Drawer header */
  .nav-drawer-header {
    padding: 28px 20px 22px;
    background: linear-gradient(135deg, #0d1f0d, #14a800);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }
  .nav-drawer-header::before {
    content: "";
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -80px; right: -60px;
    pointer-events: none;
  }
  .nav-drawer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    position: relative;
  }
  .nav-drawer-tagline {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    letter-spacing: .04em;
    position: relative;
  }
  .nav-drawer-close {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: background .2s;
    flex-shrink: 0;
  }
  .nav-drawer-close:hover { background: rgba(255,255,255,.25); }

  /* Drawer nav list */
  .nav-drawer-list {
    list-style: none;
    margin: 0; padding: 10px 0;
    flex: 1;
    overflow-y: auto;
  }
  .nav-drawer-list li { margin: 2px 10px; }
  .nav-drawer-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    transition: background .18s, color .18s, transform .18s;
    position: relative;
  }
  .nav-drawer-link:hover {
    background: #f0faf0;
    color: #14a800;
    transform: translateX(4px);
  }
  .nav-drawer-link.active {
    background: #edfce8;
    color: #14a800;
  }
  .nav-drawer-link.active::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 22px;
    background: #14a800;
    border-radius: 0 3px 3px 0;
  }
  .nav-drawer-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .18s;
    color: #555;
  }
  .nav-drawer-icon svg { width: 17px; height: 17px; }
  .nav-drawer-link:hover .nav-drawer-icon,
  .nav-drawer-link.active .nav-drawer-icon {
    background: #d4f5cc;
    color: #14a800;
  }
  .nav-drawer-label { flex: 1; }
  .nav-drawer-arrow {
    color: #ccc;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s, transform .18s;
    flex-shrink: 0;
  }
  .nav-drawer-link:hover .nav-drawer-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  /* Divider */
  .nav-drawer-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 20px;
  }

  /* Drawer footer */
  .nav-drawer-footer {
    padding: 16px 20px 32px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
  }
  .nav-drawer-cta {
    display: block;
    text-align: center;
    padding: 14px;
    background: #14a800;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background .2s;
  }
  .nav-drawer-cta:hover { background: #0e8a00; }
  .nav-drawer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .nav-drawer-social {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background .2s, transform .15s;
  }
  .nav-drawer-social:hover { background: #edfce8; transform: translateY(-2px); }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-primary);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.search-bar {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  gap: 0.5rem;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.search-bar button {
  padding: 0.75rem 1rem;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  font-family: 'Poppins', sans-serif;
}

.search-bar button:hover { background: var(--color-primary-dark); }

/* ── Services grid ──────────────────────────────────────────── */
.services {
  padding: 3rem 2rem;
  text-align: center;
  background: #f4f4f9;
}

.services h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.service-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.service-card {
  width: 250px;
  height: 250px;
  background: #e8ecf4;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card.service-link {
  text-decoration: none;
  color: #222;
}

.service-card.service-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.service-card.coming-soon {
  opacity: 0.7;
  pointer-events: none;
}

/* ── Listing cards ──────────────────────────────────────────── */
.listing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid #eef0f3;
  padding: 20px 18px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.11);
}

.listing-card .c-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card .c-loc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card .c-loc::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.listing-card .btn-primary {
  align-self: flex-start;
  padding: 7px 18px;
  font-size: 0.82rem;
  border-radius: 6px;
  margin-top: auto;
}

#featuredServices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Ad section ─────────────────────────────────────────────── */
.ad-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  background: transparent;
}

.single-ad {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  transition: transform var(--transition), box-shadow var(--transition);
  line-height: 0; /* removes any gap below the image */
}

.single-ad img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: fill; /* preserve full image, no cropping, no empty sides */
}

@media (min-width: 1024px) {
  .single-ad img {
    max-height: 420px;
    object-fit: fill;
  }
}

@media (hover: hover) {
  .single-ad:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
}

/* ── News ticker ────────────────────────────────────────────── */
.news-ticker {
  overflow: hidden;
  background: #111827;
  color: white;
  padding: 8px 0;
  margin-top: 12px;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── Ugadi banner ───────────────────────────────────────────── */
.ugadi-banner {
  background: linear-gradient(90deg, #0f9d58, #f4b400);
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: 500;
}

/* ── Popup / Modal ──────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  transform: translateY(30px) scale(0.9);
  transition: all 0.4s ease;
}

.popup-overlay.show .popup-box {
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
}

.popup-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(45deg, #0f9d58, #f4b400);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform var(--transition);
}

.popup-btn:hover { transform: scale(1.05); }

/* ── Auth forms ─────────────────────────────────────────────── */
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-container h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.auth-container label {
  display: block;
  text-align: left;
  margin-top: 1rem;
  font-size: .9rem;
}

.auth-container input {
  width: 100%;
  padding: .7rem;
  margin-top: .3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
}

.btn-submit {
  width: 100%;
  padding: .8rem;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  cursor: pointer;
  transition: background var(--transition);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.btn-submit:hover    { background: var(--color-primary-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-primary);
  color: white;
  width: 100%;
  padding: .8rem;
  border: none;
  border-radius: var(--radius-sm);
  margin-top: .75rem;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: background var(--transition);
}

.google-btn:hover { background: var(--color-primary-dark); }
.google-btn img {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  padding: 3px;
}

.password-box { position: relative; }

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
}

.error-msg {
  color: var(--color-danger);
  font-size: .85rem;
  margin-top: .5rem;
  display: none;
}

.divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #888;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
  margin: 0 10px;
}

/* ── Skeleton loading ───────────────────────────────────────── */
.skeleton-card {
  background: var(--color-white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.skeleton-line {
  height: 12px;
  background: #eee;
  margin: 8px 0;
  border-radius: 6px;
  animation: pulse 1.5s infinite;
}

.skeleton-title {
  height: 18px;
  width: 60%;
}

@keyframes pulse {
  0%   { opacity: .6; }
  50%  { opacity: 1;  }
  100% { opacity: .6; }
}

/* ── KPI cards (shared) ─────────────────────────────────────── */
.kpi-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform var(--transition);
  border-left: 5px solid var(--color-primary);
}

.kpi-card:hover { transform: translateY(-3px); }
.kpi-card h4    { margin: 0; font-size: .85rem; color: #555; }
.kpi-value      { font-size: 2rem; font-weight: 700; margin-top: 8px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, #022c16, #064e3b);
  padding: 40px 20px 30px;
  text-align: center;
  color: #e5e7eb;
  font-size: .95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: all 0.35s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.social-links a:hover {
  transform: translateY(-6px) scale(1.08);
  background: #22c55e;
  box-shadow: 0 12px 28px rgba(34,197,94,.6);
}

/* ── Form container (add-listing / vendor-setup) ────────────── */
.form-container {
  max-width: 600px;
  margin: 50px auto;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-container h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.form-container label {
  display: block;
  margin: .5rem 0 .2rem;
  font-weight: 500;
  color: #333;
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Responsive adjustments ─────────────────────────────────── */
@media (max-width: 768px) {
  .search-bar { flex-direction: column; }
  .search-bar input { border-radius: var(--radius-sm); margin-bottom: .5rem; }
  .service-card { width: 80%; }
  .kpi-overview { grid-template-columns: 1fr; }
  .single-ad { padding: 8px; border-radius: 14px; }
  .single-ad img { border-radius: 10px; }
  .form-container { margin: 30px 1rem; padding: 1.5rem; }
  .auth-container { margin: 40px 1rem; }
}


/* ============================================================
   Page-specific layout helpers
   (avoids inline <style> blocks in HTML files)
   ============================================================ */

/* role-select / vendor-setup: centered full-page box */
/* ── Role-select page ───────────────────────────────────────── */
.role-select-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #f0fdf4 0%, #f5f7fb 60%, #fff 100%);
  font-family: 'Poppins', sans-serif;
}

.rs-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.rs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.rs-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.02em;
  text-decoration: none;
}
.rs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: color .18s, border-color .18s, box-shadow .18s;
}
.rs-back-btn:hover {
  color: #111;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.rs-content { text-align: center; }

.rs-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.rs-sub {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Role cards */
.rs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.rs-card {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px 28px 28px;
  cursor: pointer;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.rs-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(20,168,0,.13);
  transform: translateY(-4px);
}
.rs-card:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.rs-card-selected {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(20,168,0,.12) !important;
}

.rs-card-vendor {
  border-color: #d1fae5;
  background: linear-gradient(160deg, #f0fdf4 0%, #fff 60%);
}

.rs-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(20,168,0,.35);
  white-space: nowrap;
}

.rs-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.rs-icon-user   { background: #eff6ff; color: #3b82f6; }
.rs-icon-vendor { background: #f0fdf4; color: var(--color-primary); }

.rs-card-body {
  width: 100%;
}
.rs-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.rs-card-body > p {
  font-size: 0.83rem;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.55;
}

.rs-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.rs-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #374151;
  font-weight: 500;
}
.rs-perks li svg { color: var(--color-primary); flex-shrink: 0; }

/* CTA button inside card */
.rs-card-cta {
  margin-top: 24px;
  width: 100%;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background .18s, color .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rs-card:hover .rs-card-cta,
.rs-card-vendor .rs-card-cta {
  background: var(--color-primary);
  color: #fff;
}

/* hide old arrow */
.rs-card-arrow { display: none; }

.rs-error {
  color: #ef4444;
  font-size: 0.85rem;
  min-height: 20px;
}

/* Mobile */
@media (max-width: 580px) {
  .rs-wrap        { padding: 20px 16px 48px; }
  .rs-topbar      { margin-bottom: 28px; }
  .rs-logo-text   { font-size: 1.2rem; }
  .rs-back-btn    { font-size: 0.8rem; padding: 6px 12px; }
  .rs-title       { font-size: 1.35rem; }
  .rs-sub         { font-size: 0.88rem; margin-bottom: 28px; }
  .rs-cards       { grid-template-columns: 1fr; gap: 16px; }
  .rs-card        { padding: 20px 16px; }
  .rs-card-icon   { width: 48px; height: 48px; border-radius: 12px; }
  .rs-card-icon svg { width: 26px; height: 26px; }
  .rs-card-body h3  { font-size: 0.95rem; }
  .rs-card-body > p { font-size: 0.78rem; }
  .rs-perks li      { font-size: 0.78rem; }
}

/* services page filters */
.filters {
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.filters input,
.filters select {
  padding: .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  flex: 1;
  min-width: 220px;
  font-family: 'Poppins', sans-serif;
}

/* Load more */
.load-more-wrap { text-align: center; padding: 20px 0 40px; }
.load-more-btn {
  padding: 10px 28px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.load-more-btn:hover    { background: var(--color-primary-dark); }
.load-more-btn:disabled { opacity: .5; cursor: not-allowed; }

/* listing-details page (old class kept for safety) */
.detail-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Coming soon / under development pages */
.wip-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}
.wip-page .illustration { max-width: 400px; width: 100%; margin-bottom: 1.5rem; }
.wip-page h1            { font-size: 2rem; margin-bottom: .5rem; }
.wip-page p             { font-size: 1rem; color: #555; }

/* contact page */
.contact-section { max-width: 900px; margin: 40px auto; padding: 20px; text-align: center; }
.contact-section iframe { width: 100%; height: 700px; border: none; border-radius: 8px; }

@media (max-width: 600px) {
  .filters { flex-direction: column; }
  .wip-page h1 { font-size: 1.5rem; }
}

/* ── services.html listings grid ───────────────────────────── */
.sv-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px; /* 80px = filter bar height offset */
}

/* Filter bar */
.sv-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #f3f4f6;
  padding: 14px 0;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sv-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.sv-search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.sv-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.sv-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.sv-search-input:focus { border-color: #14a800; }
.sv-cat-select {
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  background: #fff;
  cursor: pointer;
  min-width: 180px;
  transition: border-color .2s;
}
.sv-cat-select:focus { border-color: #14a800; }
.sv-search-btn {
  padding: 10px 22px;
  background: #14a800;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.sv-search-btn:hover { background: #119600; transform: translateY(-1px); }

/* Results meta */
.sv-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 12px;
  font-size: 13px;
  color: #6b7280;
}
.sv-meta strong { color: #111; }

/* Card grid */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.sv-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .22s, box-shadow .22s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.sv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.13);
}

/* Image area */
.sv-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 62%;   /* 16:10 ratio */
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}
.sv-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.sv-card:hover .sv-card-img { transform: scale(1.05); }
.sv-card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
  gap: 8px;
}
.sv-card-no-img span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Free/Paid badge on image */
.sv-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.sv-card-badge.free { background: rgba(20,168,0,.85); color: #fff; }
.sv-card-badge.paid { background: rgba(255,193,7,.9);  color: #333; }

/* Card body */
.sv-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sv-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #14a800;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-card-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.sv-card-star      { font-size: 13px; color: #d1d5db; }
.sv-card-star.on   { color: #fbbf24; }
.sv-card-new       { font-size: 11px; color: #9ca3af; margin-left: 5px; }
.sv-card-loc {
  font-size: 12.5px;
  color: #6b7280;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
}
.sv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.sv-card-cat {
  font-size: 11.5px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 2px 9px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.sv-card-arrow {
  font-size: 13px;
  color: #14a800;
  font-weight: 700;
  flex-shrink: 0;
}

/* Skeleton cards */
.sv-skeleton {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.sv-skeleton-img {
  width: 100%;
  padding-top: 62%;
  background: linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);
  background-size: 200% 100%;
  animation: ldShimmer 1.4s infinite;
}
.sv-skeleton-body { padding: 14px 16px; }
.sv-skeleton-line {
  height: 13px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);
  background-size: 200% 100%;
  animation: ldShimmer 1.4s infinite;
}

/* Load more */
.sv-load-more-wrap { text-align: center; margin-top: 36px; }
.sv-load-more-btn {
  padding: 12px 36px;
  background: #fff;
  color: #14a800;
  border: 2px solid #14a800;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sv-load-more-btn:hover    { background: #14a800; color: #fff; }
.sv-load-more-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Empty state */
.sv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.sv-empty-icon { font-size: 48px; margin-bottom: 12px; }
.sv-empty p    { font-size: 15px; }

@media (max-width: 1024px) { .sv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .sv-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-filter-inner { flex-direction: column; }
  .sv-search-wrap, .sv-cat-select, .sv-search-btn { width: 100%; }
}

/* ── listing-details.html (Yellowpages-style) ───────────────── */

/* Skeleton */
.ld-skeleton-wrap { max-width: 1100px; margin: 0 auto; }
.ld-skeleton-banner {
  height: 220px;
  background: linear-gradient(90deg,#e0e0e0 25%,#ececec 50%,#e0e0e0 75%);
  background-size: 200% 100%;
  animation: ldShimmer 1.4s infinite;
}
.ld-skeleton-body { padding: 24px 32px; }
.ld-skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg,#e0e0e0 25%,#ececec 50%,#e0e0e0 75%);
  background-size: 200% 100%;
  animation: ldShimmer 1.4s infinite;
  margin-bottom: 6px;
}
@keyframes ldShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position:-200% 0; }
}

/* Banner */
.ld-banner {
  position: relative;
  background: #111;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ld-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  transform: scale(1.02);
  transition: opacity .3s;
}
/* When no image is set, show a branded gradient instead */
.ld-banner-bg:not([style*="url"]) {
  background: linear-gradient(135deg, #0a3d1f 0%, #14a800 100%);
  opacity: 1;
}
.ld-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.4)  55%,
    rgba(0,0,0,.15) 100%
  );
}
.ld-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.ld-banner-left { flex: 1; }
.ld-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.ld-type-badge.paid { background: #f59e0b; color: #1a1a1a; }
.ld-type-badge.free { background: #22c55e; color: #fff; }
.ld-biz-name {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  text-transform: capitalize;
  letter-spacing: -.01em;
}
.ld-new-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.ld-banner-sub   { color: #ccc; font-size: 13px; margin: 3px 0; }
.ld-banner-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; min-width: 160px; }
.ld-btn-call,
.ld-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s;
  letter-spacing: .01em;
}
.ld-btn-call {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 6px 20px rgba(22,163,74,.45);
}
.ld-btn-call:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22,163,74,.5);
}
.ld-btn-back {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.ld-btn-back:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

/* Photo strip */
.ld-photo-strip {
  background: #f8f8f8;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  overflow-x: auto;
  min-height: 90px;
  scrollbar-width: thin;
}
.ld-photo-strip.empty {
  min-height: 0;
  padding: 0;
  border-bottom: none;
}
.ld-photo-item {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  height: 120px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .2s;
}
.ld-photo-item { cursor: zoom-in; }
.ld-photo-item:hover { transform: scale(1.02); }
.ld-photo-item img { height: 120px; width: auto; max-width: 220px; object-fit: cover; display: block; }
/* vendor-only hint — hidden by default, shown via JS for owners */
.ld-photo-placeholder {
  display: none;
}
.ld-photo-placeholder.visible {
  color: #888; font-size: 12px; padding: 0 16px;
  display: flex; align-items: center; white-space: nowrap;
  font-style: italic;
}
.ld-no-photo { color: #999; font-size: 13px; margin: auto; }

/* Tab bar */
.ld-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 60px;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ld-tabs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
}
.ld-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  font-family: 'Poppins', sans-serif;
}
.ld-tab:hover  { color: #14a800; }
.ld-tab.active { color: #14a800; border-bottom-color: #14a800; }

/* Body layout */
.ld-body {
  max-width: 1100px;
  margin: 28px auto 60px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.ld-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ld-sidebar-section { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.ld-sidebar-section:last-child { border-bottom: none; }
.ld-sidebar-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: #888; margin-bottom: 5px;
}
.ld-sidebar-value   { font-size: 14px; color: #222; font-weight: 500; }
.ld-phone-link      { color: #14a800; text-decoration: none; font-weight: 600; }
.ld-phone-link:hover{ text-decoration: underline; }
.ld-type-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.ld-type-pill.paid  { background: #fff8e1; color: #b8860b; border: 1px solid #ffd54f; }
.ld-type-pill.free  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.ld-active-dot { display: inline-block; width: 9px; height: 9px; background: #14a800; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Main panel */
.ld-main { display: flex; flex-direction: column; gap: 20px; }
.ld-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ld-card-title { font-size: 16px; font-weight: 700; color: #222; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.ld-description { font-size: 14px; color: #444; line-height: 1.75; margin: 0; white-space: pre-wrap; }
.ld-contact-list { display: flex; flex-direction: column; gap: 14px; }
.ld-contact-row  { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #333; }
.ld-contact-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.ld-contact-link { color: #14a800; font-weight: 600; text-decoration: none; }
.ld-contact-link:hover { text-decoration: underline; }

/* Error state */
.ld-error-wrap { text-align: center; padding: 80px 20px; }
.ld-error-msg  { font-size: 18px; color: #555; margin-bottom: 20px; }

@media (max-width: 900px) {
  .ld-body { grid-template-columns: 1fr; padding: 0 16px; margin-top: 20px; }
  .ld-sidebar { order: 2; }
  .ld-main    { order: 1; }
}
@media (max-width: 600px) {
  .ld-banner         { min-height: 260px; }
  .ld-banner-content { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ld-biz-name       { font-size: 24px; }
  .ld-banner-actions { flex-direction: row; width: 100%; min-width: unset; }
  .ld-btn-call,
  .ld-btn-back       { flex: 1; padding: 11px 12px; font-size: 13px; }
  .ld-tabs-inner     { padding: 0 12px; }
  .ld-photo-strip    { padding: 10px 16px; }
}


/* ── contact.html ───────────────────────────────────────────── */
.contact-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}
.contact-section h1 { font-size: 28px; margin-bottom: 10px; }
.contact-section p  { font-size: 16px; margin-bottom: 20px; color: #555; }
.contact-section iframe {
  width: 100%; height: 700px; border: none; border-radius: 8px;
}

/* ── Production UI: toasts, errors, a11y ─────────────────────── */
.vm-toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: auto;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.vm-toast {
  pointer-events: auto;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid transparent;
}

.vm-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.vm-toast--info {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}

.vm-toast--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

.vm-toast--warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}

.vm-toast--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.vm-inline-error {
  color: #b91c1c !important;
  font-weight: 500;
}

@media (max-width: 768px) {
  .vm-toast-host {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vm-toast {
    transition: none;
  }
}

.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-submit:focus-visible,
.google-btn:focus-visible,
.menu-toggle:focus-visible,
.role-btn:focus-visible,
.search-bar button:focus-visible,
.search-bar input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.search-bar input:focus {
  border-color: var(--color-primary);
}

/* ============================================================
   UI Polish & Mobile Responsiveness Patch
   ============================================================ */

/* ── Ugadi banner — remove emoji, clean text ────────────────── */
.ugadi-banner {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 8px 16px;
}

/* ── Role buttons — add icon alignment ─────────────────────── */
.role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ── Dashboard welcome — remove emoji dependency ────────────── */
.welcome {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Dashboard buttons — icon alignment ─────────────────────── */
.dashboard-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dashboard-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--color-primary);
}

#addListingBtn {
  background: var(--color-primary);
  color: #fff;
}
#addListingBtn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

#homeBtn {
  background: transparent;
  color: var(--color-primary);
}
#homeBtn:hover { background: var(--color-primary); color: #fff; }

/* ── Admin sidebar — icon alignment ─────────────────────────── */
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 20px;
  padding: 0 4px;
}

/* ── listing-details banner sub — SVG icon alignment ────────── */
.ld-banner-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── listing-details call/back buttons — icon alignment ─────── */
.ld-btn-call,
.ld-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ── Password toggle — cleaner SVG button ───────────────────── */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #888;
  transition: color var(--transition);
}
.toggle-password:hover { color: var(--color-primary); }

/* ── listing-card location — handled in .listing-card .c-loc above ── */

/* ── Mobile: dashboard ──────────────────────────────────────── */
@media (max-width: 600px) {
  .welcome { font-size: 1.1rem; }
  .dashboard-buttons { flex-direction: column; }
  .dashboard-buttons button { width: 100%; justify-content: center; }
  .kpi-overview { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-card { padding: 16px; }
  .kpi-value { font-size: 1.6rem; }
}

/* ── Mobile: hero ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }
  .search-bar { gap: 0; flex-direction: column; }
  .search-bar input {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: 0;
    border-bottom: none;
  }
  .search-bar button {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    width: 100%;
    padding: 0.75rem;
  }
  .cta { margin-top: 1rem; }
  .btn-outline { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
}

/* ── Mobile: role-select ────────────────────────────────────── */
@media (max-width: 480px) {
  .role-box { padding: 2rem 1.25rem; }
  .role-btn { font-size: 0.9rem; padding: 10px 16px; }
}

/* ── Mobile: auth forms ─────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-container {
    margin: 20px 1rem;
    padding: 1.5rem 1.25rem;
  }
  .google-btn { font-size: 0.9rem; }
}

/* ── Mobile: listing-details ────────────────────────────────── */
@media (max-width: 480px) {
  .ld-biz-name { font-size: 18px; }
  .ld-btn-call,
  .ld-btn-back { padding: 8px 10px; font-size: 12px; }
  .ld-tabs-inner { padding: 0 8px; }
  .ld-tab { padding: 12px 14px; font-size: 13px; }
  .ld-body { padding: 0 12px; margin-top: 16px; }
  .ld-card { padding: 16px; }
}

/* ── Mobile: admin sidebar overlay ─────────────────────────── */
@media (max-width: 768px) {
  .mobile-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 4px;
  }
}

/* ── Mobile: services grid ──────────────────────────────────── */
@media (max-width: 480px) {
  .service-card {
    width: 100%;
    height: 180px;
    font-size: 1rem;
  }
  .service-grid { gap: 16px; padding: 0 1rem; }
  .services { padding: 2rem 1rem; }
  .services h2 { font-size: 1.4rem; }
}

/* ── Mobile: footer ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .footer { padding: 28px 16px 20px; font-size: 0.85rem; }
  .social-links a { width: 40px; height: 40px; }
}

/* ── Mobile: ad container ───────────────────────────────────── */
@media (max-width: 600px) {
  .ad-container {
    padding: 0 12px;
  }
}

/* ── Mobile: contact page ───────────────────────────────────── */
@media (max-width: 600px) {
  .contact-section iframe { height: 500px; }
  .contact-section h1 { font-size: 22px; }
}

/* ── Featured listing card image ────────────────────────────── */
.c-img-wrap {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f3f4f6;
  flex-shrink: 0;
}

.c-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.listing-card:hover .c-img {
  transform: scale(1.04);
}

.c-img-placeholder {
  background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
  position: relative;
}

.c-img-placeholder::after {
  content: "No image";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}


/* ============================================================
   Home page — index.html styles
   ============================================================ */

/* ── Top bar ──────────────────────────────────────────────── */
.top-bar {
  background: linear-gradient(90deg, #14a800, #22c55e);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.top-bar-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: inline-block;
}

/* ── Hero ─────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  background: linear-gradient(160deg, #f0fdf4 0%, #f8fafc 50%, #fff 100%);
  padding: 72px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(20,168,0,.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(20,168,0,.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #14a800;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: #14a800; border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.18;
  color: #0f172a; margin: 0 0 16px;
  letter-spacing: -0.025em;
}
.hero-accent {
  color: #14a800; position: relative;
}
.hero-accent::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14a800, #22c55e);
  border-radius: 2px;
}
.hero-sub { font-size: 1rem; color: #64748b; margin: 0 0 32px; line-height: 1.6; }

/* Search bar */
.home-search-bar {
  display: flex; max-width: 580px; margin: 0 auto 24px;
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.07);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.home-search-bar:focus-within {
  border-color: #14a800;
  box-shadow: 0 4px 24px rgba(20,168,0,.12);
}
.search-input-wrap {
  flex: 1; display: flex; align-items: center;
  gap: 10px; padding: 0 16px;
}
.search-icon { color: #94a3b8; flex-shrink: 0; }
.home-search-bar input {
  flex: 1; border: none; outline: none;
  font-family: 'Poppins', sans-serif; font-size: 0.95rem;
  color: #0f172a; padding: 14px 0; background: transparent;
}
.home-search-bar input::placeholder { color: #94a3b8; }
.home-search-bar button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; background: #14a800; color: #fff;
  border: none; font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: background .18s; white-space: nowrap;
}
.home-search-bar button:hover { background: #0f8f00; }

/* Hero action buttons */
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 36px;
}
.hero-btn-primary {
  display: inline-block; padding: 12px 28px;
  background: #14a800; color: #fff; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(20,168,0,.3);
  transition: background .18s, transform .18s, box-shadow .18s;
}
.hero-btn-primary:hover {
  background: #0f8f00; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,168,0,.35);
}
.hero-btn-ghost {
  display: inline-block; padding: 12px 28px;
  background: transparent; color: #14a800;
  border: 2px solid #14a800; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: all .18s;
}
.hero-btn-ghost:hover { background: #14a800; color: #fff; transform: translateY(-2px); }

/* Stats row */
.hero-stats {
  display: inline-flex; align-items: center;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.stat-item { text-align: center; padding: 0 20px; }
.stat-num  { display: block; font-size: 1.3rem; font-weight: 800; color: #14a800; line-height: 1; }
.stat-label{ font-size: 0.72rem; color: #94a3b8; font-weight: 500; margin-top: 3px; display: block; }
.stat-divider { width: 1px; height: 36px; background: #e2e8f0; }

/* ── Ticker ───────────────────────────────────────────────── */
.home-ticker {
  display: flex; align-items: center;
  background: #0f172a; color: #fff;
  overflow: hidden; height: 40px;
}
.ticker-label {
  flex-shrink: 0; background: #14a800;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.ticker-scroll { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-inner {
  white-space: nowrap; font-size: 0.82rem;
  font-weight: 500; color: #cbd5e1;
  animation: home-ticker 35s linear infinite;
  padding-left: 40px;
}
@keyframes home-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Promo banner ─────────────────────────────────────────── */
.home-promo { padding: 32px 24px; max-width: 1100px; margin: 0 auto; }
.promo-inner { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.promo-img   { width: 100%; height: auto; display: block; object-fit: fill; max-height: 420px; }

/* ── Sections ─────────────────────────────────────────────── */
.home-section {
  max-width: 1100px; margin: 0 auto;
  padding: 56px 24px;
}
.home-section-alt { background: #f8fafc; max-width: 100%; }
.home-section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 32px;
}
.section-header.centered { justify-content: center; text-align: center; }
.section-eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #14a800; margin-bottom: 6px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; color: #0f172a; margin: 0;
  letter-spacing: -0.02em;
}
.section-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 600; color: #14a800;
  text-decoration: none; white-space: nowrap; padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s;
}
.section-link:hover { border-color: #14a800; }

/* ── Featured grid (overrides listing-card defaults) ──────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.featured-grid .listing-card {
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  border: 1px solid #e8edf2;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .22s, box-shadow .22s;
  padding: 0;
  gap: 0;
}
.featured-grid .listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.11);
}
.featured-grid .c-img-wrap { height: 140px; margin: 0; border-radius: 0; }
.featured-grid .c-img { border-radius: 0; }
.featured-grid .c-img-placeholder { height: 140px; border-radius: 0; }
.c-card-body { padding: 14px 16px 8px; flex: 1; }
.c-type-pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; margin-bottom: 6px;
}
.c-type-pill.paid { background: #fef3c7; color: #92400e; }
.c-type-pill.free { background: #dcfce7; color: #166534; }
.featured-grid .c-name {
  font-size: 0.92rem; font-weight: 700; color: #0f172a;
  margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.featured-grid .c-loc {
  font-size: 0.78rem; color: #64748b; margin: 0;
}
.c-card-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid #f1f5f9;
}
.c-view-btn {
  display: block; text-align: center;
  padding: 8px; background: #f0fdf4;
  color: #14a800; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.c-view-btn:hover { background: #14a800; color: #fff; }

/* ── Listing types ────────────────────────────────────────── */
.listing-types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.lt-card {
  position: relative; border-radius: 16px; padding: 28px 24px;
  text-decoration: none; display: block;
  transition: transform .22s, box-shadow .22s;
  border: 1.5px solid transparent;
}
.lt-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.lt-paid { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.lt-free { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.lt-coming { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-color: #e2e8f0; cursor: default; }
.lt-coming:hover { transform: none; box-shadow: none; }
.lt-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.lt-paid .lt-icon  { background: #fef3c7; color: #d97706; }
.lt-free .lt-icon  { background: #dcfce7; color: #16a34a; }
.lt-coming .lt-icon{ background: #e2e8f0; color: #94a3b8; }
.lt-card h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.lt-card p  { font-size: 0.83rem; color: #64748b; margin: 0 0 16px; line-height: 1.5; }
.lt-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: .05em; padding: 3px 10px; border-radius: 20px;
}
.lt-paid .lt-tag  { background: #fde68a; color: #92400e; }
.lt-free .lt-tag  { background: #bbf7d0; color: #166534; }
.lt-coming-tag    { background: #e2e8f0; color: #64748b; }

/* ── Why section ──────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.why-card {
  background: #fff; border: 1px solid #e8edf2;
  border-radius: 14px; padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.why-icon {
  width: 44px; height: 44px; background: #f0fdf4;
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: #14a800; margin-bottom: 14px;
}
.why-card h4 { font-size: 0.92rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.why-card p  { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.55; }

/* ── CTA Banner ───────────────────────────────────────────── */
.home-cta {
  background: linear-gradient(135deg, #14a800, #0f8f00);
  padding: 56px 24px; text-align: center;
}
.home-cta-inner { max-width: 600px; margin: 0 auto; }
.home-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin: 0 0 12px; }
.home-cta p  { color: rgba(255,255,255,.8); font-size: 1rem; margin: 0 0 28px; }
.cta-btn {
  display: inline-block; padding: 14px 32px;
  background: #fff; color: #14a800;
  border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: transform .18s, box-shadow .18s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* ── Footer redesign ──────────────────────────────────────── */
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1100px; margin: 0 auto; padding: 48px 24px 32px; gap: 40px;
}
.footer-brand { max-width: 240px; }
.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 0.82rem; color: #94a3b8; line-height: 1.6; margin: 0 0 20px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #64748b; margin: 0 0 4px;
}
.footer-col a {
  font-size: 0.85rem; color: #94a3b8; text-decoration: none;
  transition: color .18s;
}
.footer-col a:hover { color: #22c55e; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; padding: 18px 24px;
  font-size: 0.78rem; color: #475569;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-stats    { padding: 12px 16px; }
  .stat-item     { padding: 0 12px; }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .listing-types-grid { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; gap: 32px; padding: 36px 20px 24px; }
  .footer-links  { gap: 32px; }
  .featured-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .home-hero     { padding: 48px 16px 40px; }
  .hero-title    { font-size: 1.7rem; }
  .home-search-bar { flex-direction: column; border-radius: 12px; }
  .home-search-bar button { width: 100%; justify-content: center; border-radius: 0 0 10px 10px; }
  .hero-stats    { flex-direction: column; gap: 12px; padding: 16px; }
  .stat-divider  { width: 60px; height: 1px; }
  .why-grid      { grid-template-columns: 1fr; }
  .home-promo    { padding: 20px 16px; }
  .home-section  { padding: 40px 16px; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-links  { flex-direction: column; gap: 20px; }
}
/* ============================================================
   AD CAROUSEL  (homepage)
   ============================================================ */

.ad-carousel {
  position: relative;
  width: 100%;
  /* Standard banner ratio — upload images/videos at 1200×450px */
  aspect-ratio: 1200 / 450;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
}

.ad-carousel-track {
  position: absolute;
  inset: 0;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  /* Blurred background fills letterbox gaps without cropping */
  background-size: cover;
  background-position: center;
}

.ad-slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}

/* Full image/video — no cropping */
.ad-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Blurred backdrop fills any letterbox gaps */
.ad-slide-bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.5) saturate(1.2);
  transform: scale(1.05);
  z-index: 0;
}

/* Arrow buttons */
.ad-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-carousel-arrow:hover { background: rgba(0,0,0,.72); }
.ad-prev { left: 12px; }
.ad-next { right: 12px; }

/* Dots */
.ad-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.ad-dot {
  transition: background .3s, width .3s, border-radius .3s;
}
.ad-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ============================================================
   ADMIN  — Ads panel styles
   ============================================================ */

/* Upload card */
.ad-upload-card {
  padding: 24px;
  margin-bottom: 28px;
  border: 2px dashed #e0e0e0;
  border-radius: 14px;
  background: #fafafa;
}
.ad-upload-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 18px;
  color: #222;
}
.ad-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .ad-form-grid { grid-template-columns: 1fr; } }

.ad-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #444;
}
.ad-form-group input[type="text"],
.ad-form-group input[type="url"],
.ad-form-group input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border .2s;
}
.ad-form-group input:focus { border-color: #14a800; }
.ad-required  { color: #e53e3e; }
.ad-optional  { color: #999; font-size: 11px; }
.ad-form-check { display: flex; align-items: flex-end; }
.ad-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  padding-bottom: 2px;
}
.ad-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #14a800;
}

/* File picker row */
.ad-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ad-file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: border .2s, color .2s;
  white-space: nowrap;
}
.ad-file-label:hover { border-color: #14a800; color: #14a800; }
.ad-file-name {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* Preview */
.ad-preview-wrap { margin-bottom: 14px; }
.ad-preview-media {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: contain;
  border: 1.5px solid #e5e5e5;
  background: #000;
  display: block;
}

/* Progress bar */
.ad-progress-bar {
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ad-progress-fill {
  height: 100%;
  width: 0%;
  background: #14a800;
  border-radius: 3px;
  transition: width .25s;
}

/* Upload button */
.ad-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
}
.ad-upload-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Ad list cards */
.ad-admin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  border: 1.5px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ad-card-left { flex-shrink: 0; }
.ad-card-thumb {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
  display: block;
}
.ad-card-body { flex: 1; min-width: 0; }
.ad-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.ad-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-card-link {
  font-size: 12px;
  margin: 0;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-card-link a { color: #14a800; text-decoration: none; }
.ad-order-tag {
  font-size: 11px;
  color: #888;
  background: #f5f5f5;
  padding: 2px 7px;
  border-radius: 20px;
}
.ad-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.btn-warning {
  padding: 7px 14px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-warning:hover { background: #d97706; }
.btn-success {
  padding: 7px 14px;
  background: #14a800;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-success:hover { background: #0e8a00; }
.btn-danger-sm {
  padding: 7px 14px;
  background: #fff;
  color: #e53e3e;
  border: 1.5px solid #e53e3e;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-danger-sm:hover { background: #e53e3e; color: #fff; }

@media (max-width: 600px) {
  .ad-admin-card { flex-wrap: wrap; }
  .ad-card-thumb { width: 100%; height: 130px; }
  .ad-card-actions { flex-direction: row; width: 100%; }
}