/* ===== MAP ===== */
.map-wrap { position: relative; padding-right: 16px; }

/* Fullscreen map */
#map.map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 800 !important;
  height: 100dvh !important;
  width: 100vw !important;
}
.map-fs-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 801;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.map-fullscreen-btn {
  margin-left: auto;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  font-family: inherit;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.map-fullscreen-btn:hover { border-color: var(--green); color: var(--green); }

.map-legend {
  background: #fff;
  padding: 8px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #555;
  flex-wrap: wrap;
}
.leg-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
.leg-dot.red  { background: #e53e3e; border: 2px solid #fff; box-shadow: 0 0 3px rgba(229,62,62,.5); }
.leg-dot.gray { background: #888; }
.leg-sep { width: 1px; height: 18px; background: #eee; }
.leg-types { display: flex; gap: 10px; flex-wrap: wrap; }
.leg-hint { margin-left: auto; color: #aaa; font-size: 11px; }

#map { height: 420px; width: 100%; }

/* ===== CUSTOM LEAFLET MARKERS ===== */
.mk-pin {
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.85);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.mk-pin:hover { transform: rotate(-45deg) scale(1.15); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.mk-pin.featured {
  background: #e53e3e;
  width: 42px; height: 42px;
  box-shadow: 0 4px 16px rgba(229,62,62,.55);
}
.mk-pin.regular { background: #6b7280; }
.mk-icon { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.mk-pin.featured .mk-icon { font-size: 18px; }

/* ===== MAP HOVER TOOLTIP ===== */
.leaflet-tooltip.map-prop-tip {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.leaflet-tooltip.map-prop-tip::before { display: none; }

.mpt-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,.22);
  width: 210px;
  pointer-events: none;
}
.mpt-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.mpt-body { padding: 10px 12px 12px; }
.mpt-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  font-family: 'DM Sans', sans-serif;
}
.mpt-price {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a3a2a;
  margin-bottom: 5px;
}
.mpt-cta {
  font-size: 11px;
  color: #c9a84c;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

/* ===== LEAFLET POPUP OVERRIDE ===== */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  font-family: 'DM Sans', sans-serif;
}
.leaflet-popup-content { margin: 14px 16px; min-width: 180px; }
.pop-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 3px; }
.pop-price { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: #1a3a2a; margin-bottom: 3px; }
.pop-feat { display: inline-block; font-size: 10px; background: #c9a84c; color: #fff; padding: 2px 7px; border-radius: 10px; margin-bottom: 6px; }

@media (max-width: 600px) {
  #map { height: 300px; }
}
