/* ============================================
   Property Map Shortcode - Frontend Styles
   ============================================ */

/* Map Container */
.property-map-container {
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    position: relative;
}

/* Fix theme CSS conflicts with Google Maps */
.property-map-container img {
    max-width: none !important;
}

/* ============================================
   Info Window Styling
   ============================================ */

.property-map-info {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 4px;
    min-width: 260px;
    max-width: 320px;
}

.property-map-info .info-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    margin-bottom: 12px;
    background: #f0f0f0;
}

.property-map-info .info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-map-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.property-map-info h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.property-map-info h4 a:hover {
    color: #0066cc;
}

.property-map-info .info-address {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.property-map-info .info-excerpt {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.property-map-info .info-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.property-map-info .info-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   Google Maps UI Overrides
   ============================================ */

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
    padding: 0 !important;
    overflow: hidden !important;
}

.gm-style .gm-style-iw-t::after {
    background: #fff !important;
}

.gm-style button.gm-ui-hover-effect {
    top: 4px !important;
    right: 4px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    opacity: 1 !important;
}

.gm-style button.gm-ui-hover-effect img {
    width: 16px !important;
    height: 16px !important;
    margin: 6px !important;
}

/* ============================================
   Empty / Error States
   ============================================ */

.property-map-empty {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .property-map-container {
        min-height: 300px;
    }

    .property-map-info {
        min-width: 200px;
        max-width: 260px;
    }

    .property-map-info .info-image {
        height: 100px;
    }
}
