/* ==========================================================================
   JB ROOFING - 3D Aerial Drone Visualization & Neighborhood Showcase
   Tailored to match the high-performance Sacramento visualization layout
   ========================================================================== */

.jb-aerial-drone-outer-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.drone-map-wrapper {
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

.drone-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

.agency-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: jb-pulse-ring 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes jb-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.drone-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.btn-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-directions {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
}

.btn-directions:hover {
  background: #0369a1;
  color: #ffffff !important;
}

#map-3d-container {
  width: 100%;
  height: clamp(440px, 45vw, 560px);
  position: relative;
  background: #0f172a;
  display: block;
}

#map-3d-container gmp-map-3d {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .drone-map-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .drone-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  #map-3d-container {
    height: 420px !important;
  }
}

@media (max-width: 480px) {
  .drone-map-header {
    padding: 12px 14px;
  }
  .btn-action {
    padding: 6px 10px;
    font-size: 12px;
  }
  #map-3d-container {
    height: 380px !important;
  }
}
