.map-container-inicio {
    height: 500px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    background-color: #fff;
}
.control-panel-inicio {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 100%;
}
.control-panel-inicio h5 {
    color: #8bb831;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.control-panel-inicio .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}
.control-panel-inicio .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.control-panel-inicio .btn.active-map-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-color: #8bb831;
}
.control-panel-inicio .btn i {
    margin-right: 10px;
    width: 20px;
}
.custom-div-icon {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.custom-div-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.popup-content-inicio {
    margin: 15px;
    line-height: 1.5;
    font-size: 14px;
}
.popup-content-inicio h6 {
    color: #8bb831;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.popup-content-inicio p {
    margin-bottom: 8px;
    color: #6c757d;
    display: flex;
    align-items: center;
}
.popup-content-inicio p i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}
.popup-content-inicio strong {
    color: #495057;
    margin-right: 5px;
}

/* Estilos del Modal Personalizado del Mapa (Bypasses Bootstrap completely to prevent conflicts) */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: customModalFadeIn 0.2s ease-out;
}
.custom-modal-dialog {
    width: 100%;
    max-width: 600px;
    animation: customModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.custom-modal-header {
    background-color: #8bb831;
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.custom-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    color: #ffffff !important;
}
.custom-modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    outline: none;
}
.custom-modal-close-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}
.custom-modal-body {
    padding: 24px;
    background-color: #f8fafc;
}
.custom-modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.custom-modal-badge {
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.custom-modal-municipio {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.custom-modal-desc-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.custom-modal-desc-container h6 {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.custom-modal-desc-container p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-line;
}
.custom-modal-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.custom-modal-coords {
    font-size: 0.8rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.custom-modal-action a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #8bb831;
    color: #8bb831;
    background-color: transparent;
    transition: all 0.25s ease;
}
.custom-modal-action a:hover {
    color: #ffffff;
    background-color: #8bb831;
}

@keyframes customModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes customModalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 576px) {
    .custom-modal-footer-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .custom-modal-coords {
        justify-content: center;
    }
    .custom-modal-action a {
        width: 100%;
        justify-content: center;
    }
}
