/* ═══════════════════════════════════════════════════════
   MRK Maps — Public / Front-End Styles
   ═══════════════════════════════════════════════════════ */

.mrk-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  margin: 20px 0;
	z-index: 0;
}

.mrk-map-container {
  width: 100%;
  position: relative;
  background: #e8ecf0;
}

/* ── Loading State ─────────────────────────────────────── */
.mrk-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f0f4f8;
  z-index: 1000;
}

.mrk-map-loading p {
  margin: 0;
  font-size: 14px;
  color: #6b7a99;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mrk-spinner {
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid #d1dae8;
  border-top-color: #1e3a5f;
  border-radius: 50%;
  animation: mrk-spin 0.8s linear infinite;
}

@keyframes mrk-spin {
  to { transform: rotate(360deg); }
}

/* ── Custom Marker ─────────────────────────────────────── */
.mrk-marker {
  position: relative;
  cursor: pointer;
}

.mrk-marker-pin {
  width: 36px;
  height: 36px;
  background: #1b2d1f;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
  transition: transform .2s ease, background .2s ease;
  position: relative;
}

.mrk-marker-pin::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}

.mrk-marker:hover .mrk-marker-pin,
.mrk-marker--active .mrk-marker-pin {
  background: #1b2d1f;
	opacity:0.8;
  transform: rotate(-45deg) scale(1.15);
}
.mrk-location-label {
    background: #1B2D1F;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1px 6px;
	font-family: "Caudex", Sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.mrk-location-label:before {
    display: none !important;
}

/* ── Popup / Card ──────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18) !important;
  padding: 0 !important;
  overflow: hidden;
  min-width: 260px;
  max-width: 320px;
  border: none !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}

.leaflet-popup-tip-container { display: none; }

.mrk-popup {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mrk-popup__image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #e8ecf0;
}

.mrk-popup__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mrk-popup__body {
  padding: 16px 18px 18px;
}

.mrk-popup__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1a2540;
  line-height: 1.2;
}

.mrk-popup__description {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7a99;
  line-height: 1.5;
}

.mrk-popup__address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #8a96b0;
  margin-bottom: 14px;
}

.mrk-popup__address svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.mrk-popup__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #1b2d1f;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.mrk-popup__directions:hover {
  background: #1b2d1f;
	opacity:0.8;
  color: #fff;
  text-decoration: none;
}

.mrk-popup__directions svg { flex-shrink: 0; }

/* ── Leaflet overrides ─────────────────────────────────── */
.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  background: rgba(255,255,255,.9) !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  line-height: 24px !important;
  text-align: center !important;
  color: #1a2540 !important;
  z-index: 10;
}


/* ── custom CSS ────────────────────────────────────────── */

.leaflet-control-attribution.leaflet-control {
    display: none;
}


/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .mrk-map-wrapper {
    border-radius: 0;
    margin: 0 0;
  }
  .leaflet-popup-content-wrapper {
    max-width: 260px !important;
  }
}
