/*
 * Metric Horizon Property - object info grid, section titles and units table.
 * Uses --mh-* tokens from mh-core.
 */

/* ---------------- section + title (consistent hierarchy) ---------------- */
.mh-object-section {
	margin: 0 0 44px;
}

.mh-object-section__title {
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--mh-primary, #0a1b4d);
	margin: 0 0 20px;
}

.mh-object-details .mh-object-section + .mh-object-section {
	padding-top: 8px;
}

/* ---------------- info grid (even definition blocks) ---------------- */
.mh-info-grid {
	display: grid;
	gap: 1px;
	background: var(--mh-border, #e1e5ee);
	border: 1px solid var(--mh-border, #e1e5ee);
	border-radius: var(--mh-radius-m, 16px);
	overflow: hidden;
}

.mh-info-grid--cols-1 { grid-template-columns: 1fr; }
.mh-info-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mh-info-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.mh-info-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.mh-info-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }

.mh-info-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 20px;
	background: var(--mh-white, #fff);
}

.mh-info-card__icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--mh-surface, #f4f6fa);
}

.mh-info-card__icon img {
	width: 22px;
	height: 22px;
	display: block;
}

.mh-info-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.mh-info-card__value {
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	color: var(--mh-text, #1c1f26);
	word-break: break-word;
}

.mh-info-card__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mh-text-muted, #5a6473);
}

@media (max-width: 991px) {
	.mh-info-grid--cols-3,
	.mh-info-grid--cols-4,
	.mh-info-grid--cols-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 519px) {
	.mh-info-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ---------------- units table ---------------- */
.mh-units-table {
	border: 1px solid var(--mh-border, #e1e5ee);
	border-radius: var(--mh-radius-m, 16px);
	overflow: hidden;
}

.mh-units-table__head,
.mh-units-table__row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr;
	align-items: center;
}

.mh-units-table__head {
	background: var(--mh-surface, #f4f6fa);
	padding: 14px 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mh-text-muted, #5a6473);
}

.mh-units-table__row {
	padding: 16px 20px;
	border-top: 1px solid var(--mh-border, #e1e5ee);
}

.mh-units-table__cell {
	font-size: 15px;
	color: var(--mh-text, #1c1f26);
}

.mh-units-table__cell--room {
	font-weight: 600;
}

.mh-units-table__cell--price {
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	color: var(--mh-primary, #0a1b4d);
}

@media (max-width: 519px) {
	.mh-units-table__head {
		display: none;
	}
	.mh-units-table__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.mh-units-table__cell--price {
		font-size: 17px;
	}
}

/* ---------------- installment plan ---------------- */
.mh-payment {
	display: grid;
	gap: 14px;
}

.mh-payment--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mh-payment--cols-3 { grid-template-columns: repeat(3, 1fr); }
.mh-payment--cols-4 { grid-template-columns: repeat(4, 1fr); }
.mh-payment--cols-5 { grid-template-columns: repeat(5, 1fr); }

.mh-payment__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 20px 18px;
	background: var(--mh-surface, #f4f6fa);
	border: 1px solid var(--mh-border, #e1e5ee);
	border-radius: var(--mh-radius-m, 16px);
}

.mh-payment__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-bottom: 6px;
	border-radius: 50%;
	background: var(--mh-primary, #0a1b4d);
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-weight: 800;
	font-size: 12px;
}

.mh-payment__amount {
	font-family: "Manrope", sans-serif;
	font-weight: 800;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.15;
	color: var(--mh-primary, #0a1b4d);
}

.mh-payment__caption {
	font-size: 13px;
	line-height: 1.45;
	color: var(--mh-text-muted, #5a6473);
}

/* Fallback for rich content (tables, ordered lists). */
.mh-payment__prose {
	border: 1px solid var(--mh-border, #e1e5ee);
	border-radius: var(--mh-radius-m, 16px);
	padding: 22px 24px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--mh-text, #1c1f26);
}

.mh-payment__prose p:first-child { margin-top: 0; }
.mh-payment__prose p:last-child { margin-bottom: 0; }

.mh-payment__prose ul {
	margin: 0;
	padding-left: 20px;
}

.mh-payment__prose li { margin-bottom: 6px; }

.mh-payment__prose table {
	width: 100%;
	border-collapse: collapse;
}

.mh-payment__prose th,
.mh-payment__prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--mh-border, #e1e5ee);
	text-align: left;
	font-size: 14px;
}

@media (max-width: 991px) {
	.mh-payment--cols-3,
	.mh-payment--cols-4,
	.mh-payment--cols-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 519px) {
	.mh-payment {
		grid-template-columns: 1fr !important;
	}
}
