/* =========================================
   VELOCITY ROOFING - Interactive Completed Jobs Map
   Used on: index.html (home page) & service-areas.html
   ========================================= */

.job-map-section .section-heading p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.job-map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.job-map-canvas {
  width: 100%;
  height: 480px;
  background: var(--light-gray);
}

.job-map-canvas.job-map-canvas--tall {
  height: 560px;
}

.job-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: var(--off-white);
  color: var(--text-mid);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.job-map-loading i {
  font-size: 1.6rem;
  color: var(--red);
}

.job-map-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.job-map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.job-map-stat {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 24px;
  text-align: center;
  min-width: 140px;
}

.job-map-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
}

.job-map-stat span {
  font-size: 0.78rem;
  color: var(--text-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.job-map-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 16px;
}

/* Leaflet popup branding tweaks */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.job-map-popup {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
}

.job-map-popup strong {
  display: block;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 2px;
}

.job-map-popup i {
  color: var(--red);
  margin-right: 4px;
}

@media (max-width: 768px) {
  .job-map-canvas,
  .job-map-canvas--tall {
    height: 380px;
  }
}
