/**
 * Estilos del mapa CPM
 */

.cpm-map-container {
    width: 100%;
    min-height: 400px;
    z-index: 1;
    border: 1px solid #ddd;
}

#cpm-victimas-map {
    width: 100%;
    min-height: 400px;
    z-index: 1;
    border: 1px solid #ddd;
}

/* -------------------------------------------------------------------------
   Popup — override Google Maps InfoWindow defaults
   ------------------------------------------------------------------------- */

/* Wrapper externo */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35) !important;
    max-width: none !important;
    min-width: 0 !important;
    width: auto !important;
}

/* Scrollable inner — sin scroll, sin padding extra */
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
    width: auto !important;
}

/* Contenedor extra que Google agrega dentro */
.gm-style .gm-style-iw-d > div {
    overflow: hidden !important;
}

/* Header con botón cerrar — sacarlo del flujo para que no empuje el contenido */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
}

.gm-style .gm-style-iw-ch {
    display: none !important;
}

/* Botón cerrar */
.gm-style button.gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.6 !important;
    background: transparent !important;
}

.gm-style button.gm-ui-hover-effect:hover {
    opacity: 1 !important;
}

.gm-style button.gm-ui-hover-effect span {
    width: 14px !important;
    height: 14px !important;
    margin: 7px !important;
}

/* -------------------------------------------------------------------------
   Popup card
   ------------------------------------------------------------------------- */

.cpm-popup {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    background: #fff;
    display: flex;
    flex-direction: row;
    min-height: 130px;
}

/* Foto — columna izquierda */
.cpm-popup__photo {
    position: relative;
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: #b0b5ba;
}

.cpm-popup__photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    display: block;
}

.cpm-popup--no-foto .cpm-popup__photo {
    display: none;
}

/* Badge — pegado al fondo de la foto */
.cpm-popup__badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #e67e22;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 6px;
    text-align: center;
    z-index: 2;
}

.cpm-popup__card {
    flex: 1;
    padding: 12px 14px;
    overflow: hidden;
}

.cpm-popup__card p {
    margin: 2px 0;
    color: #000;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
}

.cpm-popup__card p strong {
    color: #000;
    font-weight: 700;
}

/* Nombre — Special Elite */
.cpm-popup__name {
    font-family: 'Special Elite', cursive !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
    margin: 20px 0 5px !important;
    line-height: 1.3 !important;
    color: #000;
}

.cpm-popup__name a {
    color: #000 !important;
    text-decoration: none;
}

.cpm-popup__name a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Popups simples (CCD, cementerio)
   ------------------------------------------------------------------------- */

.cpm-popup--ccd,
.cpm-popup--cementerio {
    flex-direction: column;
    width: 220px;
}

/* Línea de color al fondo — en el wrapper para que ocupe ancho completo */
.cpm-popup--cementerio {
    border-bottom: 3px solid #BF3331;
}

.cpm-popup--ccd {
    border-bottom: 3px solid #FFAF1E;
}

.cpm-popup--ccd .cpm-popup__card,
.cpm-popup--cementerio .cpm-popup__card {
    padding: 16px;
}

/* Ícono */
.cpm-popup__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Header icono + tipo */
.cpm-popup__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.cpm-popup__tipo {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFAF1E;
    line-height: 1.2;
}

.cpm-popup--cementerio .cpm-popup__tipo {
    color: #BF3331;
}

/* Título */
.cpm-popup--ccd .cpm-popup__name,
.cpm-popup--cementerio .cpm-popup__name {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 0 8px !important;
}

.cpm-popup--ccd .cpm-popup__name a,
.cpm-popup--cementerio .cpm-popup__name a {
    color: #000 !important;
    text-decoration: none;
}

/* Info */
.cpm-popup--ccd p,
.cpm-popup--cementerio p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    color: #000;
    margin: 2px 0;
}

.cpm-popup a {
    color: #e67e22;
}

