/* Property Listing - Frontend Styles
   Author: Abir Hossain
------------------------------------------------------------- */
/* ---------------------------------------------------------------
   GLOBAL THEME TOKENS
   Defined once on :root so colors + font stay consistent across
   every part of the plugin — search widget, featured grid, single
   property page, AND the archive / search-results page (which
   renders property cards directly, outside the widget wrappers).
   Change a value here once and it updates everywhere.
------------------------------------------------------------- */
:root {
	--pl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pl-navy: #0f2557;
	--pl-navy-dark: #0a1a3d;
	--pl-blue: #1a56db;
	--pl-blue-dark: #123f9e;
	--pl-blue-light: #e8effc;
	--pl-green: #16a34a;
	--pl-orange: #ea580c;
	--pl-gray-50: #f8fafc;
	--pl-gray-100: #f1f5f9;
	--pl-gray-200: #e2e8f0;
	--pl-gray-500: #64748b;
	--pl-gray-700: #334155;
	--pl-gray-900: #0f172a;
	--pl-radius: 10px;
}

.pl-search-widget, .pl-grid-widget, .pl-single-property, .pl-archive-property {
	box-sizing: border-box;
	font-family: var(--pl-font);
	max-width: 100%;
	overflow-x: hidden;
}
.pl-search-widget *, .pl-grid-widget *, .pl-single-property *, .pl-archive-property * { box-sizing: border-box; }

/* Grid/flex children default to a min-width equal to their content's
   natural size, which silently pushes the whole grid wider than the
   viewport on small screens (this was the cause of labels like
   "Bathrooms" and "sq ft" getting clipped at the screen edge). Reset
   that for every grid/flex container the plugin uses. */
.pl-search-form > *,
.pl-property-grid > *,
.pl-single-grid > *,
.pl-quick-facts > *,
.pl-highlight-list > li, .pl-feature-list > li,
.pl-amenities-grid > *,
.pl-gallery-preview > *,
.pl-form-row > *,
.pl-card-meta > span,
.pl-nearby-list > li {
	min-width: 0;
}

/* Force our own font across the whole plugin UI, regardless of the active
   theme's global typography settings (Astra and others often apply their
   own heading font-family with high specificity/!important via Customizer
   dynamic CSS). Icon fonts are excluded so dashicons keep rendering.
   .pl-archive-property is included so cards on the search-results page
   (which render outside .pl-grid-widget) also stay on-brand. */
.pl-search-widget,
.pl-search-widget *:not(.dashicons),
.pl-grid-widget,
.pl-grid-widget *:not(.dashicons),
.pl-single-property,
.pl-single-property *:not(.dashicons),
.pl-archive-property,
.pl-archive-property *:not(.dashicons) {
	font-family: var(--pl-font) !important;
}

.pl-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Buttons */
/* Buttons — !important on the properties themes commonly apply to bare
   <button>/<a> elements globally, since this plugin renders inside
   get_header()/get_footer() and inherits the active theme's base styles. */
.pl-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px 22px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}
.pl-btn-primary { background: var(--pl-blue) !important; color: #fff !important; }
.pl-btn-primary:hover { background: var(--pl-blue-dark) !important; color: #fff !important; }
.pl-btn-full { width: 100%; }

/* ---------------- Search Widget ---------------- */
.pl-search-widget {
	background: #fff;
	border-radius: var(--pl-radius);
	padding: 22px;
	box-shadow: 0 10px 30px rgba(15, 37, 87, .12);
}
.pl-search-title { font-size: 22px !important; margin: 0 0 14px !important; color: var(--pl-gray-900) !important; font-weight: 700 !important; }
.pl-search-form {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
	gap: 14px;
	align-items: end;
	min-width: 0;
}
.pl-search-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-search-field label {
	font-size: 12px;
	font-weight: 600;
	color: var(--pl-gray-700);
	text-transform: uppercase;
	letter-spacing: .03em;
}
.pl-search-field input,
.pl-search-field select {
	padding: 11px 12px !important;
	border: 1px solid var(--pl-gray-200) !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	background: #fff !important;
	color: var(--pl-gray-900) !important;
	width: 100% !important;
	box-shadow: none !important;
	height: auto !important;
}
.pl-search-field input:focus,
.pl-search-field select:focus {
	outline: none;
	border-color: var(--pl-blue);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, .15);
}
.pl-search-submit { height: 44px; white-space: nowrap; }

/* ---------------- Hero Search Widget ---------------- */
.pl-hero-search {
	position: relative;
	width: 100%;
	max-width: 100%;
	background: var(--pl-navy) center / cover no-repeat;
	padding: 70px 20px 90px;
	box-sizing: border-box;
	overflow-x: hidden;
	font-family: var(--pl-font);
}
.pl-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 26, 61, .78), rgba(10, 26, 61, .6));
}
.pl-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}
.pl-hero-title {
	color: #fff !important;
	font-size: 38px !important;
	font-weight: 800 !important;
	margin: 0 0 12px !important;
	line-height: 1.25 !important;
}
.pl-hero-subtitle {
	color: rgba(255, 255, 255, .88) !important;
	font-size: 17px !important;
	margin: 0 0 34px !important;
	font-weight: 400 !important;
}
.pl-hero-card.pl-search-widget {
	text-align: left;
	background: #fff;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 20px 45px rgba(10, 26, 61, .35);
}

/* ---------------- Grid / Cards ---------------- */
.pl-grid-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.pl-grid-title { font-size: 24px !important; color: var(--pl-navy) !important; margin: 0 !important; font-weight: 700 !important; }
.pl-view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pl-blue);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.pl-view-all:hover { color: var(--pl-blue-dark); text-decoration: underline; }

.pl-property-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	min-width: 0;
}
.pl-property-grid.pl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pl-property-grid.pl-cols-2 { grid-template-columns: repeat(2, 1fr); }

.pl-card {
	background: #fff;
	border-radius: var(--pl-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
	transition: transform .18s ease, box-shadow .18s ease;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.pl-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}
.pl-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--pl-gray-100);
}
.pl-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.pl-card:hover .pl-card-media img { transform: scale(1.06); }
.pl-card-placeholder, .pl-main-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--pl-gray-200), var(--pl-gray-100));
}

.pl-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--pl-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 5px 10px;
	border-radius: 6px;
	z-index: 2;
}
.pl-badge-for-rent { background: var(--pl-orange); }

.pl-card-price {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: #fff !important;
	color: var(--pl-navy) !important;
	font-weight: 800 !important;
	font-size: 15px !important;
	padding: 6px 12px;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
}

.pl-card-body { padding: 16px 18px 20px; }
.pl-card-title { font-size: 17px !important; margin: 0 0 6px !important; line-height: 1.35 !important; font-weight: 700 !important; }
.pl-card-title a { color: var(--pl-gray-900) !important; text-decoration: none !important; }
.pl-card-title a:hover { color: var(--pl-blue) !important; }
.pl-card-location {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--pl-gray-500);
	font-size: 13px;
	margin: 0 0 12px;
}
.pl-card-location .dashicons { font-size: 16px; width: 16px; height: 16px; }

.pl-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	border-top: 1px solid var(--pl-gray-100);
	padding-top: 12px;
	font-size: 13px;
	color: var(--pl-gray-700);
	min-width: 0;
}
.pl-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-right: 14px;
	margin-right: 14px;
	border-right: 1px solid var(--pl-gray-200);
}
.pl-card-meta span:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.pl-card-meta .dashicons { font-size: 15px; width: 15px; height: 15px; color: var(--pl-blue); }
.pl-card-meta .pl-icon-svg { width: 15px; height: 15px; color: var(--pl-blue); flex-shrink: 0; }

.pl-no-results { text-align: center; padding: 40px 0; color: var(--pl-gray-500); }

.pl-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 6px;
	background: var(--pl-gray-100);
	color: var(--pl-gray-700);
	text-decoration: none;
	font-size: 14px;
}
.pl-pagination .page-numbers.current { background: var(--pl-blue); color: #fff; }

/* ---------------- Single Property ---------------- */
.pl-single-property { padding: 20px 0 60px; background: var(--pl-gray-50); }

.pl-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--pl-gray-500) !important;
	margin: 0 0 18px !important;
}
.pl-breadcrumb a { color: var(--pl-gray-500) !important; text-decoration: none !important; }
.pl-breadcrumb a:hover { color: var(--pl-blue) !important; }
.pl-breadcrumb-current { color: var(--pl-gray-900) !important; font-weight: 600 !important; }

.pl-single-grid {
	display: grid;
	grid-template-columns: 2.1fr 1fr;
	gap: 34px;
	align-items: start;
	min-width: 0;
}
.pl-single-grid > * { min-width: 0; }

/* -------- Main gallery -------- */
.pl-main-image {
	position: relative;
	border-radius: var(--pl-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--pl-gray-200);
	cursor: zoom-in;
}
.pl-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pl-gallery-actions {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	gap: 8px;
}
.pl-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 50% !important;
	border: none !important;
	background: rgba(255, 255, 255, .92) !important;
	color: var(--pl-navy) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .2) !important;
	padding: 0 !important;
}
.pl-icon-btn svg { width: 18px; height: 18px; }
.pl-favorite-btn.is-active { color: #e11d48 !important; }
.pl-favorite-btn.is-active svg { fill: currentColor; }

.pl-main-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50% !important;
	border: none !important;
	background: rgba(255, 255, 255, .92) !important;
	color: var(--pl-navy) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 13px !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .2) !important;
	padding: 0 !important;
}
.pl-main-prev { left: 14px; }
.pl-main-next { right: 14px; }
.pl-main-nav:hover { background: var(--pl-blue) !important; color: #fff !important; }

.pl-image-counter {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 2;
	background: rgba(15, 23, 42, .7) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 5px 12px;
	border-radius: 999px;
}

.pl-thumb-strip-wrap { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pl-thumb-strip { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: thin; }
.pl-thumb-nav {
	flex: 0 0 auto;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50% !important;
	border: 1px solid var(--pl-gray-200) !important;
	background: #fff !important;
	color: var(--pl-navy) !important;
	font-size: 13px !important;
	cursor: pointer;
	padding: 0 !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08) !important;
}
.pl-thumb-nav:hover { background: var(--pl-blue) !important; color: #fff !important; border-color: var(--pl-blue) !important; }
.pl-thumb {
	position: relative;
	flex: 0 0 auto;
	display: block !important;
	width: 84px;
	height: 64px;
	border-radius: 8px !important;
	overflow: hidden;
	border: 2px solid transparent !important;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	background: #fff !important;
	box-shadow: none !important;
	text-transform: none !important;
}
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-thumb:hover, .pl-thumb.is-active { border-color: var(--pl-blue) !important; }
.pl-thumb-more-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .68);
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.3;
	text-align: center;
}

/* -------- Header -------- */
.pl-single-header { margin-top: 26px; }
.pl-single-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 30px !important;
	margin: 0 0 8px !important;
	color: var(--pl-gray-900) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}
.pl-verified-badge { display: inline-flex; color: var(--pl-blue) !important; flex-shrink: 0; }
.pl-verified-badge svg { width: 22px; height: 22px; }
.pl-single-address {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--pl-gray-500) !important;
	margin: 0 0 10px !important;
	font-size: 15px !important;
}
.pl-view-on-map { color: var(--pl-blue) !important; text-decoration: none !important; font-weight: 600 !important; margin-left: 4px; }
.pl-view-on-map:hover { text-decoration: underline !important; }

/* -------- Quick facts -------- */
.pl-quick-facts {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	background: #fff;
	border-radius: var(--pl-radius);
	padding: 20px;
	margin-top: 22px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
	min-width: 0;
}
.pl-fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.pl-fact .dashicons { font-size: 22px; width: 22px; height: 22px; color: var(--pl-blue); }
.pl-fact .pl-icon-svg { width: 24px; height: 24px; color: var(--pl-blue); flex-shrink: 0; }
.pl-fact strong { font-size: 17px !important; color: var(--pl-gray-900) !important; white-space: nowrap; }
.pl-fact span:last-child { font-size: 12px !important; color: var(--pl-gray-500) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* -------- Tabs -------- */
.pl-tabs { background: #fff; border-radius: var(--pl-radius); margin-top: 22px; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); overflow: hidden; }
.pl-tabs-nav {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--pl-gray-100);
	padding: 0 20px;
}
.pl-tab-btn {
	flex: 0 0 auto;
	background: none !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	padding: 16px 12px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--pl-gray-500) !important;
	cursor: pointer;
	white-space: nowrap;
}
.pl-tab-btn.is-active { color: var(--pl-blue) !important; border-bottom-color: var(--pl-blue) !important; }
.pl-tab-panel { display: none; padding: 24px; }
.pl-tab-panel.is-active { display: block; }
.pl-description-content { color: var(--pl-gray-700); line-height: 1.7; font-size: 15px; }

.pl-highlight-list, .pl-feature-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.pl-highlight-list li, .pl-feature-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--pl-gray-700); }
.pl-highlight-list .dashicons, .pl-feature-list .dashicons { color: var(--pl-green); font-size: 17px; width: 17px; height: 17px; }

.pl-amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.pl-amenity { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pl-gray-700); }
.pl-amenity-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--pl-blue-light);
	color: var(--pl-blue) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 16px !important;
	flex-shrink: 0;
}
.pl-floor-plan-img { width: 100%; border-radius: 10px; display: block; }
.pl-video-embed { position: relative; }
.pl-video-embed iframe { width: 100%; aspect-ratio: 16/9; border-radius: 10px; border: 0; }
.pl-tab-address { color: var(--pl-gray-700); margin: 0 0 14px; font-size: 14px; }

/* -------- Gallery / Nearby sections -------- */
.pl-single-section {
	background: #fff;
	border-radius: var(--pl-radius);
	padding: 24px;
	margin-top: 22px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.pl-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pl-section-header h2 { font-size: 18px !important; margin: 0 !important; color: var(--pl-navy) !important; font-weight: 700 !important; }
.pl-view-all-link {
	background: none !important;
	border: none !important;
	color: var(--pl-blue) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	cursor: pointer;
	padding: 0 !important;
}
.pl-view-all-link:hover { text-decoration: underline !important; }

.pl-gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pl-gallery-preview-item { display: block !important; padding: 0 !important; border: none !important; border-radius: 8px !important; overflow: hidden; cursor: pointer; background: none !important; aspect-ratio: 4/3; }
.pl-gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.pl-gallery-preview-item:hover img { transform: scale(1.05); }

.pl-nearby-list { list-style: none; margin: 0 0 16px; padding: 0; }
.pl-nearby-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--pl-gray-100); font-size: 14px; }
.pl-nearby-name { display: flex; align-items: center; gap: 8px; color: var(--pl-gray-700); }
.pl-nearby-name .dashicons { color: var(--pl-blue); font-size: 16px; width: 16px; height: 16px; }
.pl-nearby-distance { color: var(--pl-gray-500); font-weight: 600; }
.pl-nearby-map iframe { display: block; }

/* -------- Sidebar -------- */
.pl-single-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }
.pl-sidebar-card { background: #fff; border-radius: var(--pl-radius); padding: 22px; box-shadow: 0 4px 16px rgba(15, 23, 42, .08); }
.pl-sidebar-card h3 { margin: 0 0 16px !important; font-size: 17px !important; color: var(--pl-navy) !important; font-weight: 700 !important; }

.pl-sidebar-price { font-size: 26px !important; font-weight: 800 !important; color: var(--pl-navy) !important; margin: 0 !important; }
.pl-sidebar-est { font-size: 13px !important; color: var(--pl-gray-500) !important; margin: 4px 0 0 !important; }
.pl-sidebar-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pl-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pl-btn-outline { background: #fff !important; color: var(--pl-navy) !important; border: 1px solid var(--pl-gray-200) !important; }
.pl-btn-outline:hover { background: var(--pl-gray-50) !important; color: var(--pl-navy) !important; }

.pl-enquiry-form { display: flex; flex-direction: column; gap: 12px; }
.pl-form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pl-form-row-2 { grid-template-columns: 1fr 1fr; }
.pl-enquiry-form input,
.pl-enquiry-form textarea,
.pl-mortgage-card input,
.pl-mortgage-card select {
	width: 100% !important;
	padding: 11px 12px !important;
	border: 1px solid var(--pl-gray-200) !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	background: #fff !important;
	color: var(--pl-gray-900) !important;
	box-shadow: none !important;
	height: auto !important;
	resize: vertical;
}
.pl-enquiry-form input:focus, .pl-enquiry-form textarea:focus,
.pl-mortgage-card input:focus, .pl-mortgage-card select:focus {
	outline: none;
	border-color: var(--pl-blue) !important;
	box-shadow: 0 0 0 3px rgba(26, 86, 219, .15) !important;
}
.pl-enquiry-status { font-size: 13px; margin: 4px 0 0; }
.pl-enquiry-status.is-success { color: var(--pl-green); }
.pl-enquiry-status.is-error { color: #dc2626; }
.pl-enquiry-privacy { display: flex; align-items: center; gap: 6px; font-size: 12px !important; color: var(--pl-gray-500) !important; margin: 4px 0 0 !important; }
.pl-enquiry-privacy .dashicons { font-size: 14px; width: 14px; height: 14px; }

.pl-detail-list { list-style: none; margin: 0; padding: 0; }
.pl-detail-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--pl-gray-100); font-size: 14px; }
.pl-detail-list li span { color: var(--pl-gray-500); }
.pl-detail-list li strong { color: var(--pl-gray-900); }

.pl-share-icons { display: flex; gap: 10px; }
.pl-share-icon {
	width: 38px;
	height: 38px;
	border-radius: 50% !important;
	border: 1px solid var(--pl-gray-200) !important;
	background: #fff !important;
	color: var(--pl-blue) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0 !important;
}
.pl-share-icon svg { width: 16px; height: 16px; }
.pl-share-icon:hover { background: var(--pl-blue) !important; color: #fff !important; border-color: var(--pl-blue) !important; }
.pl-copy-feedback { font-size: 12px !important; color: var(--pl-green) !important; margin: 10px 0 0 !important; height: 14px; opacity: 0; transition: opacity .2s ease; }
.pl-copy-feedback.is-visible { opacity: 1; }

.pl-mortgage-card .pl-field { margin-bottom: 12px; }
.pl-mortgage-card .pl-field label { display: block; font-size: 12px !important; color: var(--pl-gray-500) !important; margin-bottom: 4px !important; font-weight: 600 !important; }
.pl-mc-result {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--pl-gray-100);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.pl-mc-result span { font-size: 12px !important; color: var(--pl-gray-500) !important; }
.pl-mc-result strong { font-size: 22px !important; color: var(--pl-navy) !important; }

/* -------- Lightbox -------- */
.pl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10, 15, 30, .94);
	display: none;
	align-items: center;
	justify-content: center;
}
.pl-lightbox.is-open { display: flex; }
body.pl-lightbox-open { overflow: hidden; }
.pl-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 6px; }
.pl-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none !important;
	border: none !important;
	color: #fff !important;
	font-size: 34px !important;
	line-height: 1 !important;
	cursor: pointer;
	padding: 4px 10px !important;
}
.pl-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50% !important;
	border: none !important;
	background: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
	font-size: 16px !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.pl-lightbox-nav:hover { background: rgba(255, 255, 255, .25) !important; }
.pl-lightbox-prev { left: 20px; }
.pl-lightbox-next { right: 20px; }
.pl-lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff !important; font-size: 13px !important; opacity: .8; }

/* ---------------- Archive / Search Results Page ---------------- */
.pl-archive-property { padding: 36px 0 60px; background: var(--pl-gray-50); }
.pl-archive-header { margin-bottom: 20px; }
.pl-archive-title { font-size: 30px !important; color: var(--pl-navy) !important; margin: 0 0 6px !important; font-weight: 700 !important; }
.pl-archive-count { color: var(--pl-gray-500) !important; font-size: 14px !important; margin: 0 !important; }
.pl-archive-search { margin-bottom: 28px; }
.pl-archive-search .pl-search-widget { background: #fff; border-radius: var(--pl-radius); padding: 22px; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.pl-search-form { grid-template-columns: 1fr 1fr; }
	.pl-search-submit { grid-column: span 2; }
	.pl-property-grid, .pl-property-grid.pl-cols-3, .pl-property-grid.pl-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.pl-single-grid { grid-template-columns: 1fr; }
	.pl-single-sidebar { position: static; }
	.pl-details-features { grid-template-columns: 1fr; }
	.pl-hero-title { font-size: 32px; }
	.pl-quick-facts { grid-template-columns: repeat(3, 1fr); }
	.pl-amenities-grid { grid-template-columns: repeat(2, 1fr); }
	.pl-gallery-preview { grid-template-columns: repeat(2, 1fr); }
	.pl-highlight-list, .pl-feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.pl-search-form { grid-template-columns: 1fr; }
	.pl-search-submit { grid-column: span 1; }
	.pl-property-grid, .pl-property-grid.pl-cols-2, .pl-property-grid.pl-cols-3, .pl-property-grid.pl-cols-4 {
		grid-template-columns: 1fr;
	}
	.pl-quick-facts { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; padding: 16px; }
	.pl-single-title { font-size: 22px !important; flex-wrap: wrap; }
	.pl-single-price { font-size: 22px; }
	.pl-form-row { grid-template-columns: 1fr; }
	.pl-form-row-2 { grid-template-columns: 1fr; }
	.pl-grid-header { flex-direction: column; align-items: flex-start; gap: 8px; }
	.pl-hero-search { padding: 46px 16px 60px; }
	.pl-hero-title { font-size: 26px; }
	.pl-hero-subtitle { font-size: 15px; margin-bottom: 24px; }
	.pl-hero-card.pl-search-widget { padding: 18px; }
	.pl-thumb-nav { width: 26px; height: 26px; font-size: 11px !important; }
	.pl-thumb { width: 64px; height: 50px; }

	.pl-breadcrumb { flex-wrap: wrap; font-size: 12px !important; }
	.pl-main-image { aspect-ratio: 4 / 3; }
	.pl-main-nav { width: 32px; height: 32px; }
	.pl-icon-btn { width: 34px; height: 34px; }
	.pl-image-counter { font-size: 11px !important; padding: 4px 9px; }

	.pl-tabs-nav { padding: 0 12px; }
	.pl-tab-btn { padding: 12px 10px !important; font-size: 13px !important; }
	.pl-tab-panel { padding: 18px; }
	.pl-amenities-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.pl-single-section { padding: 18px; }
	.pl-gallery-preview { grid-template-columns: repeat(2, 1fr); }

	.pl-nearby-list li { flex-wrap: wrap; }

	.pl-sidebar-card { padding: 18px; }
	.pl-share-icons { flex-wrap: wrap; }

	.pl-lightbox img { max-width: 94vw; max-height: 70vh; }
	.pl-lightbox-nav { width: 38px; height: 38px; }
	.pl-lightbox-prev { left: 8px; }
	.pl-lightbox-next { right: 8px; }
	.pl-lightbox-close { top: 10px; right: 12px; font-size: 28px !important; }

	.pl-archive-title { font-size: 22px !important; }
}

/* Small phones (iPhone SE / narrow Android, ~360-390px) */
@media (max-width: 400px) {
	.pl-container { padding: 0 14px; }
	.pl-quick-facts { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; padding: 14px; }
	.pl-fact strong { font-size: 15px !important; }
	.pl-fact span:last-child { font-size: 11px !important; }
	.pl-amenities-grid { grid-template-columns: 1fr; }
	.pl-gallery-preview { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.pl-highlight-list, .pl-feature-list { grid-template-columns: 1fr; }
	.pl-single-title { font-size: 20px !important; }
	.pl-hero-title { font-size: 22px; }
	.pl-card-meta span { padding-right: 10px; margin-right: 10px; }
	.pl-sidebar-price { font-size: 22px !important; }
}
