:root {
    --primary: #005A9C;
    --primary-dark: #004475;
    --bg-light: #f4f4f4;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --accent: #005A9C;
    --success: #28a745;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

/* Panels */
.overlay-panel {
    position: absolute;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    top: 0px;
    left: 0px;
    right: 0px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 0;
    height: 44px;
}

.logo {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.fab {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.3);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}

.fab:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Add Form Styles */
.form-container {
    padding: 24px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--success);
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    filter: brightness(110%);
}

/* Autocomplete overrides */
.vysledky-vyhledavani {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 2000;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vysledek-item {
    padding: 10px 12px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #eee;
}

.vysledek-item:hover {
    background: #e9ecef;
    color: var(--primary);
}

/* Via Points */
.via-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.add-via {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    text-decoration: underline;
}
