﻿.group-video {
	display: flex;
	flex-wrap: wrap;
	max-width: calc(100% - 0px);
	column-gap: 20px;
	row-gap: 0px;
	overflow:hidden;
}

.property-card {
	flex: 0 0 166px;
	width: 166px;
	max-width: 100%;
	background:#f3f4f7;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	margin-bottom:20px;
}

.property-video {
	position: relative;
	height: 263px;
	overflow: hidden;
	background: #111;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.property-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.property-video,
.video-play {
	cursor: pointer;
}

.video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	transform: translate(-50%, -50%);
	background: transparent url("../images/icon-play.png") center / contain no-repeat;
	transition: opacity 0.2s ease;
}

.property-card.is-playing .video-play {
	opacity: 0;
	pointer-events: none;
}

.property-title {
	display: -webkit-box;
	height: 78px;
	margin-top:8px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	color: #111;
	font-size: 14px;
	font-weight: 400;
	line-height: 19.5px;
	text-decoration: none;
	text-transform: uppercase;
	margin:8px 0px 4px 5px;
}

.property-title:hover {
	color: #ed1c24;
}

.property-details,
.property-contact {
	display: flex;
	align-items: center;
}

.property-details {
	justify-content: space-between;
	margin:5px 5px 5px 5px;
}

.property-stat {
	color: #ed1c24;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	white-space: nowrap;
}

.property-contact {
	gap: 4px;
	margin:5px 5px 10px 5px;
}

.member-avatar {
	flex: 0 0 26px;
	height: 26px;
	overflow: hidden;
	border-radius: 50%;
}

.member-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transform: scale(1);
	transform-origin: center 25%;
}

.phone-link {
	height: 26px;
	padding: 0 10px 0 33px;
	border-radius: 4px;
	background: #09aebb url("../images/icon-phone.png") 9px center / 18px 18px no-repeat;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 26px;
	text-decoration: none;
	white-space: nowrap;
}

.phone-link:hover {
	background-color: #0799a5;
}

.video-play:focus-visible,
.property-title:focus-visible,
.member-avatar:focus-visible,
.phone-link:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

body.popup-open {
	overflow: hidden;
}

.video-popup {
	display: none;
	position: fixed;
	z-index: 1000;
	inset: 0;
	width: 100%;
	height: 100%;
	padding-top: 50px;
	background: #fff;
}

.video-popup.is-open {
	display: block;
}

.popup-close {
	position: absolute;
	z-index: 4;
	top: 50px;
	left: 16px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	font-size: 30px;
	font-weight: 300;
	line-height: 38px;
	cursor: pointer;
}

.popup-layout {
	display: grid;
	grid-template-columns: minmax(0, 700px) 74px 325px;
	width: 1100px;
	max-width: calc(100% - 120px);
	height: calc(100vh - 60px);
	height: calc(100dvh - 60px);
	margin: 0 auto;
}

.popup-player {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #000;
}

.popup-video {
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	object-fit: contain;
}

.popup-progress {
	display: none;
}

.popup-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.popup-nav-button,
.popup-sound {
	width: 48px;
	height: 49px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.popup-sound {
	background: url("../images/sound-off.png") center / 100% 100% no-repeat;
}

.popup-sound[aria-pressed="true"] {
	background-image: url("../images/sound-on.png");
}

.popup-nav-button::before {
	display: block;
	width: 16px;
	height: 10px;
	margin: auto;
	background: url("../images/arrow.png") center / contain no-repeat;
	content: "";
}

.popup-prev::before {
	transform: rotate(180deg);
}

.popup-nav-button:disabled {
	opacity: 0.35;
	cursor: default;
}

.popup-info {
	min-width: 0;
	overflow-y: auto;
	border: 1px solid #e8e8e8;
	padding: 18px 16px;
}

.popup-title {
	display: block;
	color: #111;
	font-size: 18px;
	font-weight: 400;
	line-height: 23px;
	text-decoration: none;
	text-transform: uppercase;
}

.popup-meta {
	display: flex;
	gap: 30px;
	margin-top: 22px;
	border-top: 1px solid #eee;
	padding-top: 21px;
}

.popup-field {
	min-width: 0;
}

.popup-label,
.popup-field strong {
	display: block;
}

.popup-label {
	margin-bottom: 12px;
	color: #aaa;
	font-size: 14px;
}

.popup-field strong {
	color: #ed1c24;
	font-size: 17px;
	white-space: nowrap;
}

.popup-contact {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 23px;
}

.popup-avatar {
	flex: 0 0 50px;
	height: 50px;
	overflow: hidden;
	border-radius: 50%;
}

.popup-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.popup-phone {
	flex: 0 0 148px;
	height: 36px;
	padding-left: 40px;
	border-radius: 6px;
	background: #09aebb url("../images/icon-phone.png") 10px center / 22px 22px no-repeat;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 36px;
	text-decoration: none;
	white-space: nowrap;
}

.popup-zalo {
	flex: 0 0 40px;
	height: 40px;
	width:40px;
	display:block;
	background:url("../images/icon-zalo.png") no-repeat;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.popup-zalo img {
	display: block;
	width: 100%;
	height: 100%;
}

.popup-detail {
	display: none;
}

@media (max-width: 767px) {
	.video-popup {
		padding: 0;
		background: #000;
	}

	.popup-close {
		position: fixed;
		top: 12px;
		left: 12px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28.67px;
		height: 28.67px;
		border-radius: 50%;
		font-size: 20px;
		line-height: 1;
	}

	.popup-layout {
		display: block;
		width: 100%;
		max-width: none;
		height: 100vh;
		height: 100dvh;
	}

	.popup-player {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.popup-video {
		object-fit: contain;
	}

	.popup-progress {
		position: absolute;
		z-index: 4;
		right: 8px;
		bottom: 12px;
		left: 8px;
		display: block;
		width: calc(100% - 16px);
		height: 18px;
		margin: 0;
		background: transparent;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.popup-progress::-webkit-slider-runnable-track {
		height: 3px;
		border-radius: 3px;
		background: rgba(255, 255, 255, 0.75);
	}

	.popup-progress::-webkit-slider-thumb {
		width: 12px;
		height: 12px;
		margin-top: -4.5px;
		border: 0;
		border-radius: 50%;
		background: #fff;
		-webkit-appearance: none;
	}

	.popup-progress::-moz-range-track {
		height: 3px;
		border-radius: 3px;
		background: rgba(255, 255, 255, 0.75);
	}

	.popup-progress::-moz-range-thumb {
		width: 12px;
		height: 12px;
		border: 0;
		border-radius: 50%;
		background: #fff;
	}

	.popup-player.show-controls .popup-progress {
		display: none;
	}

	.popup-nav {
		position: absolute;
		z-index: 3;
		top: 50%;
		right: 10px;
		gap: 10px;
		transform: translateY(-50%);
	}

	.popup-nav-button,
	.popup-sound {
		width: 46px;
		height: 46px;
		background-color: rgba(255, 255, 255, 0.92);
	}

	.popup-info {
		position: absolute;
		z-index: 2;
		inset: 0;
		overflow: visible;
		border: 0;
		padding: 0;
		pointer-events: none;
	}

	.popup-title,
	.popup-label {
		display: none;
	}

	.popup-meta {
		position: absolute;
		bottom: 78px;
		left: 8px;
		gap: 18px;
		margin: 0;
		border: 0;
		padding: 0;
	}

	.popup-field strong {
		color: #fff;
		font-size: 14px;
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	}

	.popup-contact {
		position: absolute;
		right: 7px;
		bottom: 30px;
		left: 7px;
		gap: 7px;
		margin: 0;
		pointer-events: auto;
	}

	.popup-avatar {
		flex-basis: 34px;
		height: 34px;
	}

	.popup-phone {
		flex: 0 1 148px;
		height: 36px;
		padding-left: 38px;
		line-height: 36px;
	}

	.popup-zalo {
		flex-basis: 36px;
		height: 36px;
	}

	.popup-detail {
		display: block;
		flex: 0 0 auto;
		height: 38px;
		margin-left: auto;
		padding: 0 30px 0 8px;
		border-radius: 5px;
		background: rgba(255, 255, 255, 0.92) url("../images/arrow.png") right 8px center / 10.67px 6.67px no-repeat;
		color: #555;
		font-size: 14px;
		line-height: 38px;
		text-decoration: none;
		white-space: nowrap;
	}
}
