/* Dwellworks Property Search – property detail page */
.dps-detail {
	--dps-navy: #003366;
	--dps-teal: #008080;
	--dps-border: #e2e6ea;
	margin: 0 auto 40px;
	color: inherit;
}

.dps-detail *,
.dps-detail *::before,
.dps-detail *::after {
	box-sizing: border-box;
}

.dps-detail-back {
	margin: 0 0 12px;
	font-size: 15px;
}

.dps-detail-back a,
.dps-detail-address a {
	color: var(--dps-navy);
	text-decoration: none;
}

.dps-detail-back a:hover,
.dps-detail-address a:hover {
	text-decoration: underline;
}

.dps-detail-address {
	margin: 0 0 20px;
	font-size: 17px;
}

.dps-detail h2 {
	margin: 32px 0 14px;
	color: var(--dps-navy);
}

.dps-detail h3 {
	margin: 0 0 10px;
	font-size: 18px;
	color: var(--dps-navy);
}

/* Gallery */
.dps-gallery {
	margin-bottom: 10px;
}

.dps-gallery-main {
	position: relative;
	background: #f3f5f7;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.dps-gallery-main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dps-gallery-nav {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
	padding: 0;
}

.dps-gallery-nav:hover,
.dps-gallery-nav:focus {
	background: rgba(0, 0, 0, 0.7);
}

.dps-gallery-prev {
	left: 12px;
}

.dps-gallery-next {
	right: 12px;
}

.dps-gallery-count {
	position: absolute;
	z-index: 2;
	right: 12px;
	bottom: 12px;
	padding: 2px 10px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
}

.dps-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.dps-gallery-thumb {
	flex: 0 0 96px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #f3f5f7;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.75;
}

.dps-gallery-thumb.is-active,
.dps-gallery-thumb:hover {
	border-color: var(--dps-teal);
	opacity: 1;
}

.dps-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Layout */
.dps-detail-columns {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 32px;
}

.dps-detail-side {
	padding-top: 32px;
}

.dps-detail-box {
	border: 1px solid var(--dps-border);
	border-radius: 6px;
	padding: 18px 20px;
	margin-bottom: 20px;
}

.dps-detail-box dl {
	margin: 0;
}

.dps-detail-box dt {
	font-weight: 600;
}

.dps-detail-box dd {
	margin: 0 0 10px;
}

.dps-detail-amenities {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 1;
}

.dps-detail-amenities li {
	position: relative;
	padding: 3px 0 3px 22px;
}

.dps-detail-amenities li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--dps-teal);
	font-weight: 700;
}

.dps-detail-map {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f5f7;
}

.dps-detail-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Nearby */
.dps-nearby-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 18px;
}

.dps-nearby-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--dps-border);
	border-radius: 6px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.dps-nearby-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.dps-nearby-image {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3f5f7;
}

.dps-nearby-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dps-nearby-name {
	padding: 10px 12px 2px;
	font-weight: 600;
	color: var(--dps-navy);
}

.dps-nearby-units {
	padding: 0 12px 12px;
	font-size: 13px;
	opacity: 0.8;
}

/* Help CTA */
.dps-detail-help {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin-top: 40px;
	padding: 28px 30px;
	border-radius: 6px;
	background: #f3f5f7;
}

.dps-detail-help h2 {
	margin-top: 0;
}

.dps-detail-help p {
	margin: 0;
}

.dps-detail-button,
.dps-detail .dps-detail-button {
	display: inline-block;
	flex: 0 0 auto;
	padding: 12px 28px;
	border-radius: 4px;
	background: var(--dps-navy);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.dps-detail-button:hover,
.dps-detail-button:focus {
	background: var(--dps-teal);
	color: #fff;
}

.dps-detail-missing {
	padding: 30px 0;
}

@media (max-width: 800px) {
	.dps-detail-columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.dps-detail-help {
		flex-direction: column;
		align-items: flex-start;
	}

	.dps-gallery-thumb {
		flex-basis: 72px;
		height: 48px;
	}
}
