/* Bazarcards contact page — interactive branches map */

.contact-branches-intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.contact-branches-intro span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.contact-branches-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.map-wrap {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.iraq-leaflet {
  width: 100%;
  height: 340px;
  background: #eef0f3;
  z-index: 1;
}

.iraq-leaflet.leaflet-container {
  font-family: inherit;
}

.iraq-leaflet .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink);
  border-color: var(--pink-soft);
}

.iraq-leaflet .leaflet-control-zoom a:hover {
  background: rgba(243, 51, 147, 0.18);
  color: #000;
}

.iraq-leaflet .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75);
  color: rgba(0, 0, 0, 0.55);
  font-size: 10px;
}

.iraq-leaflet .leaflet-control-attribution a {
  color: rgba(243, 51, 147, 0.8);
}

.bz-leaflet-pin-wrap {
  background: transparent;
  border: none;
}

.bz-leaflet-pin {
  display: block;
  width: 18px;
  height: 18px;
  margin: 5px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid #1a1208;
  box-shadow: 0 0 0 2px var(--pink-soft), 0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bz-leaflet-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: var(--pink-soft);
  animation: bz-pin-pulse 2s ease-out infinite;
  z-index: 1;
}

.bz-leaflet-pin-wrap.is-active .bz-leaflet-pin {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px var(--pink-soft), 0 0 22px rgba(243, 51, 147, 0.65);
}

.bz-leaflet-pin-wrap.is-active .bz-leaflet-pulse {
  animation-duration: 1.2s;
  background: rgba(243, 51, 147, 0.35);
}

.bz-leaflet-tooltip {
  background: rgba(8, 8, 8, 0.94) !important;
  border: 1px solid var(--pink-soft) !important;
  color: var(--pink) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.bz-leaflet-tooltip.leaflet-tooltip-top:before {
  border-top-color: var(--pink-soft) !important;
}

@keyframes bz-pin-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.8;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Branch detail panel */
.branch-detail-panel {
  grid-column: 1 / -1;
}

.branch-detail-panel[hidden] {
  display: none;
}

.branch-detail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
  display: grid;
  gap: 12px;
  animation: bz-branch-detail-in 0.25s ease both;
}

.branch-detail-kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  font-weight: 800;
}

.branch-detail-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
}

.branch-detail-row {
  display: grid;
  gap: 4px;
}

.branch-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.branch-detail-row > p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
}

.branch-map-btn {
  width: max-content;
  font-size: 0.92rem;
  min-height: auto;
  padding: 12px 20px;
}

@keyframes bz-branch-detail-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .iraq-leaflet {
    height: 280px;
  }
}
