/* ============================================================
   Public Property Map page styles
   ============================================================ */

.propmap-hero {
  padding: 2.5rem 0 1rem;
}
.propmap-hero h1 {
  margin: 0 0 0.5rem;
}
.propmap-sub {
  color: var(--color-grey-4, #555);
  max-width: 60ch;
  margin: 0;
}

.propmap-section {
  padding: 1rem 0 3rem;
}

.propmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.propmap-count {
  font-weight: 600;
  font-size: 0.95rem;
}
.propmap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.propmap-chip {
  border: 1px solid var(--color-grey-2, #ccc);
  background: #fff;
  color: var(--color-grey-4, #555);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.propmap-chip:hover { border-color: var(--color-gold, #c9a64c); }
.propmap-chip.active {
  background: var(--color-black, #0a0a0c);
  color: #fff;
  border-color: var(--color-black, #0a0a0c);
}

.propmap-canvas {
  width: 100%;
  height: 68vh;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-grey-2, #ddd);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.propmap-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--color-grey-3, #888);
}

/* Pin marker */
.propmap-pin-inner {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  cursor: pointer;
}

/* Popup card */
.propmap-card { width: 210px; }
.propmap-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin: -2px 0 0;
}
.propmap-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.propmap-card-body { padding: 0.5rem 0.2rem 0.1rem; }
.propmap-card-price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-black, #0a0a0c);
}
.propmap-card-price small { font-weight: 500; color: var(--color-grey-3, #888); }
.propmap-card-loc {
  font-size: 0.8rem;
  color: #1f2630;
  font-weight: 500;
  margin: 0.15rem 0;
}
.propmap-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  font-size: 0.78rem;
  color: #1f2630;
  margin: 0.25rem 0;
}
.propmap-card-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-gold, #b6892b);
  text-decoration: none;
}
.propmap-card-link:hover { text-decoration: underline; }

/* Leaflet popup chrome — tighten default padding so the image sits flush */
.leaflet-popup-content { margin: 8px 10px; }
.leaflet-popup-content-wrapper { border-radius: 10px; }

@media (max-width: 640px) {
  .propmap-canvas { height: 60vh; }
  .propmap-toolbar { flex-direction: column; align-items: flex-start; }
}
