/* ================================================================
   GEOPORTAL AMBIENTAL RM - ESTILOS
   Tema: Minimalista Medioambiental
   ================================================================ */

:root {
  /* Paleta de Colores Medioambiental */
  --forest-green: #2d5016;
  --sage-green: #7a9b76;
  --earth-brown: #8b7355;
  --sky-blue: #87ceeb;
  --moss-green: #8a9a5b;

  /* Neutros Naturales */
  --stone-gray: #6b7280;
  --sand-beige: #f5f5dc;
  --bark-dark: #3e2723;
  --mist-white: #f8f9fa;
  --cloud-white: #ffffff;

  /* Acentos */
  --leaf-accent: #90ee90;
  --warning-amber: #ff8c00;
  --error-terracotta: #cd5c5c;
  --success-green: #4caf50;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Tipografía */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", monospace;

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ================================================================
   RESET Y BASE
   ================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--bark-dark);
  background-color: var(--mist-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--earth-brown);
  outline-offset: 2px;
}

/* ================================================================
   LAYOUT PRINCIPAL
   ================================================================ */

#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ================================================================
   HEADER
   ================================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--forest-green) 0%,
    var(--sage-green) 100%
  );
  color: var(--cloud-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

header h1::before {
  content: "🌿";
  font-size: 1.5rem;
}

/* ================================================================
   CONTROLES DEL MAPA
   ================================================================ */

.map-controls {
  position: fixed;
  top: 80px;
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 900;
}

.control-btn {
  width: 44px;
  height: 44px;
  background: var(--cloud-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--forest-green);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.control-btn:hover {
  background: var(--sage-green);
  color: var(--cloud-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.control-btn:active {
  transform: translateY(0);
}

/* ================================================================
   PANEL LATERAL
   ================================================================ */

.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 320px;
  height: calc(100vh - 60px);
  background: var(--cloud-white);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 800;
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: var(--space-lg);
  background: var(--mist-white);
  border-bottom: 1px solid var(--stone-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest-green);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-header h2 i {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-content {
  padding: var(--space-lg);
  flex: 1;
}

.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--mist-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--stone-gray);
}

.sidebar-footer a {
  color: var(--sage-green);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-footer a:hover {
  color: var(--forest-green);
  text-decoration: underline;
}

/* ================================================================
   BÚSQUEDA
   ================================================================ */

.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--bark-dark);
  background: var(--cloud-white);
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--cloud-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
  color: var(--stone-gray);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone-gray);
  pointer-events: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--stone-gray);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.search-clear-btn:hover {
  color: var(--error-terracotta);
}

.search-clear-btn.hidden {
  display: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--cloud-white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.search-results.active {
  display: block;
}

.search-results > div {
  padding: var(--space-md);
  cursor: pointer;
  border-bottom: 1px solid var(--mist-white);
  transition: background var(--transition-fast);
  color: var(--bark-dark);
  font-size: 0.875rem;
}

.search-results > div:last-child {
  border-bottom: none;
}

.search-results > div:hover {
  background: var(--mist-white);
  color: var(--forest-green);
}

/* ================================================================
   CAPAS
   ================================================================ */

.layers-section {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.layer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--cloud-white);
  border: 1px solid var(--mist-white);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.layer-item:hover {
  background: var(--mist-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-green);
}

.layer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
}

.layer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--mist-white);
  border-radius: 6px;
  font-size: 1rem;
}

.layer-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bark-dark);
  line-height: 1.4;
}

.layer-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Switch Toggle */
.layer-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.layer-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.layer-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.layer-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .layer-slider {
  background-color: var(--sage-green);
}

input:focus + .layer-slider {
  box-shadow: 0 0 1px var(--sage-green);
}

input:checked + .layer-slider:before {
  transform: translateX(20px);
}

/* ================================================================
   BOTONES
   ================================================================ */

.btn {
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-sm);
}

.btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.btn-primary {
  background: var(--sage-green);
  color: var(--cloud-white);
}

.btn-primary:hover {
  background: var(--forest-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--mist-white);
  color: var(--forest-green);
  border: 1px solid var(--stone-gray);
}

.btn-secondary:hover {
  background: var(--sand-beige);
}

.btn-icon {
  padding: var(--space-sm);
  background: transparent;
  color: var(--stone-gray);
}

.btn-icon:hover {
  color: var(--forest-green);
  background: var(--mist-white);
}

/* ================================================================
   MODALES
   ================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 39, 35, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--cloud-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-lg);
  background: var(--mist-white);
  border-bottom: 1px solid var(--stone-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest-green);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-title i {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--stone-gray);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--sand-beige);
  color: var(--bark-dark);
}

.modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  max-height: calc(80vh - 140px);
}

.modal-footer {
  padding: var(--space-lg);
  background: var(--mist-white);
  border-top: 1px solid var(--stone-gray);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ================================================================
   FORMULARIOS
   ================================================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest-green);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--stone-gray);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--bark-dark);
  background: var(--cloud-white);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sage-green);
  box-shadow: 0 0 0 3px rgba(122, 155, 118, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ================================================================
   NOTIFICACIONES
   ================================================================ */

.notification {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--cloud-white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 400px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-slow);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid var(--success-green);
}

.notification.error {
  border-left: 4px solid var(--error-terracotta);
}

.notification.warning {
  border-left: 4px solid var(--warning-amber);
}

.notification.info {
  border-left: 4px solid var(--sky-blue);
}

/* ================================================================
   POPUPS DEL MAPA
   ================================================================ */

.leaflet-popup-content-wrapper {
  background: var(--cloud-white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0;
}

.leaflet-popup-content {
  margin: 0;
  min-width: 200px;
}

.popup-header {
  padding: var(--space-md);
  background: var(--sage-green);
  color: var(--cloud-white);
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.popup-body {
  padding: var(--space-md);
}

.popup-field {
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.popup-field strong {
  color: var(--forest-green);
  display: inline-block;
  min-width: 80px;
}

/* Popup de features (showPopup en map.js) */

.feature-popup {
  min-width: 240px;
  font-size: 0.875rem;
  padding: 8px;
}

.feature-popup-title {
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid;
  font-size: 0.9375rem;
  font-weight: 600;
}

.feature-popup-empty {
  color: var(--stone-gray);
  font-style: italic;
  font-size: 0.875rem;
}

.feature-popup-grid {
  display: grid;
  gap: 4px;
}

.feature-popup-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--mist-white);
}

.feature-popup-row:last-child {
  border-bottom: none;
}

.feature-popup-key {
  color: var(--stone-gray);
  min-width: 100px;
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.feature-popup-value {
  color: var(--bark-dark);
  font-size: 0.8125rem;
  word-break: break-word;
}

/* ================================================================
   CONTACTO
   ================================================================ */

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.contact-item {
  padding: var(--space-md);
  margin-bottom: var(--space-xs);
  background: var(--mist-white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: var(--sage-green);
  font-size: 1.125rem;
  width: 20px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--forest-green);
  text-decoration: none;
  transition: color var(--transition-base);
  word-break: break-all;
}

.contact-item a:hover {
  color: var(--sage-green);
  text-decoration: underline;
}

/* ================================================================
   UTILIDADES
   ================================================================ */

.hidden {
  display: none !important;
}

.loading {
  pointer-events: none;
  opacity: 0.6;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--stone-gray);
  line-height: 1.6;
}

.text-muted li {
  margin-bottom: var(--space-sm);
}

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  header {
    padding: 0 var(--space-md);
  }

  header h1 {
    font-size: 1rem;
  }

  .sidebar {
    width: 100%;
  }

  .map-controls {
    right: var(--space-md);
    top: 70px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
  }

  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-popup .leaflet-popup-content {
    min-width: 300px;
  }
}

/* ================================================================
   ANIMACIONES
   ================================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--mist-white);
}

::-webkit-scrollbar-thumb {
  background: var(--stone-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sage-green);
}

/* ================================================================
   DASHBOARD DE ESTADÍSTICAS (popup municipio)
   ================================================================ */

.stats-dashboard {
  padding: 16px;
  font-family: var(--font-sans);
}

.stats-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--stone-gray);
}

.stats-header h3 {
  margin: 0 0 8px 0;
  color: var(--forest-green);
  font-size: 18px;
  font-weight: 600;
}

.stats-area {
  font-size: 13px;
  color: var(--stone-gray);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--mist-white);
  border: 1px solid var(--stone-gray);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--sage-green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.stat-card.clickable {
  cursor: pointer;
  position: relative;
}

.stat-card.clickable::after {
  content: "👁️";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card.clickable:hover::after {
  opacity: 0.6;
}

.stat-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--stone-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-sublabel {
  font-size: 12px;
  color: var(--bark-dark);
  margin-top: 4px;
  line-height: 1.3;
}

/* Popup de estadísticas */
.stats-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.stats-popup .leaflet-popup-content {
  margin: 0;
  min-width: 500px;
}

/* Vista de detalles */
.stat-details {
  padding: 16px;
}

.stat-details h3 {
  margin: 0 0 12px 0;
  color: var(--forest-green);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--stone-gray);
  padding-bottom: 8px;
}

.stat-details-count {
  font-size: 12px;
  color: var(--stone-gray);
  margin-bottom: 12px;
  font-weight: 500;
}

.stat-details-list {
  max-height: 400px;
  overflow-y: auto;
}

.stat-detail-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--mist-white);
  border-left: 3px solid var(--sage-green);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  transition: all var(--transition-fast);
}

.stat-detail-item:hover {
  background: var(--sand-beige);
  border-left-color: var(--forest-green);
  transform: translateX(4px);
}

.stat-detail-item strong {
  color: var(--forest-green);
  font-weight: 600;
}

.stat-details-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.stat-details-popup .leaflet-popup-content {
  margin: 0;
  min-width: 400px;
}

/* ================================================================
   FEATURES AVANZADAS (proximity, actividad, zonas, menú contextual)
   ================================================================ */

.nearby-results,
.protection-zones,
.recent-activity,
.geocode-info {
  font-family: var(--font-sans);
  color: var(--bark-dark);
}

.nearby-results h3,
.protection-zones h3,
.recent-activity h3,
.geocode-info h3 {
  margin-bottom: 12px;
  color: var(--forest-green);
  font-size: 16px;
  border-bottom: 2px solid var(--stone-gray);
  padding-bottom: 8px;
}

.nearby-info {
  font-size: 12px;
  color: var(--stone-gray);
  margin-bottom: 12px;
}

.nearby-list,
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.nearby-item,
.activity-item {
  padding: 10px;
  margin: 8px 0;
  background: var(--mist-white);
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nearby-item:hover,
.activity-item:hover {
  border-color: var(--sage-green);
  box-shadow: var(--shadow-sm);
}

.nearby-header,
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.nearby-distance,
.activity-date {
  font-size: 11px;
  color: var(--stone-gray);
  font-weight: 600;
}

.nearby-meta,
.activity-meta {
  font-size: 11px;
  color: var(--stone-gray);
}

.nearby-layer,
.activity-type {
  background: rgba(122, 155, 118, 0.15);
  color: var(--sage-green);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.activity-comment {
  margin-top: 8px;
  font-size: 12px;
  color: var(--stone-gray);
  line-height: 1.4;
}

.zone-section {
  margin: 12px 0;
  padding: 12px;
  background: var(--mist-white);
  border-radius: 8px;
}

.zone-section h4 {
  font-size: 13px;
  color: var(--forest-green);
  margin-bottom: 8px;
}

.zone-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zone-section li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--bark-dark);
}

.no-zones {
  text-align: center;
  padding: 20px;
  color: var(--stone-gray);
  font-style: italic;
}

/* Menú contextual */
.context-menu {
  padding: 8px;
}

.context-menu h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--bark-dark);
}

.context-btn {
  width: 100%;
  padding: 10px;
  margin: 4px 0;
  border: none;
  background: var(--mist-white);
  color: var(--bark-dark);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.context-btn:hover {
  background: var(--sage-green);
  color: var(--cloud-white);
}

.context-btn i {
  font-size: 14px;
}

.coords-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(107, 114, 128, 0.2);
  text-align: center;
}

.coords-info small {
  color: var(--stone-gray);
  font-size: 11px;
}
