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

body {
    font-family: 'Geist Mono', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

/* Typography */
.title {
    color: #1e3c72;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Access Buttons */
.quick-access {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.quick-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lib-btn {
    background: linear-gradient(135deg, #84d4f5 0%, #5ab5db 100%);
    color: #fff;
}

.caf-btn {
    background: linear-gradient(135deg, #ffb347 0%, #ff9a47 100%);
    color: #fff;
}

.park-btn {
    background: linear-gradient(135deg, #c89ffc 0%, #a679e8 100%);
    color: #fff;
}

.eng-btn {
    background: linear-gradient(135deg, #66d9a6 0%, #4caf8d 100%);
    color: #fff;
}

.quick-btn:not(.lib-btn):not(.caf-btn):not(.park-btn):not(.eng-btn) {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #1e3c72;
}

/* Map Container */
#map {
    height: 600px;
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 2rem 0;
    border: 3px solid #fff;
}

/* Legend */
.legend {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #1e3c72;
}

.legend p {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 16px;
}

.legend ul {
    list-style: none;
    padding: 0;
}

.legend li {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.2);
    border-color: #2a5298;
}

.card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* Search Bar */
.search-bar {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 2rem;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.search-bar:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.15);
}

/* Location Cards */
.location-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #2a5298;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.location-card h3 {
    color: #1e3c72;
    margin: 15px 0 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.location-card p {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
}

.category {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #1e3c72;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mission Section */
.mission-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #2a5298;
}

.mission-box h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.mission-box p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 15px;
    margin: 8px 0;
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.team-info {
    margin-top: 15px;
    font-size: 14px;
    color: #e0e7ff;
}

/* Leaflet Marker Styles */
.marker-lightblue {
    background-color: #84d4f5;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #5ab5db;
    box-shadow: 0 0 10px rgba(84, 212, 245, 0.5);
}

.marker-green {
    background-color: #66d9a6;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #4caf8d;
    box-shadow: 0 0 10px rgba(102, 217, 166, 0.5);
}

.marker-blue {
    background-color: #5a9de8;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #3a7bc8;
    box-shadow: 0 0 10px rgba(90, 157, 232, 0.5);
}

.marker-orange {
    background-color: #ffb347;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ff9a47;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.5);
}

.marker-purple {
    background-color: #c89ffc;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #a679e8;
    box-shadow: 0 0 10px rgba(200, 159, 252, 0.5);
}

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

    #directoryList {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 24px;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .container {
        padding: 0 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    #directoryList {
        grid-template-columns: 1fr !important;
    }

    .quick-access {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    #map {
        height: 400px;
    }

    .legend {
        bottom: 15px;
        left: 15px;
        padding: 15px;
    }

    .mission-box {
        padding: 25px;
    }

    footer {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
    }

    .quick-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .card {
        padding: 20px;
    }

    .location-card {
        padding: 20px;
    }
}