html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#map { position: absolute; top: 0; bottom: 0; left: 0; right: 380px; }

#panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: 380px;
  background: #fafafa; border-left: 1px solid #ddd; overflow-y: auto;
  box-sizing: border-box; padding: 16px;
}
#panel h2 { margin-top: 0; font-size: 18px; }
.field { margin-bottom: 6px; font-size: 13px; }
.field b { display: inline-block; min-width: 130px; color: #333; }
.placeholder { color: #888; font-size: 14px; margin-top: 40px; text-align: center; }

textarea {
  width: 100%; height: 80px; box-sizing: border-box; margin-top: 4px;
  font-family: inherit; font-size: 13px; padding: 8px; border: 1px solid #ccc; border-radius: 4px;
}
input[type="text"], input[type="date"] {
  width: 100%; box-sizing: border-box; margin-top: 4px;
  font-family: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px;
}
.note-label { font-weight: 600; font-size: 13px; margin-top: 12px; }
button {
  margin-top: 8px; padding: 6px 14px; border-radius: 4px; border: 1px solid #ccc;
  background: #2b6cb0; color: white; cursor: pointer; font-size: 13px;
}
.note-flag { font-size: 12px; color: #b7791f; margin-top: 4px; }
#saveStatus { font-size: 12px; color: #2f855a; margin-left: 8px; }

#layersPanel {
  position: absolute; top: 10px; left: 50px; z-index: 5; width: 220px;
  background: white; padding: 10px 12px; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3); font-size: 13px;
}
#layersPanelHeader { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
#layersPanel.collapsed #layersPanelBody { display: none; }
#layersPanel label { display: block; margin-bottom: 5px; cursor: pointer; }
#layersPanel input[type="range"] { width: 100%; margin-top: 4px; }
.legend { margin-top: 10px; font-size: 11px; color: #555; }
.legend div { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.checkbox-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; cursor: pointer; }

#searchBar {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 5; width: 320px;
}
#searchBar gmp-place-autocomplete {
  width: 100%; box-shadow: 0 1px 4px rgba(0,0,0,0.3); border-radius: 6px;
}

#streetViewDrawer {
  position: absolute; bottom: 0; left: 10px; z-index: 5;
  width: 480px; max-width: calc(100% - 400px);
  background: white; border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  overflow: hidden;
}
#streetViewHandle { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
#streetViewBody { height: 0; overflow: hidden; transition: height 0.25s ease; }
#streetViewDrawer.expanded #streetViewBody { height: 380px; }
.search-status { padding: 6px 4px; font-size: 12px; color: #777; }
.unit-row { padding: 6px 4px; border-bottom: 1px solid #eee; font-size: 12px; cursor: pointer; }
.unit-row:hover { background: #f0f4f8; }
.unit-row-current { background: #eef6ff; }
