/* ============================================================
   Listing Detail Page
   ============================================================ */

.ld-wrap {
	background: #fff;
}

/* Gallery */
.ld-gallery {
	background: #11181d;
	padding-top: 90px;
}

@media (max-width: 768px) {
	.ld-gallery {
		padding-top: 70px;
	}
}

.ld-gallery-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 32px 0;
}

.ld-gallery-main {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0d1317;
}

.ld-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .2s;
}

.ld-no-photo {
	color: #666;
	font-size: 1rem;
}

.ld-badge {
	position: absolute;
	top: 20px;
	left: 24px;
	background: #c9a84c;
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 4px;
}

.ld-gallery-prev,
.ld-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,.5);
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
	z-index: 2;
}
.ld-gallery-prev { left: 16px; }
.ld-gallery-next { right: 16px; }
.ld-gallery-prev:hover,
.ld-gallery-next:hover { background: rgba(0,0,0,.8); }

.ld-gallery-counter {
	position: absolute;
	bottom: 14px;
	right: 20px;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: .78rem;
	padding: 3px 10px;
	border-radius: 20px;
}

.ld-gallery-thumbs {
	display: flex;
	gap: 4px;
	padding: 8px;
	overflow-x: auto;
	background: #11181d;
	scrollbar-width: thin;
}

.ld-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.ld-gallery-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

.ld-thumb {
	width: 90px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	opacity: .55;
	flex-shrink: 0;
	transition: opacity .2s;
}
.ld-thumb.active,
.ld-thumb:hover { opacity: 1; }

/* Content Layout */
.ld-content {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 0;
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 32px 80px;
	align-items: start;
}

/* Main left column */
.ld-main { padding-right: 48px; }

.ld-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #888;
	font-size: .85rem;
	text-decoration: none;
	margin-bottom: 24px;
	transition: color .2s;
}
.ld-back:hover { color: #c9a84c; }

.ld-header { margin-bottom: 28px; }

.ld-type-label {
	display: inline-block;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #c9a84c;
	margin-bottom: 10px;
}

.ld-title {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 700;
	color: #11181d;
	margin: 0 0 10px;
	line-height: 1.25;
}

.ld-location {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #666;
	font-size: .9rem;
	margin: 0 0 14px;
}
.ld-location svg { flex-shrink: 0; color: #c9a84c; }

.ld-price {
	font-size: 1.8rem;
	font-weight: 700;
	color: #11181d;
	margin: 0;
}

/* Stats */
.ld-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

.ld-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f6f4f0;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: .88rem;
	font-weight: 500;
	color: #333;
}
.ld-stat svg { color: #c9a84c; flex-shrink: 0; }

/* Sections */
.ld-section {
	border-top: 1px solid #eee;
	padding-top: 28px;
	margin-bottom: 32px;
}

.ld-section h2 {
	font-size: 1.1rem;
	font-weight: 700;
	color: #11181d;
	margin: 0 0 16px;
}

.ld-description {
	font-size: .92rem;
	line-height: 1.75;
	color: #444;
}

/* Floor Plans */
.ld-floorplans {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.ld-fp-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fafaf9;
}

.ld-fp-card img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	display: block;
}

.ld-fp-info {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: .82rem;
	color: #555;
}
.ld-fp-info strong {
	color: #11181d;
	font-size: .9rem;
}

/* Amenities */
.ld-amenities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px 16px;
}

.ld-amenities li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .87rem;
	color: #444;
}
.ld-amenities li svg { color: #c9a84c; flex-shrink: 0; }

/* Sidebar */
.ld-sidebar {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Agent Card */
.ld-agent-card {
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: #fafaf9;
	text-align: center;
}

.ld-agent-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #eee;
}

.ld-agent-info strong {
	display: block;
	font-size: .95rem;
	font-weight: 700;
	color: #11181d;
}
.ld-agent-info span {
	font-size: .8rem;
	color: #888;
}

.ld-agent-actions {
	display: flex;
	gap: 10px;
	width: 100%;
}

.ld-agent-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	border-radius: 8px;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .2s;
}
.ld-agent-btn:hover { opacity: .85; }

.ld-agent-call {
	background: #11181d;
	color: #fff;
}
.ld-agent-wa {
	background: #25d366;
	color: #fff;
}

/* Enquiry Form */
.ld-enquiry {
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 24px;
	background: #fff;
}

.ld-enquiry h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #11181d;
	margin: 0 0 18px;
}

.ld-form-row { margin-bottom: 12px; }

.ld-input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: .88rem;
	font-family: inherit;
	color: #11181d;
	background: #fafaf9;
	box-sizing: border-box;
	transition: border-color .2s;
}
.ld-input:focus {
	outline: none;
	border-color: #c9a84c;
}

textarea.ld-input { resize: vertical; }

.ld-submit {
	width: 100%;
	background: #c9a84c;
	color: #fff;
	border: none;
	padding: 13px;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background .2s;
}
.ld-submit:hover { background: #b8943e; }
.ld-submit:disabled { opacity: .65; cursor: not-allowed; }

.ld-form-note {
	font-size: .82rem;
	margin-top: 10px;
	min-height: 18px;
}

/* Error page */
.ld-error {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.ld-error-inner { max-width: 480px; padding: 40px 20px; }
.ld-error-inner h1 { font-size: 2rem; color: #11181d; margin-bottom: 12px; }
.ld-error-inner p { color: #666; margin-bottom: 28px; }
.ld-btn-back {
	display: inline-block;
	background: #c9a84c;
	color: #fff;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

/* Make listing cards clickable */
a.lc {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
a.lc:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* Responsive */
@media (max-width: 1024px) {
	.ld-content {
		grid-template-columns: 1fr;
		padding: 32px 24px 60px;
	}
	.ld-main { padding-right: 0; }
	.ld-sidebar { position: static; }
}

@media (max-width: 640px) {
	.ld-gallery-main { aspect-ratio: 4/3; }
	.ld-thumb { width: 70px; height: 46px; }
	.ld-content { padding: 24px 16px 48px; }
	.ld-price { font-size: 1.4rem; }
	.ld-floorplans { grid-template-columns: repeat(2, 1fr); }
	.ld-amenities { grid-template-columns: 1fr 1fr; }
}
