/**
 * botanico.css — Estilos del Mapa Botánico
 */

/* ── Popup personalizado ── */
.bot-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}
.bot-popup .leaflet-popup-content {
    margin: 14px 16px;
}
.bot-popup .leaflet-popup-tip {
    border-top-color: rgba(15, 23, 42, 0.96);
}
.bot-popup .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    padding: 6px 8px;
    font-weight: 700;
}
.bot-popup .leaflet-popup-close-button:hover {
    color: #e2e8f0;
}

/* ── Markers ── */
.bot-marker {
    background: transparent;
    border: none;
}
.bot-marker > div {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.15s, filter 0.15s;
    cursor: pointer;
}
.bot-marker > div:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* ── Cluster overrides ── */
.bot-cluster {
    background: rgba(45, 106, 79, 0.25);
    border: 2px solid rgba(45, 106, 79, 0.5);
    border-radius: 50%;
    color: #2d6a4f;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-cluster-small.bot-cluster {
    width: 34px;
    height: 34px;
    font-size: 12px;
}
.marker-cluster-medium.bot-cluster {
    width: 44px;
    height: 44px;
    font-size: 14px;
}
.marker-cluster-large.bot-cluster {
    width: 56px;
    height: 56px;
    font-size: 16px;
}
.marker-cluster span {
    line-height: 1;
}

/* ── Animations ── */
@keyframes botFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes botSlideUp {
    from { transform: translateY(60%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── Responsive detail panel ── */
@media (min-width: 600px) {
    #bot-detail-overlay {
        align-items: center;
        padding: 20px;
    }
    #bot-detail-overlay > div {
        border-radius: 16px;
    }
}

@media (max-width: 599px) {
    #bot-detail-overlay > div {
        max-height: 92vh;
    }
    #bot-mini-panel {
        max-width: 90vw !important;
        font-size: 11px !important;
        padding: 8px 12px !important;
    }
}

/* ── Leaflet overrides for dark theme ── */
.leaflet-control-zoom a {
    background: rgba(15, 23, 42, 0.85);
    border-color: #1e293b;
    color: #e2e8f0;
}
.leaflet-control-zoom a:hover {
    background: #1e293b;
}
.leaflet-control-attribution {
    background: rgba(15, 23, 42, 0.7) !important;
    color: #64748b !important;
    font-size: 9px !important;
}
.leaflet-control-attribution a {
    color: #94a3b8 !important;
}
