/* Mapa de Parroquias — colores corporativos del buscador (#00a19a, #38aae1, #a2195b) */

.mp-wrap { margin: 0 0 1.5em; }

.mp-map {
    width: 100%;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe4ea;
    z-index: 0; /* evita que el mapa tape el menú fijo de DIVI */
}

.mp-status {
    font-size: 13px;
    color: #475569;
    margin-top: 6px;
}

/* ── Marcador: chincheta con iglesia ─────────────────────────────────────── */
.mp-marker { background: none; border: 0; }

.mp-pin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #00a19a;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    color: #ffffff;
}
.mp-pin svg { transform: rotate(45deg); }
.mp-marker:hover .mp-pin,
.mp-marker:focus .mp-pin { background: #a2195b; }

/* ── Grupos (clusters) en colores corporativos ───────────────────────────── */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background-color: rgba(0, 161, 154, .30); }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div { background-color: rgba(0, 161, 154, .85); color: #ffffff; font-weight: 700; }

/* ── Etiqueta con el nombre ──────────────────────────────────────────────── */
.leaflet-tooltip.mp-label {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #00a19a;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    white-space: nowrap;
}

/* ── Recuadro de información ─────────────────────────────────────────────── */
.mp-popup-wrap .leaflet-popup-content-wrapper { border-radius: 10px; }
.mp-popup-wrap .leaflet-popup-content { margin: 14px 16px; font-size: 13px; line-height: 1.45; color: #1f2937; }

.mp-popup { max-height: min(420px, 60vh); overflow-y: auto; }
.mp-popup h3 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
    line-height: 1.25;
    color: #0f172a;
}
.mp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.mp-tag {
    background: #eef8f8;
    color: #00847e;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 12px;
}
.mp-section-title {
    margin: 10px 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #00a19a;
}
.mp-meta div { margin-bottom: 2px; }
.mp-schedule { display: flex; gap: 8px; margin-bottom: 4px; }
.mp-schedule-label { flex: 0 0 62px; font-weight: 700; color: #0c6ea1; }
.mp-popup a { color: #0c6ea1; }
.mp-actions { margin-top: 10px; }
.mp-actions a {
    display: inline-block;
    background: #a2195b;
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.mp-actions a:hover { background: #86134b; }

/* ── Barra de búsqueda ───────────────────────────────────────────────────── */
.mp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
}
.mp-toolbar .mp-search {
    flex: 1 1 220px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    margin: 0;
}
.mp-toolbar .mp-search:focus { outline: 2px solid #38aae1; border-color: #38aae1; }
.mp-btn {
    border: 0;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: #00a19a;
}
.mp-btn:hover { background: #00847e; }
.mp-btn-all { background: #a2195b; }
.mp-btn-all:hover { background: #86134b; }
.mp-check { font-size: 13px; color: #475569; display: inline-flex; align-items: center; gap: 4px; }
.mp-help { font-size: 13px; color: #64748b; margin: 0 0 8px; padding: 0; }

/* ── Cerca de mí ─────────────────────────────────────────────────────────── */
.mp-btn-near { background: #38aae1; }
.mp-btn-near:hover { background: #1f8fc6; }
.mp-btn:disabled { opacity: .7; cursor: wait; }
.mp-tag-dist { background: #e8f4fb; color: #0c6ea1; font-weight: 600; }

.mp-near { margin-top: 8px; }
.mp-near ol { list-style: none; margin: 0; padding: 0; counter-reset: mpnear; }
.mp-near li { margin: 0 0 6px; padding: 0; counter-increment: mpnear; }
.mp-near button {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.3;
    color: #0f172a;
}
.mp-near button::before {
    content: counter(mpnear);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00a19a;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-near button:hover { border-color: #00a19a; background: #f8fbfb; }
.mp-near-txt { display: flex; flex-direction: column; min-width: 0; }
.mp-near-name { font-weight: 600; }
.mp-near-loc { color: #64748b; font-size: 13px; }
.mp-near-dist { font-weight: 700; color: #0c6ea1; white-space: nowrap; }

/* ── Botones del recuadro: Cómo llegar · Compartir · WhatsApp ───────────── */
.mp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-actions .mp-act-share,
.mp-actions .mp-act-wa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    text-decoration: none;
}
.mp-actions .mp-act-share { background: #00a19a; color: #ffffff; }
.mp-actions .mp-act-share:hover { background: #00847e; }
.mp-actions .mp-act-wa { background: #25d366; color: #ffffff !important; }
.mp-actions .mp-act-wa:hover { background: #1da851; }

/* ── Selector Mapa / Satélite ────────────────────────────────────────────── */
.mp-map .leaflet-control-layers { border-radius: 8px; font-size: 13px; }
.mp-map .leaflet-control-layers-base label { margin: 2px 0; cursor: pointer; }

/* ── Descargar Excel ─────────────────────────────────────────────────────── */
.mp-btn-excel { background: #dedc00; color: #111827; }
.mp-btn-excel:hover { background: #c9c700; }

/* ── Fecha de actualización (mismo estilo que el buscador) ──────────────── */
.mp-update-date { margin-top: 6px; font-size: 12px; font-weight: 700; color: #6b7280; }

/* ── Parroquias por sacerdote (0.9.0) ────────────────────────────────────── */
.mp-popup .mp-parroco {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #0c6ea1;
    text-align: left;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}
.mp-popup .mp-parroco:hover,
.mp-popup .mp-parroco:focus-visible { color: #a2195b; text-decoration-style: solid; }

.mp-sacerdote[hidden] { display: none; }
.mp-sacerdote {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-left: 5px solid #00a19a;
    border-radius: 10px;
    padding: 12px 14px;
}
.mp-sac-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mp-sac-head .mp-section-title { margin-top: 0; }
.mp-sac-head h3 { margin: 0; padding: 0; font-size: 17px; line-height: 1.25; color: #0f172a; }
.mp-sac-n { font-size: 13px; color: #475569; }
.mp-sac-close {
    border: 0;
    background: #f1f5f9;
    color: #334155;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.mp-sac-close:hover { background: #e2e8f0; }
.mp-sac-actions { margin: 10px 0; }
.mp-sac-list { list-style: none; margin: 0; padding: 0; }
.mp-sac-list li { margin: 0 0 6px; padding: 0; }
.mp-sac-list button,
.mp-sac-nomap {
    display: block;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.3;
    color: #0f172a;
}
.mp-sac-list button { cursor: pointer; }
.mp-sac-list button:hover { border-color: #00a19a; background: #f8fbfb; }
.mp-sac-nomap { background: #f8fafc; color: #64748b; }
