/* The map page is full-bleed below the navbar; other pages are normal flow. */
#map {
  position: fixed;
  top: 57px; /* navbar height */
  bottom: 0;
  left: 0;
  right: 0;
}

#map-panel {
  position: fixed;
  top: 67px;
  left: 10px;
  z-index: 10;
  background: rgba(20, 20, 20, 0.88);
  color: #eee;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 6px;
  max-width: 290px;
}

.layer-title {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  margin-top: 7px;
}

.layer-title:first-child {
  margin-top: 0;
}

/* compact panel controls: buttons and selects share one height */
#map-panel .btn {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
}

#map-panel .form-select {
  font-size: 12px;
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 1.4;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 4px;
  vertical-align: middle;
  margin-right: 6px;
}

/* land-fill swatches: replicate the map's blend — the fill color at the same
   translucency over a light basemap tone — instead of the raw color, so the
   legend matches what the eye sees on the map. Set --c per swatch inline. */
.box {
  display: inline-block;
  width: 18px;
  height: 12px;
  vertical-align: middle;
  margin-right: 6px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 30%, transparent)),
    linear-gradient(#f0eee8, #f0eee8);
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #fff;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 3px;
}

/* numbered itinerary stop markers */
.stop-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font: bold 13px/24px system-ui, sans-serif;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* draggable itinerary rows in the map panel */
.stop-row {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 2px 0;
}

.stop-row .drag {
  cursor: grab;
  color: #888;
}

.stop-row.dragging {
  opacity: 0.4;
}

.stop-row.drop-target {
  border-top: 2px solid #4caf50;
}

.stop-row input {
  background: #2a2a2a;
  color: #eee;
  border: 1px solid #444;
  border-radius: 3px;
  font-size: 12px;
  padding: 1px 4px;
}

.stop-row .stop-name {
  flex: 1;
  min-width: 0;
}

.stop-row .stop-nights {
  width: 2.8rem;
}

.stop-row .stop-del {
  background: none;
  border: none;
  color: #d66;
  cursor: pointer;
}

.stop-search {
  width: 100%;
  margin-top: 4px;
  background: #222;
  color: #eee;
  border: 1px dashed #555;
  border-radius: 3px;
  font-size: 12px;
  padding: 3px 6px;
}

/* marker popup stop editor (maplibre popups are light-themed) */
.stop-editor {
  font: 13px system-ui, sans-serif;
  color: #222;
}

.stop-editor input[type='text'] {
  width: 100%;
}

.stop-editor input[type='number'] {
  width: 3.5rem;
}

/* house admin gate (here it fronts the whole app) */
.admin-login {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-pass {
  width: min(440px, 80vw);
  background: #1a1d21;
  border: 1px solid #2b3036;
  color: #e8e8e8;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-align: center;
  padding: 18px 20px;
  border-radius: 0.375rem;
  outline: none;
}

.admin-pass:focus {
  border-color: #6ea8fe;
}
