:root{
  --asr-gold:#C9A646;
  --asr-black:#0D0D0D;
  --asr-white:#FFFFFF;
  --asr-soft:#F7F4EE;
  --asr-border:#E8E0D1;
  --asr-text:#2D2D2D;
  --asr-muted:#6F6A60;
}

.asrh-catalog{margin:24px 0 40px}
.asrh-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px}
.asrh-count{margin:0;color:var(--asr-muted);font-size:15px}

.asrh-filters{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  padding:20px;
  margin:0 0 26px;
  border:1px solid var(--asr-border);
  border-radius:16px;
  background:linear-gradient(180deg,#fbfaf7 0%, #f7f4ee 100%);
  box-shadow:0 12px 30px rgba(13,13,13,.04);
}
.asrh-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--asr-text)}
.asrh-filters input,
.asrh-filters select{
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--asr-border);
  border-radius:10px;
  background:#fff;
  color:var(--asr-text);
  box-sizing:border-box;
}
.asrh-filter-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.asrh-filters button,
.asrh-contact a,
.asrh-reset{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:46px;
  padding:12px 16px;
  border-radius:10px;
  text-decoration:none !important;
  font-weight:700;
  transition:all .2s ease;
  box-sizing:border-box;
}
.asrh-filters button,
.asrh-contact a:first-child{
  background:var(--asr-black) !important;
  color:#fff !important;
  border:1px solid var(--asr-black);
  cursor:pointer;
}
.asrh-filters button:hover,
.asrh-contact a:first-child:hover{background:var(--asr-gold) !important;border-color:var(--asr-gold)}
.asrh-reset,
.asrh-contact a:last-child{
  background:transparent !important;
  color:var(--asr-black) !important;
  border:1px solid var(--asr-border);
}
.asrh-reset:hover,
.asrh-contact a:last-child:hover{border-color:var(--asr-gold);color:var(--asr-gold) !important}

.asrh-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  align-items:stretch;
}
.asrh-card{
  height:100%;
  background:#fff;
  border:1px solid var(--asr-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 16px 38px rgba(13,13,13,.06);
  transition:transform .22s ease, box-shadow .22s ease;
}
.asrh-card:hover{transform:translateY(-6px);box-shadow:0 22px 46px rgba(13,13,13,.12)}
.asrh-card a{display:flex;flex-direction:column;height:100%;color:var(--asr-text);text-decoration:none !important}
.asrh-image-wrap{position:relative;background:#f4f1eb}
.asrh-card img,
.asrh-placeholder{display:block;width:100%;height:250px;object-fit:cover}
.asrh-placeholder{display:flex;align-items:center;justify-content:center;background:var(--asr-black);color:var(--asr-gold);font-weight:700;letter-spacing:.08em}
.asrh-badge{
  position:absolute;
  top:14px;
  left:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 12px;
  background:rgba(13,13,13,.88);
  color:#fff;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  letter-spacing:.12em;
  font-weight:800;
}
.asrh-card-body{display:flex;flex-direction:column;flex:1;padding:18px 18px 20px}
.asrh-location{margin:0 0 8px;color:var(--asr-muted);font-size:14px}
.asrh-card-body h3{
  margin:0 0 10px;
  color:var(--asr-black);
  font-size:20px;
  line-height:1.25;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:50px;
}
.asrh-meta{margin:0;color:var(--asr-muted);font-size:14px}
.asrh-card-footer{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid #efe8db;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:10px;
}
.asrh-card-footer strong,
.asrh-price{font-size:28px;line-height:1.05;color:var(--asr-black);font-weight:800}
.asrh-more{font-size:13px;color:var(--asr-gold);font-weight:700;white-space:nowrap}

.asrh-pages{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 0}
.asrh-pages a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--asr-border);
  text-decoration:none !important;
  color:var(--asr-black);
  background:#fff;
}
.asrh-pages a[aria-current]{background:var(--asr-black);border-color:var(--asr-black);color:#fff}
.asrh-empty{margin:18px 0;color:var(--asr-muted)}

.asrh-detail{max-width:1200px;margin:30px auto 60px;padding:0 18px}
.asrh-detail-head{margin-bottom:24px}
.asrh-operation{margin:0 0 12px;color:var(--asr-gold);text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:.14em}
.asrh-detail h1{
  margin:0 0 12px;
  color:var(--asr-black);
  font-size:clamp(34px,4vw,56px);
  line-height:1.04;
  font-weight:800;
}
.asrh-detail-location{margin:0 0 10px;color:var(--asr-muted);font-size:18px}
.asrh-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0 26px}
.asrh-gallery a{display:block}
.asrh-gallery img{display:block;width:100%;height:230px;object-fit:cover;border-radius:14px;box-shadow:0 8px 24px rgba(13,13,13,.06)}
.asrh-features{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 28px}
.asrh-features span{min-width:120px;padding:14px 16px;border-radius:14px;border:1px solid var(--asr-border);background:var(--asr-soft)}
.asrh-features b{display:block;margin-bottom:5px;font-size:12px;color:var(--asr-muted);font-weight:700}
.asrh-description{font-size:18px;line-height:1.8;color:var(--asr-text)}
.asrh-contact{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0 0}

body.single-asr_inmueble .gdlr-core-page-builder-body,
body.single-asr_inmueble .gdlr-core-page-builder-wrapper{background:transparent}

@media (max-width:1199px){
  .asrh-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .asrh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .asrh-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:767px){
  .asrh-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}
  .asrh-grid{grid-template-columns:1fr;gap:20px}
  .asrh-card img,.asrh-placeholder{height:230px}
  .asrh-card-body h3{font-size:18px;min-height:auto}
  .asrh-card-footer{align-items:flex-start;flex-direction:column}
  .asrh-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .asrh-gallery img{height:170px}
  .asrh-card-footer strong,.asrh-price{font-size:24px}
  .asrh-detail h1{font-size:clamp(28px,9vw,42px)}
}
@media (max-width:560px){
  .asrh-filters{grid-template-columns:1fr}
  .asrh-gallery{grid-template-columns:1fr}
  .asrh-gallery img{height:220px}
}

/* v0.5: ocultar únicamente el banner de título inyectado por el tema Infinite
   en fichas ASR, conservando la navegación y el pie corporativos. */
body.single-asr_inmueble .infinite-page-title-wrap,
body.single-asr_inmueble .infinite-page-title-container,
body.single-asr_inmueble .infinite-page-title-wrapper,
body.single-asr_inmueble .infinite-single-article-title-wrap,
body.single-asr_inmueble .infinite-blog-title-wrap {display:none !important;}

/* Una fotografía principal y una cuadrícula de fotografías secundarias. */
body.single-asr_inmueble .asrh-gallery{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;align-items:stretch}
body.single-asr_inmueble .asrh-gallery a:first-child{grid-column:span 2;grid-row:span 2}
body.single-asr_inmueble .asrh-gallery a:first-child img{height:474px}
body.single-asr_inmueble .asrh-gallery a:not(:first-child) img{height:230px}
body.single-asr_inmueble .asrh-detail-head h1{font-family:inherit;font-size:clamp(26px,3vw,40px);line-height:1.18;letter-spacing:-.015em;max-width:1000px}
@media (max-width:850px){
 body.single-asr_inmueble .asrh-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.single-asr_inmueble .asrh-gallery a:first-child{grid-column:span 2;grid-row:span 1}
 body.single-asr_inmueble .asrh-gallery a:first-child img{height:340px}
}
@media (max-width:560px){
 body.single-asr_inmueble .asrh-gallery{grid-template-columns:1fr}
 body.single-asr_inmueble .asrh-gallery a:first-child{grid-column:auto;grid-row:auto}
 body.single-asr_inmueble .asrh-gallery a:first-child img{height:260px}
 body.single-asr_inmueble .asrh-gallery a:not(:first-child) img{height:220px}
}
