/* General body and layout styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F4F4;
    color: #333;
    box-sizing: border-box;
}

/* Ensure padding and borders do not affect element width */
*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Header styling with logo aligned to the left */
header {
    width: 100%;
    background-color: #002D42; /* Dark blue */
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Move content to the sides */
    gap: 20px;
}

header h1 {
    font-size: 28px;
    margin: 0;
    text-align: center; /* Center the title */
    flex-grow: 1; /* Allow the title to take up remaining space */
}

.logo {
    margin-right: auto; /* Push logo to the left */
}

.logo img {
    height: 50px;
    width: auto;
}

/* Remove background for disclaimer */
#disclaimer {
    font-size: 14px;
    color: #002D42; /* Red text */
    margin: 20px auto;
    text-align: center;
    width: 100%;
    padding: 10px;
    background-color: transparent; /* Remove background */
}

header h1 {
    font-size: 28px;
    margin: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Call to Action Section */
.cta-container {
    background-color: #002D42; /* Red */
    color: white;
    padding: 30px;
    width: 90%;
    text-align: center;
    margin: 20px auto;
    border-radius: 5px;
}

.cta-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.cta-container p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #009CDE; /* Light blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #007BFF; /* Slightly darker blue for hover */
}

/* Main content styling */
.main-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    gap: 20px;
}

/* Map and Table containers should be equal height */
#map,
.table-container {
    height: 500px;
    width: 48%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

/* Table styling */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
    background-color: white;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.styled-table th {
    background-color: #002D42; /* Dark blue header */
    color: white;
}

.styled-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #F3F3F3;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Highlight selected row */
.styled-table tbody tr.selected {
    background-color: #002D42; /* Red for selected row */
    color: white;
}

/* Table scroll */
.table-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    #map, .table-container {
        width: 100%; /* Full width for mobile */
        margin: 10px 0;
    }

    #map {
        height: 400px;
    }
}

.custom-pin {
    font-size: 24px; /* Adjust the size of the emoji */
    text-align: center;
    line-height: 1; /* Ensure emoji doesn't stretch */
}

/* Styling for the buttons in the popup to match Fireworks Safety Advice */
.popup-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.popup-btn {
    display: inline-block;
    padding: 12px 25px; /* Reduce padding slightly */
    font-size: 13px; /* Reduce font size slightly */
    background-color: #009CDE;
    color: white !important; /* Ensure text remains white */
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    flex: 1;
    max-width: 48%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.popup-btn:hover {
    background-color: #007BFF;
    color: white !important;
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Add space between buttons */
}

/* Change all red to navy blue */
.cta-container {
    background-color: #002D42; /* Navy blue */
    color: white;
    padding: 30px;
    width: 90%;
    text-align: center;
    margin: 20px auto;
    border-radius: 5px;
}

.cta-button {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #009CDE; /* Light blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #007BFF;
}

#disclaimer {
    font-size: 14px;
    color: #002D42; /* Change to navy blue */
    margin: 20px auto;
    text-align: center;
    width: 100%;
    padding: 10px;
    background-color: transparent;
}
