/* Zeylanda apartments presentation. Prefix: zb- */
.zb-wrap, .zb-floor-page { max-width: 100%; box-sizing: border-box; }
.zb-floor-page *, .zb-wrap * { box-sizing: border-box; }

/* Building */
.zb-building { position: relative; line-height: 0; }
.zb-building .zb-photo { display: block; width: 100%; height: auto; }
.zb-building .zb-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zb-floor { cursor: pointer; outline: none; }
.zb-floor > * { fill: transparent; stroke: transparent; stroke-width: 3; transition: fill .2s, stroke .2s; }
.zb-floor:hover > *, .zb-floor:focus-visible > * { fill: rgba(255, 255, 255, .35); stroke: #fff; }
.zb-floor.is-sold-out > * { fill: rgba(90, 90, 90, .05); }
.zb-floor.is-sold-out:hover > *, .zb-floor.is-sold-out:focus-visible > * { fill: rgba(120, 120, 120, .4); stroke: #999; }

.zb-tooltip { position: absolute; z-index: 5; pointer-events: none; background: #fff; color: #0f172a; border-radius: 8px;
	padding: 10px 14px; font-size: 13px; line-height: 1.5; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); min-width: 150px; }
.zb-tooltip[hidden] { display: none; }
.zb-tooltip strong { display: block; font-size: 15px; margin-bottom: 4px; }
.zb-tooltip .is-free { color: #16a34a; }
.zb-tooltip .is-reserved { color: #b45309; }
.zb-tooltip .is-sold { color: #64748b; }

.zb-floors ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.zb-floors li { margin: 0; }
.zb-floors a { display: inline-block; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font-weight: 600; text-decoration: none; }
.zb-floors a:hover { background: #f1f5f9; }
.zb-floors__free { color: #16a34a; font-weight: 400; font-size: .9em; margin-left: 4px; }

/* Floor page */
.zb-topbar { background: #fff; border: 1px solid #e2e8f0; padding: 16px 24px; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 12px;
	align-items: center; justify-content: space-between; margin-bottom: 20px; }
.zb-back { background: #f1f5f9; padding: 10px 16px; border-radius: 8px; color: #475569; font-weight: 600; text-decoration: none; }
.zb-topbar__title h2 { font-size: 20px; font-weight: 700; margin: 0; }
.zb-topbar__title span { font-size: 13px; color: #64748b; }
.zb-count { color: #16a34a; }
.zb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.zb-card { background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.zb-card__body { display: flex; flex-wrap: wrap; gap: 20px; }
.zb-card__plan { width: 200px; max-width: 100%; min-height: 180px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; font-weight: 600; overflow: hidden; }
.zb-card__plan-img { max-width: 100%; height: auto; display: block; }
.zb-card__info { flex: 1 1 200px; min-width: 0; }
.zb-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.zb-card__title { font-size: 18px; font-weight: 700; margin: 0; }
.zb-status { padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.zb-status--free { background: #dcfce7; color: #166534; }
.zb-status--reserved { background: #fef3c7; color: #92400e; }
.zb-status--sold { background: #e2e8f0; color: #475569; }
.zb-specs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.zb-specs li { display: flex; justify-content: space-between; margin: 0; }
.zb-specs span { color: #64748b; }
.zb-price { background: #f8fafc; padding: 8px 12px; border-radius: 6px; font-size: 16px; font-weight: 800; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; }
.zb-price small { font-size: 12px; color: #64748b; font-weight: 400; }
.zb-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zb-btn { flex: 1 1 140px; padding: 12px; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.zb-btn--primary { flex-grow: 2; background: #464d1f; color: #fff; }
.zb-btn--primary:hover { color: #fff; opacity: .9; }
.zb-btn--secondary { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
.zb-empty { text-align: center; padding: 40px 0; color: #64748b; }

/* Inquiry form: fallback modal (used when Flatsome lightbox is unavailable) */
.zb-inquiry { background: #fff; padding: 24px; max-width: 500px; margin: 0 auto; border-radius: 8px; }
.zb-inquiry.zb-modal-open { display: block; position: fixed; z-index: 100000; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: calc(100% - 32px); max-height: 90vh; overflow: auto; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }

@media (max-width: 549px) {
	.zb-topbar { padding: 12px 16px; }
	.zb-card { padding: 14px; }
	.zb-card__plan { width: 100%; }
}
