/* VTG Unit Catalog — квартиры/планировки внутри страницы инвестиции */

.vtg-uc {
	margin: 36px 0 28px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vtg-uc-title {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #0f1f45 !important;
	margin: 0 0 8px !important;
}

.vtg-uc-intro {
	font-size: 14px !important;
	color: #6b7a99 !important;
	margin: 0 0 20px !important;
	line-height: 1.6;
}

/* Controls: filters + sort */
.vtg-uc-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.vtg-uc-filter label {
	font-size: 12px;
	font-weight: 600;
	color: #8a96b0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
	display: block;
}

.vtg-uc-pills {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.vtg-uc-pill {
	padding: 6px 14px;
	border: 1px solid #d0d7e3;
	border-radius: 20px;
	background: #fff;
	color: #3d4f6f;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
}

.vtg-uc-pill:hover {
	border-color: #3d6bdb;
	color: #3d6bdb;
}

.vtg-uc-pill.active {
	background: #3d6bdb;
	border-color: #3d6bdb;
	color: #fff;
}

.vtg-uc-sort {
	margin-left: auto;
}

.vtg-uc-sort select {
	padding: 7px 12px;
	border: 1px solid #d0d7e3;
	border-radius: 8px;
	font-size: 13px;
	color: #3d4f6f;
	background: #fff;
	cursor: pointer;
}

.vtg-uc-count {
	font-size: 13px;
	color: #8a96b0;
	margin-bottom: 12px;
}

/* Unit rows */
.vtg-uc-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.vtg-uc-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border-bottom: 1px solid #eef1f6;
	transition: background 0.1s;
}

.vtg-uc-row:first-child {
	border-top: 1px solid #eef1f6;
}

.vtg-uc-row:hover {
	background: #f7f9fc;
}

.vtg-uc-row-info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vtg-uc-row-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f1f45;
}

.vtg-uc-row-params {
	font-size: 13px;
	color: #5a6a88;
}

.vtg-uc-row-price {
	flex: 0 0 auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.vtg-uc-price-main {
	font-size: 15px;
	font-weight: 700;
	color: #0f1f45;
	white-space: nowrap;
}

.vtg-uc-price-m2 {
	font-size: 12px;
	color: #8a96b0;
	white-space: nowrap;
}

.vtg-uc-row-action {
	flex: 0 0 auto;
}

.vtg-uc-plan-btn {
	padding: 8px 16px;
	border: 1px solid #3d6bdb;
	border-radius: 8px;
	background: transparent;
	color: #3d6bdb;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s;
}

.vtg-uc-plan-btn:hover {
	background: #3d6bdb;
	color: #fff;
}

/* Load more */
.vtg-uc-more-wrap {
	text-align: center;
	margin-top: 16px;
}

.vtg-uc-more {
	padding: 10px 28px;
	border: 1px solid #d0d7e3;
	border-radius: 8px;
	background: #fff;
	color: #3d6bdb;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}

.vtg-uc-more:hover {
	background: #f0f4ff;
	border-color: #3d6bdb;
}

/* Modal */
.vtg-uc-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vtg-uc-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
}

.vtg-uc-modal-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 640px;
	width: 92%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 28px;
}

.vtg-uc-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: #8a96b0;
	cursor: pointer;
	line-height: 1;
	z-index: 1;
}

.vtg-uc-modal-close:hover {
	color: #0f1f45;
}

.vtg-uc-modal-unit {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vtg-uc-modal-name {
	font-size: 18px;
	font-weight: 700;
	color: #0f1f45;
	margin-bottom: 4px;
}

.vtg-uc-modal-params {
	font-size: 14px;
	color: #5a6a88;
	margin-bottom: 8px;
}

.vtg-uc-modal-price {
	font-size: 20px;
	font-weight: 700;
	color: #0f1f45;
}

.vtg-uc-modal-ppm {
	font-size: 13px;
	color: #8a96b0;
}

.vtg-uc-modal-plan img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #eef1f6;
}

.vtg-uc-modal-cta {
	display: inline-block;
	text-align: center;
	padding: 14px 28px;
	background: #3d6bdb;
	color: #fff !important;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s;
}

.vtg-uc-modal-cta:hover {
	background: #2c56b8;
	color: #fff !important;
}

/* Mobile */
@media (max-width: 640px) {
	.vtg-uc-row {
		flex-wrap: wrap;
		gap: 8px;
		padding: 12px 12px;
	}

	.vtg-uc-row-info {
		flex: 1 1 100%;
	}

	.vtg-uc-row-price {
		flex: 1 1 auto;
	}

	.vtg-uc-row-action {
		flex: 0 0 auto;
	}

	.vtg-uc-plan-btn {
		padding: 10px 14px;
		font-size: 13px;
	}

	.vtg-uc-controls {
		flex-direction: column;
		align-items: flex-start;
	}

	.vtg-uc-sort {
		margin-left: 0;
	}

	.vtg-uc-modal-content {
		padding: 20px 16px;
		max-width: 96%;
	}

	.vtg-uc-title {
		font-size: 19px !important;
	}
}
