html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #1f2937;
  background: #f5f7f9;
}

.app {
  min-height: 100vh;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.app__header {
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #d8dee6;
}

.app__header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.app__main {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
}

.status {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.status--visible {
  opacity: 1;
}

.status--error {
  background: rgba(153, 27, 27, 0.95);
  opacity: 1;
}

.popup {
  max-width: 380px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.feature-popup {
  /* Leaflet popup class */
}

.feature-popup .leaflet-popup-content {
  padding: 8px !important;
}

.MapPopup {
  max-width: 380px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.MapPopup__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  word-break: break-word;
}

.DecisionList {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.DecisionList__title {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: #1f2937;
}

.DecisionList__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.DecisionItem {
  margin: 6px 0;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.DecisionItem--hidden {
  display: none;
}

.DecisionList--expanded .DecisionItem--hidden {
  display: flex;
}

.DecisionItem__date {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.DecisionItem__link {
  font-size: 13px;
  line-height: 1.4;
}

.DocumentLink {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.DocumentLink:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.DocumentLink:active {
  color: #1e40af;
}

.DocumentLink--text {
  color: #4b5563;
  font-weight: normal;
}

.DecisionList__no-decisions {
  margin: 0 !important;
  font-size: 12px !important;
  color: #6b7280;
  font-style: italic;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
}

.DecisionList__show-more {
  margin-top: 8px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.DecisionList__show-more:hover {
  background: #e2e8f0;
}

.DecisionList__show-more:active {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .app__header {
    padding: 10px 12px;
  }

  .app__header h1 {
    font-size: 16px;
  }

  .MapPopup {
    max-width: 320px;
  }

  .feature-popup .leaflet-popup-content {
    padding: 6px !important;
  }

  .MapPopup__title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .DecisionItem {
    padding: 6px 8px;
    margin: 4px 0;
  }

  .DecisionItem__date {
    font-size: 10px;
  }

  .DecisionItem__link {
    font-size: 12px;
  }

  .DocumentLink {
    gap: 4px;
  }

  .DecisionList__show-more {
    padding: 5px 10px;
    font-size: 11px;
  }
}
