.references-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.references-page .references-map + .references-listing {
  padding-top: clamp(28px, 3vw, 44px);
}

.references-map-stage {
  position: relative;
  width: 100%;
  height: clamp(470px, 58vw, 680px);
  overflow: hidden;
  border: 0;
  background: #e7edf2;
}

.references-map-canvas {
  width: 100%;
  height: 100%;
  background: #e7edf2;
  font-family: inherit;
}

.references-map-canvas::before {
  content: "Harita hazırlanıyor";
  position: absolute;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #eef3f6;
  color: #607086;
  font-size: 14px;
  letter-spacing: .04em;
}

.references-map-canvas.is-ready::before {
  display: none;
}

.references-map-canvas .leaflet-tile-pane {
  filter: saturate(.72) brightness(1.04) contrast(.92);
}

.references-map-canvas .leaflet-control-zoom {
  overflow: hidden;
  margin: 18px 0 0 18px;
  border: 1px solid #c8d3dd;
  border-radius: 0;
  box-shadow: none;
}

.references-map-canvas .leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  border: 0;
  border-bottom: 1px solid #d7e0e8;
  border-radius: 0 !important;
  background: #fff;
  color: #071321;
  font: 600 24px/42px Arial, sans-serif;
  transition: color 180ms ease, background-color 180ms ease;
}

.references-map-canvas .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.references-map-canvas .leaflet-control-zoom a:hover,
.references-map-canvas .leaflet-control-zoom a:focus-visible {
  background: #f3f7fa;
  color: #2497df;
}

.references-map-canvas .leaflet-control-attribution {
  padding: 3px 7px;
  background: rgba(255, 255, 255, .88);
  color: #627084;
  font-size: 10px;
}

.references-map-canvas .leaflet-control-attribution a {
  color: #176fa8;
}

.reference-city-marker {
  background: transparent;
  border: 0;
}

.reference-city-marker-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate(-8px, -8px);
}

.reference-city-marker-dot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50% !important;
  background: #168fd8;
  box-shadow: 0 0 0 2px rgba(22, 143, 216, .28);
  transition: background-color 180ms ease, transform 180ms ease;
}

.reference-city-marker-label {
  margin-left: -3px;
  padding: 7px 9px 7px 11px;
  border: 1px solid #c9d8e4;
  background: rgba(255, 255, 255, .94);
  color: #0a2036;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.leaflet-marker-icon:hover .reference-city-marker-dot,
.leaflet-marker-icon:focus .reference-city-marker-dot,
.leaflet-marker-icon.is-active .reference-city-marker-dot {
  background: #071321;
  transform: scale(1.12);
}

.references-map-canvas .leaflet-popup {
  margin-bottom: 20px;
}

.references-map-canvas .leaflet-popup-content-wrapper {
  min-width: 230px;
  max-width: min(340px, calc(100vw - 48px));
  border: 1px solid #2497df;
  border-radius: 0;
  background: #071321;
  color: #fff;
  box-shadow: none;
}

.references-map-canvas .leaflet-popup-content {
  margin: 18px 20px;
  font-family: inherit;
}

.references-map-canvas .leaflet-popup-tip {
  background: #071321;
  box-shadow: none;
}

.references-map-canvas .leaflet-popup-close-button {
  top: 4px;
  right: 5px;
  color: #9fb0c2;
  font-size: 22px;
  transition: color 180ms ease;
}

.references-map-canvas .leaflet-popup-close-button:hover {
  color: #54b9f7;
}

.reference-map-popup h3 {
  margin: 0 22px 12px 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.reference-map-popup ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-map-popup li {
  color: #d8e1ea;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.references-map-error {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 30px;
  color: #607086;
  text-align: center;
}

.references-map-noscript {
  margin: 12px 0 0;
  color: #667386;
  font-size: 13px;
}

@media (max-width: 720px) {
  .references-map-stage {
    height: 430px;
  }

  .references-map-canvas .leaflet-control-zoom {
    margin: 12px 0 0 12px;
  }

  .references-map-canvas .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    line-height: 38px;
  }

  .reference-city-marker-label {
    padding: 6px 7px 6px 9px;
    font-size: 10px;
  }

  .reference-city-marker-dot {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .references-map-canvas *,
  .references-map-canvas *::before,
  .references-map-canvas *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
