/**
 * Property Details Page - Professional Design with pl_ prefix
 * Isolated CSS to avoid theme collisions
 */

:root {
	--pl-primary: #1a1f36;
	--pl-secondary: #d97706;
	--pl-accent: #3b82f6;
	--pl-text: #374151;
	--pl-text-light: #6b7280;
	--pl-border: #e5e7eb;
	--pl-bg-light: #f9fafb;
	--pl-white: #ffffff;
	--pl-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--pl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Override theme width constraints for full-width property page */
/* Match theme's specificity with body:not([class*=elementor-page-]) .site-main */
body:not([class*=elementor-page-]) .site-main.site-main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Alternative specific selector for property pages */
body .post-type-property .site-main {
	max-width: 100% !important;
	width: 100% !important;
}

/* Ensure full width on all breakpoints */
@media (min-width: 1920px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (min-width: 1366px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (min-width: 1200px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (min-width: 1024px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (min-width: 768px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (min-width: 480px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (max-width: 1200px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (max-width: 768px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

@media (max-width: 480px) {
	body:not([class*=elementor-page-]) .site-main.site-main {
		max-width: 100% !important;
	}
}

/* ============= HERO SECTION ============= */
.pl-hero {
	position: relative;
	background: linear-gradient(135deg, var(--pl-primary) 0%, #2d3748 100%);
	color: white;
	padding: 6rem 2rem;
	margin-bottom: 3rem;
	text-align: center;
	overflow: hidden;
}

.pl-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
	pointer-events: none;
}

.pl-hero-content {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
}

.pl-hero-subtitle {
	font-size: 1.1rem;
	opacity: 0.95;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 600;
}

.pl-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    margin: 0 0 1.5rem;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

.pl-hero-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 32px;
}

.pl-hero-location {
	font-size: 0.95rem;
	opacity: 0.9;
}

.pl-badge {
	display: inline-block;
	background: var(--pl-secondary);
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ============= GALLERY SECTION ============= */
.pl-gallery-section {
	padding: 0 2rem 3rem;
	max-width: 1400px;
	margin: 0 auto 3rem;
}

.pl-gallery-viewer {
	display: grid;
	gap: 2rem;
}

.pl-gallery-main {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16/9;
	background: var(--pl-bg-light);
	box-shadow: var(--pl-shadow-lg);
}

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

.pl-gallery-counter {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 0.75rem 1.25rem;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 700;
	z-index: 10;
	backdrop-filter: blur(10px);
}

.pl-gallery-controls {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 1rem;
	z-index: 10;
}

.pl-gallery-btn {
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	font-weight: 600;
	padding: 0;
}

.pl-gallery-btn:hover {
	background: rgba(0, 0, 0, 0.95);
	transform: scale(1.15);
}

.pl-gallery-thumbnails {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
	padding: 0 1rem;
}

.pl-gallery-thumbnail {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.2s ease;
	background: var(--pl-bg-light);
}

.pl-gallery-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pl-gallery-thumbnail:hover img {
	transform: scale(1.1);
}

.pl-gallery-thumbnail.active {
	border-color: var(--pl-secondary);
	box-shadow: 0 0 0 2px white, 0 0 0 4px var(--pl-secondary);
}

/* ============= SUMMARY & DETAILS SECTION ============= */
.pl-summary-section {
	background: linear-gradient(135deg, var(--pl-bg-light) 0%, #f3f4f6 100%);
	padding: 3rem 2rem;
	margin-bottom: 3rem;
}

.pl-summary-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.pl-summary-left h2 {
	font-size: 2.2rem;
	margin-top: 0;
	margin-bottom: 1.5rem;
	color: var(--pl-primary);
	font-weight: 700;
}

.pl-summary-left p {
	color: var(--pl-text);
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 1rem;
}

.pl-details-card {
	background: var(--pl-primary);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--pl-shadow-md);
}

.pl-details-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600 !important;
    color: #fff !important;
}

.pl-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pl-details-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pl-details-item:last-child {
	border-bottom: none;
}

.pl-detail-label {
	font-weight: 500;
	opacity: 0.9;
}

.pl-detail-value {
	font-weight: 600;
}

/* ============= LARGE IMAGE SECTION ============= */
.pl-large-image-section {
	padding: 0 2rem 3rem;
	max-width: 1400px;
	margin: 0 auto 3rem;
	display:none;
}

.pl-large-image {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--pl-shadow-lg);
}

.pl-large-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.pl-large-image:hover img {
	transform: scale(1.02);
}

/* ============= DESCRIPTION SECTION ============= */
.pl-description-section {
	padding: 3rem 2rem;
	max-width: 1400px;
	margin: 0 auto 3rem;
	display:none;
}

.pl-description-section h2 {
	font-size: 2.2rem;
	margin-top: 0;
	margin-bottom: 2rem;
	color: var(--pl-primary);
}

.pl-description-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.pl-description-left,
.pl-description-right {
	line-height: 1.8;
}

.pl-description-left p,
.pl-description-right p {
	color: var(--pl-text);
	margin-bottom: 1.25rem;
}

.pl-description-right ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pl-description-right li {
	padding-left: 1.5rem;
	margin-bottom: 0.75rem;
	position: relative;
	color: var(--pl-text);
}

.pl-description-right li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--pl-secondary);
	font-weight: bold;
	font-size: 1.1rem;
}

/* ============= LOCATION SECTION ============= */
.pl-location-section {
	padding: 3rem 2rem;
	max-width: 1400px;
	margin: 0 auto 3rem;
	display:none;
}

.pl-location-section h2 {
	font-size: 2.2rem;
	margin-top: 0;
	margin-bottom: 2rem;
	color: var(--pl-primary);
}

.pl-location-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.pl-location-map {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--pl-shadow-lg);
}

.pl-location-map iframe {
	width: 100%;
	height: 450px;
	border: none;
	display: block;
}

.pl-location-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.pl-location-item {
	background: white;
	border: 1px solid var(--pl-border);
	padding: 1.5rem;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.pl-location-item:hover {
	border-color: var(--pl-secondary);
	box-shadow: var(--pl-shadow-md);
}

.pl-location-item strong {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--pl-primary);
	font-weight: 700;
	font-size: 1rem;
}

.pl-location-item p {
	margin: 0;
	color: var(--pl-text-light);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* ============= CTA & ADVISOR SECTION ============= */
.pl-cta-advisor-section {
	padding: 3rem 2rem;
	margin-bottom: 3rem;
	display: none;
}

.pl-cta-advisor-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.pl-viewing-cta {
	background: linear-gradient(135deg, var(--pl-primary) 0%, #2d3748 100%);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--pl-shadow-lg);
}

.pl-viewing-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: white !important;
}

.pl-viewing-cta p {
	margin-bottom: 2rem;
	opacity: 0.95;
	line-height: 1.8;
}

/* ============= FORM STYLES ============= */
.pl-inquiry-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
	margin-top: 1.5rem;
}

.pl-form-group {
	display: flex;
	flex-direction: column;
}

.pl-inquiry-form .pl-form-group:nth-child(n+3) {
	grid-column: 1 / -1;
}

.pl-inquiry-form input,
.pl-inquiry-form textarea {
	padding: 0.85rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: white;
	font-size: 0.95rem;
	font-family: inherit;
	transition: all 0.3s ease;
}

.pl-inquiry-form input::placeholder,
.pl-inquiry-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.pl-inquiry-form input:focus,
.pl-inquiry-form textarea:focus {
	outline: none;
	border-color: var(--pl-secondary);
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.pl-inquiry-form textarea {
	resize: vertical;
	min-height: 120px;
}

.pl-form-message {
	grid-column: 1 / -1;
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-weight: 600;
	display: none;
}

.pl-form-message.success {
	background: #10b981;
	color: white;
	display: block;
}

.pl-form-message.error {
	background: #ef4444;
	color: white;
	display: block;
}

.pl-btn {
	padding: 0.9rem 2rem;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pl-btn-submit {
	background: var(--pl-secondary);
	color: white;
	grid-column: 1 / -1;
	width: 100%;
}

.pl-btn-submit:hover {
	background: #b55c00 !important;
	transform: translateY(-2px);
	box-shadow: var(--pl-shadow-lg);
}

/* ============= ADVISOR SECTION ============= */
.pl-advisor-section {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--pl-shadow-md);
	text-align: center;
	height: fit-content;
	position: sticky;
	top: 30px;
}

.pl-advisor-photo {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1.5rem;
	border: 4px solid var(--pl-border);
	transition: all 0.3s ease;
}

.pl-advisor-photo:hover {
	border-color: var(--pl-secondary);
	box-shadow: var(--pl-shadow-lg);
}

.pl-advisor-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pl-advisor-name {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	color: var(--pl-primary);
	font-weight: 700;
}

.pl-advisor-designation {
	margin: 0 0 1.5rem;
	color: var(--pl-text-light);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pl-advisor-contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.pl-contact-link {
	color: var(--pl-accent);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.pl-contact-link:hover {
	color: var(--pl-secondary);
	text-decoration: underline;
}

.pl-btn-contact {
	background: var(--pl-secondary);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	width: 100%;
	text-align: center;
}

.pl-btn-contact:hover {
	background: #b55c00;
	transform: translateY(-2px);
}

/* ============= RELATED PROPERTIES SECTION ============= */
.pl-related-section {
	padding: 3rem 2rem;
	max-width: 1400px;
	margin: 0 auto;
}

.pl-related-section h2 {
	font-size: 2.2rem;
	margin-top: 0;
	margin-bottom: 2.5rem;
	color: var(--pl-primary);
}

.pl-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.pl-property-card {
	background: white;
	border: 1px solid var(--pl-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.pl-property-card:hover {
	border-color: var(--pl-secondary);
	box-shadow: var(--pl-shadow-xl);
	transform: translateY(-8px);
}

.pl-property-card-image {
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: var(--pl-bg-light);
}

.pl-property-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pl-property-card:hover .pl-property-card-image img {
	transform: scale(1.1);
}

.pl-property-card-content {
	padding: 2rem;
}

.pl-property-card-title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
}

.pl-property-card-title a {
	color: var(--pl-primary);
	text-decoration: none;
	font-weight: 700;
}

.pl-property-card-title a:hover {
	color: var(--pl-secondary);
}

.pl-property-card-price {
	margin: 0.75rem 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--pl-secondary);
}

.pl-property-card-location {
	margin: 0.75rem 0;
	color: var(--pl-text-light);
	font-size: 0.9rem;
}

.pl-property-card-details {
	display: flex;
	gap: 0.75rem;
	margin: 1rem 0;
	flex-wrap: wrap;
}

.pl-detail-badge {
	background: var(--pl-bg-light);
	color: var(--pl-text);
	padding: 0.4rem 0.85rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.pl-view-btn {
	display: inline-block;
	background: var(--pl-accent);
	color: white;
	padding: 0.65rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
}

.pl-view-btn:hover {
	background: #2563eb;
	transform: translateY(-2px);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
	.pl-cta-advisor-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.pl-advisor-section {
		position: static;
		top: auto;
	}

	.pl-summary-grid,
	.pl-description-grid,
	.pl-location-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	:root {
		--pl-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
		--pl-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
	}

	.pl-hero {
		padding: 4rem 1.5rem;
	}

	.pl-hero-title {
		font-size: 2rem;
	}

	.pl-hero-meta {
		flex-direction: column;
		gap: 1rem;
	}

	.pl-gallery-main {
		aspect-ratio: 1;
	}

	.pl-gallery-thumbnails {
		grid-template-columns: repeat(4, 1fr);
	}

	.pl-summary-grid,
	.pl-description-grid,
	.pl-location-grid {
		grid-template-columns: 1fr;
	}

	.pl-location-map iframe {
		height: 350px;
	}

	.pl-related-grid {
		grid-template-columns: 1fr;
	}

	.pl-section-title {
		font-size: 1.8rem;
	}
}

@media (max-width: 480px) {
	.pl-hero {
		padding: 2.5rem 1rem;
	}

	.pl-hero-title {
		font-size: 1.5rem;
	}

	.pl-hero-subtitle {
		font-size: 0.95rem;
	}

	.pl-hero-meta {
		border-top: none;
		padding-top: 0;
		margin-top: 1rem;
	}

	.pl-gallery-controls {
		bottom: 0.75rem;
	}

	.pl-gallery-btn {
		width: 40px;
		height: 40px;
		font-size: 1.1rem;
	}

	.pl-inquiry-form {
		grid-template-columns: 1fr;
	}

	.pl-inquiry-form input,
	.pl-inquiry-form textarea {
		padding: 0.7rem 0.75rem;
		font-size: 16px;
	}

	.pl-cta-advisor-section {
		padding: 2rem 1rem;
	}

	.pl-viewing-cta {
		padding: 1.5rem;
	}

	.pl-advisor-section {
		padding: 1.5rem;
	}

	.pl-location-map iframe {
		height: 250px;
	}

	.pl-property-card-image {
		height: 200px;
	}
}
