/* Yandex Map Styles */
.map-wrapper {
    position: relative;
    margin: 3rem 0;
    width: 100%;
}

.yandex-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 16px;
}

.map-loading i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #2c5530;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.map-control-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #2c5530;
    border-radius: 8px;
    color: #2c5530;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-family: inherit;
}

.map-control-btn:hover {
    background: #2c5530;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-control-btn.active {
    background: #2c5530;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .yandex-map {
        height: 350px;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: calc(100% - 20px);
    }
    
    .map-control-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .yandex-map {
        height: 300px;
    }
    
    .map-controls {
        position: static;
        margin-top: 1rem;
        justify-content: center;
    }
}