body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

#map { height: 100vh; width: 100%; }

/* --- PANEL INFORMACYJNY --- */
.info-box {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); 
    padding: 15px; 
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 300px;
    border-left: 5px solid #0078d7;
    transition: background 0.3s, color 0.3s;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.box-header h3 { margin: 0; font-size: 1.1em; color: #333; }

#toggle-panel-btn {
    background: transparent;
    border: none;
    font-size: 1.5em;
    font-weight: bold;
    color: #0078d7;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

#box-content {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s;
}

.info-box.minimized #box-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

#date { font-size: 0.9em; color: #666; font-weight: bold; text-transform: capitalize; margin-bottom: 2px; }
#clock { font-size: 1.5em; font-weight: bold; color: #555; margin-bottom: 10px; }

/* DUŻY PRZYCISK TRYBU CIEMNEGO (w panelu) */
#dark-mode-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-bottom: 10px;
    width: 100%;
    transition: all 0.3s;
}
#dark-mode-btn:hover { background: #e0e0e0; }

/* --- NOWOŚĆ: PRZYCISK LOKALIZACJI (PŁYWAJĄCY) --- */
#locate-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Musi być nad mapą */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.3s;
    color: #333;
}

#locate-btn:hover {
    transform: scale(1.1);
    background: #f9f9f9;
}

#locate-btn:active {
    transform: scale(0.95);
}

/* --- TRYB CIEMNY --- */
body.dark-mode .info-box { background: rgba(30, 30, 30, 0.95); color: #e0e0e0; border-left: 5px solid #0078d7; }
body.dark-mode .box-header h3 { color: #fff; }
body.dark-mode #toggle-panel-btn { color: #fff; }
body.dark-mode #date { color: #aaa; }
body.dark-mode #clock { color: #ccc; }

body.dark-mode #dark-mode-btn { background: #444; color: #fff; border-color: #555; }
body.dark-mode #dark-mode-btn:hover { background: #555; }

body.dark-mode #locate-btn {
    background: #444;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}
body.dark-mode #locate-btn:hover { background: #555; }

.dark-tiles { filter: brightness(1.2) contrast(0.85) grayscale(0.2); }