/* ===================================================
   املاک اشیونه — نمایش آگهی‌ها
   =================================================== */
.ashp-wrap{
  --ashp-navy:#1B2A4A;
  --ashp-gold:#C9A227;
  --ashp-text:#2C2C2C;
  --ashp-muted:#6b7280;
  --ashp-line:#E4E6EA;
  --ashp-chip:#F1F2F4;
  --ashp-cols:3;

  direction:rtl;
  color:var(--ashp-text);
}
.ashp-wrap *{box-sizing:border-box}

/* فونت کارت‌ها؛ اگر تعیین نشود، فونت صفحه را می‌گیرد */
.ashp-wrap,
.ashp-wrap h2,
.ashp-wrap h3,
.ashp-wrap a,
.ashp-wrap p,
.ashp-wrap li,
.ashp-wrap b,
.ashp-wrap span,
.ashp-wrap input,
.ashp-wrap select,
.ashp-wrap button{font-family:var(--ashp-font,inherit)}

/* ---------- سر صفحه ---------- */
.ashp-head{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:16px;
  margin-bottom:20px;
}
.ashp-title{
  margin:0;
  font-size:clamp(19px,2vw,26px);
  font-weight:700;color:var(--ashp-navy);
}
.ashp-title span{
  margin-inline-start:10px;
  font-size:15px;font-weight:400;color:var(--ashp-muted);
}

.ashp-sort{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ashp-muted)}
.ashp-sort select{
  border:1px solid var(--ashp-line);
  border-radius:10px;padding:9px 14px;
  background:#fff;font-size:14px;color:var(--ashp-text);
  cursor:pointer;
}

/* ---------- چیپ‌های فیلتر ---------- */
.ashp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.ashp-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 13px;border-radius:999px;
  background:#fff;border:1px solid var(--ashp-line);
  font-size:13px;color:var(--ashp-navy);
  text-decoration:none;
}
.ashp-chip b{font-weight:700}
.ashp-chip a{
  color:var(--ashp-muted);text-decoration:none;
  font-size:16px;line-height:1;
}
.ashp-chip a:hover{color:#c0392b}
.ashp-chip--clear{
  background:var(--ashp-navy);color:#fff;border-color:var(--ashp-navy);
}
.ashp-chip--clear:hover{opacity:.9;color:#fff}

/* ---------- شبکه ---------- */
.ashp-grid{
  display:grid;
  grid-template-columns:repeat(var(--ashp-cols),minmax(0,1fr));
  gap:22px;
}

/* ---------- کارت ---------- */
.ashp-card{
  background:#fff;
  border:1px solid var(--ashp-line);
  border-radius:16px;
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .25s ease,box-shadow .25s ease;
}
.ashp-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(27,42,74,.14)}

.ashp-card-media{
  position:relative;display:block;
  aspect-ratio:4/3;
  background:linear-gradient(135deg,#dfe3ea,#eef0f4 60%,#e6e9ee);
  overflow:hidden;
}
.ashp-card-media img{
  width:100%;height:100%;
  object-fit:cover;display:block;
  transition:transform .4s ease;
}
.ashp-card:hover .ashp-card-media img{transform:scale(1.05)}
.ashp-card-media svg{
  position:absolute;inset:0;margin:auto;
  width:74px;height:74px;
  stroke:#b8c0cc;fill:none;stroke-width:1.3;
}

.ashp-badge{
  position:absolute;top:12px;right:12px;
  padding:5px 12px;border-radius:999px;
  background:rgba(27,42,74,.9);
  color:#fff;font-size:12px;font-weight:600;
}
.ashp-badge--gold{
  right:auto;left:12px;
  background:var(--ashp-gold);color:var(--ashp-navy);
}

.ashp-card-body{
  padding:16px 18px 18px;
  display:flex;flex-direction:column;flex:1 1 auto;
}

.ashp-card-title{
  margin:0 0 6px;
  font-size:17px;line-height:1.6;font-weight:700;
}
.ashp-card-title a{color:var(--ashp-navy);text-decoration:none}
.ashp-card-title a:hover{color:var(--ashp-gold)}

.ashp-card-place{margin:0 0 12px;font-size:14px;color:var(--ashp-muted)}

.ashp-specs{
  list-style:none;margin:0 0 14px;padding:0;
  display:flex;flex-wrap:wrap;gap:8px;
}
.ashp-specs li{
  padding:5px 11px;border-radius:8px;
  background:var(--ashp-chip);
  font-size:13px;color:#4b5563;
}

.ashp-card-foot{
  margin-top:auto;padding-top:12px;
  border-top:1px dashed var(--ashp-line);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.ashp-price{font-size:17px;font-weight:700;color:var(--ashp-navy)}
.ashp-price small{
  display:block;margin-top:3px;
  font-size:12px;font-weight:400;color:var(--ashp-muted);
}

.ashp-call{
  padding:8px 16px;border-radius:10px;
  border:1px solid var(--ashp-gold);
  background:rgba(201,162,39,.1);
  color:var(--ashp-navy);
  font-size:13px;font-weight:700;
  text-decoration:none;white-space:nowrap;
  transition:background .2s ease;
}
.ashp-call:hover{background:var(--ashp-gold);color:var(--ashp-navy)}

.ashp-card-agent{
  padding:10px 18px;
  border-top:1px solid var(--ashp-line);
  display:flex;align-items:center;justify-content:space-between;
  font-size:12.5px;color:var(--ashp-muted);
}

/* ---------- خالی ---------- */
.ashp-empty{
  padding:44px 20px;text-align:center;
  background:#F7F8FA;border:1px dashed var(--ashp-line);
  border-radius:14px;color:var(--ashp-muted);line-height:2;
}

/* ---------- صفحه‌بندی ---------- */
.ashp-pager{display:flex;justify-content:center;gap:8px;margin-top:30px}
.ashp-pager .page-numbers{
  min-width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0 12px;
  border:1px solid var(--ashp-line);border-radius:10px;
  color:var(--ashp-navy);text-decoration:none;font-size:15px;
  transition:background .2s ease;
}
.ashp-pager .page-numbers:hover{background:var(--ashp-chip)}
.ashp-pager .page-numbers.current{
  background:var(--ashp-navy);border-color:var(--ashp-navy);color:#fff;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width:1023px){
  .ashp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media (max-width:600px){
  .ashp-grid{grid-template-columns:1fr;gap:16px}
  .ashp-head{flex-direction:column;align-items:flex-start}
  .ashp-card-title{font-size:16px}
}

@media (prefers-reduced-motion:reduce){
  .ashp-card,.ashp-card-media img{transition:none}
}
