.map-info-window-custom {
    font-family: 'Proxima Nova Rg', sans-serif;
    max-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #C0F3A8;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #C0F3A8;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.map-info-header h3 {
    font-size: 16px;
    color: #0E5927;
    margin: 0;
}

.map-info-icon {
    width: 30px;
    height: 30px;
}

.map-info-body p {
    font-size: 13px;
    color: #4B7A5B;
    margin: 3px 0;
}

.map-info-footer {
    text-align: right;
    margin-top: 8px;
}

.map-info-btn {
    font-size: 12px;
    font-weight: 700;
    color: white;
    background-image: linear-gradient(to right, #0E5927, #1EBF54);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.map-info-btn:hover {
    background-image: linear-gradient(to right, rgba(14, 89, 39, .8), rgba(30, 191, 84, .8));
}
/* Map container should fill its parent width and keep aspect ratio */
.map-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
}
.custom-round{
    border-radius: 1.827rem;
}
.custom-round-top{
    border-radius: 1.827rem 1.827rem 0 0;
}
.custom-round-bottom{
    border-radius: 0 0 1.827rem 1.827rem;
}
/* Make map fully responsive */
.map {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust based on design; viewport height scales better */
    min-height: 300px; /* Ensures visibility on small screens */
    border-radius: 12px;
    overflow: hidden;
    touch-action: auto;
}

/* Centered overlay while loading */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    pointer-events: none; /* Prevent blocking interactions after map loads */
}

/* Spinner styles */
.spinner {
    border: 4px solid #e3e3e3;
    border-top: 4px solid #0E592B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #map {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    #map {
        height: 40vh;
    }
}
