:root {
    --primary-color: #005A9C;
    --secondary-color: #FDB813;
    --dark-color: #222;
    --light-color: #f4f4f4;
    --text-color: #333;
    --success-color: #28a745;
    --border-radius: 5px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
header {
    background-color: var(--dark-color);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: var(--box-shadow);
}

header h1 {
    color: #fff;
    margin-bottom: 0.25rem;
}

header p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.1rem;
}

main {
    flex: 1 0 auto;
    padding: 2rem 0;
}

footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* --- Grids & Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.event-card {
    cursor: pointer;
}

.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.event-card p {
    margin-bottom: 0.5rem;
    color: #555;
}

.event-card p:last-child {
    margin-bottom: 0;
}

.vehicle-card {
    cursor: pointer;
    padding: 0;
}

.vehicle-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.vehicle-card h4,
.vehicle-card p {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.vehicle-card h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.vehicle-card p {
    color: #666;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

/* --- UI Components --- */
.filters {
    margin-bottom: 2rem;
}

#filter-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

#back-to-events {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#back-to-events:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Modal --- */
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#modal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

#modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

#modal-close-btn:hover {
    color: var(--dark-color);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.modal-gallery img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.modal-details p {
    margin-bottom: 0.75rem;
}

.verified {
    color: var(--success-color);
    font-weight: bold;
}

.unverified {
    color: #777;
    font-style: italic;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}