:root {
  --navy: #0b2f4e;
  --navy-dark: #071f36;
  --safety: #f2a900;
  --safety-dark: #d99400;
  --text-muted: #5c6b7a;
  --bg-soft: #f4f7fa;
}

.locations-map-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  font-family: 'Inter', sans-serif;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff2d9;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  border: 1px solid #ffdf9a;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safety);
  display: inline-block;
}

.section-head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-head p {
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16.5px);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.map-frame {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(11, 47, 78, 0.15);
  border: 1px solid #e4e9ee;
}

.map-inner {
  border-radius: 18px;
  overflow: hidden;
}

#realMap {
  width: 100%;
  height: 500px;
}

@media (max-width: 600px) {
  #realMap {
    height: 380px;
  }
  .locations-map-section {
    padding: 56px 16px;
  }
}

.country-group {
  margin-top: 34px;
}

.country-group:first-of-type {
  margin-top: 26px;
}

.country-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.country-title h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  white-space: nowrap;
}

.country-title .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e4e9ee, transparent);
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cards-row.single {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px) {
  .cards-row,
  .cards-row.single {
    grid-template-columns: 1fr;
  }
}

.loc-card {
  background: #ffffff;
  border: 1px solid #e4e9ee;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.loc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--safety);
}

.loc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(11, 47, 78, 0.14);
  border-color: #cdd9e2;
}

.loc-dot {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-dot svg {
  width: 22px;
  height: 22px;
}

.loc-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 5px;
}

.loc-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.loc-info span.arrow {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--safety-dark);
  font-weight: 700;
}

/* Leaflet overrides for light theme */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-popup-content b {
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
}

.leaflet-popup-content a {
  color: var(--safety-dark);
  font-weight: 700;
  text-decoration: none;
}

.leaflet-tooltip {
  background: var(--navy-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
}

.leaflet-tooltip-top:before {
  border-top-color: var(--navy-dark);
}

/* Custom map pin marker */
.pin-wrap {
  position: relative;
  width: 34px;
  height: 44px;
}

.pin-pulse {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--safety);
  animation: pulse 2.2s infinite;
}

.pin-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 44px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}
