@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Quando&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    background-color: #507862;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Quando', serif;
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

h2 {
    font-family: 'Quando', serif;
    margin: 0;
    font-size: 3rem;
}

#introduction {
    margin: 20px;
    padding: 2%;
    text-align: justify;
    color: #000;
}

#logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    border: 2px solid #fff;
    border-radius: 8px;
}

#overview {
    margin: 20px;
    padding: 2%;
    text-align: justify;
    color: #fefdfd;
    background-color: #003153;
    border-radius: 8px;
    font-size: 1.5rem;
}

#map-legend {
    position: absolute;
    top: 150%;
    left: 5%;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    width: 150px;
    z-index: 2000;
    text-align: left;
}

#map-legend img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

#map-container {
    position: relative;
    margin: 2%;
    width: 100%;
    max-width: 1000px;
    height: 800px;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
    border-radius: 8px;
}

#map-wrapper:active {
    cursor: grabbing;
}

#map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.marker {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.7));
}

#zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

#zoom-controls button {
    background-color: #507862;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#zoom-controls button:hover {
    background-color: #3e5a4e;
    transform: scale(1.1);
}

#zoom-controls button:active {
    transform: scale(0.95);
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 15;
    display: none;
    text-align: center;
}

#popup img {
    width: 100%;
    max-width: 150px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#popup-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#popup-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #507862;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#popup-link:hover {
    background-color: #3e5a4e;
    transform: scale(1.05);
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.125rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#popup-close:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

footer {
    background-color: #507862;
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%;
    font-size: 0.9rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    #map-container {
        height: 600px;
    }

    #popup {
        width: 90%;
        max-width: 320px;
    }

    #popup img {
        max-width: 120px;
    }

    #zoom-controls button {
        font-size: 0.875rem;
        padding: 8px;
    }

    header h1 {
        font-size: 2rem;
    }
}
