/* Color Palette from Flag */
:root {
    --blue: #1a4a7a;
    --cream: #f5f1e8;
    --peach: #ffcc99;
    --dark-blue: #0d2840;
    --light-blue: #3b6ea5;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --shadow: rgba(26, 74, 122, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--blue);
    box-shadow: 0 2px 4px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--cream);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--peach);
}

.nav-cta {
    background-color: var(--peach);
    color: var(--dark-blue) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: #ffc080;
    color: var(--dark-blue) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--cream) 0%, #e8dfd0 100%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-block;
    background-color: var(--blue);
    color: var(--cream);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 6px var(--shadow);
}

.hero-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--cream);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* MAP PAGE STYLES */
.map-page {
    overflow: hidden;
    background-color: var(--cream);
}

.map-nav {
    position: fixed;
    height: 60px;
}

/* Map Container */
#map {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Search Panel */
.search-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow: hidden;
}

#search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    border-bottom: 1px solid #e0e0e0;
}

#search-results {
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

/* Map Controls */
.map-controls {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
}

.control-btn {
    background-color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    color: var(--text-dark);
}

.control-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-btn.active {
    background-color: var(--blue);
    color: white;
}

/* Info Panel */
.info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    max-height: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    overflow: hidden;
}

#info-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 360px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

/* Leaflet Customization */
.leaflet-container {
    background-color: var(--cream);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .search-panel {
        width: calc(100% - 40px);
    }
    
    .map-controls {
        flex-direction: row;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .control-btn {
        flex: 1;
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .info-panel {
        width: calc(100% - 40px);
    }
}