html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrollbars on the body within the iframe */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Basic font */
}

#mapView {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Custom Popup Styles for Embedded Map */
.embed-popup-content {
    padding: 10px;
    max-width: 260px; /* Adjust as needed */
}

.popup-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
    max-height: 150px; /* Limit image height in popup */
    object-fit: cover;
}

.popup-address {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.popup-actions {
    display: flex;
    margin-top: 8px;
}

.popup-actions button {
    flex: 1;
    font-size: 13px;
    padding: 8px 10px;
    background-color: #003366; /* Town of Ajax Primary Blue */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Space between icon and text */
    transition: background-color 0.2s ease;
}

.popup-actions button:hover {
    background-color: #1a4d80; /* Lighter shade for hover */
}

.popup-actions button i {
    margin-right: 0; /* Reset if previously set */
}


/* Loading Indicator Styles */
.loading-indicator {
    position: fixed; /* Changed from absolute to fixed to cover iframe */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top */
    transition: opacity 0.3s ease-out; /* Smooth fade out */
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none; /* Allow clicks through when hidden */
    /* display: none !important; -- Can be used if opacity transition is not desired */
}

.spinner {
    width: 40px; /* Slightly smaller spinner */
    height: 40px;
    border: 4px solid #1a4d80; /* Lighter Blue */
    border-top: 4px solid #003366; /* Primary Blue */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 16px;
    color: #333;
}