/* =========================================================
   Lots & Prices — New Interactive Map (Lodestar SVG port)
   Layered on top of lots-prices.min.css
   ========================================================= */
.preview-banner {
  position: sticky; top: 0; z-index: 1000;
  background: #c4572a; color: #fff; text-align: center;
  padding: 10px 16px; font-family: 'Libre Franklin', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
}
.preview-banner a { color: #fff; text-decoration: underline; margin-left: 12px; font-weight: 400; }

.lots-map-new { width: 100%; max-width: 1400px; margin: 2rem auto; padding: 0 1rem; }
.svg-mount {
  position: relative; width: 100%; line-height: 0;
  border-radius: 8px; overflow: hidden; background: #f5f0e8;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.svg-mount .svg-loading {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2550 / 1787; color: #888;
  font-family: 'Libre Franklin', sans-serif; font-size: 14px;
}
.svg-mount svg { display: block; width: 100%; height: auto; }

/* HOVER MAP — ported from Divi */
.svg-mount svg g[id$="-hover"],
.svg-mount svg g[id$="-hover"] .st16 {
  opacity: 0; transition: opacity 0.18s ease-out; cursor: pointer;
}
.svg-mount svg g[id$="-hover"]:hover,
.svg-mount svg g[id$="-hover"]:hover .st16 { opacity: 1; }
.svg-mount svg g[id$="-hover"]:focus,
.svg-mount svg g[id$="-hover"]:focus .st16 {
  opacity: 1; outline: 2px solid #c4572a; outline-offset: 2px;
}

/* Sold / pending polygon tinting */
.svg-mount svg g.status-sold { pointer-events: none; }
.svg-mount svg g.status-sold .st16,
.svg-mount svg g.status-sold path,
.svg-mount svg g.status-sold polygon {
  opacity: 0.25; filter: grayscale(70%);
}

.map-legend .legend-swatch.pending { background: #c8b98a; }

#ar-table-body .status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
#ar-table-body .status-available { background: #e8f5df; color: #2a7a3c; }
#ar-table-body .status-pending   { background: #fbe8d5; color: #c4572a; }
#ar-table-body .status-sold      { background: #e5e5e5; color: #666; }
#ar-table-body tr.is-sold td { opacity: 0.55; }
#ar-table-body tr.is-clickable { cursor: pointer; }
#ar-table-body tr.is-clickable:hover td { background: #f6f2eb; }

/* DIALOG MODAL */
.lot-dialog {
  border: none; border-radius: 10px; padding: 0;
  width: min(920px, 92vw); max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #faf8f5; color: #1a1f1a; overflow: hidden;
}
.lot-dialog::backdrop { background: rgba(20,25,22,0.7); backdrop-filter: blur(3px); }
.lot-dialog-close-form { margin: 0; }
.lot-dialog-close {
  position: absolute; top: 8px; right: 12px;
  background: rgba(255,255,255,0.9); border: none;
  font-size: 28px; line-height: 1; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; color: #333; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.lot-dialog-close:hover { background: #fff; color: #000; }
.lot-dialog-body { display: grid; grid-template-columns: 3fr 2fr; min-height: 420px; }
.lot-dialog-photo { background: #1a1f1a; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lot-dialog-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-dialog-info { padding: 32px 36px; display: flex; flex-direction: column; }
.lot-dialog-info h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 34px;
  font-weight: 500; margin: 0 0 4px; color: #1a1f1a;
}
.lot-dialog-address {
  font-family: 'Libre Franklin', sans-serif; font-size: 13px;
  color: #888; margin: 0 0 24px; letter-spacing: 0.5px;
}
.lot-dialog-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #e8e2d6; border-bottom: 1px solid #e8e2d6;
  margin-bottom: 24px;
}
.lot-dialog-stats .stat-label {
  font-family: 'Libre Franklin', sans-serif; font-size: 11px;
  color: #888; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 4px;
}
.lot-dialog-stats .stat-value {
  font-family: 'Libre Franklin', sans-serif; font-size: 16px;
  font-weight: 500; color: #1a1f1a;
}
.lot-dialog-stats .stat-price { font-size: 20px; color: #c4572a; }
.lot-dialog-stats .stat-price .strike {
  display: block; font-size: 13px; color: #b0a99b;
  text-decoration: line-through; font-weight: 400; margin-top: 2px;
}
.lot-dialog-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.lot-dialog-actions .btn-primary,
.lot-dialog-actions .btn-secondary {
  flex: 1; text-align: center; padding: 12px 20px; border-radius: 4px;
  font-family: 'Libre Franklin', sans-serif; font-size: 13px;
  font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.lot-dialog-actions .btn-primary { background: #c4572a; color: #fff; border: 1px solid #c4572a; }
.lot-dialog-actions .btn-primary:hover { background: #d4632f; border-color: #d4632f; box-shadow: 0 4px 20px rgba(196,87,42,0.3); }
.lot-dialog-actions .btn-primary[hidden] { display: none; }
.lot-dialog-actions .btn-secondary { background: transparent; color: #1a1f1a; border: 1px solid #1a1f1a; }
.lot-dialog-actions .btn-secondary:hover { background: #1a1f1a; color: #fff; }

@media (max-width: 680px) {
  .lot-dialog { width: 96vw; max-height: 90vh; }
  .lot-dialog-body { grid-template-columns: 1fr; }
  .lot-dialog-photo { aspect-ratio: 4 / 3; min-height: 200px; }
  .lot-dialog-info { padding: 20px 24px; }
  .lot-dialog-info h2 { font-size: 28px; }
  .lot-dialog-actions { flex-direction: column; }
}
