/* Corrección final de galería: etiquetas legibles y contador sin bloque vacío. */
#siteShell main #propiedades #propertyGrid .property-card .property-media > span.status-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  background: #14233d !important;
  background-image: none !important;
  border: 1px solid #c8b99a !important;
  border-radius: 0 !important;
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

#siteShell main #propiedades #propertyGrid .property-card .property-media > span.photo-counter {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 4px 2px !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.98), 0 0 8px rgba(0,0,0,.9) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .02em !important;
  -webkit-text-stroke: 0 !important;
  transform: none !important;
}

#siteShell main #propiedades #propertyGrid .property-card .property-media > span.photo-counter::before,
#siteShell main #propiedades #propertyGrid .property-card .property-media > span.photo-counter::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 760px) {
  #siteShell main #propiedades #propertyGrid .property-card .property-media > span.status-badge {
    top: 12px !important;
    left: 12px !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  #siteShell main #propiedades #propertyGrid .property-card .property-media > span.photo-counter {
    top: 12px !important;
    right: 12px !important;
    width: max-content !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 4px 2px !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 14px !important;
  }
}

/* Imported property cards: clean branded fallback when the source has no downloadable cover image. */
.property-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  color: #f4f0e8;
  background: radial-gradient(circle at 50% 35%, #30445f 0, #172b47 48%, #101d31 100%);
}
.property-photo-placeholder span {
  max-width: 18ch;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}
.property-photo-placeholder small,
.property-source {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
}
