/* ─── BFC CLUB — Şubeler Haritası ─── */
.branches-section {
  position: relative;
  z-index: 10;
  background: #050508;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.branches-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.branches-section__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric-yellow, #EEEE22);
  margin-bottom: 0.75rem;
}

.branches-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.branches-map-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.branches-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #060608;
}

.branches-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.branches-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #060608;
  font-family: 'DM Sans', sans-serif;
}

.branches-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.branches-map .leaflet-control-zoom a {
  background: rgba(10, 10, 10, 0.88) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.branches-map .leaflet-control-attribution {
  background: rgba(6, 6, 8, 0.75) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 10px !important;
}

.branches-map .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.45) !important;
}

.branch-map-pin-wrap {
  background: transparent !important;
  border: none !important;
}

.branch-map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  text-decoration: none;
  color: inherit;
  width: max-content;
  max-width: 180px;
}

.branch-map-pin__pulse {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  animation: branchPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.branch-map-pin__pulse--secondary {
  animation-delay: 1.2s;
}

.branch-map-pin--ozluce .branch-map-pin__pulse {
  background: rgba(238, 238, 34, 0.25);
  box-shadow: 0 0 30px rgba(238, 238, 34, 0.2);
}

.branch-map-pin--balat .branch-map-pin__pulse {
  background: rgba(222, 0, 109, 0.25);
  box-shadow: 0 0 30px rgba(222, 0, 109, 0.2);
}

.branch-map-pin__dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 1;
  transition: transform 0.3s ease;
}

.branch-map-pin--ozluce .branch-map-pin__dot {
  background: var(--electric-yellow, #EEEE22);
  box-shadow: 0 0 16px rgba(238, 238, 34, 0.8);
}

.branch-map-pin--balat .branch-map-pin__dot {
  background: var(--power-magenta, #DE006D);
  box-shadow: 0 0 16px rgba(222, 0, 109, 0.8);
}

.branch-map-pin__name {
  display: block;
  margin-top: 10px;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: rgba(6, 6, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.branch-map-pin--ozluce .branch-map-pin__name {
  border-color: rgba(238, 238, 34, 0.35);
}

.branch-map-pin--balat .branch-map-pin__name {
  border-color: rgba(222, 0, 109, 0.35);
}

.branch-map-pin__tag {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.branch-map-pin:hover .branch-map-pin__dot,
.branch-map-pin:focus-visible .branch-map-pin__dot {
  transform: scale(1.25);
}

.branch-map-pin--current .branch-map-pin__name {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.branches-map__svg {
  display: none;
}

.branches-map__grid line {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
}

.branches-map__terrain {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.branches-map__city-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  fill: rgba(255, 255, 255, 0.15);
  text-anchor: middle;
}

/* Markers */
.branch-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-decoration: none;
  color: inherit;
}

.branch-marker__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  animation: branchPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.branch-marker__pulse--secondary {
  animation-delay: 1.2s;
}

.branch-marker--ozluce .branch-marker__pulse {
  background: rgba(238, 238, 34, 0.25);
  box-shadow: 0 0 30px rgba(238, 238, 34, 0.2);
}

.branch-marker--balat .branch-marker__pulse {
  background: rgba(222, 0, 109, 0.25);
  box-shadow: 0 0 30px rgba(222, 0, 109, 0.2);
}

.branch-marker__dot {
  position: relative;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 1;
  transition: transform 0.3s ease;
}

.branch-marker--ozluce .branch-marker__dot {
  background: var(--electric-yellow, #EEEE22);
  box-shadow: 0 0 16px rgba(238, 238, 34, 0.8);
}

.branch-marker--balat .branch-marker__dot {
  background: var(--power-magenta, #DE006D);
  box-shadow: 0 0 16px rgba(222, 0, 109, 0.8);
}

.branch-marker__label {
  display: block;
  margin-top: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  text-align: center;
  transition: color 0.25s, transform 0.25s;
}

.branch-marker:hover .branch-marker__dot,
.branch-marker:focus-visible .branch-marker__dot {
  transform: scale(1.3);
}

.branch-marker--ozluce:hover .branch-marker__label,
.branch-marker--ozluce:focus-visible .branch-marker__label {
  color: var(--electric-yellow, #EEEE22);
}

.branch-marker--balat:hover .branch-marker__label,
.branch-marker--balat:focus-visible .branch-marker__label {
  color: var(--power-magenta, #DE006D);
}

.branch-marker__tag {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  text-transform: none;
}

@keyframes branchPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Offer Modal */
.branch-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.branch-offer-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.branch-offer-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2rem 2rem 1.75rem;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.branch-offer-modal.is-open .branch-offer-modal__box {
  transform: translateY(0) scale(1);
}

.branch-offer-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.branch-offer-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.branch-offer-modal__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.branch-offer-modal__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
}

.branch-offer-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.branch-offer-modal__btn {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  text-decoration: none;
  border: none;
}

.branch-offer-modal__btn--primary {
  background: var(--electric-yellow, #EEEE22);
  color: #0A0A0A;
}

.branch-offer-modal__btn--primary:hover {
  box-shadow: 0 0 24px rgba(238, 238, 34, 0.35);
}

.branch-offer-modal__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.branch-offer-modal__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.branches-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.branches-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.branches-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.branches-legend__dot--yellow {
  background: var(--electric-yellow, #EEEE22);
  box-shadow: 0 0 8px rgba(238, 238, 34, 0.6);
}

.branches-legend__dot--magenta {
  background: var(--power-magenta, #DE006D);
  box-shadow: 0 0 8px rgba(222, 0, 109, 0.6);
}

@media (max-width: 640px) {
  .branch-marker__label {
    font-size: 11px;
  }

  .branch-marker__tag,
  .branch-map-pin__tag {
    display: none;
  }

  .branch-map-pin__name {
    font-size: 10px;
    max-width: 140px;
    white-space: normal;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-marker__pulse,
  .branch-map-pin__pulse {
    animation: none;
    opacity: 0.4;
  }

  .branch-offer-modal__box {
    transform: none;
  }
}
