* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f5f5;
}

.public-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: #2f4f4f;
  color: #fff;
  height: 64px;
}

.public-header__logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.public-header__text { line-height: 1.15; }

.public-header__title {
  font-size: 18px;
  font-weight: 600;
}

.public-header__subtitle {
  font-size: 13px;
  opacity: 0.85;
}

.public-container {
  display: flex;
  height: calc(100vh - 64px);
}

.public-sidenav {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 14px 14px 20px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease, padding 0.25s ease;
}

.public-sidenav.collapsed {
  width: 0;
  padding: 0;
}

#sidebar-toggle {
  flex-shrink: 0;
  align-self: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 10;
  padding: 0;
  margin-left: -16px;
}

#sidebar-toggle:hover {
  background: #f0f4f8;
  color: #1f3b57;
}

.public-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1f3b57;
}

.public-sidebar-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin: 16px 0 6px 0;
}

.public-layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #222;
}

.public-layer-toggle:hover { background: #f3f6fa; }

.public-layer-checkbox {
  margin: 0;
  flex-shrink: 0;
}

.public-layer-swatch {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.public-layer-name { flex: 1; }

.public-sidebar-note {
  margin-top: 24px;
  font-size: 12px;
  color: #888;
  font-style: italic;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.public-map {
  flex: 1;
  height: 100%;
}

/* Popup tweaks — read-only, compact */
.public-popup h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #2f4f4f;
}

.public-popup .row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding: 2px 0;
}

.public-popup .row b { min-width: 130px; color: #444; }
.public-popup .row span { color: #111; word-break: break-word; }
