/* Services Marketplace Map Styles */

.sm-view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.sm-toggle-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #2c7be5;
    background: white;
    color: #2c7be5;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sm-toggle-btn:hover {
    background: #f0f5ff;
}

.sm-toggle-btn.active {
    background: #2c7be5;
    color: white;
}

.sm-map-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.sm-map-canvas {
    width: 100%;
    height: 500px;
    background: #f9fafb;
}

@media (max-width: 768px) {
    .sm-map-canvas {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .sm-map-canvas {
        height: 300px;
    }
    
    .sm-view-toggle {
        flex-direction: column;
    }
    
    .sm-toggle-btn {
        width: 100%;
    }
}

.sm-map-canvas-loading-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 1rem;
}

.sm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #2c7be5;
    border-radius: 50%;
    animation: sm-spin 1s linear infinite;
}

@keyframes sm-spin {
    to {
        transform: rotate(360deg);
    }
}

.sm-map-canvas-loading-div p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Map info window styles */
.sm-map-info-window {
    max-width: 250px;
    padding: 0;
}

.sm-map-info-window h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c7be5;
}

.sm-map-info-window p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #333;
}

.sm-map-info-window a {
    color: #2c7be5;
    text-decoration: none;
    font-weight: 600;
}

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

.sm-map-info-window img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

/* List view styles */
.sm-list-view {
    display: block;
}

.sm-list-view.hidden {
    display: none;
}

/* Marker cluster styles */
.sm-marker-cluster {
    background: #2c7be5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.sm-marker-cluster.sm-cluster-small {
    width: 40px;
    height: 40px;
}

.sm-marker-cluster.sm-cluster-medium {
    width: 50px;
    height: 50px;
}

.sm-marker-cluster.sm-cluster-large {
    width: 60px;
    height: 60px;
}

