body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.header {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2rem;
}

.header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.container {
    height: calc(100vh - 120px);
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.panel {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.panel h3 {
    margin: 0 0 1rem 0;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.control-group input, .control-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.control-group button {
    width: 100%;
    padding: 0.7rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.control-group button:hover {
    background: #357abd;
}

.control-group button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.stats {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    background: #ffe6e6;
    color: #d63031;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.layer-controls {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    min-width: 200px;
}

.layer-controls h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.poi-popup {
    min-width: 200px;
}

.poi-popup h4 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
}

.responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .map-container {
        height: 400px;
    }
}

/* Knpt node marker (fixed-size HTML marker) */
.knpt-node {
	/* Leaflet sets position and left/top; do not override */
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #018752; /* solid green */
	border: 2px solid #fff;
	box-sizing: border-box;
	opacity: 1; /* ensure fully opaque */
}
.knpt-node.selected {
	outline: 3px solid #d7263d;
	outline-offset: 2px;
}
.knpt-node > span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	font-size: 13px;
	line-height: 1;
	user-select: none;
	pointer-events: none;
	text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

/* Label for knpt nodes rendered as circleMarker */
.leaflet-tooltip.knpt-label {
	background: transparent;
	border: none;
	box-shadow: none;
	color: #fff;
	font-weight: 700;
	font-size: 13px; /* fixed size */
	line-height: 1;
	margin: 0 !important;
	padding: 0 !important;
	text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.leaflet-tooltip.knpt-label::before {
	display: none;
}