/* css styles */

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

#quarto-content,
main.content,
.page-full {
  padding: 0 !important;
  margin: 0 !important;
}

#title-block-header {
  display: none !important;
}

.dashboard-layout {
  display: flex;
  height: 100vh;
}

.dashboard-sidebar {
  width: 33.33%;
  padding: 0 2rem 2rem 2rem;
  overflow-y: auto;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.85);
}

.dashboard-title {
  font-size: 4.8rem;
  font-weight: 700;
  color: #FF5F1F;
  text-decoration: underline;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.dashboard-sidebar a {
  color: #222;
  text-decoration: underline;
}

.dashboard-map {
  width: 66.67%;
  height: 100vh;
}

.leaflet-container {
  background: white !important;
}

.leaflet-control-attribution a {
  color: #FF5F1F;
}

.leaflet-popup-content b a {
  color: #FF5F1F;
}

.instance-count {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.85);
  color: #FF5F1F;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid #FF5F1F;
  border-radius: 4px;
  z-index: 1000;
  line-height: 1.6;
}

.instance-count-date {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  body, html {
    overflow: auto;
  }

  .dashboard-layout {
    flex-direction: column;
    height: auto;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    padding: 1.5rem;
  }

  .dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .dashboard-map {
    width: 100%;
    height: 65vh;
    overflow: hidden;
  }

  .dashboard-map .html-widget {
    height: 65vh !important;
  }
}
