/* home-map.css - карта главной */

/* ==================== 7. КАРТА ==================== */
.map-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-container:hover {
    border-color: #22c55e;
    box-shadow: var(--shadow-large);
}

.map-wrapper {
    flex: 1;
    position: relative;
    background: var(--white);
    min-height: 500px;
    transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-leaflet-container {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.map-click-mode {
    cursor: crosshair;
}

/* СТИЛИ ДЛЯ ЗАГРУЗКИ КАРТЫ */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.map-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed #dee2e6;
    padding: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.leaflet-control-attribution {
    font-size: 11px;
    line-height: 1.35;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.leaflet-control-attribution a {
    color: #334155;
}
