/* Map Page Header */
    .map-hero {
        position: relative;
        height: 300px;
        background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
        color: white;
        display: flex;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }
    
    .map-hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 0 20px;
    }
    
    .map-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .map-hero p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto 25px;
        opacity: 0.9;
    }
    
    .map-hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
        background-size: cover;
        background-position: center;
        opacity: 0.15;
    }
    
    /* Main Map Content */
    .map-container {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 200px);
        position: relative;
    }
    
    .map-sidebar {
        width: 100%;
        background-color: white;
        border-bottom: 1px solid var(--light-gray);
        overflow-y: auto;
        padding: 20px 15px;
        box-shadow: var(--shadow-sm);
        z-index: 10;
        max-height: 40vh;
        transition: max-height 0.3s ease;
    }
    
    .map-view {
        flex: 1;
        position: relative;
        height: 60vh;
        min-height: 300px;
    }
    
    #googleMap {
        width: 100%;
        height: 100%;
        background-color: var(--light-gray);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray);
        font-weight: 500;
    }
    
    .sidebar-section {
        margin-bottom: 20px;
    }
    
    .sidebar-section h3 {
        color: var(--primary);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--secondary);
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .company-filter {
        margin-bottom: 12px;
    }
    
    .company-filter label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        color: var(--dark);
        font-size: 0.9rem;
    }
    
    .company-filter select, .company-filter input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--light-gray);
        border-radius: var(--rounded-sm);
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .company-filter select:focus, .company-filter input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    .company-list {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    /* Custom scrollbar */
    .company-list::-webkit-scrollbar {
        width: 6px;
    }
    
    .company-list::-webkit-scrollbar-track {
        background: var(--light-gray);
        border-radius: 10px;
    }
    
    .company-list::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
    }
    
    .company-item {
        padding: 12px;
        margin-bottom: 8px;
        background-color: white;
        border-radius: var(--rounded-sm);
        cursor: pointer;
        transition: all 0.3s ease;
        border-left: 3px solid var(--primary);
        box-shadow: var(--shadow-sm);
    }
    
    .company-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-left-color: var(--secondary);
    }
    
    .company-item.active {
        background-color: var(--primary);
        color: white;
        border-left-color: var(--secondary);
    }
    
    .company-item h4 {
        margin-bottom: 5px;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .company-meta {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: var(--gray);
        margin-bottom: 6px;
    }
    
    .company-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 8px;
    }
    
    .company-category {
        background-color: var(--light-gray);
        color: var(--dark);
        padding: 3px 8px;
        border-radius: var(--rounded-sm);
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    .company-item.active .company-category {
        background-color: rgba(255,255,255,0.2);
        color: white;
    }
    
    .map-controls {
        position: absolute;
        top: 60px;
        right: 10px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .map-control {
        background-color: white;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--rounded-sm);
        box-shadow: var(--shadow-md);
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--dark);
        font-size: 0.9rem;
    }
    
    .map-control:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-2px);
    }
    
    .company-details-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        padding: 25px;
        box-shadow: var(--shadow-lg);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: 50vh;
        overflow-y: auto;
        border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
    }
    
    .company-details-panel.active {
        transform: translateY(0);
    }
    
    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .panel-header h3 {
        color: var(--primary);
        font-size: 1.3rem;
    }
    
    .close-panel {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--gray);
        transition: color 0.3s ease;
    }
    
    .close-panel:hover {
        color: var(--primary);
    }
    
    .company-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        background-color: var(--light);
        padding: 15px;
        border-radius: var(--rounded-sm);
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }
    
    .stat-card h4 {
        color: var(--gray);
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .stat-card p {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary);
    }
    
    .company-services {
        margin-top: 25px;
    }
    
    .company-services h4 {
        color: var(--primary);
        margin-bottom: 15px;
        font-size: 1.1rem;
        padding-bottom: 5px;
        border-bottom: 2px solid var(--secondary);
    }
    
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .service-card {
        background-color: var(--light);
        padding: 15px;
        border-radius: var(--rounded-sm);
        transition: all 0.3s ease;
        border-left: 3px solid var(--primary);
    }
    
    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
        border-left-color: var(--secondary);
    }
    
    .service-card h4 {
        margin-bottom: 5px;
        color: var(--dark);
        font-size: 0.95rem;
    }
    
    .service-card p {
        color: var(--gray);
        font-size: 0.8rem;
    }
    
    /* Custom Marker Styles */
    .map-marker {
        width: 30px;
        height: 30px;
        border-radius: 50% 50% 50% 0;
        background: var(--primary);
        position: absolute;
        transform: rotate(-45deg);
        left: 50%;
        top: 50%;
        margin: -20px 0 0 -15px;
        animation-name: bounce;
        animation-fill-mode: both;
        animation-duration: 1s;
    }
    
    .map-marker::after {
        content: '';
        width: 14px;
        height: 14px;
        margin: 8px 0 0 8px;
        background: white;
        position: absolute;
        border-radius: 50%;
    }
    
    @keyframes bounce {
        0% { opacity: 0; transform: translateY(-2000px) rotate(-45deg); }
        60% { opacity: 1; transform: translateY(30px) rotate(-45deg); }
        80% { transform: translateY(-10px) rotate(-45deg); }
        100% { transform: translateY(0) rotate(-45deg); }
    }
    
    /* Info Window Styles */
    .gm-style .gm-style-iw-c {
        padding: 15px !important;
        border-radius: var(--rounded-md) !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    .gm-style .gm-style-iw-d {
        overflow: hidden !important;
    }
    
    .info-window-content {
        font-family: 'Poppins', sans-serif;
    }
    
    .info-window-content h3 {
        color: var(--primary);
        margin-bottom: 10px;
        font-size: 1.1rem;
    }
    
    .info-window-content p {
        color: var(--dark);
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .info-window-button {
        background-color: var(--primary);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: var(--rounded-sm);
        cursor: pointer;
        font-size: 0.8rem;
        margin-top: 10px;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .info-window-button:hover {
        background-color: var(--primary-light);
        transform: translateY(-2px);
    }

    /* Mobile Map Controls */
    .mobile-map-controls {
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .mobile-map-control {
        width: 50px;
        height: 50px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        font-size: 1.2rem;
        cursor: pointer;
    }
    
    /* Sidebar Toggle */
    .sidebar-toggle {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 1010;
        background: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        cursor: pointer;
    }
    
    /* Collapsed state */
    .sidebar-collapsed .map-sidebar {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
    }
    
    .sidebar-collapsed .map-view {
        height: calc(100vh - 200px);
    }
    
    /* Loading Spinner */
    .loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-left-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Tablet Styles */
    @media (min-width: 768px) {
        .map-hero {
            height: 250px;
        }
        
        .map-hero h1 {
            font-size: 2rem;
        }
        
        .map-container {
            min-height: calc(100vh - 250px);
            flex-direction: row;
        }
        
        .map-sidebar {
            width: 350px;
            max-height: none;
            height: 100%;
            border-right: 1px solid var(--light-gray);
            border-bottom: none;
        }
        
        .map-view {
            height: auto;
        }
        
        .sidebar-toggle {
            display: none;
        }
        
        .mobile-map-controls {
            display: none;
        }
    }
    
    /* Desktop Styles */
    @media (min-width: 1024px) {
        .map-hero {
            height: 300px;
        }
        
        .map-hero h1 {
            font-size: 2.5rem;
        }
        
        .map-hero p {
            font-size: 1.2rem;
        }
        
        .map-container {
            min-height: calc(100vh - 300px);
        }
    }

    @media (max-width: 480px) {
        .map-view {
            flex: none;
        }
    }