/* Match Elementor boxed section: max-width 1096px, centered, 10px gutters. */
.site-main--rent-archive {
	box-sizing: border-box;
	width: 100%;
	max-width: 1096px !important;
	margin-inline: auto;
	padding-block: 40px 64px;
	padding-inline: 10px;
}

.site-main--rent-archive .page-header {
	margin: 0 0 32px;
	padding: 0;
	width: 100%;
	max-width: none;
}

/*
 * Hello Elementor styles .page-header .entry-title with its own max-width
 * breakpoints and mobile padding-inline — that makes the title jump vs the grid.
 * Keep title + content on the same boxed edge as Elementor headings.
 */
.site-main--rent-archive .page-header .entry-title {
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding-inline: 0 !important;
	color: #fdfdfd;
}

.site-main--rent-archive .page-content {
	margin: 0;
	padding: 0;
	width: 100%;
}

.rent-grid {
	display: grid;
	grid-template-columns: repeat(var(--rent-grid-columns, 4), minmax(0, 1fr));
	gap: 32px 20px;
	align-items: start;
	width: 100%;
}

.rent-grid__item {
	min-width: 0;
}

.rent-grid__card {
	display: flex;
	flex-direction: column;
	height: auto;
	padding: 0;
	overflow: hidden;
	background: #2b2b2b;
	border-radius: 8px;
	color: #ffffff;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.rent-grid__item:hover .rent-grid__card {
	background: #333333;
}

.rent-grid__media-link {
	display: block;
	flex-shrink: 0;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: #1a1a1a;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: inherit;
	text-decoration: none;
}

.rent-grid__media-link:hover {
	text-decoration: none;
}

.rent-grid__media-link--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #2f80ed;
}

.rent-grid__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.rent-grid__media-icon {
	width: 32px;
	height: 32px;
}

.rent-grid__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 0;
	padding: 12px 16px 16px;
}

.page-content .rent-grid a,
.page-content .rent-grid a:hover,
.elementor-widget-shortcode .rent-grid a,
.elementor-widget-shortcode .rent-grid a:hover {
	text-decoration: none;
}

.rent-grid__title a {
	color: inherit;
	text-decoration: none;
}

.rent-grid__title a:hover {
	color: inherit;
	text-decoration: none;
	opacity: 0.85;
}

.rent-grid__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: inherit;
	text-decoration: none;
}

.rent-grid__excerpt {
	margin: 8px 0 0;
	color: #b3b3b3;
	font-size: 0.8125rem;
	line-height: 1.5;
	text-decoration: none;
}

.rent-grid__read-more {
	margin-top: auto;
	padding-top: 16px;
	color: inherit;
	font-size: 0.875rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.page-content .rent-grid .rent-grid__read-more,
.page-content .rent-grid .rent-grid__read-more:hover,
.elementor-widget-shortcode .rent-grid .rent-grid__read-more,
.elementor-widget-shortcode .rent-grid .rent-grid__read-more:hover {
	text-decoration: underline;
}

.rent-grid__read-more:hover {
	opacity: 0.85;
}

@media (max-width: 1200px) {
	.rent-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.rent-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.rent-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
