/* =========================================
   V6.0 SOCIAL MAP & LHE ECONOMY
   ========================================= */

/* Fix Leaflet z-index issues overflowing the app's glass UI */
.leaflet-container {
    font-family: 'Inter', sans-serif !important;
    background: #0f172a !important;
    /* matches dark mode */
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
    z-index: 400 !important;
}

.leaflet-pane {
    z-index: 1 !important;
}

.leaflet-top.leaflet-left {
    display: none;
    /* Hide default zoom controls for cleaner UI */
}

.leaflet-popup-content-wrapper {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Make sure the Map tab doesn't jump sizes */
#map-container {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header Balance Widget Glow applied globally */
#lhe-balance-widget {
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
    letter-spacing: 0.5px;
    z-index: 2000;
}

/* + Место FAB */
.map-add-fab {
    position: fixed;
    right: 16px;
    bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    transition: transform 0.15s;
}

.map-add-fab:active {
    transform: scale(0.9);
}

[data-theme="light"] .map-add-fab {
    color: #ffffff;
    background: #007AFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.6);
}