/* 
   gym-map.css - Premium Map styling for GymLink
   Enhanced version with sleek markers and callout styles
*/

/* ===== MAP SECTION STYLES ===== */
.map-section {
    position: relative;
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-bg);
    overflow: hidden;
}

.map-section__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.map-section__gradient {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(62, 207, 224, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.8;
    z-index: 0;
}

.map-section__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(255,255,255,0.03)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Map Container - Enhanced for visibility and performance */
.map-container {
    position: relative;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed hover transformation that was causing glitches */
}

/* Enhanced Map Controls */
.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.map-filters {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.map-filter {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.map-filter::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, rgba(62, 207, 224, 0.2), rgba(112, 40, 228, 0.2));
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.map-filter:hover {
    color: var(--color-text);
    transform: translateY(-2px);
    border-color: rgba(62, 207, 224, 0.3);
}

.map-filter:hover::before {
    transform: translateX(-30%) translateY(-30%) rotate(45deg);
}

.map-filter.active {
    background: linear-gradient(90deg, rgba(62, 207, 224, 0.15), rgba(112, 40, 228, 0.15));
    border-color: rgba(62, 207, 224, 0.5);
    color: var(--color-text);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-filter.active::before {
    transform: translateX(0) translateY(0) rotate(45deg);
}

.map-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.map-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.map-action::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 207, 224, 0.2), rgba(112, 40, 228, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-action:hover {
    color: var(--color-text);
    transform: translateY(-2px);
    border-color: rgba(62, 207, 224, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-action:hover::after {
    opacity: 1;
}

.map-action i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Map Loader - Enhanced with branded animation */
.map-container__loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.map-container__loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    position: relative;
    margin-bottom: 16px;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s linear infinite;
}

.loader-spinner::before {
    background: rgba(62, 207, 224, 0.7);
    animation-delay: -0.5s;
}

.loader-spinner::after {
    background: rgba(112, 40, 228, 0.7);
    animation-delay: 0s;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.loader-text {
    color: var(--color-text);
    font-size: var(--font-size-sm);
    margin-top: 8px;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}

/* Map error display */
.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.map-error i {
    font-size: 3rem;
    color: #f87171;
    margin-bottom: 1rem;
}

.map-error h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.retry-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(62, 207, 224, 0.2);
    border: 1px solid rgba(62, 207, 224, 0.5);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: rgba(62, 207, 224, 0.3);
    transform: translateY(-2px);
}

/* Custom Google Maps Controls */
.custom-map-control {
    margin: 10px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.custom-map-button {
    background: rgba(28, 28, 36, 0.9);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: var(--font-size-sm, 14px);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-map-button:hover {
    background: rgba(62, 207, 224, 0.1);
    border-color: rgba(62, 207, 224, 0.3);
}

.custom-map-button i {
    margin-right: 8px;
}

/* Enhanced Google Maps Marker Styling */
.gym-marker {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gym-marker:hover {
    transform: scale(1.1);
}

/* Custom marker label */
.custom-marker-label {
    position: absolute;
    background: rgba(28, 28, 36, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    pointer-events: none;
}

.custom-marker-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(28, 28, 36, 0.95);
}

.custom-marker-label.popular {
    border-top: 3px solid #f5a623;
}

.custom-marker-label.new {
    border-top: 3px solid #7028e4;
}

/* Marker hover effects */
.gm-style-iw + div {
    display: none !important; /* Hide default close button */
}

/* Marker pulse animation for better visibility */
@keyframes markerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Distance label for directions */
.distance-label {
    padding: 4px 8px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: bold !important;
}

/* Custom distance label */
.distance-label {
    background: rgba(28, 28, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gym Info Panel - Standalone info panel separate from markers */
.gym-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 350px;
    max-width: calc(100% - 40px);
    background: rgba(28, 28, 36, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gym-info-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.info-panel__header {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.info-panel__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.info-panel__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-text), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.info-panel__address {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.info-panel__address i {
    color: var(--color-primary);
}

.info-panel__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-panel__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    transform: rotate(90deg);
}

.info-panel__body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.info-panel__image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-panel__section {
    margin-bottom: 16px;
}

.info-panel__section-title {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.info-panel__tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-panel__tag.popular {
    background: rgba(245, 166, 35, 0.15);
    color: #f5a623;
}

.info-panel__tag.new {
    background: rgba(112, 40, 228, 0.15);
    color: #9446ff;
}

.info-panel__tag.hour24 {
    background: rgba(62, 207, 224, 0.15);
    color: var(--color-primary);
}

.info-panel__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.info-panel__amenity {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.info-panel__amenity:hover {
    background: rgba(62, 207, 224, 0.1);
    color: var(--color-text);
}

.info-panel__amenity i {
    color: var(--color-primary);
    font-size: 12px;
}

.info-panel__stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.info-panel__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-panel__stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.info-panel__stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.info-panel__actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.info-panel__btn {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.info-panel__btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(62, 207, 224, 0.3);
}

.info-panel__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(62, 207, 224, 0.4);
}

.info-panel__btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-panel__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Custom styling for Google InfoWindow */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    background-color: rgba(28, 28, 36, 0.95) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    max-width: 300px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-width: 300px !important;
}

.gm-style .gm-style-iw-t::after {
    display: none !important;
}

.gm-style .gm-ui-hover-effect {
    top: 0 !important;
    right: 0 !important;
    background: rgba(28, 28, 36, 0.8) !important;
    border-radius: 0 12px 0 12px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gm-style .gm-ui-hover-effect img {
    filter: invert(1) !important;
    opacity: 0.7 !important;
}

/* Custom InfoWindow Content */
.custom-info-window {
    font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: var(--color-text, #ffffff);
}

.custom-info-header {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary, #3ecfe0), var(--color-secondary, #7028e4));
}

.custom-info-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.custom-info-address {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-info-address i {
    color: var(--color-primary, #3ecfe0);
    font-size: 10px;
}

.custom-info-content {
    padding: 15px;
}

.custom-info-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    font-size: 14px;
}

.rating-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.custom-info-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.custom-info-amenity {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.custom-info-amenity i {
    color: var(--color-primary, #3ecfe0);
    font-size: 9px;
}

.custom-info-amenity.more {
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.custom-info-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.custom-info-button {
    flex: 1;
    background: linear-gradient(135deg, var(--color-primary, #3ecfe0), var(--color-secondary, #7028e4));
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.custom-info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-info-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-info-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Map Overlay Effect */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.map-overlay__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(10, 10, 12, 0.7) 0%, 
        rgba(10, 10, 12, 0) 15%, 
        rgba(10, 10, 12, 0) 85%, 
        rgba(10, 10, 12, 0.7) 100%
    );
}

/* Map CTA Section */
.map-section-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(62, 207, 224, 0.1), rgba(112, 40, 228, 0.1));
    border: 1px solid rgba(62, 207, 224, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    margin-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.map-section-cta::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(62, 207, 224, 0.2), transparent 70%);
    top: -75px;
    right: -75px;
    border-radius: 50%;
    filter: blur(30px);
}

.map-section-text {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Responsive styles */
@media (max-width: 992px) {
    .map-container {
        height: 450px;
    }
    
    .map-section-cta {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        padding: var(--spacing-lg) var(--spacing-xl);
    }
    
    .map-section-text {
        margin-bottom: var(--spacing-md);
    }
    
    .gym-info-panel {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .map-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
        flex-wrap: nowrap;
    }
    
    .map-actions {
        align-self: flex-end;
    }
    
    .gym-info-panel {
        left: var(--spacing-md);
        right: var(--spacing-md);
        width: calc(100% - (var(--spacing-md) * 2));
        max-width: 350px;
    }
    
    .info-panel__stats {
        flex-wrap: wrap;
    }
    
    .info-panel__stat {
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 350px;
    }
    
    .info-panel__actions {
        flex-direction: column;
    }
    
    .gym-info-panel {
        width: calc(100% - 32px);
        max-width: none;
        left: 16px;
        right: 16px;
    }
    
    .map-filter {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 12px;
    }
    
    .custom-info-window {
        max-width: 250px !important;
    }
}





.custom-marker-label {
    position: absolute;
    background: rgba(28, 28, 36, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    pointer-events: none;
    min-width: 120px;
    max-width: 200px;
    border-top: 3px solid #0077cc; /* Consistent brand color top border */
}

.custom-marker-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(28, 28, 36, 0.95);
}

.marker-label-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.marker-name {
    font-weight: 700;
    margin-bottom: 2px;
}

.marker-amenities {
    font-size: 10px;
    opacity: 0.7;
}

.gm-style img[src*="data:image/svg+xml"] {
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.gm-style img[src*="data:image/svg+xml"]:hover {
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.5));
    transform: translateY(-2px) scale(1.05);
}


/* Updated professional styling for map markers */

/* Custom marker label styling */
.custom-marker-label {
    position: absolute;
    background: rgba(45, 43, 85, 0.95); /* Dark purple background to match marker */
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px; /* Slightly larger font */
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.custom-marker-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(45, 43, 85, 0.95);
}

.marker-label-content {
    display: flex;
    flex-direction: column;
}

.marker-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.marker-amenities {
    font-size: 11px;
    color: #7028e4; /* Purple accent to match marker */
}

/* Hover effects for map markers */
.gm-style img[src*="data:image/svg"] {
    transition: transform 0.3s ease;
}

.gm-style img[src*="data:image/svg"]:hover {
    transform: translateY(-4px);
}

/* Selected marker state */
.selected-marker {
    z-index: 100 !important; /* Ensure selected marker appears on top */
}

/* Distance label styling */
.distance-label {
    background: rgba(45, 43, 85, 0.95) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
}