/**
 * Google Maps Provider Styles
 * Reuse most styles from club-map.css
 * 
 * @package JP_Google_Sheet_API
 * @subpackage Clubs_Map
 */

/* Google Map Container */
.jp-google-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* InfoWindow custom styling */
.jp-gmap-info {
    font-family: 'Roboto', Arial, sans-serif;
}

.jp-gmap-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.jp-gmap-info p {
    margin: 5px 0;
    color: #666;
}

/* Search results styling (reuse from club-map.css) */
.jp-map-search-results {
    position: absolute;
    top: 60px;
    left: 10px;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-item .result-info h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.search-result-item .result-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Google Maps Marker Icons - Bỏ border-radius */
img[src*="club-logos-cache"],
img[src*="avatar/club-gallery"],
img[src^="data:image/svg+xml"] {
    border-radius: 0 !important; /* Bỏ border-radius */
    object-fit: cover !important;
}

/* Loading state */
.jp-map-control-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

