/* v0.77 — Tu ciudad, sedes múltiples, listas públicas con modal y admin editorial más robusto. */

@media (min-width: 980px) {
  .public-card-grid-4.event-grid,
  .public-card-grid-4.profiles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-grid-clickable {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-profile-detail .gallery-grid-clickable .gallery-item img,
.page-event-detail .gallery-grid-clickable .gallery-item img {
  min-height: 124px;
}

.button-list-modal {
  align-self: end;
  border-radius: 999px;
  min-height: 42px;
}

.list-modal[hidden] { display: none; }
.list-modal {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.list-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,12,30,.74);
  backdrop-filter: blur(4px);
}
.list-modal-card {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 86vh;
  overflow: auto;
  padding: 1.2rem;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.list-modal-card h2 { margin-top: .2rem; }
.list-modal-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 36px;
  height: 36px;
  border: 1px solid #dce4f1;
  border-radius: 50%;
  color: var(--navy-deep);
  background: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.modal-card-grid { margin-top: 1rem; }

.venue-list-public {
  display: grid;
  gap: .62rem;
  margin-top: 1rem;
}
.venue-list-public > strong {
  color: var(--navy-deep);
}
.venue-list-public article {
  padding: .72rem;
  border: 1px solid #dce4f1;
  border-radius: 16px;
  background: #f8faff;
}
.venue-list-public span {
  display: block;
  color: #006080;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.venue-list-public p { margin: .2rem 0 0; color: var(--navy-deep); font-weight: 850; }
.venue-list-public small { display: block; margin-top: .18rem; color: var(--muted); }

.event-venues-editor {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}
.event-venues-head {
  display: grid;
  gap: .7rem;
  align-items: end;
  padding: .85rem;
  border: 1px solid #e1e7f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f8f6ff 100%);
}
.event-venues-head strong { color: var(--navy-deep); }
.event-venues-list { display: grid; gap: .85rem; }
.event-venue-row {
  padding: .92rem;
  border: 1px solid #dce4f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34,47,79,.05);
}
.event-venue-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-bottom: .75rem;
}
.venue-primary { margin: 0; }

.participant-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.participant-select-card {
  grid-template-columns: 22px 74px minmax(0, 1fr) 28px;
  min-height: 112px;
  padding: .75rem;
}
.participant-select-card img,
.participant-thumb-fallback {
  width: 74px !important;
  height: 74px !important;
  aspect-ratio: 1 / 1;
  border-radius: 16px !important;
  object-fit: cover;
  background: #eef2f8;
  flex: 0 0 74px;
}
.participant-thumb-fallback {
  display: grid;
  place-items: center;
  color: #534189;
  font-weight: 900;
  font-size: 1.05rem;
}
.participant-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.08;
  min-height: 2.1em;
}
.participant-copy small,
.participant-copy em {
  white-space: nowrap;
}
.participant-copy em {
  max-width: 100%;
}

@media (min-width: 760px) {
  .event-venues-head { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 680px) {
  .participant-select-card { grid-template-columns: 22px 62px minmax(0, 1fr); }
  .participant-select-card img,
  .participant-thumb-fallback { width: 62px !important; height: 62px !important; }
  .public-card-grid-4.event-grid,
  .public-card-grid-4.profiles-grid { grid-template-columns: 1fr; }
}
