/* =========================================================
   Sreera Agency — Listing pages (Vehicles, Real Estate, Industrial)
   Loads after style.css.
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  padding: 32px 0 0;
  background:
    radial-gradient(700px 300px at 95% 0%, rgba(255,215,31,.16), transparent 60%),
    var(--violet-50);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--violet); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 12px; }
.page-hero .lead { max-width: 620px; }

.hero-stats { display: flex; gap: 12px; }
.hero-stats li {
  min-width: 112px; padding: 16px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats li:first-child strong { color: var(--red); }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 500; }

.cat-chips { display: flex; gap: 8px; margin-top: 32px; overflow-x: auto; scrollbar-width: none; padding-bottom: 20px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips button {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  font: 600 15px var(--font); color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.cat-chips button:hover { border-color: var(--violet); }
.cat-chips button .ic { width: 18px; height: 18px; color: var(--violet); }
.cat-chips button .count {
  min-width: 24px; padding: 2px 7px; border-radius: 999px;
  background: var(--violet-50); color: var(--violet); font-size: 12px; text-align: center;
}
.cat-chips button.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.cat-chips button.active .ic { color: #fff; }
.cat-chips button.active .count { background: rgba(255,255,255,.2); color: #fff; }

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-stats li { flex: 1; min-width: 0; padding: 12px 14px; }
  .hero-stats strong { font-size: 22px; }
}

/* ---------- Listing layout ---------- */
.listing { padding: 40px 0 96px; }
.listing-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }

/* Filters sidebar */
.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.filters-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 17px; letter-spacing: -0.01em; margin-right: auto; }
.link-btn { background: none; border: 0; padding: 4px; font: 600 14px var(--font); color: var(--violet); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.filters-close { display: none; background: none; border: 0; padding: 6px; color: var(--text); cursor: pointer; }
.filters-body { overflow-y: auto; padding: 4px 18px 12px; }
.filters fieldset { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.filters fieldset:last-child { border-bottom: 0; }
.filters legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--body); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); cursor: pointer; flex-shrink: 0; }
.check:hover span { color: var(--text); }
.filters select {
  height: 42px; width: 100%; padding: 0 36px 0 12px;
  font: 400 15px var(--font); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 10px;
  appearance: none; -webkit-appearance: none;
  background: #fff 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' fill='none' stroke='%23602E87' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.filters select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(96,46,135,.15); }
.filters-foot { display: none; }
.filters-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(18,11,24,.5); }

/* Pill checkboxes (BHK, facing) */
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; color: var(--body); transition: all .15s;
}
.pill:hover span { border-color: var(--violet); }
.pill input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Results */
.results-bar { display: flex; gap: 12px; align-items: center; }
.search { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input, .sort select {
  height: 46px; width: 100%;
  font: 400 15px var(--font); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.search input { padding: 0 14px 0 44px; }
.search input:focus, .sort select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(96,46,135,.15); }
.sort { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sort span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.sort select {
  width: auto; padding: 0 36px 0 12px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: #fff 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' fill='none' stroke='%23602E87' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.filters-open { display: none; height: 46px; }
.filter-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; display: inline-grid; place-items: center;
}
.filter-count[hidden] { display: none; }
.results-count { margin: 18px 0; font-size: 14px; color: var(--muted); min-height: 22px; }

.lot-grid.lot-grid-3 { grid-template-columns: repeat(3, 1fr); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 64px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--violet-50);
}
.empty-state[hidden] { display: none; }
.empty-state > .ic { width: 48px; height: 48px; color: var(--violet); opacity: .6; }
.empty-state .btn-row { margin-top: 12px; justify-content: center; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }
.load-more[hidden] { display: none; }

@media (max-width: 1200px) {
  .lot-grid.lot-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: filters become a drawer */
@media (max-width: 960px) {
  .listing { padding: 24px 0 64px; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .filters-open { display: inline-flex; }
  .filters {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 70;
    width: min(360px, 88vw); max-height: none; border-radius: 0; border: 0;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .filters.open { transform: none; visibility: visible; transition: transform .3s ease; box-shadow: var(--shadow-lg); }
  .filters-close { display: inline-flex; }
  .filters-body { flex: 1; }
  .filters-foot { display: block; padding: 14px 18px; border-top: 1px solid var(--line); }
  .results-bar { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .filters-open { flex: 1; }
  .sort { flex: 1; }
  .sort span { display: none; }
  .sort select { width: 100%; }
}
@media (max-width: 560px) {
  .lot-grid.lot-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Before you bid (light variant of why-grid) ---------- */
.why-grid.light { background: var(--line); }
.why-grid.light .why { background: #fff; }
.why-grid.light .why:hover { background: #fff; }
.why-grid.light .ic { color: var(--violet); }
.why-grid.light h3 { color: var(--text); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Sell CTA band ---------- */
.cta-band { padding: 72px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .lead { max-width: 620px; }
