/* map styles */
.map-overlay {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  width: 25%;
  top: 0;
  left: 0;
  padding: 10px;
}

.map-overlay .map-overlay-inner {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
}

.map-overlay h2 {
  line-height: 24px;
  display: block;
  margin: 0 0 10px;
}

.map-overlay .legend .bar {
  height: 10px;
  width: 100%;
  background: linear-gradient(to right, #fca107, #7f3121);
}

.map-overlay input {
  background-color: transparent;
  display: inline-block;
  width: 100%;
  position: relative;
  margin: 0;
  cursor: ew-resize;
}

#top-filers th,
#top-filers td {
  padding: 4px;
  border-bottom: 1px solid #ddd;
}

#top-filers tr.active {
  background-color: #f0f0f0;
  font-weight: bold;
}

#municipality-list {
  max-height: 150px;
  overflow-y: auto;
  padding: 4px 0;
}

#municipality-filter label {
  margin-bottom: 4px;
  cursor: pointer;
}
#municipality-filter input{

}

#municipality-filter input[type="checkbox"] {
  margin-right: 0px;
  background-color: transparent;
  display: inline-block;
  width: auto;
  margin: 0;
  cursor: pointer;
}

 .mapboxgl-popup.filing-popup {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .mapboxgl-popup-content {
    background: none;
    color: black;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .mapboxgl-popup-tip {
    display: none;
  }
.toggle-group {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 0px solid #ccc;
  background-color: #e0e0e0;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100px;
}

.toggle-button {
  flex: 1;
  padding: 10px 0;
  border: none;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease-in-out;
  border-radius: 0;
}

.toggle-button.active {
  background-color: #333;
  color: white;
}

#time-toggle {
  width: 100%;
  max-width: 150px; 
  margin: 0 auto;
}
.map-overlay-inner {
  max-width: 100%;
}

.map-overlay.top-right {
  top: 0;
  right: 0;
  left: auto;
  width: 25%;
}

/* home page styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

header {
    background-color: #0d3b66;
    color: white;
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 4px solid #a9c0dc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.subheader {
    font-style: italic;
    margin-top: 15px;
    font-size: 1.4rem;
    opacity: 0.88;
}

header h1 {
    margin: 0;
    font-size: 2.35rem;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.normal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

.card-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom:45px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    flex: 1 1 450px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width:520px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0d3b66;
}

.card-description {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 768px) {
    .card-grid {
        flex-direction: column;
    }
}

/* top filers dashboard styles */
.dashboard-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* prevents outer scroll */
}

.dashboard-page header {
    flex-shrink: 0;
}

.dashboard-page .dashboard-container {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.dashboard-page .dashboard-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

html {
    margin: 0;   /* removes weird default top spacing */
    padding: 0;
}

#loader {
    position: absolute;
    inset: 30px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

/* spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ddd;
    border-top: 6px solid #0d3b66;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.home-link {
    text-decoration: none;
    color: inherit;
}

.learn-more-header {
  padding-bottom:25px;
}

/* Reduce caption area ONLY in Learn More section */
.learn-more-section .card-content {
    padding: 20px 16px;   /* ↓ smaller than 20px */
}

/* Tighten title spacing */
.learn-more-section .card-title {
    margin-bottom: 0;
}

.adjust-up {
  object-position: center 30%;
}

.adjust-down {
  object-position: center 75%;
}

.adjust-down-extra {
  object-position: center 1%;
}

.email-link {
    color: #0d3b66;
    font-weight: 600;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}