/* General layout */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;         /* reset */
    padding: 0;        /* reset */
}

/* Typography */
h1, h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

a {
    color: #2980b9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Forms */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-top: 1em;
    font-weight: bold;
}

input, textarea, button {
    padding: 0.5em;
    margin-top: 0.3em;
    margin-bottom: 1em;
    width: 100%;
    font-size: 1em;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Buttons */
input[type="submit"],
button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

thead {
    background-color: #007bff;
    color: #fff;
    text-align: left;
}

th, td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f5ff;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    th, td {
        padding: 10px 12px;
    }
}

/* Actual map element */
#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
}

/* Special case: map page goes full width */
body.map-page {
    max-width: none;
    padding: 0;
    margin: 0;
}

.map-card {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* === Global responsive helpers === */
img, svg, canvas, video {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
}

@media (min-width: 1400px) {
    #content > .container-xxl {
        max-width: 1280px;
    }
}
