/**
 * Project Single Page Styles
 * Styles for project/development detail page
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.single-project-wrapper {
	padding-top: 77px;
}

.single-project-wrapper .e-con-inner {
	padding-left: 2rem;
	padding-right: 2rem;
}

.project-hero {
	position: relative;
	width: 100%;
}

/* Info Overlay Bar */
.project-hero-overlay {
	background-color: #002349;
	color: #fff;
	padding: 2rem 0;
}

.project-hero-inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
}

.project-location {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 0.5rem 0;
}

.project-hero .project-title {
	font-family: var(--sir-font-serif);
	font-size: 2.5rem;
	font-weight: 400;
	color: #fff;
	margin: 0 0 1.5rem 0;
	line-height: 1.2;
}

.project-stats {
	display: flex;
	gap: 3rem;
}

.project-stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.project-stat .stat-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.7);
}

.project-stat .stat-value {
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
}

/* Gallery Slider */
.project-hero-swiper {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 750;
	min-height: 500px;
	max-height: 800px;
	background-color: #000;
}

.project-hero-swiper .swiper-wrapper {
	height: 100%;
}

.project-hero-swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #000;
}

.project-hero .slide-image-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.project-hero .slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Navigation Arrows */
.project-hero-swiper .swiper-button-prev,
.project-hero-swiper .swiper-button-next {
	width: 60px;
	height: 60px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.project-hero-swiper .swiper-button-prev:after,
.project-hero-swiper .swiper-button-next:after {
	font-size: 24px;
	color: #000;
	font-weight: bold;
}

.project-hero-swiper .swiper-button-prev:hover,
.project-hero-swiper .swiper-button-next:hover {
	background-color: rgba(255, 255, 255, 1);
	transform: scale(1.1);
}

.project-hero-swiper .swiper-button-prev {
	left: 20px;
}

.project-hero-swiper .swiper-button-next {
	right: 20px;
}

.project-hero-swiper .swiper-button-prev.swiper-button-disabled,
.project-hero-swiper .swiper-button-next.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Slider Controls (Counter + View Gallery) */
.project-slider-controls {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.project-slider-controls .swiper-counter {
	position: static;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.project-slider-controls .swiper-counter .current-slide {
	font-weight: 700;
}

.view-gallery-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.view-gallery-btn:hover {
	background: rgba(0, 0, 0, 0.9);
	border-color: rgba(255, 255, 255, 0.6);
}

.view-gallery-btn svg {
	width: 18px;
	height: 18px;
}

/* No Gallery Message */
.project-hero .no-gallery-message {
	width: 100%;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5f5f5;
}

.project-hero .no-gallery-message p {
	color: #666;
	font-size: 18px;
	margin: 0;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */

.project-tabs-section {
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
	position: sticky;
	top: 75px;
	z-index: 100;
}

.project-tabs-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.project-tabs {
	display: flex;
	gap: 0;
}

.project-tab {
	padding: 1.25rem 2rem;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #666;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
}

.project-tab:hover,
.project-tab.active {
	color: #002349;
	border-bottom-color: #002349;
}

/* Agent Floating Card in Tab Bar */
.project-agent-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #002349;
	padding: 0.75rem 1.5rem;
}

.project-agent-photo {
	width: 50px;
	height: 50px;
	object-fit: cover;
	flex-shrink: 0;
}

.project-agent-info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.project-agent-name {
	color: #fff;
	font-family: var(--sir-font-serif);
	font-size: 1rem;
	font-weight: 400;
}

.project-agent-card .send-message-btn {
	color: #fff;
	font-size: 0.8rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition: opacity 0.3s ease;
}

.project-agent-card .send-message-btn:hover {
	opacity: 0.8;
}

.project-agent-card .send-message-btn .arrow {
	font-size: 1rem;
}

/* ==========================================================================
   Description Section
   ========================================================================== */

.project-description-section {
	padding: 4rem 0;
	background: #fff;
}

.project-description-grid {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 4rem;
	align-items: start;
}

/* Left Column: Marketed By */
.project-marketed-by {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.marketed-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #999;
}

.marketed-office {
	font-family: var(--sir-font-serif);
	font-size: 1.2rem;
	font-weight: 400;
	color: #002349;
	margin: 0;
	line-height: 1.4;
}

.learn-company-link {
	font-size: 0.85rem;
	color: #002349;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 500;
	transition: opacity 0.3s ease;
}

.learn-company-link:hover {
	opacity: 0.7;
}

.learn-company-link .arrow {
	font-size: 1rem;
}

/* Right Column: Description Content */
.project-description-content {
	max-width: 800px;
}

.project-description-title {
	font-family: var(--sir-font-serif);
	font-size: 2rem;
	font-weight: 400;
	color: #002349;
	margin: 0 0 0.5rem 0;
}

.project-description-address {
	font-size: 0.95rem;
	color: #666;
	margin: 0 0 1.5rem 0;
}

.project-description-text {
	max-height: 300px;
	overflow: hidden;
	position: relative;
	transition: max-height 0.5s ease;
}

.project-description-text.expanded {
	max-height: none;
}

.project-description-text::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(transparent, #fff);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.project-description-text.expanded::after {
	opacity: 0;
}

.project-description-text p {
	font-size: 0.95rem;
	line-height: 1.8;
	color: #333;
	margin-bottom: 1rem;
	text-align: justify;
}

.project-description-text p:last-child {
	margin-bottom: 0;
}

.show-more-btn {
	background: none;
	border: none;
	color: #002349;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.5rem 0;
	margin-top: 0.5rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.3s ease;
}

.show-more-btn:hover {
	opacity: 0.7;
}

/* ==========================================================================
   Agent Contact Section
   ========================================================================== */

.project-contact-section {
	padding: 4rem 0;
	background: #fff;
	border-top: 1px solid #e0e0e0;
}

.project-contact-section .e-con-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.project-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: start;
}

.project-contact-grid--form-only {
	grid-template-columns: 1fr;
	max-width: 700px;
	margin: 0 auto;
}

/* Agent Detail Card */
.project-agent-detail {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.project-agent-card-full {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.project-agent-card-full .agent-photo {
	width: 180px;
	height: 180px;
	object-fit: cover;
	object-position: center top;
	flex-shrink: 0;
}

.project-agent-card-full .agent-details {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0;
}

.project-agent-card-full .agent-name {
	font-family: var(--sir-font-serif);
	font-size: 1.75rem;
	font-weight: 400;
	color: #002349;
	margin: 0;
	line-height: 1.2;
}

.project-agent-card-full .agent-position {
	font-size: 0.85rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
}

/* Contact Form */
.project-contact-section .contact-form-wrapper {
	background: #fff;
	padding: 0;
}

.project-contact-section .form-title {
	font-family: var(--sir-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	color: #002349;
	margin: 0 0 1.5rem 0;
}

/* ==========================================================================
   GLightbox Custom Styling (project-specific)
   ========================================================================== */

.slide-image-wrapper.glightbox {
	cursor: zoom-in;
	display: block;
	position: relative;
}

.slide-image-wrapper.glightbox::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background: rgba(0, 35, 73, 0.7);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'white\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-linejoin=\'round\'%3E%3Ccircle cx=\'11\' cy=\'11\' r=\'8\'%3E%3C/circle%3E%3Cpath d=\'m21 21-4.35-4.35\'%3E%3C/path%3E%3Cline x1=\'11\' y1=\'8\' x2=\'11\' y2=\'14\'%3E%3C/line%3E%3Cline x1=\'8\' y1=\'11\' x2=\'14\' y2=\'11\'%3E%3C/line%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
}

.slide-image-wrapper.glightbox:hover::after {
	opacity: 1;
}

/* GLightbox overlay */
.glightbox-clean .goverlay {
	background: rgba(0, 35, 73, 0.95) !important;
}

.glightbox-clean .gslide-description {
	background: transparent !important;
	color: #ffffff !important;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #ffffff !important;
	border-radius: 0 !important;
	width: 50px !important;
	height: 50px !important;
	transition: background 0.3s ease !important;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}

.glightbox-clean .gclose {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #ffffff !important;
	border-radius: 0 !important;
	width: 40px !important;
	height: 40px !important;
	transition: background 0.3s ease !important;
}

.glightbox-clean .gclose:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}

.glightbox-clean .gslide-image img {
	max-width: 95%;
	max-height: 90vh;
	object-fit: contain;
}

.glightbox-clean .gslide-title {
	font-family: var(--sir-font-serif);
	font-size: 0.95rem;
	color: #ffffff !important;
	text-align: center;
	margin-top: 1rem;
}

.glightbox-clean .gloader {
	border-color: rgba(255, 255, 255, 0.2) !important;
	border-top-color: #ffffff !important;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Large screens */
@media (min-width: 1920px) {
	.project-hero-swiper {
		max-height: 1000px;
	}
}

/* Tablets */
@media (max-width: 1024px) {
	.project-description-grid {
		grid-template-columns: 280px 1fr;
		gap: 2rem;
	}
}

@media (max-width: 992px) {
	.project-contact-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 768px) {
	.single-project-wrapper {
		padding-top: 59px;
	}

	.project-tabs-section {
		top: 58px;
	}

	/* Hero */
	.project-hero .project-title {
		font-size: 1.75rem;
	}

	.project-stats {
		gap: 2rem;
	}

	.project-hero-swiper {
		min-height: 350px;
		aspect-ratio: auto;
		height: 60vh;
	}

	.project-hero-swiper .swiper-button-prev,
	.project-hero-swiper .swiper-button-next {
		width: 45px;
		height: 45px;
	}

	.project-hero-swiper .swiper-button-prev:after,
	.project-hero-swiper .swiper-button-next:after {
		font-size: 18px;
	}

	.project-hero-swiper .swiper-button-prev {
		left: 10px;
	}

	.project-hero-swiper .swiper-button-next {
		right: 10px;
	}

	.project-slider-controls {
		bottom: 20px;
		gap: 1rem;
	}

	.project-slider-controls .swiper-counter {
		padding: 6px 12px;
		font-size: 12px;
	}

	.view-gallery-btn {
		padding: 6px 14px;
		font-size: 12px;
	}

	/* Tabs */
	.project-tabs-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.project-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.project-tab {
		padding: 1rem 1.25rem;
		font-size: 0.75rem;
		white-space: nowrap;
	}

	.project-agent-card {
		justify-content: center;
	}

	/* Description */
	.project-description-section {
		padding: 2.5rem 0;
	}

	.project-description-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.project-description-title {
		font-size: 1.5rem;
	}

	/* Contact */
	.project-contact-section {
		padding: 2.5rem 0;
	}

	.project-contact-section .e-con-inner {
		padding: 0 1.5rem;
	}

	.project-agent-card-full .agent-photo {
		width: 140px;
		height: 140px;
	}

	.project-agent-card-full .agent-name {
		font-size: 1.5rem;
	}

	/* GLightbox */
	.glightbox-clean .gnext,
	.glightbox-clean .gprev {
		width: 40px !important;
		height: 40px !important;
	}

	.glightbox-clean .gclose {
		width: 35px !important;
		height: 35px !important;
	}
}

/* Mobile phones */
@media (max-width: 480px) {
	.project-hero-overlay {
		padding: 1.5rem 0;
	}

	.project-hero .project-title {
		font-size: 1.35rem;
	}

	.project-stats {
		flex-direction: column;
		gap: 0.75rem;
	}

	.project-hero-swiper {
		min-height: 280px;
		height: 50vh;
	}

	.project-hero-swiper .swiper-button-prev,
	.project-hero-swiper .swiper-button-next {
		width: 40px;
		height: 40px;
		opacity: 0.8;
	}

	.project-hero-swiper .swiper-button-prev:after,
	.project-hero-swiper .swiper-button-next:after {
		font-size: 16px;
	}

	.project-agent-card-full {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.project-agent-card-full .agent-photo {
		width: 200px;
		height: 200px;
	}
}
