﻿
.map-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 700px;
}

#map {
    width: 100%;
    height: 700px;
}

.Officsidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1rem;
    max-height: 700px;
    overflow-y: auto;
}

    .Officsidebar h3 {
        color: #1e3c72;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        border-bottom: 3px solid #2a5298;
        padding-bottom: 0.5rem;
    }

.office-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.office-item {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .office-item:hover {
        background: #e3f2fd;
        border-color: #2a5298;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(42, 82, 152, 0.2);
    }

    .office-item.active {
        background: #2a5298;
        color: white;
        border-color: #1e3c72;
    }

.office-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.office-address {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.office-phone {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.8rem;
}

.office-item.active .office-phone {
    color: #e3f2fd;
}

.maps-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

    .maps-button:hover {
        background: #3367d6;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    }

.office-item.active .maps-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

    .office-item.active .maps-button:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f6f9fb 0%, #f6f9fb 50%);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

    .stat-card::before {
        border-radius: 10px;
    }

    .stat-card::after {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }

    .stat-card:hover {
        box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-5px);
    }



.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.stat-card .stat-number:hover {
    color: #1e3c72;
}

.stat-label {
    color: #1D1D1B;
    font-weight: 500;
    font-size: 22px;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-input-sede {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .search-input-sede:focus {
        outline: none;
        border-color: #2a5298;
        box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    }

.popup-content {
    font-size: 14px;
    line-height: 1.4;
}

.popup-title {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 16px;
}

.popup-address {
    margin-bottom: 6px;
}

.popup-phone {
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
}

.popup-maps-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-weight: 500;
}

    .popup-maps-button:hover {
        background: #3367d6;
        color: white;
    }

.maps-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .Officsidebar {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.leaflet-popup-content {
    margin: 8px 12px;
}
