* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: #0d3b66;
  color: #fff;
  padding: 12px 20px;
  flex: 0 0 auto;
}

header h1 {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

header p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

#map {
  flex: 1 1 auto;
  width: 100%;
}

#legenda {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  line-height: 1.6;
  z-index: 1000;
}

#legenda strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 4px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 1px;
}

.ico {
  display: inline-block;
  width: 18px;
  text-align: center;
  margin-right: 4px;
}

.icon-camera, .icon-poi {
  font-size: 22px;
  text-align: center;
  line-height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.poi-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.poi-marker-legend {
  display: inline-flex;
  width: 18px;
  height: 18px;
  font-size: 10px;
  vertical-align: middle;
  margin-right: 4px;
}

.icon-poi-circle {
  background: transparent;
}

.leaflet-popup-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

.road-label {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.road-label::before {
  display: none;
}

.popup-link {
  display: inline-block;
  padding: 5px 12px;
  background: #0d3b66;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 2px;
}

.popup-link:hover {
  background: #1a4d80;
  color: #fff;
}

.popup-link:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 1px;
}

@media (max-width: 600px) {
  header h1 { font-size: 1.05rem; }
  header p { font-size: 0.75rem; }
  #legenda {
    bottom: 10px;
    left: 10px;
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}
