   #map {
            height: 500px;
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        /* Custom layout adjustments to match the modern Autocomplete Web Component */
        .autocomplete-container {
            max-width: 700px;
            margin: 0 auto 0.5rem auto;
        }
        gmp-place-autocomplete {
            width: 100%;
        }
        gmp-place-autocomplete input {
            border-radius: 8px !important;
            padding: 0.75rem 1rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        #result-card-container {
            max-width: 700px;
            margin: 0 auto;
        }
        
        .map-wrapper {
        position: relative;
    }
    
    .map-legend {
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    
        display: flex;
        gap: 10px;
         flex-wrap: nowrap;
    
        background: rgba(255,255,255,0.95);
        padding: 8px 12px;
        border-radius: 999px;
        box-shadow: 0 2px 10px rgba(0,0,0,.15);
    }
    
    .legend-badge {
        display: flex;
        align-items: center;
        gap: 6px;
    
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .legend-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }
    
    .inner {
        background: #F8D7DA;
        color: #DC3545;
    }
    
    .inner .legend-dot {
        background: #DC3545;
    }
    
    .outer {
        background: #FFF3CD;
        color: #A06000;
    }
    
    .outer .legend-dot {
        background: #FF9F0A;
    }
    
    .fringe {
        background: #CCE5FF;
        color: #0D6EFD;
    }
    
    .fringe .legend-dot {
        background: #0D6EFD;
    }
    
    @media (max-width: 768px) {
    .map-legend {
        top: auto;
        bottom: 12px;
        left: 12px;
        transform: none;
        max-width: calc(100% - 24px);
    }

    .legend-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
}