/* Popup Container */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker semi-transparent background */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 1000; /* Higher stacking order */
}

/* Popup Content */
.venue-popup-content {
    background-color: #ffffff; /* Soft white background for elegance */
    padding: 20px; /* Reduced padding */
    text-align: center; /* Center text */
    border-radius: 10px; /* Smooth, smaller rounded corners */
    max-width: 400px; /* Reduced max width */
    width: 90%; /* Responsive width */
    border: 2px solid #f05f70; /* Add a border with the theme color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Softer shadow for elegance */
}

/* Headings and Paragraphs */
.venue-heading {
    font-family: 'Great Vibes', serif;
    font-size: 26px; /* Slightly smaller font size */
    color: #f05f70;
    margin-bottom: 15px; /* Space below heading */
}

.venue-subheading {
    font-family: 'Parisienne', cursive;
    font-weight: 400; /* Lighter font weight for a more elegant flow */
    font-size: 28px; /* Slightly smaller font */
    color: #333; /* Darker, more classic color */
    margin-bottom: 10px; /* Space below h3 */
}

.venue-date {
    font-family: 'Dosis', serif;
    font-size: 24px; /* Slightly smaller than before */
    color: #f05f70;
    font-family: cursive; /* Softer text color for a refined look */
}

.venue-invite, .venue-location {
    font-family: 'Dosis', serif;
    font-size: 22px; /* Slightly smaller than before */
    color: #555;
    font-weight: 300; /* Softer text color for a refined look */
}

/* Button */
#close-venue-popup.venue-close-button {
    margin-top: 15px; /* Slightly reduced margin */
    padding: 8px 16px; /* Reduced padding */
    background-color: #f05f70; /* Elegant pink color */
    color: white;
    border: none;
    border-radius: 20px; /* Rounded button corners */
    cursor: pointer;
    display: inline-block;
    font-family: 'Dosis', serif;
    font-size: 16px; /* Slightly smaller button text */
    font-weight: 400;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Button Hover Effect */
#close-venue-popup.venue-close-button:hover {
    background-color: #d04f60; /* Darker shade on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Map Styling */
.venue-map {
    display: block;
    margin: 20px auto; /* Center the iframe with spacing above */
    width: 100%;
    max-width: 550px; /* Restrict the map width for responsiveness */
    height: 350px; /* Slightly smaller map height */
    border-radius: 10px; /* Rounded corners for elegance */
    border: 4px solid #f05f70; /* Elegant border matching theme */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Softer shadow for depth */
    transition: transform 0.3s ease; /* Smooth transition on hover */
}

/* Map Hover Effect */
.venue-map:hover {
    transform: scale(1.03); /* Slight zoom effect on hover */
}

/* Map Caption */
.map-caption {
    font-family: 'Dosis', serif;
    font-size: 16px; /* Smaller caption font size */
    color: #777;
    margin-top: 8px; /* Reduced margin */
}

/* RESPONSIVENESS */

/* For devices with a max width of 1200px (e.g., large tablets and smaller desktops) */
@media (max-width: 1200px) {
    .venue-popup-content {
        max-width: 80%;
    }
    
    .venue-map {
        max-width: 90%;
        height: 300px;
    }
}

/* For devices with a max width of 992px (e.g., tablets in landscape mode) */
@media (max-width: 992px) {
    .venue-popup-content {
        max-width: 90%;
    }
    
    .venue-heading {
        font-size: 24px;
    }

    .venue-subheading {
        font-size: 26px;
    }

    .venue-date, .venue-invite, .venue-location {
        font-size: 20px;
    }

    .venue-map {
        max-width: 100%;
        height: 280px;
    }
}

/* For devices with a max width of 768px (e.g., tablets and large smartphones in portrait mode) */
@media (max-width: 768px) {
    .venue-popup-content {
        max-width: 95%;
    }
    
    .venue-heading {
        font-size: 22px;
    }

    .venue-subheading {
        font-size: 24px;
    }

    .venue-date, .venue-invite, .venue-location {
        font-size: 18px;
    }

    .venue-map {
        max-width: 100%;
        height: 250px;
    }
}

/* For devices with a max width of 576px (e.g., smaller smartphones) */
@media (max-width: 576px) {
    .venue-popup-content {
        max-width: 100%;
        padding: 15px;
    }
    
    .venue-heading {
        font-size: 20px;
    }

    .venue-subheading {
        font-size: 22px;
    }

    .venue-date, .venue-invite, .venue-location {
        font-size: 16px;
    }

    .venue-map {
        max-width: 100%;
        height: 220px;
    }
    
    #close-venue-popup.venue-close-button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* For extra small devices with a max width of 400px (e.g., very small smartphones) */
@media (max-width: 400px) {
    .venue-heading {
        font-size: 18px;
    }

    .venue-subheading {
        font-size: 20px;
    }

    .venue-date, .venue-invite, .venue-location {
        font-size: 14px;
    }

    .venue-map {
        max-width: 100%;
        height: 200px;
    }
    
    #close-venue-popup.venue-close-button {
        padding: 5px 10px;
        font-size: 12px;
    }
}
