html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 330px;
  background: #f4f1e8;
  border-right: 1px solid #999;
  padding: 12px;
  box-sizing: border-box;
  z-index: 10;
  overflow: auto;
}

#mapFrame {
  position: absolute;
  left: 330px;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(100% - 330px);
  height: 100%;
  border: 0;
}

.header h2 {
  margin: 0;
  color: #003f6b;
}

.subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

details {
  background: #fffaf0;
  border: 1px solid #c9bea8;
  margin-bottom: 10px;
  padding: 8px;
}

summary {
  font-weight: bold;
  cursor: pointer;
  color: #003f6b;
}

input[type="text"], button {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  box-sizing: border-box;
}

label {
  display: block;
  margin-top: 6px;
}

.resultItem {
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  margin-top: 8px;
  cursor: pointer;
}

.resultItem:hover {
  background: #e8f1ff;
}

.small {
  color: #555;
  font-size: 12px;
}

.navbox {
  line-height: 1.8;
  margin-top: 8px;
}

.routeItem {
  padding: 8px 6px;
  border-bottom: 1px solid #d8d8d8;
}

.routeItem:last-child {
  border-bottom: none;
}

.routeItemHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.routeDeleteBtn {
  flex: 0 0 auto;

  width: 30px;
  height: 30px;
  padding: 0;

  border: 0;
  border-radius: 4px;

  background: transparent;

  font-size: 17px;
  line-height: 30px;

  cursor: pointer;
}

.routeDeleteBtn:hover {
  background: #f1dede;
}

.routeDeleteBtn:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}