/* Referanslar — Leaflet dünya haritası */

.ref-world {
  --rw-red: #c7282f;
  --rw-ink: #141c23;
  --rw-muted: #596b7c;
  --rw-line: #e0e5e9;
  --rw-bg: #f0f2f4;
  --rw-surface: #fff;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
  background: var(--rw-bg);
  color: var(--rw-ink);
}

.ref-world__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.ref-world__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-red);
  margin-bottom: 10px;
}

.ref-world__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ref-world__lead {
  margin: 10px 0 0;
  max-width: 420px;
  color: var(--rw-muted);
  font-size: 15px;
  line-height: 1.5;
}

.ref-world__stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ref-world__stat {
  min-width: 110px;
  background: var(--rw-surface);
  border: 1px solid var(--rw-line);
  border-radius: 16px;
  padding: 14px 16px;
}

.ref-world__stat b {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--rw-red);
  font-weight: 800;
}

.ref-world__stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rw-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ref-world__grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 20px;
  align-items: stretch;
}

.ref-world__list {
  background: var(--rw-surface);
  border: 1px solid var(--rw-line);
  border-radius: 20px;
  padding: 10px;
  max-height: 620px;
  overflow: auto;
}

.ref-world__item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  color: inherit;
  transition: background 0.2s;
}

.ref-world__item:hover,
.ref-world__item.is-active {
  background: #fbebec;
}

.ref-world__w {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(199, 40, 47, 0.25);
}

.ref-world__w img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.ref-world__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-world__firma {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.ref-world__loc {
  font-size: 12px;
  color: var(--rw-muted);
}

.ref-world__chev {
  color: var(--rw-muted);
  transition: transform 0.2s;
}

.ref-world__item.is-active .ref-world__chev {
  transform: rotate(180deg);
  color: var(--rw-red);
}

.ref-world__detail {
  margin: 0 8px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid var(--rw-line);
}

.ref-world__detail[hidden] {
  display: none !important;
}

.ref-world__detail-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rw-red);
}

.ref-world__detail ul {
  margin: 0;
  padding-left: 18px;
}

.ref-world__detail li {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.ref-world__empty {
  margin: 12px;
  color: var(--rw-muted);
  font-size: 14px;
}

.ref-world__map-wrap {
  position: relative;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rw-line);
  background: #dfe6ec;
}

.ref-world__map {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.ref-world__map-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  background: rgba(20, 28, 35, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.ref-w-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ref-w-marker img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  pointer-events: none;
}

.ref-w-marker.is-active,
.ref-w-marker:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 28px rgba(199, 40, 47, 0.45);
  background: #c7282f;
}

.leaflet-container {
  font: inherit;
}

@media (max-width: 991.98px) {
  .ref-world__grid {
    grid-template-columns: 1fr;
  }

  .ref-world__list {
    max-height: none;
    order: 2;
  }

  .ref-world__map-wrap {
    order: 1;
    min-height: 380px;
  }

  .ref-world__map {
    min-height: 380px;
  }
}
