/* ========================== */
/* 🌄 TŁO STRONY (tło.png – pełnoekranowe) */
/* ========================== */
.tlo {
    background: url("../img/tlo.png") no-repeat center center/cover;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* ========================== */
/* 🌿 PASEK NAWIGACJI (glassmorphism) */
/* ========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(86, 204, 242, 0.2);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

/* efekt przy przewijaniu (lekko mocniejszy kolor) */
.navbar.scrolled {
    background: rgba(47, 128, 237, 0.4);
}

/* logo i tytuł */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 38px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.nav-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* linki */
.nav-links {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #b2ebf2;
    transform: scale(1.05);
}


/* ========================== */
/* 🔐 PANEL LOGOWANIA / REJESTRACJI */
/* ========================== */
.formularz-box {
    max-width: 420px;
    margin: 12vh auto;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    animation: fadeIn 0.6s ease-out both;
}

/* animacja wejścia */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* logo */
.logo {
    display: block;
    margin: 0 auto 15px auto;
    width: 90px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

/* nagłówek */
.formularz-box h2 {
    margin-bottom: 25px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.2);
}

/* pola formularza */
.formularz-box input {
    display: block;
    width: 90%;
    max-width: 320px;
    margin: 10px auto;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-align: center;
    font-size: 15px;
    transition: 0.2s ease-in-out;
}

.formularz-box input::placeholder {
    color: #f1f1f1;
}

.formularz-box input:focus {
    background: rgba(255,255,255,0.35);
    box-shadow: 0 0 10px rgba(116,185,255,0.6);
    outline: none;
}

/* gradientowy przycisk */
.btn-pulse {
    width: 90%;
    max-width: 320px;
    margin: 20px auto 0 auto;
    padding: 12px;
    border-radius: 50px;
    background: linear-gradient(90deg, #74b9ff, #0984e3);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-pulse:hover {
    background: linear-gradient(90deg, #0984e3, #74b9ff);
    transform: scale(1.03);
}

/* link dolny */
.link-box {
    margin-top: 20px;
    font-size: 14px;
}

.link-box a {
    color: #fff; /* białe linki */
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.link-box a:hover {
    color: #dfe6e9;
    text-decoration: underline;
}

/* responsywność */
@media (max-width: 600px) {
    .formularz-box {
        width: 90%;
        padding: 30px 20px;
    }
    .formularz-box input {
        width: 95%;
    }
}

/* ========================== */
/* ✅ KOREKTA STYLU DLA KODU QR */
/* ========================== */
.qr-box {
    max-width: 480px;
    margin: 8vh auto;
    padding: 30px 25px 40px 25px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.qr-box h2 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.qr-box p {
    color: #fff;
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* --- QR kod --- */
.qr-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin: 0 auto 20px auto;
    max-width: 360px;      /* dopasowanie szerokości QR */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.qr-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* --- nick + przycisk --- */
.qr-box .nick {
    margin-top: 10px;
    font-weight: bold;
    color: #fff;
}

.qr-box .btn-pulse {
    width: 85%;
    max-width: 300px;
    margin-top: 25px;
    border-radius: 50px;
    padding: 12px;
    background: linear-gradient(90deg, #74b9ff, #0984e3);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.qr-box .btn-pulse:hover {
    background: linear-gradient(90deg, #0984e3, #74b9ff);
    transform: scale(1.03);
}

/* ========================== */
/* 🗺️ MAPA – PRZYWRÓCONA WERSJA */
/* ========================== */
.mapa-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 25px auto;
    padding: 18px 25px;
    border-radius: 20px;
    width: 90%;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: 0.3s ease-in-out;
}

.mapa-panel input {
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    width: 260px;
    font-size: 15px;
    outline: none;
    background: rgba(255,255,255,0.9);
    color: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.mapa-panel input:focus {
    box-shadow: 0 0 10px rgba(0,184,148,0.4);
}

.mapa-panel button {
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
}

#btnTrasa {
    background: linear-gradient(90deg, #00b894, #0984e3);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: 0.3s;
}
#btnTrasa:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0984e3, #00b894);
}

#btnReset {
    background: #636e72;
    color: #fff;
}
#btnReset:hover {
    background: #2d3436;
}

/* --- sama mapa --- */
#mapa {
    width: 95%;
    height: 75vh;
    border-radius: 16px;
    margin: 10px auto 30px auto;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* ========================== */
/* 🖼️ ZDJĘCIA W PROFILU */
/* ========================== */
.galeria-mini img {
    width: 100%;
    height: 200px;           /* taki sam rozmiar jak w galerii */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s;
}
.galeria-mini img:hover {
    transform: scale(1.03);
}

/* ========================== */
/* 🖼️ POPRAWKA WYŚWIETLANIA ZDJĘĆ W PROFILU */
/* ========================== */
.galeria-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
    justify-items: center;
}

.galeria-mini img {
    width: 100%;
    max-width: 260px;          /* zapobiega rozwlekaniu zdjęcia na całą stronę */
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.galeria-mini img:hover {
    transform: scale(1.05);
}

#mapa {
    width: 90%;
    height: 75vh;
    border-radius: 16px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.gm-style-iw {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.mini-btn{
  border:0; padding:6px 8px; border-radius:8px; cursor:pointer;
  background:#eef3f8;
}
.mini-btn:hover{ filter:brightness(0.97); }


.legendka {
  display: flex;
  justify-content: center; /* 🟩 wyśrodkowanie poziome */
  align-items: center;
  gap: 20px;
  padding: 8px 16px;
  margin: 15px auto;
  width: fit-content; /* żeby nie rozciągało się po całej stronie */
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.badge {
  width: 18px;
  height: 6px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
}
.badge.szary  { background: #bcbec4; }
.badge.zolty  { background: #f1c40f; }
.badge.zielony{ background: #27ae60; }


