:root {
  /* Light Theme Colors */
  --bg-dark: #f8fafc;
  /* Slate 50 */
  --bg-card: rgba(255, 255, 255, 0.8);
  --primary: #12b910;
  /* Emerald 500 */
  --primary-glow: rgba(16, 185, 129, 0.2);
  --secondary: #3b82f6;
  /* Blue 500 */
  --accent: #f59e0b;
  /* Amber 500 */
  --purple: #8b5cf6;
  /* Violet 500 */
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #64748b;
  /* Slate 500 */
  --border: rgba(148, 163, 184, 0.2);

  /* Effects */
  --glass-blur: blur(12px);
  --shadow-lg:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-main: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image:
    radial-gradient(circle at 10% 20%,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 40%),
    radial-gradient(circle at 90% 80%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 40%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1;
  /* Fix vertical alignment */
}

.logo img {
  display: block;
  /* Remove ghost space */
  transform: translateY(-2px);
  /* Shift higher */
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

.nav-btn.active {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

/* Main Content Area */
main {
  flex: 1;
  position: relative;
  padding: 2rem 5%;
  max-width: 2400px;
  width: 95%;
  margin: 0 auto;
}

.tab-content {
  display: none;
  /* Hidden by default */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  height: 100%;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Hero & Upload Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.upload-container {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.upload-container:hover,
.upload-container.drag-over {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.upload-container.drag-over {
  background: #fafafa;
}

.upload-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.upload-container:hover .upload-icon {
  color: var(--primary);
}

.contact-card:hover i {
  color: var(--primary);
  transition: color 0.3s;
}

/* Toggle button hover effect */
.btn-toggle-wrapper:hover i {
  color: var(--primary);
  transition: color 0.3s;
}

.file-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.options {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: stretch;
  /* Equal height */
}

/* Sharing Form */
.sharing-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.sharing-form h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.consents {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
}

.consent-item input {
  margin-top: 3px;
  accent-color: var(--primary);
}

/* Selection Grid - Switched to Flex for easy separator */
.selection-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.selection-group {
  flex: 1;
}

.vertical-line {
  width: 1px;
  background: var(--border);
  margin: 0 1rem;
}

.selection-group h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.selection-options {
  display: flex;
  gap: 0.75rem;
  /* Reduced gap */
}

.option-btn {
  flex: 1;
  padding: 0.5rem;
  /* Reduced padding */
  border: 1px solid var(--border);
  border-radius: 6px;
  /* Slightly smaller radius */
  background: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  /* Smaller font */
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.option-btn:hover {
  background: #f8fafc;
  border-color: var(--text-muted);
}

.option-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
  background: #059669;
}

.btn-secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--text-muted);
}

/* Button Variants */
#browse-btn {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
}

#analyse-btn {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  background-color: var(--secondary);
  /* Blue */
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

#analyse-btn:hover {
  background-color: #2563eb;
  /* Darker Blue */
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

/* Results & Cards */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Datasets Map Section */
.datasets-layout {
  display: flex;
  gap: 2rem;
  min-height: 70vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-container {
  flex: 2;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

/* Abstract Map Background */
.map-bg {
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%2394a3b8" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E');
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.map-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: transform 0.2s;
}

.map-marker:hover,
.map-marker.active {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--accent);
  z-index: 20;
}

.map-marker .tooltip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.map-marker:hover .tooltip {
  opacity: 1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.datasets-sidebar {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid var(--border);
}

.datasets-detail {
  display: none;
  animation: fadeIn 0.3s ease;
}

.datasets-detail.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Biomass Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 500px;
  background: #f1f5f9;
  border-radius: 12px;
  display: block;
  /* Leaflet needs block */
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Utilities */
.hidden {
  display: none !important;
}

.mt-4 {
  margin-top: 1rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 5%;
  margin-top: auto;
}

.partners-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 2400px;
  width: 95%;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1;
  /* Fix vertical alignment */
}

.footer-logo img {
  display: block;
  transform: translateY(-2px);
  /* Shift higher */
}

.footer-logo span {
  color: var(--primary);
}

.partners-footer a img {
  height: 50px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s;
  filter: grayscale(100%);
}

.partners-footer a img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* About Section Specifics */
#about .card-title {
  font-size: 1.5rem;
  /* Larger title */
  margin-bottom: 1rem;
}

#about .card p {
  font-size: 1.1rem;
  /* Larger text */
  line-height: 1.6;
}

#about .card {
  padding: 2.5rem;
  /* Larger bubbles */
}

/* Disable pop-up animation for About tab cards */
#about .card:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

/* Disable hover effects for Contact Us container in About tab */
#about .upload-container:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
  background: #fff;
  transform: none;
}

/* About tab animation */
#about.tab-content {
  transform: none;
  transition: opacity 0.4s ease;
  /* Keep fade, remove slide */
}

/* Map Loader */
.map-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: var(--primary);
  font-weight: 600;
}


.results-container {
  position: relative;

}

.map-loader {
  width: 100%;
  right: 25%;
  width: 75%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(16, 185, 129, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Results Map & Sidebar */
.results-container {
  display: flex;
  gap: 1.5rem;
  height: 75vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-view {
  flex: 3;
  position: relative;
  z-index: 0;
}

.map-sidebar {
  flex: 1;
  padding: 1.5rem;
  background: #fff;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.25rem;
}

/* Layer Switcher */
.layer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.layer-item:hover {
  background-color: #f8f9fa;
}

.layer-item.active {
  background-color: #e9ecef;
  border-color: var(--primary);
}

/* Fix layout shift for Inspectors */
#inspector-content,
#datasets-inspector {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
}

.marker-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.layer-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

/* Legend */
.legend-gradient {
  height: 12px;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Inspector */
#inspector-content {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.inspector-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.inspector-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* Custom Button Checkbox Style */
.btn-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
  flex: 1;
  /* Share space equally */
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-toggle-wrapper:hover {
  border-color: var(--primary);
  background: #f8fafc;
  color: var(--primary);
}

.btn-toggle-wrapper.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-toggle-wrapper input {
  display: none;
}

.btn-toggle-wrapper i {
  font-size: 1.1rem;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  /* Default tailored for alerts */
  max-height: 90vh;
  /* Allow shrink, cap at 90% view */
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Specific override for the Chart Modal which needs size */
#chart-modal .modal-content {
  max-width: 800px;
  height: 70vh;
  /* Fixed height for chart canvas */
  width: 80%;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

#chart-container {
  flex-grow: 1;
  position: relative;
  width: 100%;
  min-height: 0;
  /* Important for flex child overflow */
}

#inspector-content {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Map Controls */
.map-control-layers {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 10px;
  z-index: 1;
}

.map-control-layers label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
}

.map-control-layers input[type="radio"] {
  margin: 0;
  accent-color: var(--primary);
}

.map-control-opacity {
  position: absolute;
  top: 120px;
  right: 10px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.opacity-slider-input {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 10px;
  height: 80px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  border-radius: 5px;
}

.opacity-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.opacity-slider-input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

/* Resolution Button Active State */
.res-btn.active {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Fix for Toggle Button Icons when Active */
.btn-toggle-wrapper.active i {
  color: white !important;
}

/* Fix Map Cursor Behavior */
/* Default to arrow cursor */
.leaflet-container {
  cursor: default !important;
}

/* Grabbing cursor only when clicking/dragging */
.leaflet-container:active,
.leaflet-dragging .leaflet-container {
  cursor: grabbing !important;
}

/* Fix MapLibre (Datasets & Results) Cursor Behavior */
/* Target the canvas element directly for MapLibre */
#results-map canvas,
#datasets-map canvas,
.maplibregl-canvas-container.maplibregl-interactive,
.maplibregl-canvas-container {
  cursor: default !important;
}

/* Grabbing on active click/drag */
#results-map canvas:active,
#datasets-map canvas:active,
.maplibregl-canvas-container.maplibregl-interactive:active,
.maplibregl-canvas-container.maplibregl-touch-drag-pan {
  cursor: grabbing !important;
}

/* Auto-height Modal Content */
.modal-content.modal-auto {
  height: auto;
  max-height: 85vh;
  overflow-y: auto;
}