/* Concierge Golf Scotland Map – front-end styles */

.cgm-map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Loading state shown while geocoding names */
.cgm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: inherit;
    font-size: 15px;
    color: #4a7c59;
    background: #f5f8f5;
    letter-spacing: 0.03em;
}

.cgm-loading::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #4a7c59;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: cgm-spin 0.8s linear infinite;
}

@keyframes cgm-spin {
    to { transform: rotate(360deg); }
}

/* Info window tooltip */
.cgm-info-window {
    font-family: inherit;
    font-size: 14px;
    font-style: italic;
    color: #1a1a1a;
    padding: 4px 8px;
    background: #2d4f3a;
    color: #ffffff;
    border-radius: 4px;
    white-space: nowrap;
}

/* Google Maps default info window chrome removal */
.gm-style .gm-style-iw-c {
    background-color: #2d4f3a !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
}

.gm-style .gm-style-iw-t::after {
    background: #2d4f3a !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-c .gm-ui-hover-effect {
    display: none !important;
}

/* Re-show close button in a tidy way */
.gm-style .gm-style-iw-ch {
    display: none;
}
