:root {
  --intermap-bg: #0b0f18;
  --intermap-card-bg: #ffffff;
  --intermap-card-text: #2a2a2a;
  --intermap-muted: #6b6b6b;
  --intermap-accent: #f6b73c;
}

.intermap-container {
  border-radius: 16px;
  overflow: hidden;
  --intermap-marker-color: var(--intermap-accent);
}

/* Leaflet control aesthetics */
.intermap-container .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.intermap-container .leaflet-control-zoom a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.intermap-container.leaflet-container {
  background: var(--intermap-bg);
}

.soften-tiles {
  filter: brightness(1.15) contrast(0.95) saturate(1.05);
}

/* Pulse Marker - Redesigned to be Flat Radar Style */
.pulse-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.pulse-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--intermap-marker-color, #f6b73c);
  z-index: 3;
}

.pulse-ring,
.pulse-ring.delay {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--intermap-marker-color, #f6b73c);
  background: rgba(var(--intermap-marker-color-rgb, 246, 183, 60), 0.15);
  animation: radar-pulse 2.4s cubic-bezier(0, 0.45, 0.55, 1) infinite;
  z-index: 1;
  opacity: 0;
}

.pulse-ring.delay {
  animation-delay: 1.2s;
}

@keyframes radar-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(4.5);
    opacity: 0;
  }

  100% {
    transform: scale(5);
    opacity: 0;
  }
}

/* Popup styling */
.office-popup .leaflet-popup-content-wrapper {
  background: var(--intermap-card-bg);
  color: var(--intermap-card-text);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0;
  border: none;
}

.office-popup .leaflet-popup-tip {
  background: var(--intermap-card-bg);
}

.office-popup .leaflet-popup-content {
  margin: 0;
}

.popup-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  min-width: 280px;
}

.popup-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.popup-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.2;
}

.popup-card p {
  margin: 0;
  font-size: 13px;
  color: var(--intermap-muted);
  line-height: 1.25;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .popup-card {
    grid-template-columns: 1fr;
    text-align: center;
    min-width: 200px;
    padding: 15px;
  }

  .popup-card img {
    margin: 0 auto 10px auto;
    width: 64px;
    height: 64px;
  }
}