/* Map Info Window Styles */
.map-info-card {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 0;
    position: relative;
}

.map-info-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.map-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.map-info-card:hover .map-info-image img {
    transform: scale(1.05);
}

.map-info-content {
    padding: 20px;
}

.map-info-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.map-info-location {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.map-info-location i {
    font-size: 14px;
    color: #FF344F; /* Site primary color */
}

.map-info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.map-info-price-container {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.map-info-price {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 20px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.map-info-price span {
    font-weight: 400;
    font-size: 12px;
    color: #6B7280;
}

.map-info-btn {
    background: #FF344F; /* Site primary color */
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px; /* Match site radius */
    text-decoration: none;
    font-size: 0.95rem; /* Match site font size */
    font-weight: 600; /* Match site font weight */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 52, 79, 0.2); /* Match site shadow */
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-info-btn:hover {
    background: #d61c35; /* Site primary dark */
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(255, 52, 79, 0.3); /* Match site hover shadow */
}

/* Custom Price Marker */
.price-marker {
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-marker:hover {
    transform: scale(1.1);
    z-index: 10;
    background: #1a1a1a;
    color: #fff;
}

.price-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    transition: border-color 0.2s;
}

.price-marker:hover::after {
    border-color: #1a1a1a transparent transparent transparent;
}

/* Remove default InfoWindow padding/styles */
.gm-style .gm-style-iw {
    padding: 0 !important;
    overflow: visible !important;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    background: none !important;
    max-width: none !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    background: #fff;
    border-radius: 16px;
}

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

/* Close button styling */
.gm-style-iw .gm-ui-hover-effect {
    position: absolute !important;
    top: 24px !important; /* Moved further down */
    right: 12px !important; /* Moved to the right */
    background: rgba(0, 0, 0, 0.5) !important; /* Darker background for contrast */
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
    z-index: 1001 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
}

.gm-style-iw .gm-ui-hover-effect:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Hide default Google Maps X icon */
.gm-style-iw .gm-ui-hover-effect > span,
.gm-style-iw .gm-ui-hover-effect img,
.gm-style-iw .gm-ui-hover-effect svg {
    display: none !important;
}

/* Create custom white X */
.gm-style-iw .gm-ui-hover-effect::before,
.gm-style-iw .gm-ui-hover-effect::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    top: 50%;
    left: 50%;
    pointer-events: none;
}

.gm-style-iw .gm-ui-hover-effect::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gm-style-iw .gm-ui-hover-effect::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
