/* Container for the map and its header */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Ensure no content overflows the container */
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0; /* Maintain aspect ratio */
}

/* Map iframe styling */
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Header styling */
.map-header {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Ensure the header is above the map */
    max-width: calc(100% - 20px); /* Fit within container */
}

/* Address text styling */
.address {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px; /* Adjusted for readability */
}

/* Directions button styling */
.directions-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff; /* Primary color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.directions-button:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-header {
        font-size: 12px;
        padding: 8px;
    }

    .directions-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .address {
        font-size: 14px;
    }
}
