.ib { --ib-ok: #1fa971; --ib-warn: #f2a100; --ib-bad: #d63638; --ib-ink: #1d2327; position: relative; max-width: 100%; }
.ib * { box-sizing: border-box; }
.ib-stage { position: relative; line-height: 0; }
.ib-stage > img { width: 100%; height: auto; display: block; }
.ib-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.ib-poly { stroke-width: 2; vector-effect: non-scaling-stroke; fill-opacity: 0; stroke-opacity: 0; cursor: pointer; transition: fill-opacity .15s, stroke-opacity .15s; outline: none; }
.ib-poly.s-available { fill: var(--ib-ok); stroke: var(--ib-ok); }
.ib-poly.s-reserved { fill: var(--ib-warn); stroke: var(--ib-warn); }
.ib-poly.s-sold { fill: var(--ib-bad); stroke: var(--ib-bad); }
.ib-poly:hover, .ib-poly:focus-visible { fill-opacity: .35; stroke-opacity: 1; }

.ib-tip { position: absolute; z-index: 5; min-width: 190px; padding: 12px 14px; background: #fff; color: var(--ib-ink); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.2); line-height: 1.3; pointer-events: none; font-size: 14px; }
.ib-tip[hidden] { display: none; }
.ib-tip-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.ib-tip-title { font-weight: 700; font-size: 16px; }
.ib-tip-row { display: flex; gap: 24px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }

.ib-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ib-badge.s-available { background: #e3f6ee; color: #12724c; }
.ib-badge.s-reserved { background: #fdf0d3; color: #8a5d00; }
.ib-badge.s-sold { background: #fbe3e3; color: #a12527; }

.ib-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ib-price-now { font-size: 20px; }
.ib-price-old { color: #8c8f94; font-size: 13px; }
.ib-price--big .ib-price-now { font-size: 28px; }

.ib-stat { display: flex; flex-direction: column; gap: 1px; }
.ib-stat-l { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #787c82; }
.ib-stat-v { font-size: 15px; font-weight: 600; }

.ib-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.ib-legend-item { display: flex; align-items: center; gap: 6px; margin: 0; }
.ib-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ib-dot.s-available { background: var(--ib-ok); }
.ib-dot.s-reserved { background: var(--ib-warn); }
.ib-dot.s-sold { background: var(--ib-bad); }

body.ib-lock { overflow: hidden; }
.ib-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(15,18,22,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ib-modal-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); width: min(960px, 100%); max-height: 100%; overflow: auto; background: #fff; color: var(--ib-ink); border-radius: 16px; line-height: 1.4; }
.ib-modal-media { background: #f6f7f7; display: flex; align-items: center; padding: 14px; }
.ib-modal-media img { width: 100%; height: auto; border-radius: 8px; display: block; }
.ib-modal-info { padding: 32px 28px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ib-modal-title { margin: 0; font-size: 32px; line-height: 1.1; }
.ib-modal-sub { color: #787c82; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.ib-modal-project { font-weight: 600; }
.ib-modal-grid { display: flex; gap: 28px; justify-content: center; margin-top: 8px; }
.ib-modal-floor { font-size: 18px; }
.ib-modal-price { margin-top: auto; padding: 14px 20px; background: #1d2327; color: #fff; border-radius: 8px; }
.ib-modal-price .ib-price { justify-content: center; }
.ib-modal-price .ib-price-old { color: #b6b9bd; }
.ib-ppm { margin-top: 4px; font-size: 13px; color: #c3c4c7; }
.ib-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: #1d2327; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
@media (max-width: 700px) { .ib-modal-box { grid-template-columns: 1fr; } .ib-modal-info { padding: 20px; } }
@media (hover: none) { .ib-tip { display: none; } }
