/* =============================================================
   maps.css — Section: Showroomlar & Lokasyonlar.
   Gerçek Leaflet haritası (CSS-foglu kenarlar) + gerçek koordinatlı kırmızı
   işaretçiler; altında haritaya binen, scroll-trigger ile yükselen kademeli
   bento kartları (border'sız; sağda %60 absolute foglu foto).
   SCOPE: HER selector .mcy-loc kökünden.
   ============================================================= */

.mcy-loc {
  --loc-display: "Poppins", sans-serif;
  --loc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: center;
  background: var(--bg-color);
  padding: clamp(56px, 9vh, 110px) 24px 0;
}
.mcy-loc .mcy-loc__inner { width: 100%; max-width: 1280px; }

/* ---------- Header (ortalı, haritanın biraz üstüne biner) ---------- */
.mcy-loc .mcy-loc__head { position: relative; z-index: 2; text-align: center; max-width: 60ch; margin: 0 auto; }
.mcy-loc .mcy-loc__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-color);
}
.mcy-loc .mcy-loc__title {
  margin: 0;
  font-family: var(--loc-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-dark);
}
.mcy-loc .mcy-loc__title b { font-weight: 700; color: var(--primary-color); }
.mcy-loc .mcy-loc__intro {
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: rgba(28, 22, 18, 0.6);
}

/* ---------- Gerçek harita (Leaflet) + foglu kenarlar ---------- */
.mcy-loc .mcy-loc__mapwrap {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: clamp(-72px, -4vw, -36px) auto 0;
  height: clamp(480px, 58vh, 680px);
}
.mcy-loc .mcy-loc__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  /* Kenarları sayfa zeminine dumanlı/smooth eritir (CSS fog) */
  -webkit-mask-image: radial-gradient(farthest-side at 50% 44%, #000 36%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
  mask-image: radial-gradient(farthest-side at 50% 44%, #000 36%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
}
.mcy-loc .mcy-loc__map.leaflet-container { font: inherit; background: transparent; }
.mcy-loc .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  color: rgba(28, 22, 18, 0.4);
}
.mcy-loc .leaflet-control-attribution a { color: rgba(28, 22, 18, 0.55); }

/* İşaretçi (divIcon): dolu damla pin + yumuşak gölge */
.mcy-loc .mcy-loc__mk { background: transparent; border: 0; }
.mcy-loc .mcy-loc__pinsvg {
  display: block;
  filter: drop-shadow(0 7px 10px rgba(28, 22, 18, 0.32));
  transition: transform 0.25s var(--loc-ease);
}
.mcy-loc .leaflet-marker-icon:hover .mcy-loc__pinsvg { transform: translateY(-3px) scale(1.06); }

/* Etiket (Leaflet tooltip → premium çip) */
.mcy-loc .leaflet-tooltip.mcy-loc__tip {
  margin-top: -2px;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  font-family: var(--loc-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px -14px rgba(28, 22, 18, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.mcy-loc .leaflet-tooltip.mcy-loc__tip::before { display: none; }

/* ---------- Kademeli bento kartları (haritaya biner) ---------- */
.mcy-loc .mcy-loc__cards {
  position: relative;
  z-index: 3;
  margin-top: clamp(-170px, -9vw, -110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
  align-items: start;
}
.mcy-loc .mcy-loc__card {
  position: relative;
  overflow: hidden;
  min-height: clamp(206px, 16vw, 236px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 26px 50px -32px rgba(28, 22, 18, 0.26);
}
/* Orta kart (lojistik) biraz aşağıda; yanlar yukarıda */
.mcy-loc .mcy-loc__card--center { margin-top: clamp(34px, 4.5vw, 72px); }

/* Sağda absolute foto (%60); sol kenarı beyaz karta erir */
.mcy-loc .mcy-loc__cmedia {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
}
.mcy-loc .mcy-loc__cmedia img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.mcy-loc .mcy-loc__cinfo {
  position: relative;
  z-index: 1;
  width: 56%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
  min-height: clamp(206px, 16vw, 236px);
  padding: clamp(20px, 1.7vw, 28px);
}
.mcy-loc .mcy-loc__ctag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}
.mcy-loc .mcy-loc__ctag .mcy-ico { width: 14px; height: 14px; }
.mcy-loc .mcy-loc__card--center .mcy-loc__ctag { color: var(--text-dark); }
.mcy-loc .mcy-loc__cname {
  margin: 2px 0 0;
  font-family: var(--loc-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}
.mcy-loc .mcy-loc__cmeta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(28, 22, 18, 0.56);
}
.mcy-loc .mcy-loc__clink {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--text-light);
  font-family: var(--loc-display);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  box-shadow: 0 10px 20px -10px rgba(234, 29, 38, 0.5);
  transition: background-color 0.25s var(--loc-ease), transform 0.12s var(--loc-ease);
}
.mcy-loc .mcy-loc__clink:hover { background: var(--primary-color-dark); }
.mcy-loc .mcy-loc__clink:active { transform: scale(0.97); }
.mcy-loc .mcy-loc__clink .mcy-ico { width: 14px; height: 14px; }

/* ============================ Responsive ============================ */
@media (max-width: 860px) {
  .mcy-loc .mcy-loc__cards { grid-template-columns: 1fr; gap: 14px; margin: -60px auto 0; max-width: 520px; }
  .mcy-loc .mcy-loc__card--center { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mcy-loc .mcy-loc__mkpulse::before { animation: none; }
}
