/*
 * map-styles.css
 *
 * This file contains custom CSS for the Google Map container
 * used by Your Google Map Plugin.
 */

/* Apply basic styling to the map container */
.your-map-plugin-map-container {
    /* Ensure the map container has a defined height.
       The height is also set inline by the shortcode attributes,
       but this provides a fallback and base styling. */
    min-height: 300px; /* Minimum height for better display */
    background-color: #e0e0e0; /* Light gray background while map loads */
    border: 1px solid #ccc; /* Subtle border */
    overflow: hidden; /* Ensures rounded corners are applied correctly */

    /* Tailwind-like rounded corners */
    border-radius: 0.5rem; /* Equivalent to Tailwind's rounded-lg */

    /* Optional: Add a subtle shadow for better visual separation */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Tailwind's shadow-md */

    /* Ensure the map is responsive within its container */
    max-width: 100%;
    height: auto; /* Allow height to adjust if width changes */
    display: block; /* Ensures it takes up full width available */
}

/* Style for the error message shown when API key is missing or invalid coordinates */
.your-map-plugin-error-message {
    font-family: 'Inter', sans-serif; /* Use Inter font if available */
    font-size: 0.9rem;
    line-height: 1.5;
    color: #c81e1e; /* Dark red text */
    background-color: #ffe0e0; /* Light red background */
    border: 1px solid #f09898; /* Red border */
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem; /* Rounded corners */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensure it's visible even if map height is small */
}

.your-map-plugin-error-message strong {
    font-weight: 700; /* Bold text */
    margin-bottom: 0.5rem;
    display: block;
}

.your-map-plugin-error-message a {
    color: #0073aa; /* WordPress default link color */
    text-decoration: underline;
}

.your-map-plugin-error-message a:hover {
    color: #005177;
}

/* Basic responsive adjustments for smaller screens if needed */
@media (max-width: 768px) {
    .your-map-plugin-map-container {
        border-radius: 0.25rem; /* Slightly less rounded on small screens */
    }
}
