/*! CubifyIt Roads. Copyright (c) 2026 Cubify It Studio. All rights reserved.
No permission is granted to copy, modify or redistribute this code. See LICENSE. */
/* ---------- Three columns: map | 3D model | settings ---------- */

.layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) var(--panel-w);
}
.col { min-width: 0; min-height: 0; }

.map-wrap { position: relative; overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--field); }
/* Grayscale basemap with extra contrast so streets read clearly */
.leaflet-tile-pane { filter: grayscale(1) contrast(1.25) brightness(.9); }
/* Map zoom buttons, the same as the 3D view's: a white bar of rounded-square buttons in the bottom-right corner */
.leaflet-control-zoom.leaflet-bar {
  display: flex;
  flex-direction: row;
  gap: 2px;
  padding: 3px;
  border: 0 !important;
  border-radius: var(--ctl-r) !important;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}
.leaflet-control-zoom.leaflet-bar a {
  width: var(--zoom-btn) !important;
  height: var(--zoom-btn) !important;
  line-height: var(--zoom-btn) !important;
  border: 0 !important;
  border-radius: calc(var(--ctl-r) - 3px) !important;
  background: transparent;
  color: var(--ink) !important;
  font: 400 16px/var(--zoom-btn) var(--font) !important;
}
.leaflet-control-zoom.leaflet-bar a:hover { background: var(--field); }
.leaflet-right .leaflet-control-zoom { margin: 0 10px 10px 0; }
.leaflet-control-attribution { background: rgba(255,255,255,.7) !important; font-size: 10px; }
.frame {
  position: absolute;
  z-index: 500;
  pointer-events: none;
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 9999px rgba(17, 17, 17, .28);
}
/* The selected area's size inside the frame, as on the model's dimension lines: its width centered along its top
   edge, its height along its right edge (js/map.js) */
.frame-dim {
  position: absolute;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.frame-dim-w { top: 6px; left: 50%; transform: translateX(-50%); }
.frame-dim-h { right: 6px; top: 50%; padding: 6px 1px; writing-mode: vertical-rl; transform: translateY(-50%); }
