/* Main container styles */
.distributor-map-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 600px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Menu styles */
.distributor-map-menu {
    width: 300px;
    background: #f5f5f5;
    overflow-y: auto;
    border-right: 1px solid #e1e1e1;
}

/* Map styles */
.distributor-map {
    flex: 1;
    height: 100%;
}

/* Category styles */
.distributor-category {
    border-bottom: 1px solid #e1e1e1;
}

.distributor-category-title {
    padding: 12px 15px;
    font-weight: bold;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

.distributor-category-title:after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 12px;
}

.distributor-category.active .distributor-category-title:after {
    content: '-';
}

.distributor-category-items {
    display: none;
}

.distributor-category.active .distributor-category-items {
    display: block;
}

/* Distributor item styles */
.distributor-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
}

.distributor-item:hover {
    background: #f0f0f0;
}

.distributor-item.active {
    background: #e6f2ff;
}

.distributor-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.distributor-details {
    padding-top: 8px;
}

.distributor-details p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
}

.distributor-description {
    margin: 10px 0;
    font-size: 13px;
}

/* Action buttons */
.distributor-actions {
    display: flex;
    margin-top: 12px;
    gap: 10px;
}

.distributor-whatsapp-btn,
.distributor-maps-btn {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s;
}

.distributor-whatsapp-btn {
    background: #25D366;
    color: white;
}

.distributor-maps-btn {
    background: #4285F4;
    color: white;
}

.distributor-whatsapp-btn:hover {
    background: #1da851;
}

.distributor-maps-btn:hover {
    background: #2b6edb;
}

/* Responsive design for mobile */
@media screen and (max-width: 768px) {
    .distributor-map-container {
        flex-direction: column;
        height: auto;
    }

    .distributor-map-menu {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }

    .distributor-map {
        flex: 1; /* Use flex: 1 to allow the map to take up remaining space */
        min-height: 400px; 
    }
}