/*!
 * RealtyPress Archive — Modern 2026 (Fix v1)
 * Scope: .bootstrap-realtypress.rps-archive-2026
 *
 * Fixes:
 * - Legacy Bootstrap clearfix <span> elements inside .row break CSS Grid → hidden.
 * - Listing image uses <a style="background-image:..."> + transparent <img> → style <a> as canvas.
 */

.bootstrap-realtypress.rps-archive-2026{
  --rps-surface:#ffffff;
  --rps-ink:#111827;
  --rps-muted:#6b7280;
  --rps-line:rgba(17,24,39,.10);
  --rps-line-strong:rgba(17,24,39,.14);
  --rps-gold:#A78B43;

  --rps-radius-lg:26px;
  --rps-radius-md:18px;
  --rps-radius-sm:14px;

  --rps-shadow-1:0 18px 45px rgba(17,24,39,.06);
  --rps-shadow-2:0 26px 70px rgba(17,24,39,.10);

  color:var(--rps-ink);
}

/* Page spacing */
.bootstrap-realtypress.rps-archive-2026 .container-fluid{
  padding-left: 22px;
  padding-right: 22px;
}
@media (min-width: 1200px){
  .bootstrap-realtypress.rps-archive-2026 .container-fluid{
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Toolbar */
.bootstrap-realtypress.rps-archive-2026 header.result-header{
  background:var(--rps-surface);
  border:1px solid var(--rps-line);
  border-radius:var(--rps-radius-lg);
  padding:14px 16px;
  box-shadow:0 12px 28px rgba(17,24,39,.08);
  margin-bottom: 14px !important;
}
.bootstrap-realtypress.rps-archive-2026 header.result-header .row{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
}
.bootstrap-realtypress.rps-archive-2026 header.result-header [class*="col-"]{
  float:none!important; width:auto!important; max-width:none!important;
  flex:1 1 auto; margin:0!important;
}
.bootstrap-realtypress.rps-archive-2026 header.result-header select.form-control{
  height:44px; border-radius:999px; border:1px solid var(--rps-line);
  background:#fff; box-shadow:none; padding:0 14px;
  font-size:14px; color:var(--rps-ink);
}
.bootstrap-realtypress.rps-archive-2026 header.result-header a.btn.btn-primary{
  background:var(--rps-ink); border-color:var(--rps-ink); color:#fff;
  border-radius:999px; height:44px;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-weight:650; letter-spacing:.01em;
}
.bootstrap-realtypress.rps-archive-2026 header.result-header a.btn.btn-primary:hover{ filter:brightness(.96); }
.bootstrap-realtypress.rps-archive-2026 header.result-header .text-right > div[style*="display:inline-block"]{
  display:inline-flex!important; gap:8px; padding-left:0!important;
}
.bootstrap-realtypress.rps-archive-2026 header.result-header a[href*="view="]{
  width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; border:1px solid var(--rps-line);
  background:#fff; color:var(--rps-muted); text-decoration:none!important;
}
.bootstrap-realtypress.rps-archive-2026 header.result-header a[href*="view="].active,
.bootstrap-realtypress.rps-archive-2026 header.result-header a[href*="view="]:hover{
  border-color:var(--rps-line-strong); color:var(--rps-ink);
  box-shadow:0 10px 24px rgba(17,24,39,.10);
  transform:translateY(-1px);
}

/* ===== Grid layout ===== */
.bootstrap-realtypress.rps-archive-2026 .rps-grid-result .row > .clearfix{
  display:none !important;
}
.bootstrap-realtypress.rps-archive-2026 .rps-grid-result .row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  margin:0!important;
}
@media (max-width:1100px){
  .bootstrap-realtypress.rps-archive-2026 .rps-grid-result .row{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .bootstrap-realtypress.rps-archive-2026 .rps-grid-result .row{ grid-template-columns:1fr; }
}
.bootstrap-realtypress.rps-archive-2026 .rps-grid-result .row > section.listing-container{
  float:none!important; width:auto!important; max-width:none!important;
  padding:0!important; margin:0!important;
}

/* ===== Card ===== */
.bootstrap-realtypress.rps-archive-2026 .rps-property-result{
  background:var(--rps-surface);
  border:1px solid var(--rps-line);
  border-radius:var(--rps-radius-lg);
  overflow:hidden;
  box-shadow:var(--rps-shadow-1);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bootstrap-realtypress.rps-archive-2026 .rps-property-result:hover{
  transform:translateY(-3px);
  border-color:var(--rps-line-strong);
  box-shadow:var(--rps-shadow-2);
}

/* Image canvas (anchor has inline background-image) */
.bootstrap-realtypress.rps-archive-2026 .rps-property-result .image-holder{
  position:relative;
  overflow:hidden;
}
.bootstrap-realtypress.rps-archive-2026 .rps-property-result .image-holder > a{
  display:block !important;
  width:100% !important;
  aspect-ratio: 4 / 3;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  border-bottom: 1px solid var(--rps-line);
}
.bootstrap-realtypress.rps-archive-2026 .rps-property-result .image-holder img.trans-256x200,
.bootstrap-realtypress.rps-archive-2026 .rps-property-result .image-holder img.img-responsive{
  opacity:0 !important;
  width:0 !important;
  height:0 !important;
  pointer-events:none !important;
}

/* Ribbon pill */
.bootstrap-realtypress.rps-archive-2026 .rps-ribbon{
  position:absolute; top:14px; left:14px; z-index:3;
  padding:8px 10px;
  border-radius:999px;
  font-weight:750; font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  background:rgba(17,24,39,.80); color:#fff;
  border:1px solid rgba(255,255,255,.20);
}
.bootstrap-realtypress.rps-archive-2026 .rps-ribbon-open-house{
  left:auto; right:14px;
  background:rgba(167,139,67,.92);
}

/* Price badge (if positioned over image) */
.bootstrap-realtypress.rps-archive-2026 .rps-price{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:3;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(17,24,39,.10);
  border-radius:999px;
  padding:10px 12px;
  font-weight:780;
  letter-spacing:-.02em;
}

/* Info area */
.bootstrap-realtypress.rps-archive-2026 .rps-property-info,
.bootstrap-realtypress.rps-archive-2026 .info-holder{
  padding:14px 16px 16px;
}
.bootstrap-realtypress.rps-archive-2026 .rps-property-price{
  font-size:22px; font-weight:780; letter-spacing:-.02em; line-height:1.1;
}
.bootstrap-realtypress.rps-archive-2026 .rps-property-address{
  margin-top:6px; font-weight:650; letter-spacing:-.01em;
}
.bootstrap-realtypress.rps-archive-2026 .rps-property-city{
  color:var(--rps-muted); margin-top:2px; font-size:13px;
}

/* Feature chips */
.bootstrap-realtypress.rps-archive-2026 .rps-result-features{
  margin-top:12px; display:flex; flex-wrap:wrap; gap:8px;
}
.bootstrap-realtypress.rps-archive-2026 .rps-result-feature-label-sm{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(17,24,39,.04);
  border:1px solid rgba(17,24,39,.06);
  color:var(--rps-ink);
  font-weight:650;
  font-size:13px;
}
.bootstrap-realtypress.rps-archive-2026 .rps-result-feature-label-sm i{ opacity:.7; }

/* Pagination */
.bootstrap-realtypress.rps-archive-2026 .pagination{
  display:flex; gap:8px; justify-content:center; margin:22px 0 0;
}
.bootstrap-realtypress.rps-archive-2026 .pagination>li>a,
.bootstrap-realtypress.rps-archive-2026 .pagination>li>span{
  border-radius:999px!important;
  border:1px solid var(--rps-line)!important;
  color:var(--rps-ink)!important;
  padding:10px 14px!important;
}
.bootstrap-realtypress.rps-archive-2026 .pagination>.active>a,
.bootstrap-realtypress.rps-archive-2026 .pagination>.active>span{
  background:var(--rps-ink)!important;
  border-color:var(--rps-ink)!important;
  color:#fff!important;
}
