.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.map-loading-state {
    height: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.map-loading-state .rns-spinner {
    margin-bottom: 1rem;
}

.map-loading-state p {
    color: #666;
    margin: 0;
}

/* Map Marker Styles */
.price-marker {
    position: relative;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-weight: 400;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, filter;
}

/* Simple bounce animation for tile-to-marker hover mapping */
@keyframes markerBounce {
    0% {
        transform: translateY(0px);
    }
    20% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Apply bounce when tile hover triggers marker hover */
.price-marker.bounce {
    animation: markerBounce 1.5s ease-in-out infinite;
}

/* Add a pseudo-element for a larger hover detection area */
.price-marker::after {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    bottom: -12px;
    left: -12px;
    border-radius: 24px;
    pointer-events: auto;
}

.price-marker:before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.0),
        rgba(255, 255, 255, 0.3)
    );
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-marker.hover,
.price-marker:hover {
    padding: 6px 12px;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.15);
    filter: brightness(1.25) saturate(1.1);
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    background: var(--primary-color);
}

.price-marker iconify-icon {
    font-size: 18px;
    color: white;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Change icon color on hover */
.price-marker.hover iconify-icon,
.price-marker:hover iconify-icon {
    color: white;
}

.price-marker.zero-rate {
    background-color: #757575;
}


.price-marker.property-marker {
    background-color: var(--primary-color);
    min-width: 44px;
    height: 44px;
    padding: 8px 12px;
}

.price-marker.property-marker .marker-content {
    width: auto;
    height: 28px;
}

.price-marker.property-marker iconify-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.price-marker.property-marker:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.1);
} 

.marker-triangle {
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 12px solid var(--primary-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marker-triangle:before {
    content: '';
    position: absolute;
    top: -13px;
    left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 13px solid rgba(255, 255, 255, 0.8);
    z-index: -1;
}

.price-marker.zero-rate .marker-triangle {
    border-top-color: #757575;
}

.marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.price-marker.hover .marker-content,
.price-marker:hover .marker-content {
    width: auto;
}

/* Update triangle color on hover to match the darker theme */
.price-marker.hover .marker-triangle,
.price-marker:hover .marker-triangle {
    border-top-color: #333333;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
}

/* Apply subtle filter to triangle on hover */
.price-marker.hover .marker-triangle,
.price-marker:hover .marker-triangle {
    filter: brightness(1.15) saturate(1.1) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
}

.marker-content span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-style-iw-tc {
    display: none;
}

.gm-style-iw-chr {
    display: none;
}


/* Map Info Window Styles */
.map-info-window {
    max-width: 320px;
    padding: 30px 16px 12px;
    border-radius: 12px;
    background: white;
}


.map-info-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
}

.map-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.map-info-image .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f5f5f5, #eeeeee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-size: 14px;
}

.map-info-content {
    padding: 0;
}

.map-info-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.map-info-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: #666;
    justify-content: space-between;
}

.map-info-details-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.map-info-details iconify-icon {
    font-size: 18px;
    color: var(--primary-color);
}

.map-info-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.map-info-link:hover .map-info-button {
    background-color: var(--primary-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Places Bar Styles */
#places-bar button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(33, 150, 243, 0.2);
    background: white;
    color: #2196F3;
}

#places-bar button:hover {
    background: rgba(33, 150, 243, 0.05);
}

#places-bar button.active {
    background-color: #2196F3;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

#places-bar button.active iconify-icon {
    color: white;
}

/* Ensure tile hover animations start immediately */
.property-card:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease-out;
    transition-delay: 0s; /* No delay for tiles */
}



