/**
 * Prop Dukaan Property Showcase — Frontend Styles
 *
 * Brand:
 *   --pdps-primary  : #7166F0 (Purple)
 *   --pdps-gold     : #EEC551 (Gold)
 *   --pdps-gray     : #D9D9D9 (Light gray)
 *   --pdps-bg       : #000000 (Background)
 *   --pdps-card     : #0A0A0A (Card BG)
 *
 * Notes:
 *   - All variables are defined per-instance via inline CSS (Frontend::build_inline_css).
 *   - All selectors are scoped under .pdps-showcase to avoid theme collisions.
 */

.pdps-showcase {
	--pdps-primary: #7166F0;
	--pdps-primary-rgb: 113, 102, 240;
	--pdps-gold: #EEC551;
	--pdps-gold-rgb: 238, 197, 81;
	--pdps-gray: #D9D9D9;
	--pdps-bg: #000000;
	--pdps-card: #0A0A0A;
	--pdps-radius: 24px;
	--pdps-pad: 24px;
	--pdps-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

	background: var(--pdps-bg) !important;
	color: var(--pdps-gray) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 56px 0;
	box-sizing: border-box;
	isolation: isolate;
}

.pdps-showcase *,
.pdps-showcase *::before,
.pdps-showcase *::after { box-sizing: border-box; }

.pdps-showcase a { color: inherit; text-decoration: none; }
.pdps-showcase a:hover { color: var(--pdps-gold) !important; }

.pdps-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* ==== Heading ==== */
.pdps-heading {
	text-align: center;
	margin-bottom: 28px;
}
.pdps-showcase .pdps-h2 {
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.15;
	margin: 0 0 8px;
	color: #ffffff !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	-webkit-text-fill-color: #ffffff;
}
.pdps-showcase .pdps-sub {
	margin: 0 auto;
	max-width: 720px;
	font-size: 15px;
	color: var(--pdps-gray) !important;
	opacity: 0.85;
}

/* ==== Search ==== */
.pdps-search-box {
	position: relative;
	max-width: 640px;
	margin: 24px auto 18px;
}
.pdps-showcase .pdps-search-box input {
	width: 100%;
	height: 52px;
	padding: 0 48px 0 58px;
	border-radius: 14px;
	border: 1px solid rgba(var(--pdps-primary-rgb), 0.18) !important;
	background: rgba(255, 255, 255, 0.04) !important;
	color: #ffffff !important;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	transition: border-color .25s, box-shadow .25s, background .25s;
	outline: 0;
	box-shadow: none;
	-webkit-text-fill-color: #ffffff;
}
.pdps-showcase .pdps-search-box input::placeholder {
	color: rgba(217, 217, 217, .55) !important;
	opacity: 1;
	-webkit-text-fill-color: rgba(217, 217, 217, .55);
}
.pdps-showcase .pdps-search-box input::-webkit-input-placeholder { color: rgba(217, 217, 217, .55) !important; }
.pdps-showcase .pdps-search-box input:-ms-input-placeholder      { color: rgba(217, 217, 217, .55) !important; }
.pdps-showcase .pdps-search-box input::-ms-input-placeholder     { color: rgba(217, 217, 217, .55) !important; }
.pdps-showcase .pdps-search-box input:focus {
	border-color: var(--pdps-primary) !important;
	background: rgba(var(--pdps-primary-rgb), 0.08) !important;
	box-shadow: 0 0 0 4px rgba(var(--pdps-primary-rgb), 0.18) !important;
	color: #ffffff !important;
}
.pdps-search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: rgba(217, 217, 217, .65);
	pointer-events: none;
}
.pdps-search-clear {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: none;
}
.pdps-search-clear:hover { background: rgba(255, 255, 255, .16); }
.pdps-search-box.is-active .pdps-search-clear { display: inline-flex; align-items: center; justify-content: center; }

/* ==== Filters ==== */
.pdps-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 32px;
}
.pdps-filter {
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .03);
	color: var(--pdps-gray);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	transition: all .25s ease;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.pdps-filter:hover {
	color: #fff;
	border-color: rgba(var(--pdps-primary-rgb), 0.55);
	background: rgba(var(--pdps-primary-rgb), 0.12);
	transform: translateY(-1px);
}
.pdps-filter.is-active {
	background: var(--pdps-primary);
	color: #fff;
	border-color: var(--pdps-primary);
	box-shadow: 0 6px 18px rgba(var(--pdps-primary-rgb), 0.35);
}

/* ==== Grid ==== */
.pdps-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 1024px) { .pdps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .pdps-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ==== Card ==== */
.pdps-card-prop {
	position: relative;
	background: var(--pdps-card);
	border: 1px solid rgba(var(--pdps-primary-rgb), 0.15);
	border-radius: var(--pdps-radius);
	padding: var(--pdps-pad);
	color: var(--pdps-gray);
	box-shadow: var(--pdps-shadow);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1),
				box-shadow .3s ease,
				border-color .3s ease;
	display: flex;
	flex-direction: column;
	gap: 14px;
	overflow: hidden;
}
.pdps-card-prop:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
	border-color: rgba(var(--pdps-primary-rgb), 0.4);
}

/* Featured */
.pdps-card-prop.is-featured {
	border-color: var(--pdps-gold);
	box-shadow:
		0 0 0 1px rgba(var(--pdps-gold-rgb), 0.4),
		0 0 32px rgba(var(--pdps-gold-rgb), 0.18),
		var(--pdps-shadow);
}
.pdps-card-prop.is-featured:hover {
	box-shadow:
		0 0 0 1px rgba(var(--pdps-gold-rgb), 0.55),
		0 0 40px rgba(var(--pdps-gold-rgb), 0.28),
		0 18px 40px rgba(0, 0, 0, .55);
}

.pdps-badge-featured {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: var(--pdps-gold);
	color: #1a1a1a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(var(--pdps-gold-rgb), 0.35);
}

.pdps-badge-status {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1px solid transparent;
}
.pdps-badge-status.pdps-status-available { background: rgba(34, 197, 94, .14); color: #22c55e; border-color: rgba(34, 197, 94, .35); }
.pdps-badge-status.pdps-status-reserved  { background: rgba(var(--pdps-gold-rgb), .14); color: var(--pdps-gold); border-color: rgba(var(--pdps-gold-rgb), .45); }
.pdps-badge-status.pdps-status-sold      { background: rgba(239, 68, 68, .14); color: #ef4444; border-color: rgba(239, 68, 68, .35); }

/* Card image */
.pdps-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
	background: #1a1a1d;
	margin: -6px -6px 0;
	position: relative;
	cursor: pointer;
}
.pdps-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.pdps-card-prop:hover .pdps-card-media img { transform: scale(1.06); }
.pdps-no-image {
	display: flex; align-items: center; justify-content: center;
	color: rgba(255, 255, 255, .35);
	font-size: 13px;
	letter-spacing: 0.04em;
	background: linear-gradient(135deg, #141417 0%, #1c1c20 100%);
}

/* Body */
.pdps-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

/* Tag pills */
.pdps-card-tags,
.pdps-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pdps-tag-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	background: transparent;
	border: 1px solid var(--pdps-gold);
	color: var(--pdps-gold);
	border-radius: 999px;
	transition: background .25s, color .25s;
}
.pdps-tag-pill:hover { background: rgba(var(--pdps-gold-rgb), .12); }

/* Property name */
.pdps-showcase .pdps-card-name {
	font-size: 19px;
	font-weight: 700;
	color: #ffffff !important;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.01em;
	-webkit-text-fill-color: #ffffff;
}
.pdps-showcase .pdps-card-name a { color: #ffffff !important; -webkit-text-fill-color: #ffffff; }
.pdps-showcase .pdps-card-name a:hover { color: var(--pdps-gold) !important; -webkit-text-fill-color: var(--pdps-gold); }

/* Location */
.pdps-showcase .pdps-card-location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--pdps-gray) !important;
	margin: 0;
	opacity: .85;
}
.pdps-card-location svg { flex: 0 0 auto; opacity: .8; }

/* Description */
.pdps-showcase .pdps-card-desc {
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0;
	color: rgba(217, 217, 217, .8) !important;
}

/* Highlights */
.pdps-card-highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 12px;
}
.pdps-card-highlights li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: rgba(217, 217, 217, .9);
}
.pdps-card-highlights li svg { color: var(--pdps-primary); flex: 0 0 auto; }

/* Meta row */
.pdps-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, .06);
	gap: 12px;
}
.pdps-meta-item { display: flex; flex-direction: column; gap: 2px; }
.pdps-showcase .pdps-meta-label {
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(217, 217, 217, .55) !important;
}
.pdps-showcase .pdps-meta-value { font-size: 14px; font-weight: 600; color: #ffffff !important; -webkit-text-fill-color: #ffffff; }
.pdps-showcase .pdps-price {
	color: var(--pdps-gold) !important;
	-webkit-text-fill-color: var(--pdps-gold);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.1;
}
.pdps-meta-price { text-align: right; }

/* WhatsApp button */
.pdps-showcase .pdps-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 54px;
	background: #25D366 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	font-weight: 700;
	font-size: 15px;
	border-radius: 14px;
	border: 0;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
	text-decoration: none !important;
	margin-top: 4px;
}
.pdps-showcase .pdps-wa-btn:hover,
.pdps-showcase .pdps-wa-btn:focus-visible {
	background: #1ebe57 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	transform: scale(1.02);
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.pdps-wa-btn:active { transform: scale(0.99); }
.pdps-wa-btn svg { flex: 0 0 auto; }

.pdps-wa-btn-lg { height: 60px; font-size: 16px; border-radius: 16px; }

/* Empty state */
.pdps-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--pdps-gray);
	background: var(--pdps-card);
	border: 1px dashed rgba(255, 255, 255, .12);
	border-radius: var(--pdps-radius);
}
.pdps-empty-illustration { width: 180px; height: auto; color: var(--pdps-primary); opacity: .65; }
.pdps-showcase .pdps-empty-title { color: #ffffff !important; -webkit-text-fill-color: #ffffff; font-size: 18px; margin: 14px 0 6px; }
.pdps-showcase .pdps-empty-sub { font-size: 14px; opacity: .8; margin: 0 0 18px; color: var(--pdps-gray) !important; }
.pdps-empty-reset {
	background: var(--pdps-primary);
	color: #fff;
	border: 0;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
.pdps-empty-reset:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(var(--pdps-primary-rgb), 0.35);
}

/* Pagination */
.pdps-pagination { text-align: center; margin-top: 32px; }
.pdps-load-more {
	background: rgba(var(--pdps-primary-rgb), 0.14);
	color: #fff;
	border: 1px solid rgba(var(--pdps-primary-rgb), 0.45);
	padding: 14px 28px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: all .25s ease;
}
.pdps-load-more:hover {
	background: var(--pdps-primary);
	border-color: var(--pdps-primary);
	box-shadow: 0 12px 28px rgba(var(--pdps-primary-rgb), 0.4);
	transform: translateY(-1px);
}
.pdps-load-more.is-loading { opacity: 0.7; cursor: wait; }

/* Loader */
.pdps-loading { display: none; text-align: center; padding: 24px 0; }
.pdps-loading.is-active { display: block; }
.pdps-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, .1);
	border-top-color: var(--pdps-primary);
	border-radius: 50%;
	display: inline-block;
	animation: pdps-spin 0.8s linear infinite;
}
@keyframes pdps-spin { to { transform: rotate(360deg); } }

/* ==== Modal ==== */
.pdps-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.pdps-modal.is-open { display: flex; }
.pdps-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	backdrop-filter: blur(6px);
	animation: pdps-fade .2s ease both;
}
.pdps-modal-dialog {
	position: relative;
	max-width: 980px;
	width: 100%;
	max-height: 92vh;
	overflow: auto;
	background: #0A0A0A !important;
	border: 1px solid rgba(113, 102, 240, 0.25);
	border-radius: 24px;
	color: #D9D9D9 !important;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	animation: pdps-pop .25s cubic-bezier(.2, .8, .2, 1) both;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.pdps-modal-dialog * { -webkit-text-fill-color: initial; }
.pdps-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background .2s;
}
.pdps-modal-close:hover { background: rgba(255, 255, 255, .16); }

@keyframes pdps-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdps-pop  { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Detail content */
.pdps-detail { padding: 0; }
.pdps-detail-gallery { background: #050505; padding: 16px; border-radius: 24px 24px 0 0; }
.pdps-detail-stage {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #111;
}
.pdps-detail-stage-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdps-gallery-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 38px; height: 38px;
	border: 0;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	border-radius: 999px;
	cursor: pointer;
	font-size: 16px;
	transition: background .2s;
}
.pdps-gallery-nav:hover { background: rgba(0, 0, 0, .8); }
.pdps-gallery-prev { left: 12px; }
.pdps-gallery-next { right: 12px; }

.pdps-detail-thumbs { display: flex; gap: 8px; padding-top: 12px; overflow-x: auto; }
.pdps-detail-thumb {
	flex: 0 0 auto;
	width: 84px;
	height: 60px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	background: #111;
	padding: 0;
	cursor: pointer;
}
.pdps-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdps-detail-thumb.is-active { border-color: var(--pdps-primary); }

.pdps-detail-body { padding: 28px clamp(20px, 4vw, 36px) 32px; }
.pdps-detail-header { margin-bottom: 14px; position: relative; }
.pdps-detail-featured { position: static; margin-right: 8px; }
.pdps-detail-header .pdps-badge-status {
	position: static; display: inline-flex;
}
.pdps-showcase .pdps-detail-title,
.pdps-modal .pdps-detail-title {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 8px 0 6px;
	line-height: 1.2;
}
.pdps-showcase .pdps-detail-location,
.pdps-modal .pdps-detail-location {
	display: flex; align-items: center; gap: 6px;
	margin: 0 0 10px;
	color: var(--pdps-gray) !important;
	font-size: 14px;
	opacity: .85;
}

.pdps-detail-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0;
	background: rgba(var(--pdps-primary-rgb), 0.06);
	border: 1px solid rgba(var(--pdps-primary-rgb), 0.16);
	padding: 16px;
	border-radius: 16px;
}
@media (max-width: 600px) { .pdps-detail-grid { grid-template-columns: repeat(2, 1fr); } }
.pdps-detail-stat { display: flex; flex-direction: column; gap: 4px; }
.pdps-showcase .pdps-stat-label,
.pdps-modal .pdps-stat-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(217, 217, 217, .55) !important; }
.pdps-showcase .pdps-stat-value,
.pdps-modal .pdps-stat-value { font-weight: 700; color: #ffffff !important; -webkit-text-fill-color: #ffffff; font-size: 15px; }
.pdps-showcase .pdps-price-lg,
.pdps-modal .pdps-price-lg { color: var(--pdps-gold) !important; -webkit-text-fill-color: var(--pdps-gold); font-size: 22px; }

.pdps-detail-section { margin-top: 18px; }
.pdps-showcase .pdps-detail-section h3,
.pdps-modal .pdps-detail-section h3 {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.pdps-showcase .pdps-detail-desc,
.pdps-modal .pdps-detail-desc { color: rgba(217, 217, 217, .9) !important; line-height: 1.65; font-size: 14.5px; }
.pdps-detail-desc p { margin: 0 0 10px; }

.pdps-detail-highlights {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px;
}
@media (max-width: 600px) { .pdps-detail-highlights { grid-template-columns: 1fr; } }
.pdps-detail-highlights li {
	display: flex; align-items: center; gap: 8px;
	color: var(--pdps-gray); font-size: 14px;
}
.pdps-detail-highlights li svg { color: var(--pdps-primary); flex: 0 0 auto; }

.pdps-maps-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pdps-primary);
	font-weight: 600;
	font-size: 14px;
	margin: 18px 0 8px;
	transition: color .2s;
}
.pdps-maps-link:hover { color: var(--pdps-gold); }

/* Single property page back link */
.pdps-back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--pdps-gray);
	font-size: 14px;
	opacity: .7;
}
.pdps-back-link:hover { opacity: 1; color: var(--pdps-gold); }

.pdps-single-page .pdps-detail {
	background: var(--pdps-card);
	border: 1px solid rgba(var(--pdps-primary-rgb), 0.16);
	border-radius: 24px;
	overflow: hidden;
}

/* Card link cursor when modal enabled */
.pdps-modal-on .pdps-card-prop { cursor: pointer; }

/* Sortable placeholder (admin) — guard against bleed */
.pdps-gallery-placeholder { background: rgba(113, 102, 240, 0.15); border: 2px dashed rgba(113, 102, 240, 0.4); border-radius: 8px; }

/* Tiny screens */
@media (max-width: 480px) {
	.pdps-showcase { padding: 36px 0; }
	.pdps-card-prop { padding: 18px; border-radius: 20px; }
	.pdps-card-name { font-size: 17px; }
	.pdps-price { font-size: 20px; }
}
