/* Reset a základní layout */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a1a;
    color: #f5f5f5;
    overflow: hidden;
}

/* Panel s instrukcemi nahoře */
#panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: env(safe-area-inset-top, 12px) 16px 12px;
    max-height: 45vh;
    overflow-y: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

#header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

#header strong {
    font-size: 16px;
    font-weight: 600;
}

#summary {
    font-size: 13px;
    color: #9ca3af;
}

#steps {
    list-style: none;
    counter-reset: step;
}

#steps li {
    counter-increment: step;
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#steps li:last-child { border-bottom: none; }

#steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

#steps li .dist {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 6px;
}

/* Mapa zabírá zbytek obrazovky */
#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2a2a2a;
}

/* Tlačítko pro vycentrování */
#recenter {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 16px) + 16px);
    right: 16px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #3b82f6;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#recenter:active { transform: scale(0.95); }

/* Chybový stav */
.error #summary { color: #ef4444; }
