/**
 * Rental Properties — front-end styles.
 *
 * Rewritten for Hello Elementor:
 *  - the float/salvattore column grid is now CSS grid
 *  - Divi selectors (#et-main-area, .lazyloaded, .et_pb_salvattore_content) are gone
 *  - colours come from a --dpr-accent custom property Elementor can override
 */

:root {
	--dpr-accent: #386fbf;
	--dpr-accent-dark: #183459;
	--dpr-border: #f2f2f2;
	--dpr-muted: #6b7280;
	--dpr-radius: 4px;
	--dpr-gap: 30px;
	--dpr-columns: 3;
}

/* ---------------------------------------------------------------- Layout */

.dpr-container {
	width: 100%;
	max-width: var(--dpr-container-width, 1140px);
	margin-inline: auto;
	padding: 24px 16px;
	box-sizing: border-box;
}

.dpr-site-main {
	display: block;
	width: 100%;
}

.dpr-wrap {
	width: 100%;
}

.dpr-archive__title {
	text-align: center;
	margin: 0 0 30px;
}

/* --------------------------------------------------------------- Listing */

.dpr-listing__heading {
	margin: 0 0 30px;
}

.dpr-listing {
	display: grid;
	grid-template-columns: repeat(var(--dpr-columns), minmax(0, 1fr));
	gap: var(--dpr-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dpr-listing--cols-1 { --dpr-columns: 1; }
.dpr-listing--cols-2 { --dpr-columns: 2; }
.dpr-listing--cols-3 { --dpr-columns: 3; }
.dpr-listing--cols-4 { --dpr-columns: 4; }

.dpr-card {
	margin: 0;
	min-width: 0;
}

.dpr-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #fff;
	border: 1px solid var(--dpr-border);
	border-radius: var(--dpr-radius);
	box-shadow: 0 35px 50px -35px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.dpr-card__media {
	position: relative;
}

.dpr-card__thumb {
	display: block;
	line-height: 0;
}

.dpr-card__thumb img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.dpr-card__placeholder {
	display: block;
	width: 100%;
	height: 220px;
	background: linear-gradient(135deg, #eef2f7 0%, #dde5ef 100%);
}

.dpr-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px;
}

.dpr-card__title {
	margin: 0 0 6px;
	font-size: 1.15em;
	line-height: 1.3;
}

.dpr-card__title a {
	color: var(--dpr-accent);
	text-decoration: none;
}

.dpr-card__title a:hover,
.dpr-card__title a:focus {
	text-decoration: underline;
}

.dpr-card__address {
	margin: 0 0 10px;
	color: var(--dpr-muted);
	font-size: 0.9em;
}

.dpr-card__excerpt {
	margin-bottom: 12px;
	font-size: 0.92em;
}

.dpr-card__excerpt p {
	margin: 0;
}

.dpr-card__price {
	margin: auto 0 0;
	padding-top: 12px;
}

.dpr-card__price strong {
	display: block;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dpr-muted);
}

.dpr-card__price span {
	font-size: 1.05em;
	font-weight: 700;
	color: var(--dpr-accent);
}

/* Beds / baths / area */

.dpr-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 12px;
	padding: 12px 0;
	border-top: 1px solid var(--dpr-border);
	border-bottom: 1px solid var(--dpr-border);
	list-style: none;
}

.dpr-specs li {
	margin: 0;
	padding: 0;
	font-size: 0.85em;
	line-height: 1.4;
}

.dpr-specs li strong {
	display: block;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.03em;
	color: var(--dpr-muted);
}

/* Status badge */

.dpr-indicator {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--dpr-accent);
	color: #fff;
	font-size: 0.78em;
	line-height: 1.4;
}

.dpr-indicator--rented {
	background: var(--dpr-accent-dark);
}

.dpr-indicator strong {
	font-weight: 600;
}

.dpr-listing-empty {
	padding: 20px 0;
	color: var(--dpr-muted);
}

/* ------------------------------------------------------------ Pagination */

.dpr-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 30px 0 10px;
}

.dpr-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--dpr-border);
	border-radius: var(--dpr-radius);
	text-decoration: none;
	color: inherit;
}

.dpr-pagination .page-numbers.current,
.dpr-pagination .page-numbers:hover {
	background: var(--dpr-accent);
	border-color: var(--dpr-accent);
	color: #fff;
}

/* ------------------------------------------------------- Single property */

.dpr-property__header {
	margin-bottom: 20px;
}

.dpr-property__title {
	margin: 0 0 6px;
	color: var(--dpr-accent);
}

.dpr-property__address {
	margin: 0 0 2px;
}

.dpr-property__address-2 {
	margin: 0;
	color: var(--dpr-muted);
	font-weight: 400;
}

.dpr-property__layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
	gap: var(--dpr-gap);
	align-items: start;
}

.dpr-property__top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--dpr-gap);
	align-items: start;
	margin-bottom: 24px;
}

/* --------------------------------------------------------------- Gallery */

.dpr-gallery {
	position: relative;
	min-width: 0;
}

.dpr-gallery__featured {
	position: relative;
}

.dpr-gallery__featured-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	cursor: zoom-in;
}

.dpr-gallery__featured-btn[disabled] {
	cursor: default;
}

.dpr-gallery__featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--dpr-radius);
	box-shadow: 0 1px 4px 2px rgba(0, 0, 0, 0.15);
}

/* Thumbnail strip: a scroll-snap row with its own arrows. */

.dpr-gallery__strip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
}

.dpr-gallery__thumbs {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	list-style: none;
	-webkit-overflow-scrolling: touch;
}

.dpr-gallery__thumbs::-webkit-scrollbar {
	height: 4px;
}

.dpr-gallery__thumbs::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.dpr-gallery__thumb {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

.dpr-gallery__thumb-btn {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	cursor: zoom-in;
}

.dpr-gallery__thumb-btn[disabled] {
	cursor: default;
}

.dpr-gallery__thumb-btn img {
	display: block;
	width: 110px;
	height: 80px;
	object-fit: cover;
	border-radius: 3px;
	transition: opacity 0.15s ease-in-out;
}

.dpr-gallery__thumb-btn:hover img,
.dpr-gallery__thumb-btn:focus-visible img {
	opacity: 0.8;
}

.dpr-gallery__arrow {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--dpr-border);
	border-radius: 50%;
	background: #fff;
	color: var(--dpr-accent);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.dpr-gallery__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.dpr-gallery__arrow[hidden] {
	display: none;
}

/* ------------------------------------------------------ Details / blocks */

.dpr-summary__price {
	margin: 0 0 12px;
	color: var(--dpr-accent);
}

.dpr-summary__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dpr-summary__list li {
	margin: 0 0 4px;
	padding: 0;
}

.dpr-summary__list li span {
	font-weight: 600;
}

.dpr-block {
	margin: 0 0 22px;
}

.dpr-block h2,
.dpr-block h3 {
	margin: 0 0 10px;
}

.dpr-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--dpr-gap);
}

.dpr-columns p {
	margin: 0 0 6px;
}

.dpr-map-embed iframe {
	display: block;
	width: 100%;
	min-height: 320px;
	border: 0;
}

/* -------------------------------------------------------------- Landlord */

.dpr-landlord {
	padding: 18px;
	border: 1px solid var(--dpr-border);
	border-radius: var(--dpr-radius);
	background: #fff;
}

.dpr-landlord__heading {
	margin: 0 0 12px;
	font-size: 1.2em;
}

.dpr-landlord__card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.dpr-landlord__image {
	width: 130px;
	max-width: 45%;
	height: auto;
	border-radius: var(--dpr-radius);
}

.dpr-landlord__meta h4,
.dpr-landlord__meta p {
	margin: 0 0 4px;
}

.dpr-landlord__apply,
.dpr-landlord__connect {
	margin: 0 0 14px;
}

.dpr-landlord__connect {
	margin: 16px 0 0;
}

.dpr-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid var(--dpr-accent);
	border-radius: 3px;
	background-color: var(--dpr-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
}

.dpr-btn:hover,
.dpr-btn:focus {
	opacity: 0.88;
	color: #fff;
}

.dpr-btn--outline {
	background-color: transparent;
	color: var(--dpr-accent);
}

.dpr-btn--outline:hover,
.dpr-btn--outline:focus {
	background-color: var(--dpr-accent);
	color: #fff;
}

/* ----------------------------------------------------------- Lightbox */

.dpr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(0, 0, 0, 0.82);
}

.dpr-lightbox[hidden] {
	display: none;
}

body.dpr-lightbox-open {
	overflow: hidden;
}

.dpr-lightbox__dialog {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(1100px, 100%);
	max-height: 100%;
}

.dpr-lightbox__stage {
	margin: 0;
	min-width: 0;
}

.dpr-lightbox__stage img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: var(--dpr-radius);
	background: #fff;
}

.dpr-lightbox__close {
	position: absolute;
	top: -38px;
	right: 0;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.dpr-lightbox__close:hover,
.dpr-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.3);
}

.dpr-lightbox__nav {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.dpr-lightbox__nav:hover,
.dpr-lightbox__nav:focus-visible {
	background: rgba(255, 255, 255, 0.32);
}

.dpr-lightbox__nav[hidden] {
	display: none;
}

.dpr-lightbox__counter {
	position: absolute;
	bottom: -32px;
	left: 0;
	right: 0;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	text-align: center;
}

/* -------------------------------------------------- Elementor editor aid */

.dpr-editor-notice {
	padding: 14px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: var(--dpr-radius);
	background: #f6f7f7;
	color: #50575e;
	font-size: 13px;
}

/* ----------------------------------------------------------- Responsive */

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

	.dpr-listing--cols-3,
	.dpr-listing--cols-4 {
		--dpr-columns: 2;
	}
}

@media (max-width: 767px) {
	.dpr-listing {
		--dpr-columns: 1;
	}

	.dpr-property__top,
	.dpr-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.dpr-lightbox {
		padding: 16px;
	}

	.dpr-lightbox__nav {
		width: 34px;
		height: 34px;
		font-size: 20px;
	}

	.dpr-landlord__card {
		flex-direction: column;
	}

	.dpr-landlord__image {
		max-width: 60%;
	}
}
