* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; overflow: hidden; }

#layout {
    display: flex;
    height: 100%;
    width: 100%;
}

#filter-panel {
    width: 300px;
    min-width: 300px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#filter-panel h2 {
    font-size: 16px;
    padding: 16px 16px 12px;
    color: #333;
    border-bottom: 2px solid #0078d4;
    margin: 0;
    flex-shrink: 0;
}

.filter-section {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.filter-section label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.filter-section select:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

.btn-group {
    padding: 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

#btn-view {
    width: 100%;
    padding: 10px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#btn-view:hover {
    background: #005a9e;
}

#btn-view:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.info-count {
    margin-top: 10px;
    font-size: 12px;
/*     color: #666; */
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.info-bku {
    margin-top: 5px;
    font-size: 11px;
    text-align: center;
    padding: 5px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    line-height: 1.6;
}

#map-container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
}

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

.ol-popup {
    position: absolute;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 200px;
    max-width: 280px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ol-popup:empty {
    display: none;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 4px;
    right: 8px;
    font-weight: bold;
    color: #999;
}

.ol-popup-closer:hover {
    color: #333;
}

.ol-popup-content p {
    margin: 3px 0;
    font-size: 12px;
}

.ol-popup-content strong {
    font-weight: 600;
    color: #333;
}

.ol-layer-switcher {
    font-size: 14px;
}

/* Scrollbar styling */
#filter-panel::-webkit-scrollbar {
    width: 6px;
}

#filter-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#filter-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#filter-panel::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
