/* =====================================================================
   Cuadro resumen de la actividad (web pública y vista previa del panel)
   Necesita Font Awesome 6.
   ===================================================================== */
.resumen-actividad {
  --r-acento: #4f46e5;
  --r-fondo: #ffffff;
  --r-borde: #e4e8f1;
  --r-texto: #1b2333;
  --r-suave: #5b6579;
  background: var(--r-fondo);
  border: 1px solid var(--r-borde);
  border-top: 4px solid var(--r-acento);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--r-texto);
  font-size: 14.5px;
  line-height: 1.5;
}
.resumen-titulo { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--r-suave); font-weight: 700; }
.resumen-lista { list-style: none; margin: 0; padding: 0; }
.resumen-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--r-borde); }
.resumen-item:first-child { border-top: 0; padding-top: 0; }
.resumen-item:last-child { padding-bottom: 0; }
.resumen-icono {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: color-mix(in srgb, var(--r-acento) 10%, white); color: var(--r-acento); font-size: 15px;
}
.resumen-cuerpo { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.resumen-titular { display: block; font-weight: 700; }
.resumen-valor { color: var(--r-texto); }
.resumen-dir { display: block; color: var(--r-suave); font-size: 13px; }
.resumen-texto { color: var(--r-suave); margin-top: 2px; }
.resumen-actividad a { color: var(--r-acento); text-underline-offset: 2px; }

/* Nombre del lugar: abre la ficha en un popup */
.resumen-lugar-btn {
  all: unset; cursor: pointer; color: var(--r-acento); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.resumen-lugar-btn i { font-size: .85em; margin-left: 2px; }
.resumen-lugar-btn:hover { text-decoration-thickness: 2px; }
.resumen-lugar-btn:focus-visible { outline: 2px solid var(--r-acento); outline-offset: 2px; border-radius: 3px; }

/* ---------------------------------------------------------------------
   Popup con la ficha del lugar
   --------------------------------------------------------------------- */
.resumen-dialogo {
  --r-acento: #4f46e5;
  padding: 0; border: 0; border-radius: 16px; width: min(620px, 92vw); max-height: 90vh;
  color: #1b2333; background: #fff; overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35);
}
.resumen-dialogo[open] { display: flex; animation: rd-entrar .22s ease-out; }
.resumen-dialogo::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
@keyframes rd-entrar { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.rd-caja { position: relative; width: 100%; overflow: auto; }
.rd-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: #1b2333; font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.rd-cerrar:hover { background: #fff; }
.rd-foto { display: block; width: 100%; height: 240px; object-fit: cover; }
.rd-cuerpo { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.rd-nombre { margin: 0; font-size: 22px; line-height: 1.25; padding-right: 40px; }
.rd-foto + .rd-cuerpo .rd-nombre { padding-right: 0; }
.rd-dir { margin: -6px 0 0; color: #5b6579; }
.rd-dir i { color: var(--r-acento); margin-right: 4px; }
.rd-mapa { height: 240px; border-radius: 12px; overflow: hidden; background: #eef1f6; border: 1px solid #e4e8f1; }
.rd-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.rd-maps {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  background: var(--r-acento); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
}
.rd-maps:hover { filter: brightness(.92); }
.rd-info h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #5b6579; }
.rd-info div { line-height: 1.6; }
.rd-info a { color: var(--r-acento); }
@media (max-width: 520px) { .rd-foto, .rd-mapa { height: 180px; } .rd-cuerpo { padding: 18px; } }

/* ---------------------------------------------------------------------
   Protección frente a los estilos generales de la web (ul li, h3, img, button…)
   --------------------------------------------------------------------- */
.resumen-actividad, .resumen-actividad *, .resumen-dialogo, .resumen-dialogo * { box-sizing: border-box; }
.resumen-actividad .resumen-lista,
.resumen-actividad .resumen-lista > li.resumen-item {
  list-style: none; margin: 0; background: none; text-indent: 0; float: none; width: auto;
}
.resumen-actividad .resumen-lista { padding: 0; }
.resumen-actividad .resumen-lista > li.resumen-item { padding: 12px 0; border-left: 0; border-right: 0; border-bottom: 0; }
.resumen-actividad .resumen-lista > li.resumen-item:first-child { padding-top: 0; border-top: 0; }
.resumen-actividad .resumen-lista > li.resumen-item:last-child { padding-bottom: 0; }
.resumen-actividad .resumen-lista > li.resumen-item::before { content: none; display: none; }
.resumen-actividad p, .resumen-dialogo p { margin: 0; }
.resumen-dialogo img { max-width: 100%; border: 0; }
.resumen-dialogo .rd-cerrar { line-height: 1; padding: 0; }
.resumen-dialogo h3, .resumen-dialogo h4 { font-family: inherit; text-transform: none; }
.resumen-dialogo h4 { text-transform: uppercase; }

/* Dentro de la barra lateral de la web (resumen_publico con $widget = true) */
.resumen-widget .resumen-actividad { padding: 16px 18px; }

/* La plantilla de la web flota .sidebar_title y los h3 de .sidebar_widget (float: left; width: 100%).
   La caja debe ir siempre DEBAJO de esos flotados: si no, Chrome y Edge colocan el primer
   elemento (display: flex) al lado del título flotado, sin ancho, y el texto sale en vertical. */
.resumen-actividad { clear: both; display: flow-root; width: 100%; }
.resumen-dialogo .rd-nombre { margin: 0; float: none; }
.resumen-dialogo h3, .resumen-dialogo h4 { float: none; }
.resumen-dialogo .rd-info h4 { margin: 0 0 6px; }
