/* FILE: assets/css/frontend.css */

.maphub-frontend {
    display: flex;
    gap: 20px;
    max-width: 100%;
    margin: 20px 0;
}

.maphub-map-container {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.maphub-sidebar-front {
    width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.maphub-controls {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.maphub-show-all-btn {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.maphub-show-all-btn:hover {
    background: #005177;
}

.maphub-show-all-btn:active {
    background: #003f5c;
}

.maphub-search {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.maphub-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.maphub-groups-list {
    flex: 1;
    overflow-y: auto;
}

.maphub-group-front {
    border-bottom: 1px solid #eee;
}

.maphub-group-header-front {
    padding: 12px 15px;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maphub-group-header-front:hover {
    background: #e8e8e8;
}

.maphub-group-toggle {
    font-size: 18px;
}

.maphub-locations-front {
    display: none;
}

.maphub-locations-front.active {
    display: block;
}

.maphub-location-front {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.maphub-location-front:hover {
    background: #f9f9f9;
}

.maphub-location-front:last-child {
    border-bottom: none;
}

.maphub-location-name {
    font-weight: 500;
    color: #333;
}

.maphub-location-desc {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.gm-style-iw {
    max-width: 300px;
}

.maphub-info-window h3 {
    margin: 0 0 10px 0;
}

.maphub-info-window img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 3px;
}

.maphub-info-window p {
    margin: 5px 0;
}

.maphub-info-window a {
    color: #0073aa;
    text-decoration: none;
}

.maphub-info-window a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .maphub-frontend {
        flex-direction: column;
    }
    
    .maphub-sidebar-front {
        width: 100%;
        order: 2;
    }
    
    .maphub-map-container {
        order: 1;
    }
    
    .maphub-groups-list {
        max-height: 300px;
    }
}