/* =========================================================
   LEAFLET MAP TWEAKS
   ========================================================= */
.leaflet-container {
  font-family: var(--cp-font) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--cp-radius-md) !important;
  box-shadow: var(--cp-shadow) !important;
}

.leaflet-popup-content {
  font-family: var(--cp-font) !important;
  font-size: 0.85rem !important;
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
@keyframes cpFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cp-fade {
  opacity: 0;
  animation: cpFadeUp 0.55s ease forwards;
  animation-play-state: paused;
}

.cp-fade.d1 {
  animation-delay: 0.1s;
}

.cp-fade.d2 {
  animation-delay: 0.2s;
}

.cp-fade.d3 {
  animation-delay: 0.3s;
}

.cp-fade.playing {
  animation-play-state: running;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-navy {
  color: var(--cp-navy);
}

.text-muted {
  color: var(--cp-text-muted);
}

.fw-800 {
  font-weight: 800;
}

.fw-700 {
  font-weight: 700;
}

.section-pad {
  padding: 96px 0;
}

/* =========================================================
   WP ALIGNMENT SUPPORT
   ========================================================= */
.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.aligncenter {
  display: block;
  margin: 0 auto 16px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--cp-navy);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  :root {
    --cp-container: 100%;
  }
}

@media (max-width: 991px) {
  .cp-steps {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .cp-thematic-grid {
    grid-template-columns: 1fr;
  }

  #cp-osm-map {
    min-height: 340px;
  }

  .cp-thematic-cats {
    grid-template-columns: repeat(3, 1fr);
    padding: 36px 28px 180px;
  }

  .cp-thematic-cats::after {
    display: none;
  }

  .cp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  #cp-cta-banner {
    grid-template-columns: 1fr;
  }

  .cp-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cp-footer-nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .cp-cta-left,
  .cp-cta-right {
    padding: 40px 28px;
  }
}

@media (max-width: 767px) {
  .cp-actions-grid {
    grid-template-columns: 1fr;
  }

  .cp-thematic-cats {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 20px 0;
  }

  .cp-thematic-footer {
    position: static;
    width: 100%;
    height: auto;
    justify-content: stretch;
  }

  .cp-explore-btn {
    min-height: 96px;
    padding: 24px 20px;
    border-radius: 28px 28px 0 0;
    justify-content: center;
  }

  .cp-login-box {
    padding: 32px 24px;
  }

  .cp-form-wrap {
    padding: 32px 20px;
  }
}

@media (max-width: 500px) {
  .cp-steps {
    max-width: 280px;
  }
}