﻿:root {
  --map-bg: #f3f8ef;
  --map-surface: rgba(255, 255, 255, 0.92);
  --map-primary: #1c7c54;
  --map-primary-strong: #14563b;
  --map-shadow: 0 18px 42px rgba(20, 61, 39, 0.16);
}

.project-panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 86, 59, 0.72);
}

.legend-panel {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 850;
  width: min(280px, calc(100% - 36px));
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--map-shadow);
  backdrop-filter: blur(12px);
}

.legend-list {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--map-text);
  font-size: 0.94rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.legend-dot--all {
  background: #2d8f69;
}

.map-pin-icon {
  position: relative;
  width: 24px;
  height: 36px;
  background: transparent;
  border: 0;
}

.map-pin-svg {
  display: block;
  width: 24px;
  height: 36px;
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(20, 61, 39, 0.18));
}

.map-point-label {
  padding: 2px 6px;
  border: gray solid 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e3552;
  box-shadow: 0 6px 18px rgba(20, 61, 39, 0.12);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.map-point-label::before {
  display: none;
}

.map-point-label.is-hidden {
  display: none;
}

.map-inline-toggle {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(27, 62, 112, 0.14);
}

.map-inline-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--map-text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.map-inline-toggle input[type='checkbox'] {
  margin: 0;
  accent-color: var(--map-primary);
}

.map-inline-toggle__hint {
  color: var(--map-text-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.map-inline-toggle.is-disabled {
  opacity: 0.58;
}

.map-inline-toggle.is-disabled label {
  cursor: not-allowed;
}

.map-inline-toggle.is-disabled input[type='checkbox'] {
  cursor: not-allowed;
}

.map-page .leaflet-control-zoom {
  margin: 0;
  border: 1px solid rgba(18, 64, 122, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(20, 61, 39, 0.12);
}

.map-page .leaflet-top.leaflet-left > .leaflet-control,
.map-page .leaflet-top.leaflet-left > .map-zoom-level-badge {
  margin-left: 4px;
}

.map-page .leaflet-control-zoom a {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 0;
  border-bottom: 1px solid rgba(18, 64, 122, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #143b68;
}

.map-page .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.map-page .leaflet-control-zoom a:hover {
  background: #ffffff;
}

.map-zoom-level-badge {
  width: 32px;
  margin: 0 0 1px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(18, 64, 122, 0.92);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.polygon-dimension-label,
.polygon-area-label {
  border: 0;
  background: transparent;
}

.polygon-dimension-label div,
.polygon-area-label div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.polygon-dimension-label div {
  padding: 2px 6px;
  border: 1px solid rgba(19, 72, 129, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #12407a;
  box-shadow: 0 6px 18px rgba(18, 64, 122, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.polygon-area-label div {
  padding: 5px 10px;
  border: 1px solid rgba(22, 60, 40, 0.12);
  border-radius: 999px;
  background: rgba(25, 79, 51, 0.9);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 61, 39, 0.2);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.polygon-dimension-label::before,
.polygon-area-label::before {
  display: none;
}

@media (max-width: 860px) {
  .legend-panel {
    bottom: 14px;
    left: 14px;
    width: auto;
    padding: 14px;
    border-radius: 8px;
    opacity: 0.75;
  }
}

@media (max-width: 640px) {
}
