/* Public map page (standalone /m/{id} and the iframe embed). */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: flex; flex-direction: column; background: #f7f6f2; color: #1f2328;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pub-head { padding: 14px 16px 6px; }
.pub-head h1 { margin: 0; font-size: 22px; }
.pub-head p { margin: 2px 0 0; color: #66707c; }
.pub-main { flex: 1; display: flex; padding: 8px 16px; min-height: 0; }
.pub-map { flex: 1; min-height: 70vh; }
.pub-foot { padding: 8px 16px 14px; color: #66707c; font-size: 12px; }
.pub-loading { margin: auto; padding: 40px 16px; color: #66707c; text-align: center; }

/* Embedded: the map is the whole page. */
.pm-embed body { background: transparent; }
.pm-embed .pub-main { padding: 0; }
.pm-embed .pub-map { min-height: 0; height: 100%; }

.pub-dialog {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  border: 1px solid #d9dde2; border-radius: 10px; padding: 18px 20px; color: #1f2328;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.pub-dialog::backdrop { background: rgba(15, 18, 22, .45); }
.pub-dialog h2 { margin: 0 0 4px; font-size: 19px; }
.pub-dialog label { display: block; font-weight: 550; font-size: 14px; margin: 10px 0 4px; }
.pub-dialog input, .pub-dialog textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #cfd4da; border-radius: 6px;
}
.pub-dialog textarea { resize: vertical; }
.pub-muted { color: #66707c; margin: 0 0 6px; }
.pub-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pub-error { color: #b42318; min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.pub-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pub-actions button { font: inherit; font-weight: 550; padding: 8px 14px; border-radius: 6px; border: 1px solid #cfd4da; background: #f0f2f5; cursor: pointer; }
.pub-actions .pub-primary { background: #2f6f4f; border-color: #2f6f4f; color: #fff; }

@media (max-width: 600px) {
  .pub-main { padding: 0; }
  .pub-map { border-radius: 0; min-height: 75vh; }
}
.pub-loading p { margin: 0 0 6px; }
.pub-retry { font-size: 13px; }
