/* Fullscreen map */
body { margin: 0; padding: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.w-screen { width: 100vw; }
.overflow-hidden { overflow: hidden; }

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

/* Map Controls Bar */
.map-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.1s ease;
  background-color: rgba(255, 255, 255, 0.08);
}

.map-control:active {
  transform: scale(0.96);
  background-color: rgba(255, 255, 255, 0.15);
}

.map-control input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  cursor: pointer;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 3px;
  width: 7px;
  height: 14px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.map-control input:checked ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.25);
}

.map-control input:checked ~ .checkmark::after {
  display: block;
}

/* Layer-specific active colors */
.map-control input:checked ~ .checkmark.voivodeships {
  border-color: #999;
  background-color: rgba(212, 212, 212, 0.3);
}

.map-control input:checked ~ .checkmark.counties {
  border-color: #b87333;
  background-color: rgba(232, 213, 196, 0.3);
}

.map-control input:checked ~ .checkmark.municipalities {
  border-color: #2a8a8a;
  background-color: rgba(205, 224, 224, 0.3);
}

.label-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .map-controls {
    gap: 4px;
    padding: 8px 12px;
  }

  .map-control {
    padding: 4px 10px;
    gap: 8px;
  }

  .checkmark {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .checkmark::after {
    left: 7px;
    top: 2px;
    width: 6px;
    height: 13px;
  }

  .label-text {
    font-size: 14px;
  }
}
