.se-lot-map {
  --se-ink: #17201d;
  --se-muted: #5f6d66;
  --se-line: #cfd9d4;
  --se-panel: #ffffff;
  --se-green: #1f7a5b;
  --se-green-dark: #14533f;
  --se-sold: #e23b1b;
  --se-reserved: #0f43ff;
  --se-pending: #b97708;
  --se-phase-ii: #64748b;
  --se-available: #1f7a5b;
  --se-shadow: 0 18px 60px rgba(8, 20, 15, 0.22);
  color: var(--se-ink);
  font-family: inherit;
}

.se-lot-map * {
  box-sizing: border-box;
}

.se-map-card {
  background: var(--se-panel);
  border: 1px solid var(--se-line);
  border-radius: 8px;
  padding: 18px;
}

.se-map-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.se-map-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: var(--se-ink);
}

.se-map-subtitle {
  margin: 6px 0 0;
  color: var(--se-muted);
  font-size: 15px;
  line-height: 1.45;
}

.se-map-alert {
  margin-top: 10px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff6dd;
  color: #7a5a05;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.se-map-alert {
  margin-top: 10px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff6dd;
  color: #7a5a05;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.se-lot-picker {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--se-muted);
  font-size: 13px;
  line-height: 1.2;
}

.se-lot-picker select {
  width: 100%;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  color: var(--se-ink);
  background: #ffffff;
  padding: 10px 12px;
  font: inherit;
}

.se-map-stage {
  position: relative;
  overflow: auto;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
}

.se-map-svg {
  display: block;
  width: 100%;
  min-width: 960px;
  height: auto;
}

.se-status-dot-layer {
  pointer-events: none;
}

.se-status-dot {
  pointer-events: none;
  fill: var(--se-sold);
  stroke: #ffffff;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.se-lot-hotspot {
  cursor: pointer;
  fill: rgba(31, 122, 91, 0.035);
  stroke: rgba(31, 122, 91, 0);
  stroke-width: 1.8;
  transition: fill 150ms ease, stroke 150ms ease, stroke-width 150ms ease;
  vector-effect: non-scaling-stroke;
  pointer-events: auto;
  stroke-linejoin: round;
}

.se-lot-hotspot[data-status="sold"] {
  fill: rgba(226, 59, 27, 0.03);
}

.se-lot-hotspot[data-status="reserved"] {
  fill: rgba(15, 67, 255, 0.03);
}

.se-lot-hotspot[data-status="pending"] {
  fill: rgba(185, 119, 8, 0.04);
}

.se-lot-hotspot[data-status="phase-ii"] {
  fill: rgba(100, 116, 139, 0.05);
}

.se-lot-hotspot:hover,
.se-lot-hotspot:focus,
.se-lot-hotspot.is-active {
  fill: rgba(31, 122, 91, 0.2);
  stroke: var(--se-available);
  stroke-width: 2.4;
  outline: none;
}

.se-lot-hotspot[data-status="sold"]:hover,
.se-lot-hotspot[data-status="sold"]:focus,
.se-lot-hotspot[data-status="sold"].is-active {
  fill: rgba(226, 59, 27, 0.22);
  stroke: var(--se-sold);
}

.se-lot-hotspot[data-status="reserved"]:hover,
.se-lot-hotspot[data-status="reserved"]:focus,
.se-lot-hotspot[data-status="reserved"].is-active {
  fill: rgba(15, 67, 255, 0.2);
  stroke: var(--se-reserved);
}

.se-lot-hotspot[data-status="pending"]:hover,
.se-lot-hotspot[data-status="pending"]:focus,
.se-lot-hotspot[data-status="pending"].is-active {
  fill: rgba(185, 119, 8, 0.22);
  stroke: var(--se-pending);
}

.se-lot-hotspot[data-status="phase-ii"]:hover,
.se-lot-hotspot[data-status="phase-ii"]:focus,
.se-lot-hotspot[data-status="phase-ii"].is-active {
  fill: rgba(100, 116, 139, 0.22);
  stroke: var(--se-phase-ii);
}

.se-tooltip {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(280px, calc(100vw - 28px));
  pointer-events: none;
  border-radius: 8px;
  background: #17201d;
  color: #ffffff;
  padding: 10px 12px;
  box-shadow: var(--se-shadow);
  font-size: 14px;
  line-height: 1.35;
}

.se-tooltip strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.se-tooltip span {
  display: block;
  color: #e4ece8;
}

.se-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  color: var(--se-muted);
  font-size: 14px;
}

.se-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.se-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--se-available);
}

.se-map-legend .is-sold i {
  background: var(--se-sold);
}

.se-map-legend .is-reserved i {
  background: var(--se-reserved);
}

.se-map-legend .is-pending i {
  background: var(--se-pending);
}

.se-map-legend .is-phase-ii i {
  background: var(--se-phase-ii);
}

.se-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 15, 0.62);
  padding: 20px;
}

.se-modal-backdrop[hidden],
.se-tooltip[hidden] {
  display: none !important;
}

.se-modal-card {
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--se-shadow);
  padding: 24px;
}

.se-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.se-modal-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.se-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--se-available);
}

.se-status-pill[data-status="sold"] {
  background: var(--se-sold);
}

.se-status-pill[data-status="reserved"] {
  background: var(--se-reserved);
}

.se-status-pill[data-status="pending"] {
  background: var(--se-pending);
}

.se-status-pill[data-status="phase-ii"] {
  background: var(--se-phase-ii);
}

.se-modal-close {
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--se-ink);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 9px 11px;
}

.se-modal-close:hover,
.se-modal-close:focus {
  border-color: var(--se-green);
  outline: none;
}

.se-lot-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.se-lot-fact {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--se-line);
  padding-bottom: 10px;
}

.se-lot-fact dt,
.se-lot-fact dd {
  margin: 0;
}

.se-lot-fact dt {
  color: var(--se-muted);
  font-weight: 700;
}

.se-lot-note {
  margin: 0 0 20px;
  color: var(--se-muted);
  line-height: 1.55;
}

.se-lot-note[hidden] {
  display: none;
}

.se-inquire-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--se-green);
  color: #ffffff;
  padding: 11px 16px;
  font-weight: 700;
  text-decoration: none;
}

.se-inquire-link:hover,
.se-inquire-link:focus {
  background: var(--se-green-dark);
  color: #ffffff;
  outline: none;
}

@media (max-width: 760px) {
  .se-map-card {
    padding: 12px;
  }

  .se-map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .se-map-title {
    font-size: 23px;
  }

  .se-map-svg {
    min-width: 900px;
  }

  .se-lot-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
