:root {
  /* Paleta auditada */
  --color-text-strong: #162113;
  --color-text: #2a3825;
  --color-text-muted: #4f6347;
  --color-text-subtle: #6b7280;
  --color-primary: #1f5230;
  --color-primary-soft: #dcfce7;
  --color-warning: #b45309;
  --color-warning-soft: #fef3c7;
  --color-danger: #a2372f;
  --color-danger-soft: rgba(162, 55, 47, 0.08);
  --color-surface: rgba(255, 255, 255, 0.74);
  --color-surface-strong: rgba(255, 255, 255, 0.92);
  --color-surface-soft: rgba(255, 255, 255, 0.62);
  --color-border: rgba(28, 43, 24, 0.12);
  --color-border-strong: rgba(28, 43, 24, 0.18);
  --color-hover: rgba(28, 43, 24, 0.06);

  /* Tipografia */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-feature-default: "cv11", "ss01", "ss03";

  /* Aliases compatíveis com o legado */
  --color-border-softest: var(--color-border);
  --color-accent: var(--color-primary);
  --color-accent-soft: var(--color-primary-soft);
  --color-success: var(--color-primary);

  /* Glassmorphism */
  --blur-glass: blur(24px) saturate(180%);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --glass-bg: var(--color-surface);
  --glass-bg-muted: var(--color-surface-soft);
  --glass-bg-strong: var(--color-surface-strong);
  --glass-bg-soft: var(--color-surface);
  --glass-bg-ultra: var(--color-surface-strong);
  --glass-bg-panel: var(--color-surface);
  --glass-blur: var(--blur-glass);
  --glass-blur-md: var(--blur-glass);
  --glass-blur-sm: var(--blur-glass);
  --glass-blur-xs: blur(18px) saturate(160%);
  --glass-blur-2xs: blur(14px) saturate(150%);

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-card: var(--glass-highlight), var(--shadow-glass);
  --shadow-dropdown: var(--glass-highlight), var(--shadow-glass);

  /* Espaçamentos */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;

  /* Tipografia */
  --font-size-label: 11px;
  --font-size-body: 13px;
  --font-size-value: 14px;
  --font-size-hero: 30px;
  --letter-spacing-label: 0.5px;
  --letter-spacing-caps: 0.05em;

  /* Transições */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Complementares já usados no arquivo */
  --color-white: var(--color-surface-strong);
  --color-white-soft: var(--color-surface);
  --color-white-strong: var(--color-surface-strong);
  --color-white-border: rgba(255, 255, 255, 0.24);
  --color-accent-mid: var(--color-primary);
  --color-accent-bright: var(--color-primary);
  --color-accent-deep: var(--color-primary);
  --color-map-bg: var(--color-surface-soft);
  --color-toast-bg: var(--color-surface);
  --color-overlay-dark: rgba(22, 33, 19, 0.78);
  --color-disabled: var(--color-text-subtle);
  --color-control-border: var(--color-border-strong);
  --color-fill-subtle: var(--color-hover);
  --color-fill-muted: var(--color-border);
  --color-scrollbar-thumb: var(--color-border-strong);
  --color-border-soft: var(--color-border);
  --color-border-hover: var(--color-border-strong);
  --color-border-selected: var(--color-border-strong);
  --color-hover-soft: var(--color-hover);
  --color-hover-panel: var(--color-hover);
  --color-hover-popup: var(--color-hover);
  --color-text-inverse: var(--color-surface-strong);
  --color-text-success: var(--color-primary);
  --color-warning-text: var(--color-warning);
  --color-error-soft: var(--color-danger-soft);
  --color-error-text: var(--color-danger);
  --color-whatsapp: var(--color-primary);
  --color-whatsapp-hover: var(--color-primary);
  --color-success-border-soft: var(--color-border);
  --color-success-border-strong: var(--color-border-strong);
  --color-success-hover-soft: var(--color-primary-soft);
  --color-success-active-soft: var(--color-primary-soft);
  --color-tag-bg: var(--color-primary-soft);
  --color-panel-border: var(--color-border);
  --color-panel-sep: var(--color-border);
  --color-panel-divider: var(--color-border-strong);
  --color-overlay-border: rgba(255, 255, 255, 0.24);
  --shadow-card-legacy: var(--glass-highlight), var(--shadow-glass);
  --shadow-search: var(--glass-highlight), var(--shadow-glass);
  --shadow-card-soft: var(--glass-highlight), var(--shadow-glass);
  --shadow-card-hover: var(--glass-highlight), var(--shadow-glass);
  --shadow-whatsapp: var(--glass-highlight), var(--shadow-glass);
  --shadow-whatsapp-hover: var(--glass-highlight), var(--shadow-glass);
  --shadow-glass-control: var(--glass-highlight), var(--shadow-glass);
  --shadow-glass-control-hover: var(--glass-highlight), var(--shadow-glass);
  --shadow-primary-glow: 0 0 8px rgba(31, 82, 48, 0.24);
  --gradient-accent: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-primary) 100%);
}

button,
[role="button"],
a,
.clickable {
  cursor: pointer;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.glass-container {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), var(--shadow-glass);
}

.icon {
  width: 1em;
  height: 1em;
  stroke-width: 1.5;
  flex-shrink: 0;
  display: block;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.tabular-nums,
.map-hover-tooltip-area,
.user-plan-balance,
.feature-area-hero,
.feature-detail-value,
.viewport-stats,
.coordinate-display,
.credit-balance {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv11", "ss01";
}

#toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  padding: 12px 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  font-size: var(--font-size-body);
  color: var(--color-text);
  transform: translateX(120%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: auto;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-error {
  border-left-color: var(--color-danger);
}

.toast-warning {
  border-left-color: var(--color-warning);
}

.toast-info {
  border-left-color: var(--color-accent);
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-action {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: var(--font-size-body);
  font-weight: 600;
  padding: 0;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.map-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#map {
  width: 100%;
  height: 100%;
}

.map-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  z-index: 1099;
  animation: progressPulse 2.5s ease-in-out infinite;
  box-shadow: var(--shadow-primary-glow);
  pointer-events: none;
}

@keyframes progressPulse {
  0% {
    width: 0%;
    opacity: 1;
  }
  50% {
    width: 70%;
    opacity: 1;
  }
  100% {
    width: 90%;
    opacity: 1;
  }
}

.map-loading-bar.complete {
  animation: progressComplete 0.4s ease-out forwards;
}

@keyframes progressComplete {
  0% {
    width: 90%;
    opacity: 1;
  }
  99% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

.map-loading-toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1098;
  background: var(--color-toast-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  box-shadow: var(--glass-highlight), var(--shadow-glass);
  animation: toastSlideUp 0.3s ease-out;
  pointer-events: none;
}

.loading-toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-strong);
  white-space: nowrap;
}

.loading-toast-text {
  display: inline-flex;
  align-items: baseline;
}

.loading-toast-dots {
  display: inline-block;
  min-width: 1.4em;
}

.loading-spinner {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.map-loading-toast.hide {
  animation: toastSlideDown 0.3s ease-out forwards;
}

@keyframes toastSlideDown {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

.map-unified-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  padding: 0;
  border-radius: 20px;
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-glass-control);
  transition:
    box-shadow var(--transition-base),
    background var(--transition-base),
    opacity var(--transition-slow),
    transform var(--transition-slow);
  pointer-events: auto;
}

.map-unified-controls:hover {
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-glass-control-hover);
}

.unified-nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  flex-shrink: 0;
}

.unified-ctrl-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--button-border-default);
  background: var(--button-bg-default);
  color: var(--button-text-default);
  border-radius: 9px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.unified-ctrl-btn:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  color: var(--button-text-default);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
  filter: brightness(0.97);
}

.unified-ctrl-btn:active {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  color: var(--button-text-default);
  transform: translateY(0);
  box-shadow: var(--button-shadow-default);
  filter: brightness(0.94);
}

.unified-ctrl-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 82, 48, 0.16), var(--button-shadow-hover);
}

.unified-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border-strong);
  margin: 0 4px;
  flex-shrink: 0;
}

.unified-layers-group {
  position: relative;
  padding: 6px 8px 6px 10px;
  flex-shrink: 0;
}

.unified-layers-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--button-border-default);
  background: var(--button-bg-default);
  font: inherit;
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--button-text-default);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.unified-layers-trigger:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  color: var(--button-text-default);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.map-unified-controls.expanded .unified-layers-trigger {
  background: var(--button-bg-active);
  border-color: var(--button-border-active);
  color: var(--button-text-active);
  box-shadow: var(--button-shadow-active);
}

.map-unified-controls.expanded .unified-badge {
  background: rgba(255, 255, 255, 0.18);
  color: var(--button-text-active);
}

.map-unified-controls.expanded .unified-chevron {
  color: var(--button-text-active);
}

.unified-badge {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.unified-chevron {
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.map-unified-controls.expanded .unified-chevron {
  transform: rotate(180deg);
}

.unified-panel-body {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--glass-bg-panel);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--color-panel-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 260px;
  box-shadow: var(--glass-highlight), var(--shadow-glass);
  z-index: 1101;
}

.unified-panel-section {
  margin-bottom: 14px;
}

.unified-panel-section:last-child {
  margin-bottom: 0;
}

.unified-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.unified-panel-sep {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}

.basemap-thumbnails {
  display: flex;
  gap: 7px;
}

.basemap-thumb {
  flex: 1;
  border: 1.5px solid var(--button-border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--button-bg-default);
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  font: inherit;
  color: var(--button-text-default);
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.basemap-thumb:hover {
  transform: translateY(-1px);
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  box-shadow: var(--button-shadow-hover);
}

.basemap-thumb.active,
.basemap-thumb[aria-pressed="true"] {
  background: var(--button-bg-active);
  border-color: var(--button-border-active);
  color: var(--button-text-active);
  box-shadow: var(--button-shadow-active);
}

.basemap-thumb-img {
  width: 100%;
  height: 46px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.basemap-thumb:hover .basemap-thumb-img {
  filter: saturate(1.05) brightness(1.04);
}

.basemap-thumb.active .basemap-thumb-img,
.basemap-thumb[aria-pressed="true"] .basemap-thumb-img {
  opacity: 0.92;
  filter: saturate(1.1);
}

.basemap-thumb span {
  display: block;
  font-family: var(--font-family-base);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
  padding: 5px 4px 6px;
}

.basemap-thumb.active span,
.basemap-thumb[aria-pressed="true"] span {
  color: var(--button-text-active);
}

@media (max-width: 480px) {
  #toast-container {
    right: 12px;
    left: 12px;
    bottom: 16px;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .map-loading-toast {
    bottom: 152px;
    max-width: calc(100vw - 24px);
    padding: 8px 12px;
  }

  .loading-toast-content {
    font-size: 0.78rem;
  }

  .map-unified-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: min(280px, calc(100vw - 32px));
  }

  .unified-nav-group {
    border-bottom: 1px solid var(--color-border);
    justify-content: center;
  }

  .unified-divider {
    display: none;
  }

  .unified-layers-group {
    width: 100%;
    padding-left: 8px;
  }

  .unified-layers-trigger {
    width: 100%;
    justify-content: center;
  }

  .unified-panel-body {
    position: absolute;
    top: auto;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: min(280px, calc(100vw - 32px));
    min-width: 0;
  }
}

.leaflet-container {
  font-family: var(--font-family-base);
  background: var(--color-map-bg);
}

.floating-card {
  position: absolute;
  z-index: 1000;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  box-shadow: var(--glass-highlight), var(--shadow-glass);
  padding: 18px;
  max-height: calc(100vh - 40px);
  max-width: calc(100vw - 40px);
  overflow: visible;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.floating-controls,
.floating-details {
  top: 60px;
  bottom: auto;
  width: 360px;
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), var(--shadow-glass);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.floating-controls {
  left: 20px;
}

.floating-details {
  right: 20px;
  opacity: 1;
  transform: none;
}

.floating-card .control-block {
  padding: 16px 0 0;
  border-bottom: 0;
}

.floating-card .card-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 4px;
}

.floating-controls .card-body.left-panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.left-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 20px 24px;
}

.left-panel-scroll::-webkit-scrollbar {
  width: 4px;
}

.left-panel-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 4px;
}

.floating-controls .explorer-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.floating-controls .explorer-panel-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.floating-controls .explorer-panel-eyebrow {
  font-size: var(--font-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-text-muted);
}

.floating-controls .explorer-panel-header h1 {
  margin: 0;
  font-size: var(--font-size-value);
  line-height: 1.35;
  font-weight: 500;
  font-family: var(--font-family-base);
  color: var(--color-text);
}

.floating-controls .floating-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.floating-controls .control-block {
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.floating-controls .control-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.floating-controls .control-block h2,
.floating-controls .filter-label,
.floating-controls .stat-label {
  margin: 0 0 10px;
  font-family: var(--font-family-base);
  font-size: var(--font-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-text-muted);
}

.floating-controls .filter-group + .filter-group {
  margin-top: 16px !important;
}

.floating-controls .custom-select-trigger {
  padding: 12px 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--font-size-body);
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.floating-controls .custom-select-trigger:hover,
.floating-controls .custom-select.open .custom-select-trigger {
  border-color: var(--color-border-hover);
  box-shadow: none;
}

.floating-controls .custom-select-list {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card-soft);
}

.floating-controls .custom-select-item {
  font-size: var(--font-size-body);
  color: var(--color-text);
}

.floating-controls .custom-select-item:hover,
.floating-controls .custom-select-item.selected {
  background: var(--color-hover-panel);
  color: var(--color-text);
}

.floating-controls .stats-grid {
  gap: 12px;
  margin-top: 0;
}

.floating-controls .stat-chip {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.floating-controls .stat-value {
  font-family: var(--font-family-base);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.floating-controls .stat-label {
  margin: 6px 0 0;
}

.floating-controls .stats-sources {
  gap: 6px;
}

.floating-controls .stat-source-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-hover);
  font-size: var(--font-size-label);
  color: var(--color-text-muted);
}

.floating-controls .filter-chip {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--button-border-default);
  background: var(--button-bg-default);
  color: var(--button-text-default);
  font-size: var(--font-size-body);
  font-weight: 500;
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.floating-controls .filter-chip:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  color: var(--button-text-default);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.floating-controls .filter-chip.active {
  background: var(--button-bg-active);
  border-color: var(--button-border-active);
  color: var(--button-text-active);
  font-weight: 600;
  box-shadow: var(--button-shadow-active);
}

.floating-card .card-body::-webkit-scrollbar {
  width: 4px;
}

.floating-card .card-body::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 4px;
}

.floating-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.floating-card .card-header h1,
.floating-card .card-header h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-family-base);
}

.floating-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.floating-close:hover {
  background: var(--color-hover);
}

.floating-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 4px 0 0;
  line-height: 1.45;
}

.floating-btn {
  position: absolute;
  z-index: 1000;
  background: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur-2xs);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-soft);
  cursor: pointer;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: opacity var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.floating-btn:hover {
  background: var(--color-white);
}

.card-collapse-btn {
  position: absolute;
  top: 24px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: transform var(--transition-slow), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card-collapse-btn:hover {
  background: var(--glass-bg-ultra);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}

.floating-controls .card-collapse-btn {
  right: -16px;
}

.floating-details .card-collapse-btn {
  left: -16px;
}

.card-collapse-btn .icon {
  color: var(--color-text-muted);
  transition: transform var(--transition-slow);
}

.floating-controls.is-collapsed {
  transform: translateX(calc(-100% - 4px));
}

.floating-details.is-collapsed {
  transform: translateX(calc(100% + 4px));
}

.floating-controls.is-collapsed .card-collapse-btn,
.floating-details.is-collapsed .card-collapse-btn {
  background: var(--color-surface-strong);
}

.floating-controls.is-collapsed .card-collapse-btn .icon,
.floating-details.is-collapsed .card-collapse-btn .icon {
  transform: rotate(180deg);
}

.property-panel-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.property-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
  flex-shrink: 0;
}

.property-panel-eyebrow {
  font-size: var(--font-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-text-muted);
}

.property-selected-layout[style*="display: block"] {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.property-selected-layout[style*="display: block"] + .property-empty-state {
  display: none;
}

.property-panel-headline {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.property-headline-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.property-headline-label {
  font-size: var(--font-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-text-muted);
}

.property-headline-area {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-hero);
  line-height: 1;
  font-weight: 700;
  color: var(--color-accent-mid);
}

.property-headline-context {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.property-status-line {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#badgeStatusCAR {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
}

#badgeStatusCAR::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: currentColor;
  flex-shrink: 0;
}

.property-panel-sheet {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.property-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 24px 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.property-accordion-trigger .icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.property-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 20px 24px;
}

.property-panel-scroll::-webkit-scrollbar {
  width: 5px;
}

.property-panel-scroll::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar-thumb);
  border-radius: var(--radius-pill);
}

.detail-panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.detail-panel .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.detail-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.detail-loading-text {
  line-height: 1.4;
}

.detail-panel .detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.detail-panel .detail-grid > div > strong {
  font-size: var(--font-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-text-muted);
}

.detail-panel .detail-grid > div > span {
  font-size: var(--font-size-value);
  line-height: 1.4;
  color: var(--color-text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.detail-panel .detail-grid > div:first-child,
.detail-panel .detail-grid > div:last-child {
  grid-column: 1 / -1;
}

.detail-panel .detail-grid > div:first-child {
  gap: 6px;
  padding-bottom: 4px;
}

.detail-panel .detail-grid > div:first-child > span {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: var(--font-size-body);
  font-weight: 500;
}

.detail-panel .detail-grid > div:last-child > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-tag-bg);
  color: var(--color-text-success);
  font-size: var(--font-size-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
}

.property-panel-actions #btnOpenModal,
.property-panel-actions #btnAnalisarTopo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--button-border-default);
  border-radius: var(--radius-md);
  background: var(--button-bg-default);
  color: var(--button-text-default);
  font-size: var(--font-size-body);
  font-weight: 600;
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.property-panel-actions #btnOpenModal .icon,
.property-panel-actions #btnAnalisarTopo .icon {
  color: var(--color-primary);
}

.property-panel-actions #btnOpenModal:hover,
.property-panel-actions #btnAnalisarTopo:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.property-panel-actions #btnOpenModal:active,
.property-panel-actions #btnAnalisarTopo:active {
  transform: translateY(0);
  border-color: var(--button-border-active);
}

.property-panel-actions #btnOpenModal:disabled,
.property-panel-actions #btnAnalisarTopo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.property-topography-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.topo-metrics-grid {
  gap: 12px;
}

.topo-metrics-grid-altitude {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topo-metrics-grid-slope {
  margin-top: 10px;
}

.topo-badge-row {
  margin-top: 12px;
}

.topo-badge-row .badge {
  margin-top: 6px;
  display: inline-flex;
}

.topo-legend {
  margin-top: 14px;
}

.topo-legend-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.topo-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--color-text);
}

.topo-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.topo-legend-swatch-flat {
  background: var(--color-primary);
}

.topo-legend-swatch-soft {
  background: var(--color-primary-soft);
}

.topo-legend-swatch-wavy {
  background: var(--color-warning);
}

.topo-legend-swatch-steep {
  background: var(--color-danger);
}

.topo-legend-swatch-mountain {
  background: var(--color-text-strong);
}

.topo-loading {
  margin-top: 10px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.topo-error {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--color-error-soft);
  font-size: 0.84rem;
  color: var(--color-error-text);
}

.property-panel-actions {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  flex-shrink: 0;
}

.property-panel-actions > button {
  flex: 1;
  margin: 0;
}

.property-empty-state {
  display: flex;
  align-items: center;
  padding: 24px;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state-icon {
  color: var(--color-text-subtle);
  animation: emptyStatePulse 2.2s ease-in-out infinite;
}

.empty-state-tip {
  margin: 0;
  min-height: 40px;
  max-width: 240px;
  font-size: var(--font-size-body);
  line-height: 1.5;
  transition: opacity var(--transition-base);
}

.empty-state-tip.fading {
  opacity: 0;
}

@keyframes emptyStatePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

#zoomMessage {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-overlay-dark);
  color: var(--color-text-inverse);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  width: fit-content;
  display: inline-block;
  backdrop-filter: blur(6px);
}

.view-source-menu {
  display: grid;
  gap: 6px;
}

.view-source-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--button-border-default);
  border-radius: var(--radius-md);
  background: var(--button-bg-default);
  color: var(--button-text-default);
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.view-source-option:hover {
  border-color: var(--button-border-hover);
  background: var(--button-bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.view-source-option.is-active {
  border-color: var(--button-border-active);
  background: var(--button-bg-active);
  color: var(--button-text-active);
  box-shadow: var(--button-shadow-active);
}

.view-source-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-label);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-surface-strong);
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.view-source-option.is-active .view-source-checkbox {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--button-text-active);
}

.view-source-dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 70%, var(--color-text-strong));
  flex-shrink: 0;
}

.view-source-option.is-active .view-source-dot {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(31, 82, 48, 0.22);
}

.map-search-control {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 400px;
  pointer-events: none;
}

.map-search-control * {
  pointer-events: all;
}

.map-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg-ultra);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-search);
  backdrop-filter: var(--glass-blur-2xs);
  -webkit-backdrop-filter: var(--glass-blur-2xs);
}

.map-search-box .icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.map-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

@keyframes map-search-autofill-guard {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.map-search-input:-webkit-autofill,
.map-search-input:-webkit-autofill:hover,
.map-search-input:-webkit-autofill:focus {
  animation-name: map-search-autofill-guard;
  animation-duration: 0.01s;
  -webkit-text-fill-color: var(--color-text);
}

.map-search-input::-webkit-search-decoration,
.map-search-input::-webkit-search-cancel-button,
.map-search-input::-webkit-search-results-button,
.map-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.map-search-input::placeholder {
  color: var(--color-text-muted);
}

.map-search-clear {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-search-clear:hover {
  color: var(--color-text);
}

.map-search-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  background: var(--glass-bg-ultra);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-dropdown);
  max-height: 240px;
  overflow-y: auto;
}

.map-search-result-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.35;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.map-search-result-item:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

.map-search-empty {
  padding: 12px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.stat-chip {
  background: var(--color-hover);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.stats-sources {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.viewport-empty-message {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.stat-source-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--color-text);
  background: var(--color-hover);
  border-radius: 20px;
  padding: 3px 9px;
}

.stat-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-label {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 6px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chip {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--button-border-default);
  background: var(--button-bg-default);
  cursor: pointer;
  color: var(--button-text-default);
  font-weight: 500;
  box-shadow: var(--button-shadow-default);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.filter-chip:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  color: var(--button-text-default);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.filter-chip.active {
  background: var(--button-bg-active);
  border-color: var(--button-border-active);
  color: var(--button-text-active);
  font-weight: 600;
  box-shadow: var(--button-shadow-active);
}

.user-section {
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--glass-bg-muted);
  backdrop-filter: var(--glass-blur-xs);
  -webkit-backdrop-filter: var(--glass-blur-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.user-identity:hover {
  background: var(--color-hover);
  border-color: var(--color-border);
}

.user-info {
  min-width: 0;
  text-align: left;
  overflow: hidden;
}

.user-name {
  font-size: var(--font-size-value);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  margin-top: 2px;
  font-size: var(--font-size-label);
  line-height: 1.3;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chevron {
  color: var(--color-text-subtle);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.user-identity[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown,
.user-settings-dropdown {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 24px;
  right: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-highlight), var(--shadow-glass);
  padding: 6px;
  z-index: 20;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: var(--font-size-body);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.user-dropdown-item:hover {
  background: var(--color-hover-soft);
}

.user-plan {
  padding: 10px 12px;
  background: var(--color-fill-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.user-plan.wallet-shortcut {
  cursor: pointer;
}

.user-plan.wallet-shortcut:hover {
  background: var(--color-hover-soft);
  box-shadow: 0 8px 18px rgba(18, 52, 32, 0.08);
  transform: translateY(-1px);
}

.user-plan.wallet-shortcut:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.user-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-plan-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.user-plan[data-plan="free"] .user-plan-badge {
  background: var(--color-hover-soft);
  color: var(--color-text-muted);
}

.user-plan[data-plan="credits"] .user-plan-badge {
  background: var(--color-warning-soft);
  color: var(--color-warning-text);
}

.user-plan[data-plan="pro"] .user-plan-badge {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.user-plan-balance {
  font-size: var(--font-size-label);
  font-weight: 500;
  color: var(--color-text-muted);
}

.user-plan-bar {
  height: 4px;
  background: var(--color-fill-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.user-plan-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: width var(--transition-slow);
}

.user-plan[data-plan="free"] .user-plan-bar-fill {
  background: var(--color-text-subtle);
}

.user-plan[data-plan="credits"] .user-plan-bar-fill {
  background: var(--color-warning);
}

.user-plan[data-plan="pro"] .user-plan-bar-fill {
  background: var(--color-accent);
}

.user-plan-bar-fill.warning {
  background: var(--color-warning);
}

.user-plan-bar-fill.danger {
  background: var(--color-danger);
}

.user-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-body);
  color: var(--color-text);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.user-settings:hover {
  background: var(--color-hover);
  border-color: var(--color-border);
}

.clean-mode .floating-card,
.clean-mode .map-search-control,
.clean-mode #zoomMessage {
  opacity: 0;
  pointer-events: none;
}

.clean-mode .map-unified-controls {
  opacity: 1;
  pointer-events: auto;
  background: var(--color-overlay-dark);
  border-color: var(--color-overlay-border);
  box-shadow: var(--glass-highlight), var(--shadow-glass);
}

.clean-mode .unified-divider,
.clean-mode #btnZoomIn,
.clean-mode #btnZoomOut,
.clean-mode .unified-layers-group {
  display: none;
}

.clean-mode .unified-nav-group {
  padding: 6px;
}

.clean-mode #btnCleanMode {
  background: var(--button-bg-active);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--button-text-active);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.disambiguation-popup .leaflet-popup-content-wrapper {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-highlight), var(--shadow-glass);
  padding: 4px 0;
  min-width: 260px;
}

.disambiguation-popup .leaflet-popup-content {
  margin: 0;
}

.disambiguation-popup-title {
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  padding: 8px 14px 4px;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
}

.disambiguation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  width: calc(100% - 8px);
  background: transparent;
  border: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font-size: var(--font-size-body);
  border-radius: var(--radius-sm);
  margin: 0 4px;
  transition: background var(--transition-fast);
}

.disambiguation-item:hover {
  background: var(--color-hover);
}

.disambiguation-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.disambiguation-label {
  font-weight: 500;
}

.disambiguation-meta {
  color: var(--color-text-muted);
}
