* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --nav-height: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
    justify-self: start;
    grid-column: 1;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    justify-self: center;
    grid-column: 2;
    z-index: 1001;
}

.nav-menu > li {
    position: relative;
    z-index: 1001;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu > li > a:hover {
    color: var(--highlight-color);
}

.nav-menu a.active {
    color: var(--highlight-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1002;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--highlight-color);
}

.container {
    width: 100%;
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
}

.header-title {
    padding: 1rem 2rem;
    background-color: #2c3e50;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* MapLibre controls styling */
.maplibregl-ctrl-group {
    background-color: white;
    border-radius: 4px;
}

.maplibregl-ctrl-group button {
    width: 30px;
    height: 30px;
}

/* Popup styling */
.maplibregl-popup-content {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.maplibregl-popup-close-button {
    font-size: 20px;
    padding: 0 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.4rem;
        padding: 0.8rem 1rem;
    }
    
    .map-wrapper {
        padding: 0.5rem;
    }
}
