:root {
    --layer-controls-bottom: 40px;
}

body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 100%; 
}



/* Hide default Mapbox controls */
.mapboxgl-ctrl-fullscreen,
.mapboxgl-ctrl-geolocate {
    display: none !important;
}

.control-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 11px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.control-button:hover {
    background: rgba(255, 255, 255, 1);
}

.control-button.active {
    background: #007cbf;
    color: white;
}

.right-panels {
    position: absolute;
    right: 15px;
    bottom: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.layer-controls {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font: 12px/12px 'Helvetica Neue', Arial, sans-serif;
    padding: 5px;
    min-width: 100px;
}

/* About Panel */
.about-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 210px;
    max-height: 30vh;
    overflow-y: auto;
}

.about-panel.collapsed {
    width: auto;
}

.about-panel.collapsed .about-content {
    display: none;
}

.about-content {
    padding: 15px;
}

.about-content p {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content ol {
    margin: 8px 0;
    padding-left: 16px;
}

.about-content li {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 2px;
}

.about-content a {
    color: #007cbf;
    text-decoration: none;
    word-break: break-all;
}

.about-content a:hover {
    text-decoration: underline;
}

.layer-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.layer-toggle:last-child {
    margin-bottom: 0;
}

.layer-toggle input[type="checkbox"] {
    margin-right: 4px;
}

.layer-toggle label {
    color: #555;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.color-pip {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.color-pip.stroke {
    border: 2px solid;
    background: transparent;
}

.color-pip.fill {
    opacity: 0.7;
}

.color-pip.text {
    background: #333;
    color: #ffffff;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    line-height: 12px;
    border-radius: 2px;
}

.color-pip.pattern {
    background: #f8f8f8;
    border: 1px solid #333;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 10px;
    border-radius: 2px;
}

/* Terrain Editor Controls */
.terrain-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    width: 200px;
    max-width: 200px;
    padding: 5px 5px;
}

.terrain-controls.collapsed {
    width: auto;
}

.terrain-controls.collapsed .control-content {
    display: none;
}

.control-header {
    padding: 6px 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-content {
    padding: 8px;
}

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

.control-group:last-child {
    margin-bottom: 0;
}

.control-group h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.control-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
}

.control-item label {
    min-width: 10px;
    font-size: 10px;
    margin-right: 2px;
    color: #666;
}

.control-item input[type="range"] {
    width: 50px;
    max-width: 50px;
    margin: 0 4px;
}

.control-item input[type="color"] {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.control-item input[type="text"] {
    width: 60px;
    padding: 2px 4px;
    font-size: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.control-item select {
    flex: 1;
    padding: 4px 6px;
    font-size: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    margin-left: 8px;
}

.control-item input[type="checkbox"] {
    margin-right: 8px;
}

.range-value {
    font-size: 10px;
    color: #999;
    min-width: 1px;
    max-width: 28px;
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
}

.color-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-btn {
    background: #007cbf;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
}

.toggle-btn:hover {
    background: #005a8b;
} 