/* MAH Mapa - Frontend styles */
.mah-mapa-wrapper {
    position: relative;
    margin: 2rem 0;
}
.mah-mapa-frontend {
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(27, 58, 47, 0.08);
}
.mah-mapa-leyenda {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: .8rem;
    padding: .7rem 1rem;
    background: rgba(245, 239, 224, 0.6);
    border-radius: 6px;
    font-size: .85rem;
    color: #4a4a4a;
    flex-wrap: wrap;
}
.mah-mapa-leyenda > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.mah-mapa-leyenda .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mah-mapa-leyenda .dot-perdida { background: #F57921; }
.mah-mapa-leyenda .dot-encontrada { background: #E8B547; }
.mah-mapa-leyenda small {
    margin-left: auto;
    color: #888;
    font-style: italic;
}

/* Pins */
.mah-mapa-pin {
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.mah-mapa-pin svg {
    transition: transform 0.2s ease;
}
.mah-mapa-pin:hover svg {
    transform: scale(1.1);
}

/* Popup */
.mah-mapa-popup {
    text-align: center;
    font-family: 'Manrope', system-ui, sans-serif;
}
.mah-mapa-popup img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: .7rem;
    display: block;
}
.mah-mapa-popup h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    margin: 0 0 .4rem;
    font-weight: 500;
    color: #1B3A2F;
    line-height: 1.2;
}
.mah-popup-loc {
    font-size: .8rem;
    color: #888;
    margin: 0 0 .6rem;
    line-height: 1.3;
}
.mah-popup-fecha {
    font-size: .75rem;
    color: #aaa;
    margin: .5rem 0;
    font-style: italic;
}
.mah-popup-tipo {
    display: inline-block;
    padding: .25rem .8rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: .5rem;
}
.mah-popup-tipo-perdida {
    background: #F57921;
    color: white;
}
.mah-popup-tipo-encontrada {
    background: #E8B547;
    color: #1A1A1A;
}
.mah-popup-link {
    display: block;
    padding: .55rem;
    margin-top: .8rem;
    background: #1B3A2F;
    color: white !important;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.mah-popup-link:hover {
    background: #112822;
    color: white !important;
}

/* Map en single-perdida */
.mah-mapa-single {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.mah-mapa-single h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    margin: 0 0 .6rem;
    font-weight: 500;
    color: #1B3A2F;
    letter-spacing: -0.01em;
}
.mah-mapa-direccion {
    color: #666;
    margin: 0 0 1rem;
    font-size: .95rem;
}

/* Leaflet popup container override */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.leaflet-popup-content {
    margin: .9rem;
    line-height: 1.4;
}
.leaflet-container a.mah-popup-link {
    color: white;
}
