/* Контейнер на картата */
.yantra-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Филтри */
.yantra-map-filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.filter-btn.active {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

/* Легенда */
.yantra-map-legend {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.yantra-map-legend h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 30px;
    height: 4px;
    margin-right: 10px;
    border-radius: 2px;
}

/* Самата карта */
#yantra-google-map {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Списък на участъците */
.yantra-layers-list {
    margin-top: 30px;
}

.yantra-layers-list h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

#layers-list-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.layer-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.layer-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.layer-card .layer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.layer-card .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.status-badge.predstoyasht {
    background: #fff3cd;
    color: #856404;
}

.status-badge.v-protses {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.zavarchen {
    background: #d1e7dd;
    color: #0f5132;
}

/* Responsive */
@media (max-width: 768px) {
    .yantra-map-filters {
        flex-direction: column;
    }
    
    #layers-list-content {
        grid-template-columns: 1fr;
    }
    
    #yantra-google-map {
        height: 400px !important;
    }
}

/* Info Window стил */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    max-width: 300px !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.map-info-window {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.map-info-window h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.map-info-window p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.map-info-window strong {
    color: #333;
}