* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Levý panel */
.left-panel {
    width: 400px;
    background: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.left-panel h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

/* Vyhledávací pole */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#searchInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#searchButton {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

#searchButton:hover {
    background: #0056b3;
}

/* Zaškrtávací pole */
.options-container {
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* Výsledky */
.results-container {
    margin-top: 20px;
}

.results-container h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2em;
}

#results {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

#results:empty::before {
    content: 'Klikněte na mapu nebo zadejte hledaný výraz...';
    color: #999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tlačítka pro kopírování */
.copy-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.copy-btn {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.copy-btn:hover {
    background: #218838;
}

.copy-btn:active {
    background: #1e7e34;
}

.copy-btn.copied {
    background: #6c757d;
}

/* Pravý panel - mapa */
.right-panel {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet marker popup */
.leaflet-popup-content {
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        height: 50vh;
    }
    
    .right-panel {
        height: 50vh;
    }
    
    #results {
        max-height: 150px;
    }
}

/* Loading indicator */
.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.loading.active {
    display: block;
}

.loading::after {
    content: 'Načítání...';
    font-size: 16px;
    color: #333;
}
