/* Map-specific styles; everything else comes from the generated app.css
   (Tailwind + DaisyUI — see tailwind/README.md to rebuild). */

.map-wrap { position: relative; width: 100%; height: 72vh; min-height: 420px; }
#map { width: 100%; height: 100%; border-radius: 12px; }

.map-hint {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-base-100, #fff);
  color: var(--color-base-content, #333);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  z-index: 5;
  max-width: 90%;
}

.map-legend {
  position: absolute;
  bottom: 1.5rem;
  left: 0.75rem;
  z-index: 5;
}
.map-legend .card-body { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.6rem; }
.map-legend #legend-extra { display: contents; }
.swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

/* Higher specificity than maplibre-gl.css (which loads later and forces a
   white background) so popup background and text always come from the same
   theme — otherwise dark mode gives light text on a white box. */
.maplibregl-popup .maplibregl-popup-content {
  background: var(--color-base-100, #fff);
  color: var(--color-base-content, #111);
  border-radius: 10px;
  padding: 1rem;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.maplibregl-popup .maplibregl-popup-tip {
  border-top-color: var(--color-base-100, #fff);
  border-bottom-color: var(--color-base-100, #fff);
}
.maplibregl-popup .maplibregl-popup-close-button {
  font-size: 1.2rem;
  padding: 0 0.4rem;
  color: inherit;
}

.parcel-pop { min-width: 230px; }
.parcel-pop strong { font-size: 1rem; font-weight: 700; }
.parcel-pop .pop-muted { opacity: 0.75; font-size: 0.85rem; margin-bottom: 0.4rem; }
.parcel-pop .pop-sale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.55rem;
}
.parcel-pop .pop-price { font-size: 1.2rem; font-weight: 800; }
.parcel-pop table { margin: 0 0 0.7rem; font-size: 0.875rem; border-collapse: collapse; width: 100%; }
.parcel-pop td { padding: 0.18rem 0.5rem 0.18rem 0; }
.parcel-pop td:first-child { opacity: 0.8; }
.parcel-pop td:last-child { font-weight: 600; text-align: right; }

/* Zillow-style price chips for active listings, visible at any zoom */
.price-chip {
  background: #14532d;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.price-chip:hover { background: #16a34a; }
.price-chip.pending { background: #854d0e; }
.price-chip.pending:hover { background: #ca8a04; }
