/* Toro 365 · La fotografía nunca invade los controles de las plazas. */
.profile-card.plaza {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  min-width: 0;
}
.profile-card.plaza .profile-visual {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  place-items: center;
  flex: 0 0 160px !important;
  width: 100% !important;
  height: 160px !important;
  min-height: 0 !important;
  max-height: 160px !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 0 !important;
}
.profile-card.plaza .profile-visual img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transform: none !important;
}
.profile-card.plaza .profile-card-body {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 14px !important;
  background: var(--surface, #fffdf8) !important;
  color: var(--text, #282321) !important;
}
.profile-card.plaza .profile-card-body h3 { overflow-wrap: anywhere; }
.profile-card.plaza .profile-card-actions {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 12px;
  margin-top: auto !important;
}
.profile-card.plaza .profile-card-actions .btn {
  flex: 1 1 95px;
  min-width: 0;
  white-space: normal;
}
/* También se limita la foto de la ficha abierta y se evita que el título la estire. */
#modalContent .profile-detail-head { min-width: 0; }
#modalContent .profile-detail-head > :last-child { min-width: 0; overflow-wrap: anywhere; }
#modalContent .profile-detail-head .profile-avatar {
  position: relative;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  overflow: hidden;
}
#modalContent .profile-detail-head .profile-avatar img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
/* La misma protección en el catálogo del administrador. */
#venuesGrid .entity-card-top { min-width: 0; overflow: hidden; }
#venuesGrid .entity-photo { flex-shrink: 0; max-width: 76px; max-height: 76px; object-fit: cover; }
#venuesGrid .entity-card-top > div { min-width: 0; overflow-wrap: anywhere; }
#venuesGrid .entity-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; }
