/* MapLibre Popup Overrides */
.maplibregl-popup {
  max-width: none !important;
  z-index: 1500;
}

.maplibregl-popup-content {
  padding: 0 !important;
  width: 450px;
  height: auto !important;
  max-height: 420px !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .maplibregl-popup-content {
    width: 90vw;
    max-height: 50vh !important;
  }
}

/* Fix for close button */
.maplibregl-popup-close-button {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 20px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--color-text-secondary) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.maplibregl-popup-close-button:hover {
  background: white !important;
  color: var(--color-text-primary) !important;
  transform: scale(1.1) !important;
}

/* Responsive */
@media (max-width: 480px) {
  .parcel-label,
  .parcel-value {
    padding: 5px 6px;
  }
}