/* GCA Real Estate R5.30 · acciones contextuales, medios protegidos y mapas de detalle */
body.re-resource-detail > header nav [data-gca-share],
body.re-resource-detail > .gc503-site-bottom .gc503-share-home{display:none!important}

#reMain img{ -webkit-user-drag:none; user-select:none; -webkit-user-select:none; }
.re-property-media,.re-card-image,.re-municipality-card,.re-municipality-detail,.re-gallery figure,.re-municipality-gallery figure{position:relative}
.re-property-media img,.re-card-image img,.re-municipality-card img,.re-municipality-detail img,.re-gallery img,.re-municipality-gallery img{pointer-events:none}

.re-r530-card .re-card-main{display:block;color:inherit;text-decoration:none}
.re-card-actions,.re-municipality-actions,.re-place-detail-actions,.re-property-detail-actions{display:flex;align-items:stretch;gap:8px;position:relative;z-index:8}
.re-card-actions{padding:0 18px 18px}
.re-card-action,.re-place-action,.re-detail-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(18,23,24,.72);color:#f4f6f5!important;-webkit-text-fill-color:#f4f6f5!important;text-decoration:none!important;font:600 12px/1.2 Jost,sans-serif;cursor:pointer;backdrop-filter:blur(12px)}
.re-card-actions .re-card-action{flex:1}
.re-card-action:hover,.re-place-action:hover,.re-detail-action:hover{background:rgba(238,242,241,.94);color:#111!important;-webkit-text-fill-color:#111!important}
.re-card-share{position:static!important;inset:auto!important;width:auto!important;height:auto!important;opacity:1!important}
.re-municipality-card-shell{overflow:hidden}
.re-municipality-card{display:block;color:inherit;text-decoration:none}
.re-municipality-actions{padding:0 16px 16px}
.re-municipality-actions .re-place-action{flex:1}
.re-municipality-share{position:static!important;inset:auto!important;width:auto!important;height:auto!important}
.re-place-detail-actions{margin-top:22px;flex-wrap:wrap}
.re-property-detail-actions{margin:22px 0 8px;flex-wrap:wrap}

.re-protected-map-shell{position:relative;width:100%;min-height:360px;border:1px solid rgba(255,255,255,.13);border-radius:22px;overflow:hidden;background:#101516}
.re-detail-map{width:100%;height:clamp(360px,48vw,560px);min-height:360px;outline:none}
.re-place-map-section{margin-top:34px}
.re-place-map-shell .re-detail-map{height:clamp(390px,54vw,620px)}
.re-detail-map-guard{position:absolute;inset:0;z-index:900;display:grid;place-items:center;border:0;background:rgba(8,12,12,.22);backdrop-filter:blur(8px) saturate(.78);-webkit-backdrop-filter:blur(8px) saturate(.78);cursor:pointer;color:#fff}
.re-detail-map-guard[hidden]{display:none!important}
.re-detail-map-guard>span{display:grid;gap:6px;max-width:360px;padding:18px 24px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:rgba(12,17,17,.68);box-shadow:0 16px 42px rgba(0,0,0,.28);text-align:center}
.re-detail-map-guard b{font-size:15px}.re-detail-map-guard small{font-size:11px;line-height:1.45;opacity:.75}

@media(max-width:760px){
 .re-card-actions,.re-municipality-actions{gap:6px;padding-left:12px;padding-right:12px}
 .re-card-action,.re-place-action,.re-detail-action{min-height:40px;padding:9px 12px;font-size:11px}
 .re-protected-map-shell,.re-detail-map{min-height:320px}.re-detail-map{height:58vh}.re-place-map-shell .re-detail-map{height:62vh}
}


/* R5.31 · Acciones de tarjeta agrupadas como referencia aprobada */
.re-card-actions,.re-place-detail-actions,.re-property-detail-actions,.re-municipality-actions{display:flex;align-items:stretch;gap:10px;flex-wrap:nowrap}
.re-card-actions .re-card-view,.re-place-detail-actions .re-detail-action:first-child,.re-property-detail-actions .re-detail-action:first-child,.re-municipality-actions .re-place-action{flex:1 1 auto;min-width:0}
.re-card-actions .re-card-share,.re-place-detail-actions .re-detail-action:last-child,.re-property-detail-actions .re-detail-action:last-child,.re-municipality-actions .re-municipality-share{flex:0 0 auto;min-width:168px;justify-content:center}
.re-card-actions .re-card-share::before,.re-place-detail-actions .re-detail-action:last-child::before,.re-property-detail-actions .re-detail-action:last-child::before,.re-municipality-actions .re-municipality-share::before{content:"↥";font-size:17px;line-height:1;transform:translateY(-1px)}
.re-municipality-card-shell{display:flex;flex-direction:column}
.re-municipality-card-shell>.re-municipality-card{padding-bottom:0!important}
.re-municipality-actions{padding:0 18px 18px;position:relative;z-index:4}
.re-municipality-actions .re-place-action,.re-municipality-actions .re-municipality-share{appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(18,23,24,.72);color:#f4f6f5!important;-webkit-text-fill-color:#f4f6f5!important;text-decoration:none!important;font:600 12px/1.2 Jost,sans-serif;cursor:pointer;backdrop-filter:blur(12px)}
.re-municipality-actions .re-place-action:hover,.re-municipality-actions .re-municipality-share:hover,.re-municipality-actions .re-place-action:focus-visible,.re-municipality-actions .re-municipality-share:focus-visible{background:rgba(238,242,241,.94);color:#111!important;-webkit-text-fill-color:#111!important;outline:none}
@media (max-width: 900px){
  .re-card-actions,.re-place-detail-actions,.re-property-detail-actions,.re-municipality-actions{gap:8px;flex-wrap:wrap}
  .re-card-actions .re-card-view,.re-place-detail-actions .re-detail-action:first-child,.re-property-detail-actions .re-detail-action:first-child,.re-municipality-actions .re-place-action{flex:1 1 100%}
  .re-card-actions .re-card-share,.re-place-detail-actions .re-detail-action:last-child,.re-property-detail-actions .re-detail-action:last-child,.re-municipality-actions .re-municipality-share{flex:1 1 100%;min-width:0}
}


/* R5.32 · Tarjetas compactas y equivalentes: inmueble / lugar */
.re-editorial-cards,
.re-catalog-cards,
.re-municipality-cards{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(280px,360px))!important;
  justify-content:start!important;
  align-items:start!important;
  gap:20px!important;
}

.re-card,
.re-municipality-card-shell{
  width:100%!important;
  max-width:360px!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:22px!important;
  background:#111817!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

.re-r530-card .re-card-main,
.re-municipality-card-shell>.re-municipality-card{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  color:inherit!important;
  text-decoration:none!important;
}

.re-card-image,
.re-municipality-card-shell>.re-municipality-card>img,
.re-municipality-card-empty{
  width:100%!important;
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  border-radius:0!important;
}
.re-card-image img,
.re-municipality-card-shell>.re-municipality-card>img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.re-municipality-card-empty{display:grid!important;place-items:center!important}

.re-card-body,
.re-municipality-card-shell>.re-municipality-card>div:not(.re-municipality-card-empty){
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-height:156px!important;
  padding:15px 16px 12px!important;
  box-sizing:border-box!important;
}
.re-card-body small,
.re-municipality-card small{font-size:10px!important;letter-spacing:.12em!important}
.re-card-body h2,
.re-municipality-card h3{margin:0!important;font-size:22px!important;line-height:1.08!important}
.re-card-body p,
.re-municipality-card p{margin:0!important;font-size:12px!important;line-height:1.45!important}
.re-card-body .re-card-price,
.re-municipality-card strong{font-size:12px!important;line-height:1.35!important}

.re-card-actions,
.re-municipality-actions{
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
  padding:0 14px 14px!important;
  margin-top:0!important;
  flex-wrap:nowrap!important;
}
.re-card-actions .re-card-view,
.re-municipality-actions .re-place-action:not(.re-municipality-share){
  flex:1 1 auto!important;
  min-width:0!important;
}
.re-card-actions .re-card-share,
.re-municipality-actions .re-municipality-share{
  flex:0 0 108px!important;
  width:108px!important;
  min-width:108px!important;
  max-width:108px!important;
}
.re-card-action,
.re-place-action,
.re-municipality-share{
  min-height:40px!important;
  padding:9px 12px!important;
  font-size:11px!important;
  line-height:1.1!important;
}

/* Evita que reglas antiguas vuelvan a convertir Compartir en botón flotante. */
.re-municipality-card-shell>.re-municipality-share{display:none!important}

@media(max-width:760px){
  .re-editorial-cards,.re-catalog-cards,.re-municipality-cards{
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
  }
  .re-card,.re-municipality-card-shell{max-width:none!important}
  .re-card-image,.re-municipality-card-shell>.re-municipality-card>img,.re-municipality-card-empty{
    height:210px!important;min-height:210px!important;max-height:210px!important;
  }
  .re-card-actions,.re-municipality-actions{flex-wrap:nowrap!important;gap:7px!important;padding:0 12px 12px!important}
  .re-card-actions .re-card-share,.re-municipality-actions .re-municipality-share{
    flex:0 0 104px!important;width:104px!important;min-width:104px!important;max-width:104px!important;
  }
}


/* R5.33 · Unifica inmueble/lugar y corrige botones + marco interno */
/* La tarjeta exterior es el único marco visible. */
.gc410-page .re-card,
.gc410-page .re-municipality-card-shell{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:22px!important;
  background:#111817!important;
  box-shadow:none!important;
}

/* El preview de lugar no dibuja un segundo marco dentro de la tarjeta. */
.gc410-page .re-municipality-card-shell>.re-municipality-card{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  margin:0!important;
}
.gc410-page .re-municipality-card-shell>.re-municipality-card:hover{
  transform:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

/* Misma franja de acciones para inmuebles y lugares. */
.gc410-page .re-card-actions,
.gc410-page .re-municipality-actions{
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
  margin:0!important;
  padding:0 14px 14px!important;
  width:100%!important;
  box-sizing:border-box!important;
  position:relative!important;
  z-index:12!important;
}

.gc410-page .re-card-actions .re-card-view,
.gc410-page .re-municipality-actions .re-place-action{
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
}

/* Vence el estilo R5.26 que todavía convertía Compartir en botón flotante. */
.gc410-page .re-card-actions .re-card-share,
.gc410-page .re-municipality-actions .re-municipality-share{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  bottom:auto!important;
  flex:0 0 104px!important;
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  height:auto!important;
  min-height:40px!important;
  margin:0!important;
  padding:9px 12px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:999px!important;
  background:rgba(18,23,24,.72)!important;
  color:#f4f6f5!important;
  -webkit-text-fill-color:#f4f6f5!important;
  box-shadow:none!important;
  opacity:1!important;
  transform:none!important;
  font:600 11px/1.1 Jost,sans-serif!important;
  letter-spacing:0!important;
  justify-content:center!important;
  align-items:center!important;
}
.gc410-page .re-card-actions .re-card-share::before,
.gc410-page .re-municipality-actions .re-municipality-share::before{
  content:none!important;
  display:none!important;
}
.gc410-page .re-card-actions .re-card-share:hover,
.gc410-page .re-card-actions .re-card-share:focus-visible,
.gc410-page .re-municipality-actions .re-municipality-share:hover,
.gc410-page .re-municipality-actions .re-municipality-share:focus-visible{
  background:rgba(238,242,241,.94)!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  border-color:rgba(255,255,255,.72)!important;
}

/* El contenido termina pegado a la franja de acciones, sin hueco visual. */
.gc410-page .re-card-body,
.gc410-page .re-municipality-card-shell>.re-municipality-card>div:not(.re-municipality-card-empty){
  padding-bottom:12px!important;
  margin-bottom:0!important;
}

@media(max-width:760px){
  .gc410-page .re-card-actions,
  .gc410-page .re-municipality-actions{
    flex-wrap:nowrap!important;
    gap:7px!important;
    padding:0 12px 12px!important;
  }
  .gc410-page .re-card-actions .re-card-share,
  .gc410-page .re-municipality-actions .re-municipality-share{
    flex:0 0 96px!important;
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
  }
}
