/* ============================================================
   OUR PRESENCE — Premium Light Corporate Theme (Static Pins)
   ============================================================ */

.presence-section {
  background: #f8fafd;
  padding: 60px 0;
  color: #334155;
  font-family: 'Montserrat', sans-serif;
}

.pres-intro {
  text-align: center;
  margin-bottom: 40px;
}
.pres-badge {
  display: inline-block;
  background: rgba(44, 123, 229, 0.08);
  color: #2c7be5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(44, 123, 229, 0.15);
}
.pres-intro h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.pres-intro p {
  font-size: 1.05rem;
  color: #64748b;
}

/* ── Container Layout ── */
.presence-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.presence-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 30px;
  align-items: center;
}

/* ── Sidebar Buttons (Bright Cards) ── */
.state-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.state-item-btn {
  background: #ffffff;
  border: 1px solid rgba(44, 123, 229, 0.12);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 123, 229, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.state-item-btn:hover,
.state-item-btn.state-btn-highlighted {
  background: #ffffff;
  border-color: var(--btn-color, #2c7be5) !important;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--btn-color, #2c7be5) 15%, transparent) !important;
  transform: translateY(-2px);
}
.state-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.state-btn-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}
.state-btn-info p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}
.active-btn-click {
  animation: btnTap 0.4s ease;
}
@keyframes btnTap {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); background: rgba(44, 123, 229, 0.05); }
  100% { transform: scale(1); }
}

/* ── Map Dashboard Panel (Light Gradient Container) ── */
.map-dashboard-panel {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-dashboard-panel::before {
  content: '';
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 65%);
  pointer-events: none;
}
.map-inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.map-inner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Light Theme Map Paths ── */
.map-inner svg path {
  fill: #cbd5e1;
  stroke: #94a3b8;
  stroke-width: 0.6;
  transition: all 0.25s ease;
}
.map-inner svg path.state-active {
  fill: #93c5fd;
  stroke: #3b82f6;
  stroke-width: 1;
}
.map-inner svg path:hover,
.map-inner svg path.state-hover {
  stroke-width: 1.3px !important;
}

/* ── Pins (Location Pin Shapes) ── */
.map-pin {
  cursor: pointer;
  pointer-events: auto;
}
.map-pin .pin-trigger {
  pointer-events: all !important;
}
.map-pin .pdot, .map-pin .pcore {
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: 0px 0px;
}
.pin-trigger:hover ~ .pdot,
.map-pin.pin-active .pdot {
  transform: translateY(-6px) scale(1.65);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
.pin-trigger:hover ~ .pcore,
.map-pin.pin-active .pcore {
  transform: translateY(-6px) scale(1.65);
}
.pin-pulse-click {
  animation: clickPulse 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes clickPulse {
  0% { transform: scale(1); }
  50% { transform: translateY(-8px) scale(1.4); }
  100% { transform: scale(1); }
}

/* ── Integrated Header Info Bar (Non-overlapping) ── */
.hub-info-header {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  z-index: 10;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  min-height: 72px;
  display: flex;
  align-items: center;
}
.hub-info-default {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
  width: 100%;
  text-align: center;
}
.hub-info-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.hub-status-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}
.hub-text-wrap {
  flex: 1;
}
.hub-info-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
  letter-spacing: -0.3px;
}
.hub-info-content p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* ── Stats Strip ── */
.stats-strip {
  display: flex;
  max-width: 880px;
  margin: 50px auto 0;
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}
.ss-item {
  flex: 1;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}
.ss-item + .ss-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.ss-num {
  display: block;
  font-size: 2.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #f4a261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.ss-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .presence-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .left-side { order: 2; }
  .map-dashboard-panel { order: 1; }
  .right-side { order: 3; }
  .state-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .presence-section {
    padding: 40px 0;
  }
  .pres-intro h2 {
    font-size: 1.8rem;
  }
  .pres-intro p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  .map-dashboard-panel {
    padding: 20px 15px;
    border-radius: 16px;
    gap: 16px;
  }
  .map-inner {
    max-width: 380px;
  }
  .state-sidebar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .state-item-btn {
    padding: 12px 16px;
    gap: 12px;
    border-radius: 10px;
  }
  .state-btn-info h4 {
    font-size: 12.5px;
  }
  .state-btn-info p {
    font-size: 10.5px;
  }
  .stats-strip {
    flex-wrap: wrap;
    margin-top: 30px;
  }
  .ss-item {
    flex: 0 0 50%;
    padding: 20px 10px;
  }
  .ss-item + .ss-item::before {
    display: none;
  }
  .ss-num {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .presence-container {
    padding: 0 12px;
  }
  .pres-intro h2 {
    font-size: 1.6rem;
  }
  .map-dashboard-panel {
    padding: 15px 10px;
    border-radius: 12px;
  }
  .map-inner {
    max-width: 310px;
  }
  .state-sidebar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .state-item-btn {
    padding: 10px 8px;
    gap: 8px;
    border-radius: 8px;
  }
  .state-indicator {
    width: 6px;
    height: 6px;
  }
  .state-btn-info h4 {
    font-size: 11px;
    letter-spacing: -0.2px;
  }
  .state-btn-info p {
    font-size: 9px;
  }
  .hub-info-header {
    padding: 10px 12px;
    min-height: 60px;
  }
  .hub-info-content {
    gap: 10px;
  }
  .hub-info-content h3 {
    font-size: 15px;
  }
  .hub-info-content p {
    font-size: 11px;
  }
  .ss-num {
    font-size: 1.5rem;
  }
  .ss-lbl {
    font-size: 8.5px;
    letter-spacing: 1px;
  }
}
