.featured-properties-carousel-block {
	overflow: hidden;
}

#page_content .property-listings-carousel {
	position: relative;
	margin-top: 30px;
}

#page_content .property-listings-carousel:not(.slick-initialized) {
	display: flex;
	gap: 20px;
	overflow: auto;
}

#page_content .property-listings-carousel .slick-list {
	margin: 0 -10px;
}

#page_content .property-listings-carousel .slick-track {
	display: flex;
}

#page_content .property-listings-carousel .slick-slide {
	display: flex;
	margin: 0 10px;
	height: unset;
}

#page_content .property-listings-carousel .slick-slide > div {
	display: flex;
	width: 100%;
}

#page_content .property-listings-carousel .slick-arrow {
	top: 90px;
}

.property-listings-carousel .property-carousel-card {
	max-width: 290px;
	display: flex !important;
	flex-direction: column;
	padding: 10px 0;
}

.property-listings-carousel:not(.slick-initialized) .property-carousel-card {
	width: 290px;
	flex-shrink: 0;
}

.property-carousel-card .property-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	text-underline-position: under;
}

.property-carousel-card .property-card__image-area {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	flex-shrink: 0;
}

.property-carousel-card .property-card__image-overlay {
	position: absolute;
	padding: 10px;
	display: flex;
	gap: 10px;
	z-index: 1;
}

.property-carousel-card .property-card__image-overlay span {
	display: block;
	padding: 5px 7.5px;
	font-size: var(--extra-small);
	color: var(--white);
	line-height: 1;
	border-radius: 5px;
	background-color: rgba(0,0,0,0.8);
}

.property-carousel-card .property-card__image {
	object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.property-carousel-card .property-card__info {
	padding: 15px;
	border-left: 1px solid var(--off-white);
	border-right: 1px solid var(--off-white);
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 10px;
	line-height: 1.5;
}

.property-carousel-card .property-card__price {
	line-height: 1.25;
}

.property-carousel-card .property-card__address {
	color: var(--black);
	font-weight: 500;
}

.property-carousel-card .property-card__details {
	display: flex;
	align-items: center;
	gap: 5px;
}

.property-carousel-card .property-detail {
	display: inline-flex;
	align-items: center;
}

.property-carousel-card .property-detail__icon {
	height: 17px;
	width: auto;
	margin-left: 5px;
}

.property-carousel-card .property-card__agents {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	padding: 15px;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	color: var(--white);
	cursor: pointer;
}

.property-carousel-card .property-card__agents > span {
	color: inherit !important;
}

.property-carousel-card .property-card__link:hover {
	box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.property-carousel-card .property-card__link:hover .property-card__image {
	transform: scale(1.1);
}

.property-carousel-card .property-card__link:hover .property-card__price {
	/*text-decoration: underline;*/
}

.property-carousel-card .property-card__link:hover .property-card__address {
	color: var(--red);
	text-decoration: underline;
}

.property-carousel-card .property-card__agents:has(.property-card__agent-link:hover),
.property-carousel-card .property-card__agents:hover {
	background-color: var(--gray) !important;
	color: var(--black) !important;
}

.property-carousel-card .property-card__agent-link {
	color: inherit !important;
	text-decoration: none;
}

.property-carousel-card .property-card__agent-link:hover {
	text-decoration: underline;
}

.es-listings .property-carousel-card {
	width: calc(25% - ((20px * 3) / 4)) !important;
	display: flex;
	flex-direction: column;
}

.es-properties:has(.es-properties__map.es-properties__map--visible) .property-carousel-card {
	width: calc(50% - ((20px) / 2)) !important;
}

.es-properties:has(.es-properties__map.es-properties__map--visible) .slick-slide .property-carousel-card {
	width: 100% !important;
}

@media only screen and (max-width: 1220px) {
	:has(.property-listings-carousel) {
		overflow: hidden;
	}

	.property-listings-carousel .slick-list {
		overflow: visible;
	}

	.property-carousel-card {
		width: 290px !important;
	}
}

@media only screen and (max-width: 780px) {
	:has(.property-listings-carousel) {
		overflow: visible;
	}

	.es-listings .property-carousel-card,
	.es-listings .es-properties:has(.es-properties__map.es-properties__map--visible) .property-carousel-card {
		width: calc(50% - (20px / 2)) !important;
	}
}
/* Estatik Search & Results Override Responsive Styles */
@media only screen and (max-width: 1120px) {
	.es-listings .property-carousel-card {
		width: calc(33.3333% - ((20px * 2) / 3)) !important;
	}

	.es-listings .es-properties:has(.es-properties__map.es-properties__map--visible) .property-carousel-card {
		width: calc(50% - (20px / 2)) !important;
	}
}

@media only screen and (max-width: 550px) {
	.es-listings .property-carousel-card,
	.es-listings .es-properties:has(.es-properties__map.es-properties__map--visible) .property-carousel-card {
		width: 100% !important;
	}
}

/* Agent Popup Styles */
.agent-popup {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--browser-padding) * 1.5);
	pointer-events: none;
}

.agent-popup__group {
	border-radius: 5px;
	box-shadow: var(--default-shadow);
	width: 100%;
	max-width: 800px;
	pointer-events: auto;
}

.agent-popup__close-wrapper {
	position: absolute;
	width: 100px;
	height: 165px;
	top: 0;
	right: 0;
	padding: 40px 25px;
	border-top-right-radius: 5px;
}

.agent-popup__close-wrapper:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: -1px;
	background-color: var(--maroon);
	width: 85px;
	height: 100%;
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	border-top-right-radius: 5px;
}

.agent-popup__close {
	font-size: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	background-color: var(--red);
	color: var(--white);
	text-decoration: none;
	border-radius: 50%;
	position: relative;
	cursor: pointer;
}

.agent-popup__close img {
	width: 20px;	
	pointer-events: none;
}

.agent-popup__close:hover {
	background-color: var(--black);
	color: var(--white);
}

.agent-content-for-popup {
	display: none !important;
}

.agent-popup__content {
	position: relative;
	margin-top: 0;
}

.agent-popup__cards {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

.agent-popup-card {
	display: flex;
	align-items: center;
	gap: 20px;
}

.agent-popup-card__image {
	position: relative;
    width: 140px;
    aspect-ratio: 72 / 83;
    flex-shrink: 0;
}

.agent-popup-card__image img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agent-popup-card__contact-info {
	margin-top: 5px;
}

.agent-popup-card-divider {
	color: var(--gray);
}

.agent-popup-card a[href^="mailto:"] {
	line-height: 1.2;
	display: inline-block;
}

.agent-popup-card a[href^="mailto:"] span {
	font-size: 0;
}

.agent-popup-card__button {
	display: flex;
	margin-top: 25px;
}

.agent-popup-card__button .wp-block-button__link {
	display: block;
}

@media only screen and (max-width: 780px) {
	.agent-popup__close-wrapper {
	    width: 80px;
	    height: 120px;
	    padding: 20px;
	}

	.agent-popup__close-wrapper:before {
	    width: 65px;
	}

	.agent-popup__close {
		width: 40px;
		height: 40px;
	}
}

@media only screen and (max-width: 600px) {
	.agent-popup-card__image {
		display: none;
	}
}