/* Property detail — Location & Nearby map section */

.property-map-section {
    margin-top: 32px;
}

.property-map-section h3 {
    margin-bottom: 6px;
}

.property-map-intro {
    margin: 0 0 16px;
    color: #5c6773;
    font-size: 0.95rem;
}

.property-map-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.08);
    border: 1px solid #e5e9ef;
    background: #f5f7fa;
}

.property-map {
    width: 100%;
    height: 420px;
    background: #f5f7fa;
}

.property-map-loading,
.property-map-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #5c6773;
    font-size: 0.95rem;
    background: rgba(245, 247, 250, 0.92);
    pointer-events: none;
}

.property-map-error {
    background: rgba(255, 247, 247, 0.95);
    color: #c0392b;
}

.property-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
    padding: 10px 14px;
    background: #fafbfd;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}

.nearby-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #43505f;
    white-space: nowrap;
}

.nearby-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(16, 24, 40, 0.12);
}

/* Stats grid */
.nearby-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.nearby-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #5c6773;
    font-style: italic;
}

.nearby-group {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nearby-group:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}

.nearby-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef1f6;
    color: var(--cat-color, #333);
}

.nearby-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cat-color, #333) 14%, #fff);
    color: var(--cat-color, #333);
}

.nearby-group-label {
    font-weight: 600;
    color: #263140;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.nearby-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nearby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #3a4553;
    border-bottom: 1px dashed #eef1f6;
}

.nearby-item:last-child {
    border-bottom: none;
}

.nearby-item-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-item-distance {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #1a2433;
    background: #f3f6fb;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.property-map-hint {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #8593a4;
    font-style: italic;
}

/* InfoWindow content */
.ehl-poi-info {
    font-family: inherit;
    min-width: 180px;
    padding: 2px 4px 6px;
}

.ehl-poi-info-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ehl-poi-info-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2433;
    line-height: 1.25;
    margin-bottom: 4px;
}

.ehl-poi-info-sub {
    font-size: 0.82rem;
    color: #5c6773;
    margin-bottom: 6px;
}

.ehl-poi-info-dist {
    font-size: 0.82rem;
    color: #333;
    font-weight: 600;
}

.ehl-poi-info-rating {
    font-size: 0.78rem;
    color: #8593a4;
    margin-top: 3px;
}

.ehl-poi-info--prop .ehl-poi-info-title {
    color: #b9893c;
}

/* Responsive */
@media (max-width: 720px) {
    .property-map {
        height: 320px;
    }

    .nearby-stats {
        grid-template-columns: 1fr;
    }

    .property-map-legend {
        gap: 8px 12px;
        padding: 8px 12px;
    }

    .nearby-legend-item {
        font-size: 0.78rem;
    }
}
