/* --- OGÓLNE USTAWIENIA I CZCIONKI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Burbank';
    src: url('czcionki/Burbank Big Condensed Bold.woff') format('woff');
}
@font-face {
    font-family: 'Sans';
    src: url('czcionki/JosefinSans-VariableFont_wght.ttf') format('truetype');
}

body {
    color: white;
    background-color: #1f1e1e;
    font-family: 'Sans', Arial, sans-serif;
    display: flex;
    flex-direction: column; /* Układamy elementy pionowo */
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Zapobiega przewijaniu całej strony */
}

/* --- TŁO I NAWIGACJA --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #1a1a1a, #34495e);
    background-size: 400% 400%; animation: gradientBG 20s ease infinite; z-index: -2;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.nav-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background-color: rgba(20, 20, 20, 0.7); display: flex;
    justify-content: center; align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; backdrop-filter: blur(10px);
}
.nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-links li { margin: 0 15px; }
.nav-link {
    text-decoration: none; color: white; font-size: 18px; font-weight: bold;
    position: relative; padding: 5px 0; transition: color 0.3s ease;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    background-color: #00bfff; transition: width 0.3s ease;
}
.nav-link:hover { color: #00bfff; }
.nav-link:hover::after { width: 100%; }
.menu-toggle { display: none; }

/* --- GŁÓWNY KONTENER I NAGŁÓWEK MAPY --- */
main {
    width: 100%;
    padding-top: 60px; /* Miejsce na nawigację */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-header {
    text-align: center;
    padding: 20px;
}

.map-header h1 {
    font-family: 'Burbank', sans-serif;
    font-size: 2.5rem;
    color: #00bfff;
}

.map-header p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* --- INTERAKTYWNA MAPA --- */
#map-viewport {
    width: 95%;
    max-width: 1400px;
    height: calc(100vh - 200px); /* Dopasowuje wysokość do ekranu */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden; /* NAJWAŻNIEJSZE: Ukrywa to, co wychodzi poza ramkę */
    position: relative;
    background-color: rgba(0,0,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#map-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mapa skaluje się, aby zmieścić się w kontenerze */
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab; /* Wskazuje, że można przeciągać */
    transition: transform 0.2s ease-out; /* Płynne przybliżanie */
}

#map-image:active {
    cursor: grabbing; /* Zmiana kursora podczas przeciągania */
}

/* --- RESPONSYWNOŚĆ --- */
@media screen and (max-width: 768px) {
    /* Style menu mobilnego */
    .nav-bar ul {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(20, 20, 20, 0.95); display: none;
        flex-direction: column; justify-content: center; align-items: center;
    }
    .nav-bar ul.show { display: flex; }
    .menu-toggle {
        display: flex; flex-direction: column; cursor: pointer;
        position: absolute; right: 20px; z-index: 1001;
        width: 30px; height: 21px; justify-content: space-between;
    }
    .menu-toggle .bar { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s ease-in-out; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .map-header h1 { font-size: 1.8rem; }
    #map-viewport { height: calc(100vh - 180px); }
}
