html, body {
height: 100%;
margin: 0;
}
#map {
height: 100%;
width: 100%;
}
.layer-toggle {
display: flex;
}
.layer-toggle button {
/* Override maplibregl-ctrl-group's 29x29px square icon-button sizing —
these are text buttons. */
width: auto;
height: auto;
border: none;
background: #fff;
padding: 6px 10px;
font: inherit;
font-size: 13px;
white-space: nowrap;
cursor: pointer;
}
.layer-toggle button.active {
background: #dbe9ff;
font-weight: 600;
}
.radar-control {
display: flex;
flex-direction: column;
gap: 4px;
padding: 6px 8px;
font-size: 13px;
}
.radar-control__toggle {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
white-space: nowrap;
}
.radar-control__playback {
display: flex;
align-items: center;
gap: 6px;
}
.radar-control__playback[hidden] {
display: none;
}
.radar-control__play {
/* Override maplibregl-ctrl-group's 29x29px square icon-button sizing. */
width: auto;
height: auto;
border: none;
background: none;
padding: 2px 4px;
font-size: 13px;
cursor: pointer;
}
.radar-control__scrub {
width: 110px;
}
.radar-control__time {
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.gpx-toggle button {
/* Override maplibregl-ctrl-group's 29x29px square icon-button sizing —
this is a text button. */
width: auto;
height: auto;
border: none;
background: #fff;
padding: 6px 10px;
font: inherit;
font-size: 13px;
white-space: nowrap;
cursor: pointer;
}
.gpx-panel {
position: fixed;
top: 0;
right: 0;
width: 300px;
max-width: 90vw;
height: 100%;
display: flex;
flex-direction: column;
background: #fff;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
font-size: 13px;
z-index: 10;
}
.gpx-panel[hidden] {
display: none;
}
.gpx-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid #eee;
}
.gpx-panel__close {
border: none;
background: none;
font-size: 18px;
line-height: 1;
padding: 0 4px;
cursor: pointer;
}
.gpx-dropzone {
margin: 10px 12px;
padding: 14px 10px;
border: 2px dashed #ccc;
border-radius: 4px;
text-align: center;
color: #666;
cursor: pointer;
}
.gpx-dropzone.gpx-drop-hover {
border-color: #4a90d9;
background: #eef5fd;
color: #333;
}
.gpx-upload__status {
margin: 0 12px 10px;
color: #666;
}
.gpx-new-folder {
display: flex;
gap: 6px;
margin: 0 12px 10px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.gpx-new-folder input {
flex: 1;
min-width: 0;
font: inherit;
font-size: 13px;
}
.gpx-new-folder button {
font: inherit;
font-size: 13px;
white-space: nowrap;
cursor: pointer;
}
.gpx-tree {
overflow-y: auto;
padding: 8px 12px;
}
.gpx-tree ul {
list-style: none;
margin: 0;
padding-left: 16px;
}
.gpx-tree > ul {
padding-left: 0;
}
.gpx-tree summary {
cursor: pointer;
font-weight: 600;
border-radius: 3px;
}
.gpx-tree__folder-row {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 4px;
width: calc(100% - 18px);
}
.gpx-tree summary.gpx-drop-hover {
background: #eef5fd;
outline: 1px dashed #4a90d9;
}
.gpx-tree__file {
display: flex;
align-items: center;
gap: 4px;
padding: 2px 0;
cursor: grab;
}
.gpx-tree__file label {
display: flex;
align-items: center;
gap: 4px;
flex: 1;
min-width: 0;
cursor: pointer;
}
.gpx-tree__file label span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.gpx-tree__delete {
flex-shrink: 0;
border: none;
background: none;
color: #999;
font-size: 14px;
line-height: 1;
padding: 0 4px;
cursor: pointer;
}
.gpx-tree__delete:hover {
color: #e63946;
}
.gpx-tree__empty {
color: #888;
font-style: italic;
}
.gpx-tree.gpx-drop-hover {
outline: 1px dashed #4a90d9;
outline-offset: -2px;
}
.maplibregl-popup-content p {
margin: 4px 0 0;
}
.gpx-popup__time {
color: #888;
font-size: 12px;
}