html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#map { position: absolute; inset: 0; }

.panel {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  width: 300px; max-height: calc(100vh - 24px); overflow-y: auto;
  box-sizing: border-box; padding: 14px;
  background: rgba(255,255,255,.96);
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  font-size: 13px; color: #222;
}
.panel.is-hidden { display: none; }
.panel__title { font-weight: 600; margin-bottom: 10px; font-size: 14px; padding-right: 28px; }

.panel-toggle {
  position: absolute; top: 12px; left: 12px; z-index: 11;
  width: 30px; height: 30px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.96); box-shadow: 0 1px 6px rgba(0,0,0,.25);
  cursor: pointer; font-size: 16px; line-height: 30px; padding: 0;
}
body.panel-open .panel-toggle { left: 276px; top: 18px; box-shadow: none; background: transparent; }

.block { border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.block__title { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; margin-bottom: 8px; }

.row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.label { width: 62px; color: #666; flex: none; }

.seg { display: flex; flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: #fff; padding: 5px 4px; cursor: pointer; font: inherit; white-space: nowrap; }
.seg button + button { border-left: 1px solid #ccc; }
.seg button.is-active { background: #1b6ac9; color: #fff; }

.btn {
  border: 1px solid #ccc; background: #fff; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font: inherit; color: #222;
  text-decoration: none; display: inline-block; text-align: center; white-space: nowrap;
}
.btn:hover { background: #f0f0f0; }
.btn--wide { width: 100%; }
.btn--primary { background: #1b6ac9; border-color: #1b6ac9; color: #fff; }
.btn--primary:hover { background: #165bb0; }

select, input[type=color] { font: inherit; padding: 4px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
select { flex: 1; min-width: 0; }
input[type=color] { width: 46px; height: 30px; padding: 2px; }

.check { display: flex; align-items: center; gap: 6px; margin: 4px 0; cursor: pointer; }
.check input { margin: 0; }
.check--accent { font-weight: 600; margin-bottom: 8px; }
.check.is-disabled { color: #aaa; cursor: default; }

.link { color: #1b6ac9; text-decoration: none; font-size: 12px; }
.hint { margin-top: 6px; color: #777; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }

.marker-popup { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.marker-popup img { width: 56px; height: 56px; border-radius: 8px; }
.marker-popup b { display: block; font-size: 13px; margin-bottom: 2px; }

@media (max-width: 600px) {
  .panel { width: calc(100vw - 24px); max-height: 55vh; }
  body.panel-open .panel-toggle { left: auto; right: 18px; }
}
