/* ===== Marcadores y popups del mapa vivo ===== */

.wlm-marker {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px 999px 999px 6px;
    transform: rotate(0deg);
    color: #fff;
    font-size: 14px;
    border: 2.5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.wlm-marker:hover { transform: scale(1.12); z-index: 5; }

.wlm-marker-user {
    background: #111;
    border-radius: 999px;
}

.wlm-popup {
    font-family: "Inter", system-ui, sans-serif;
    min-width: 180px;
    max-width: 240px;
    padding: 2px 2px 4px;
}

.wlm-popup-type {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.wlm-popup strong {
    display: block;
    font-size: 14.5px;
    line-height: 1.25;
    color: #111;
    margin-bottom: 3px;
}

.wlm-popup p {
    margin: 0 0 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #5f6673;
}

.wlm-popup a {
    color: #ff385c;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.maplibregl-popup-content {
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18) !important;
    padding: 12px 14px !important;
}

/* Lista lateral de /mapa */

.map-place-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid var(--border, #ededed);
    border-radius: 16px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.map-place-item:hover {
    border-color: var(--brand, #ff385c);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.map-place-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    margin-top: 4px;
    border-radius: 999px;
}

.map-place-item strong {
    display: block;
    font-size: 14px;
    color: var(--ink, #111);
    line-height: 1.25;
}

.map-place-item small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--soft, #8d95a1);
    line-height: 1.35;
}

/* Mini-mapa del detalle de evento */

.evd-map-live {
    height: 230px;
    border-radius: 16px;
    border: 1px solid var(--border, #ededed);
    overflow: hidden;
    margin-bottom: 14px;
}

/* Fix: el mini-mapa nunca se sale de su tarjeta */
.evd-map-live {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.evd-map-live .maplibregl-map,
.evd-map-live .maptiler-map {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
}

.evd-map-live canvas {
    border-radius: 16px;
    outline: none;
}

/* ===== v2: badges del pin (avisan eventos/fotos en el lugar) ===== */

.wlm-marker { position: relative; }

.wlm-marker-badge {
    position: absolute;
    top: -7px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 8.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.wlm-marker-badge-event { right: -8px; background: #ff385c; }
.wlm-marker-badge-photo { left: -8px; background: #16a34a; }

/* ===== v2: popup rico ===== */

.wlm-popup { min-width: 220px; max-width: 270px; }

.wlm-popup-verified { color: #ff385c; font-size: 12px; }

.wlm-popup-events {
    display: grid;
    gap: 5px;
    margin: 8px 0;
}

.wlm-popup-event {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #faf7f5;
    border: 1px solid #f0eae5;
    text-decoration: none;
    transition: border-color 0.14s ease;
}

.wlm-popup-event:hover { border-color: #ff385c; }

.wlm-popup-event i {
    margin-top: 2px;
    color: #ff385c;
    font-size: 11px;
}

.wlm-popup-event strong {
    display: block;
    font-size: 12.5px;
    line-height: 1.2;
    color: #111;
    margin: 0;
}

.wlm-popup-event small {
    display: block;
    font-size: 11px;
    color: #8d95a1;
    margin-top: 1px;
}

.wlm-popup-photos {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.wlm-popup-photos a {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ededed;
}

.wlm-popup-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease;
}

.wlm-popup-photos a:hover img { transform: scale(1.07); }

.wlm-popup-photos span {
    position: absolute;
    bottom: 3px;
    right: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
}

.wlm-popup-link {
    display: inline-block;
    margin-top: 2px;
    color: #ff385c;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}
