body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    
}

header {
    background-color: #9e0f30;
    color: white;
    text-align: center;
    padding: 1em;
    position: relative; /* Needed for absolute positioning of the logo */
    margin-bottom: 20px
}

.header-logo {
    position: absolute; /* Position the logo absolutely within the header */
    top: 20px; /* Adjust the top position as needed */
    left: 30px; /* Adjust the left position as needed */
    height: 90px; /* Adjust the height as needed */
    /* width: auto; */ /* Uncomment and adjust if you need to control the width */
    border-radius: 50%; /* Makes the image round */
    object-fit: cover; /* Ensures the image covers the area without stretching */
}

@media (max-width: 600px) {
    .header-logo {
        display: none; /* Hide the logo */
    }

    /* Adjust header text size if necessary */
    header h1 {
        font-size: 18px;
    }
}


/* General styling for the contact info container */
.contact-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    flex-wrap: wrap; /* Wrap items on smaller screens */
}

.contact-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 10px;
}

.contact-detail img {
    margin-bottom: 5px;
}

/* Medium screens (tablets, small desktops) */
@media (min-width: 600px) {
    .contact-detail p {
        font-size: 1rem; /* Slightly larger text */
    }

    .contact-detail img {
        width: 40px; /* Larger icons */
    }
}

/* Large screens (large desktops) */
@media (min-width: 900px) {
    .contact-detail {
        margin: 20px 30px; /* More space around each contact detail */
    }

    .contact-detail p {
        font-size: 1.2rem; /* Even larger text */
    }

    .contact-detail img {
        width: 50px; /* Even larger icons */
    }
}


/* Styling for the text */
.contact-detail p {
    margin: 0; /* Removes default paragraph margin */
    font-size: 14px; /* Adjusts font size */
    color: #333;
    text-decoration: none; /* Sets text color */
}

/* Styling for the strong tag to emphasize certain text */
.contact-detail strong {
    font-weight: bold;
    color: #000; /* Makes the emphasized text a bit darker */
}

/* Styling for the container of the button */
.plan-route {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    padding: 5px; /* Adds some padding around the container */
    margin-bottom: 5px; /* New smaller bottom margin */
}

/* Styling for the button */
.directions-button {
    background-color: #4285F4; /* Google Maps blue color */
    color: white; /* Text color */
    padding: 10px 20px; /* Padding inside the button */
    text-decoration: none; /* Removes underline from the link */
    border-radius: 5px; /* Rounded corners for the button */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Makes the text bold */
    transition: background-color 0.3s; /* Smooth background color change on hover */
}

/* Styling for the hover effect */
.directions-button:hover {
    background-color: #357ae8; /* Slightly darker blue on hover */
    cursor: pointer; /* Changes cursor to indicate button is clickable */
}


.leaflet-container {
    text-align: center;
    padding: 20px;
}

.leaflet-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px; /* Center images and add space below */
}

/* Smaller screens (smartphones) */
@media (max-width: 600px) {
    .leaflet-container {
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .leaflet-image {
        max-width: 95%; /* Slightly reduce the max-width to ensure it fits smaller screens */
    }
}

/* Medium screens (tablets) */
@media (min-width: 768px) {
    .leaflet-container {
        padding: 20px;
    }

    .leaflet-image {
        max-width: 80%; /* Control size on medium screens */
    }
}

/* Larger screens (desktops) */
@media (min-width: 1024px) {
    .leaflet-image {
        max-width: 60%; /* Prevent images from becoming too large on large screens */
    }
}


#map {
    width: 100%; /* Use 100% for a responsive map */
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    margin-top: 5px; /* New smaller top margin */
}

footer {
    background-color: #9e0f30;
    color: white;
    text-align: center;
    padding: 1em;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-decoration: none; /* Optional: Removes the underline from the hyperlink */
}

/* Media query for responsiveness */
@media only screen and (max-width: 600px) {
    .main-content {
        padding: 15px;
    }
}

/* ===== Referral Links Section ===== */
.referral-links {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.referral-links h2 {
    color: #9e0f30;
    margin-bottom: 10px;
}

.referral-links ul {
    list-style-type: none;
    padding: 0;
}

.referral-links li {
    margin: 10px 0;
}

.referral-links a {
    color: #4285F4;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.referral-links a:hover {
    text-decoration: underline;
    color: #357ae8;
}