/**
 * Property Single Page Styles
 * Styles for property detail page including hero slider
 */

/* ==========================================================================
   Hero Image Slider
   ========================================================================== */

.property-hero-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 750;
	min-height: 500px;
	max-height: 800px;
	background-color: #000;
}

.property-hero-swiper {
	width: 100%;
	height: 100%;
}

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

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

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

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

/* Navigation Arrows */
.property-hero-swiper .swiper-button-prev,
.property-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;
}

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

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

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

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

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

/* Slide Counter */
.swiper-counter {
	position: absolute;
	bottom: 30px;
	right: 30px;
	z-index: 10;
	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;
}

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

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

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

/* ==========================================================================
   Property Content Section
   ========================================================================== */

.property-content {
	display: flex;
	padding: 0 1rem;
	gap: 1rem;
}

@media (max-width: 768px) {
	.property-content {
		flex-direction: column;
	}
}

.property-content .container {

	flex-grow: 1;
}

.property-content aside {

	width: 450px;
	flex-shrink: 0;
	max-width: 100%;
}

.property-content .property-title {

	color: #002349;
	font-family: var(--sir-font-serif) !important;
	font-size: 1.55rem;
	font-weight: 500;
	text-transform: uppercase;
}

.property-details {

	display: flex;
	gap: 1rem;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid #B6B6B7;
	margin-bottom: 1rem;
}

@media (max-width: 480px) {
	.property-details {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		border: 0;
	}
}

.property-details .property-prices {

	color: #002349;
	font-size: 2rem;
	font-weight: 600;
	display: flex;
	flex-direction: column;
}

/* Preferred currency for property detail prices (set by preferences-apply.js) */
.property-prices .price-preferred {
	font-size: 2rem;
	font-weight: 600;
	color: #002349;
	order: -1;
}

.property-prices .price-other {
	font-size: 1.25rem;
	color: #666;
	font-weight: 400;
}

/* Social Share Buttons */
.social-share-buttons {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1rem;
}

.share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	color: #002349;
	font: inherit;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border-radius: 2px;
}

.share-btn:hover {
	background: #002349;
	color: #ffffff;
	border-color: #002349;
}

.share-btn svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 768px) {
	.social-share-buttons {
		margin-top: 0.75rem;
	}

	.share-btn {
		width: 36px;
		height: 36px;
	}

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

.property-details .property-features {

	display: flex;
	flex-wrap: wrap;
	flex-grow: 1;
	gap: 1rem;
	border-left: 1px solid #B6B6B7;
	padding: 0 1rem;
}

.property-details .property-features .feature-item {

	display: flex;
	align-items: center;
	gap: 0.5rem
}

.property-details .property-features .feature-item .feature-value,
.property-details .property-features .feature-item .feature-label {

	color: #232424;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.05;
	text-transform: uppercase;
}

/* ==========================================================================
   Property Video
   ========================================================================== */

.property-video {
	width: 100%;
	margin: 2rem 0;
}

.video-container {
	position: relative;
	width: 100%;
	aspect-ratio: 825 / 464;
	background-color: #000;
	overflow: hidden;
}

.property-video-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ==========================================================================
   Property Description
   ========================================================================== */

.property-description {
	margin: 1rem 0 3rem;
}

.description-title {
	font-family: var(--sir-font-serif);
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: 2px;
	margin: 0 0 1.5rem 0;
	color: #002349;
	text-transform: uppercase;
}

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

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

/* ==========================================================================
   Sidebar / Aside
   ========================================================================== */

/* Photo Count Box */

.photo-count-box-wrapper {

	display: flex;
	justify-content: flex-end;
}

.photo-count-box {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem 1rem;
	background: #f8f8f8;
	border: 1px solid #002349;
	margin-bottom: 1rem;
	border-radius: 0;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.photo-count-box:hover {
	background: #002349;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 35, 73, 0.2);
}

.photo-count-box:hover .photo-icon,
.photo-count-box:hover .photo-count {
	color: #ffffff;
}

.photo-count-box .photo-icon {
	color: #002349;
	width: 20px;
	height: auto;
	flex-shrink: 0;
	transition: color 0.3s ease;
}

.photo-count-box .photo-count {
	font-size: 1rem;
	font-weight: 600;
	color: #002349;
	line-height: 1;
	transition: color 0.3s ease;
}

.photo-count-box .photo-label {
	font-size: 0.9rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

@media (max-width: 768px) {
	.photo-count-box {
		padding: 0.875rem;
	}

	.photo-count-box .photo-count {
		font-size: 1.25rem;
	}

	.photo-count-box .photo-label {
		font-size: 0.85rem;
	}
}

/* Agent Card */
.agent-card {
	background-color: #002349;
	margin-bottom: 1rem;
}

.agent-info {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.agent-photo {
	width: 120px;
	height: 120px;
	border-radius: 0;
	object-fit: cover;
	object-position: top center;
	flex-shrink: 0;
}

.agent-details {
	padding: 1.5rem;
	flex-grow: 1;
}

.agent-name {
	color: #fff;
	font-family: var(--sir-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: 0.25rem;
	margin-top: 0 !important;
}

.send-message-btn,
.send-message-btn:visited {
	color: #fff;
	font-size: 0.95rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: opacity 0.3s ease;
}

.send-message-btn:hover,
.send-message-btn:focus,
.send-message-btn:active {
	color: #fff;
	opacity: 0.8;
	text-decoration: none;
}

.send-message-btn .arrow {
	font-size: 1.2rem;
}

/* Featured Image */
.aside-featured-image {
	width: 100%;
	margin-bottom: 1rem;
}

.aside-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Property Details Sidebar */
.property-details-sidebar {
	padding-bottom: 1rem;
	border-bottom: 1px solid #ccc;
}

.sidebar-title {
	font-family: var(--sir-font-serif);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 2px;
	margin: 0 0 1.5rem 0;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ccc;
	color: #002349;
}

.detail-item {
	margin-bottom: 1.5rem;
}

.detail-item:last-child {
	margin-bottom: 0;
}

.detail-label {
	display: block;
	font-size: 0.75rem;
	color: #666;
	margin-bottom: 0.25rem;
	text-transform: capitalize;
}

.detail-value {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #002349;
	line-height: 1.4;
}

/* ==========================================================================
   Map and Info Section
   ========================================================================== */

.map-info-section {
	width: 100%;
	background-color: #002349;
	margin-bottom: 2rem;
	margin-top: 2rem;
}

.map-info-section .e-con-inner {
	display: flex;
	width: 100%;
}

.map-container {
	flex: 1;
	min-height: 450px;
	margin-top: -2rem;
	margin-bottom: 1rem;
}

.property-map {
	width: 100%;
	height: 100%;
	min-height: 450px;
	display: block;
}

.info-sidebar {
	width: 48%;
	background-color: #002349;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex-shrink: 0;
}

.info-sidebar.no-map {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.info-box {
	color: #fff;
}

.info-title {
	font-family: var(--sir-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0 0 1rem 0;
	color: #fff;
}

.info-text {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 1.5rem 0;
	color: #fff;
}

.info-button {
	display: inline-block;
	padding: 0.75rem 2rem;
	border: 1px solid #fff;
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.info-button:hover {
	background-color: #fff;
	color: #002349;
}

.info-button:visited {
	color: #fff;
}

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

/* Tablets and below */
@media (max-width: 768px) {
	.property-hero-slider {
		height: 60vh;
		min-height: 400px;
	}

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

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

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

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

	.swiper-counter {
		bottom: 20px;
		right: 20px;
		padding: 6px 12px;
		font-size: 12px;
	}

	.map-info-section .e-con-inner {
		flex-direction: column;
	}

	.info-sidebar {
		width: 100%;
	}
}

/* Mobile phones */
@media (max-width: 480px) {
	.property-hero-slider {
		height: 50vh;
		min-height: 300px;
	}

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

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

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

/* ==========================================================================
   Address
   ========================================================================== */

.address-wrapper {

	padding: 0.5rem 1rem;
	border-bottom: 1px solid #B6B6B7;
	font-family: var(--sir-font-serif);
	color: #9d9da4;
	margin-bottom: 2rem;
}

/* ==========================================================================
   Amenities & Features Section
   ========================================================================== */

.amenities-features-section {
	padding-bottom: 3rem;
	background: #fff;
}

.amenities-features-section .section-title {
	text-align: center;
	font-family: var(--sir-font-serif);
	font-size: 1.5rem;
	color: #002349;
	font-weight: 400;
	margin-bottom: 2rem;
}

/* Amenities Search */
.amenities-search-wrapper {
	max-width: 400px;
	margin: 0 auto 2rem;
	position: relative;
}

.amenities-search-input {
	width: 100%;
	padding: 0.75rem 1rem 0.75rem 2.75rem !important;
	border: 1px solid #d0d0d0;
	border-radius: 0;
	font-size: 0.9rem;
	font-family: inherit;
	color: #333;
	transition: border-color 0.3s ease;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23999" 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%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: 0.85rem center;
	background-size: 16px;
}

.amenities-search-input:focus {
	outline: none;
	border-color: #002349;
}

.amenities-search-input::placeholder {
	color: #999;
}

.amenity-category.hidden {
	display: none;
}

.amenity-list li.hidden {
	display: none;
}

.amenities-no-results {
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 2rem 0;
	display: none;
}

.amenities-no-results.visible {
	display: block;
}

.amenities-general {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.feature {
	display: flex;
	flex-wrap: nowrap;
	gap: 5px;
	flex-direction: row;
	align-items: baseline;
}

.feature-label {
	font-size: 12px;
	font-weight: 400;
	color: #666666;
	line-height: 1.4;
	white-space: nowrap;
}

.feature-value {
	font-size: 16px;
	font-weight: 600;
	color: #000000;
	line-height: 1.3;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.amenities-info {

	display: flex;
	gap: 2rem;
	padding: 1rem 5rem;
}

@media (max-width: 768px) {
	.amenities-info {
		padding: 1rem 2rem;
		flex-direction: column;
	}
}

.amenities-grid-wrapper {

	flex-grow: 1;
}

.amenities-grid {
	display: flex;
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto;
}

.amenities-column {
	flex: 1;
}

.amenity-category {
	margin-bottom: 2rem;
}

.amenity-category .category-title {
	font-family: var(--sir-font-serif);
	font-size: 1.1rem;
	color: #002349;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #002349;
}

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

.amenity-list li {
	padding: 0.5rem 0;
	color: #333;
	font-size: 0.95rem;
	line-height: 1.6;
	border-bottom: 1px solid #f0f0f0;
}

.amenity-list li:last-child {
	border-bottom: none;
}

.no-amenities {
	text-align: center;
	color: #666;
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.amenities-grid {
		flex-direction: column;
		gap: 1.5rem;
	}

	.amenities-features-section .section-title {
		font-size: 1.5rem;
	}
}

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

.agent-contact-section {
	padding: 4rem 0;
	background: #ffffff;
}

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

/* Two Column Grid */
.agent-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: start;
}

/* Left Column - Agent Info */
.agent-info-column {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.agent-info-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.agent-photo-link {
	display: block;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.agent-photo-link:hover {
	transform: scale(1.02);
}

.agent-photo-link::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 35, 73, 0);
	transition: background 0.3s ease;
	pointer-events: none;
}

.agent-photo-link:hover::after {
	background: rgba(0, 35, 73, 0.1);
}

.agent-contact-section .agent-photo {
	width: 200px;
	height: auto;
	object-fit: cover;
	object-position: top center;
	border-radius: 0;
	display: block;
	transition: transform 0.3s ease;
}

.agent-contact-section .agent-details {
	display: flex;
	flex-direction: column;
	padding: 0;
	gap: 0.5rem;
}

.agent-contact-section .agent-details .agent-name {
	font-family: var(--sir-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0;
	color: #002349;
	line-height: 1.2;
}

.agent-contact-section .agent-details .agent-title {
	font-size: 1rem;
	margin: 0;
	color: #333;
	font-weight: 300;
}

.agent-contact-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	padding: 1.5rem 0;
	margin: 0.5rem 0;
}

.agent-phone,
.agent-email {
	margin: 0;
	font-size: 0.95rem;
	color: #333;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.agent-phone .contact-label,
.agent-email .contact-label {
	font-size: 0.85rem;
	color: #666;
}

.agent-phone a,
.agent-email a {
	color: #002349;
	text-decoration: none;
	font-weight: 400;
}

.agent-phone a:hover,
.agent-email a:hover {
	text-decoration: underline;
}

.agent-company {
	font-size: 0.95rem;
	font-weight: 600;
	color: #002349;
	margin: 0;
	letter-spacing: 0.5px;
}

.agent-address {
	font-size: 0.85rem;
	color: #999;
	margin: 0;
	line-height: 1.6;
}

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

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

.agent-contact-form .form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.agent-contact-form .form-row:last-of-type {
	margin-bottom: 1.5rem;
}

.agent-contact-form .form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.agent-contact-form .form-group.full-width {
	grid-column: 1 / -1;
}

.agent-contact-form label {
	font-size: 0.9rem;
	color: #333;
	font-weight: 400;
}

.agent-contact-form input,
.agent-contact-form textarea {
	width: 100%;
	padding: 0.875rem 1rem !important;
	border: 1px solid #d0d0d0;
	border-radius: 0 !important;
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color 0.3s ease;
	background: #ffffff;
}

.agent-contact-form input:focus,
.agent-contact-form textarea:focus {
	outline: none;
	border-color: #002349;
}

.agent-contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* Honeypot field - hide it */
.honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.form-actions {
	margin-top: 2rem;
}

.submit-btn {
	background: #002349;
	color: #fff;
	padding: 1rem 2.5rem;
	border: none;
	border-radius: 2px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	text-transform: uppercase;
}

.submit-btn:hover {
	background: #001a30;
}

.submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 4px;
	text-align: center;
	font-size: 0.95rem;
	display: none;
}

.form-message.success {
	display: block;
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-message.error {
	display: block;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.no-agent {
	text-align: center;
	color: #666;
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
	.agent-contact-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.agent-info-card {
		text-align: left;
	}

	.agent-photo {
		width: 150px;
		object-position: top center;
	}

	.agent-name {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	.agent-contact-section {
		padding: 3rem 0;
	}

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

	.agent-contact-grid {
		gap: 2.5rem;
	}

	.agent-photo {
		width: 120px;
		object-position: top center;
	}

	.agent-name {
		font-size: 1.75rem;
	}

	.form-title {
		font-size: 1.5rem;
	}

	.agent-contact-form .form-row {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.agent-contact-form .form-row {
		flex-direction: column;
		gap: 1rem;
	}
}

/* ==========================================================================
   Related Properties Carousel Section
   ========================================================================== */

.related-properties-section {
	padding: 3rem 0;
	background: #002349;
}

.related-properties-section .section-title {
	text-align: center;
	font-family: var(--sir-font-serif);
	font-size: 2rem;
	color: #fff;
	margin-bottom: 2rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* Container: 60px bottom padding reserved for pagination dots, and a
   custom value for --swiper-pagination-bottom so Swiper v11 places the
   bullets inside that padding without us fighting selector specificity. */
.related-properties-swiper {
	--swiper-pagination-bottom: 18px;
	padding: 1rem 1.5rem 60px !important;
	position: relative;
	overflow: visible;
}

.related-properties-swiper .swiper-slide {
	height: auto;
	display: flex;
}

/* Card: shadow + lift on hover, scoped so global .property-card rules
   (used by results, agent properties, etc.) are not touched. */
.related-properties-swiper .property-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
	height: 100%;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.related-properties-swiper .property-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.related-properties-swiper .property-card-image {
	width: 100%;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	position: relative;
	background: #f5f5f5;
}

.related-properties-swiper .property-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
	opacity: 0;
}

.related-properties-swiper .property-card-image img.loaded {
	opacity: 1;
}

.related-properties-swiper .property-card:hover .property-card-image img {
	transform: scale(1.04);
}

.related-properties-swiper .property-card-content {
	padding: 1.5rem 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-properties-swiper .property-card-title {
	font-family: var(--sir-font-serif);
	font-size: 1.35rem;
	font-weight: 600;
	color: #002349;
	margin: 0 0 1rem 0;
	line-height: 1.3;
	letter-spacing: 0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 2.6em;
}

.related-properties-swiper .property-card-price {
	margin: 0 0 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

/* Price rules MUST stay in this order: main → secondary → preferred → other.
   preferences-apply.js *adds* .price-preferred / .price-other to elements
   that already carry .price-main / .price-secondary, so when both classes
   apply (e.g. an element with class="price-main price-other") the
   later-declared rule wins. This ordering makes the preference classes
   override the original ones regardless of which currency was the source. */
.related-properties-swiper .price-main {
	line-height: 1.1;
	font-size: 1.85rem;
	font-weight: 700;
	color: #002349;
	letter-spacing: -0.015em;
	margin: 0;
}

.related-properties-swiper .price-secondary {
	line-height: 1.1;
	font-size: 0.95rem;
	color: #8a8a8a;
	font-weight: 400;
	margin: 0;
}

.related-properties-swiper .price-preferred {
	line-height: 1.1;
	font-size: 1.85rem;
	font-weight: 700;
	color: #002349;
	letter-spacing: -0.015em;
	margin: 0;
}

.related-properties-swiper .price-other {
	line-height: 1.1;
	font-size: 0.95rem;
	color: #8a8a8a;
	font-weight: 400;
	margin: 0;
}

.related-properties-swiper .property-card-details,
.related-properties-swiper .property-card-location {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.45rem;
	font-size: 0.85rem;
	color: #6b6b6b;
	line-height: 1.4;
	min-width: 0;
}

.related-properties-swiper .property-card-details .detail-item,
.related-properties-swiper .property-card-location > span {
	white-space: nowrap;
	/* Reset margin-bottom: 1.5rem inherited from the global .detail-item
	   rule (used by the property detail sidebar). Without this, each
	   detail-item adds vertical space below itself and the flex row
	   visually breaks alignment. */
	margin: 0;
}

.related-properties-swiper .property-card-details {
	margin: 0 0 0.65rem;
}

.related-properties-swiper .property-card-location {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid #ececec;
	color: #8a8a8a;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Bullet-style separator that doesn't depend on the source character. */
.related-properties-swiper .detail-separator,
.related-properties-swiper .location-separator {
	color: transparent;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #d0d0d0;
	font-size: 0;
	flex-shrink: 0;
}

/* Swiper Navigation */
.related-properties-swiper .swiper-button-prev,
.related-properties-swiper .swiper-button-next {
	color: #fff;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	transition: background 0.3s ease, transform 0.3s ease;
}

.related-properties-swiper .swiper-button-prev:hover,
.related-properties-swiper .swiper-button-next:hover {
	background: rgba(255, 255, 255, 0.22);
}

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

/* Pagination — dots live below the cards in the reserved padding. */
.related-properties-swiper .swiper-pagination {
	bottom: 1.5rem;
}

.related-properties-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #fff;
	opacity: 0.4;
	transition: opacity 0.25s ease, width 0.25s ease, background-color 0.25s ease;
	margin: 0 5px !important;
}

.related-properties-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	width: 24px;
	border-radius: 4px;
}

.no-related {
	text-align: center;
	color: #fff;
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.related-properties-section .section-title {
		font-size: 1.5rem;
	}

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

/* ==========================================================================
   Fullscreen Gallery Lightbox (Swiper-powered)
   ========================================================================== */

/* Lock background scroll while the lightbox is open */
body.plb-open {
	overflow: hidden;
}

/* Modal shell */
.property-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 35, 73, 0.97);
	flex-direction: column;
}

.property-lightbox.is-open {
	display: flex;
}

/* Top bar */
.plb-topbar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	color: #ffffff;
}

.plb-counter {
	font-family: var(--sir-font-serif);
	font-size: 1rem;
	letter-spacing: 0.04em;
}

.plb-tools {
	display: flex;
	align-items: center;
	gap: 6px;
}

.plb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.25s ease;
}

.plb-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

.plb-btn[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.22);
}

/* Slideshow play/pause icon swap */
.plb-slideshow .plb-ic-pause {
	display: none;
}

.plb-slideshow.is-playing .plb-ic-play {
	display: none;
}

.plb-slideshow.is-playing .plb-ic-pause {
	display: inline-block;
}

/* Stage (main image area) */
.plb-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}

.plb-main {
	width: 100%;
	height: 100%;
}

.property-lightbox .plb-main .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.property-lightbox .plb-main .swiper-zoom-container img {
	max-width: 92%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.plb-caption {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 80%;
	text-align: center;
	color: #ffffff;
	font-family: var(--sir-font-serif);
	font-size: 0.9rem;
	background: rgba(0, 0, 0, 0.35);
	padding: 6px 14px;
	pointer-events: none;
}

/* Navigation arrows */
.plb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.25s ease;
}

.plb-nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.plb-prev {
	left: 0;
}

.plb-next {
	right: 0;
}

.plb-nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Thumbnail strip */
.plb-thumbs {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 16px;
}

.property-lightbox .plb-thumbs .swiper-slide {
	width: 92px;
	height: 62px;
	opacity: 0.5;
	overflow: hidden;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.property-lightbox .plb-thumbs .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.property-lightbox .plb-thumbs .swiper-slide-thumb-active {
	opacity: 1;
}

/* Grid view overlay */
.plb-grid {
	position: absolute;
	inset: 0;
	z-index: 10;
	overflow-y: auto;
	background: rgba(0, 35, 73, 0.98);
	padding: 20px;
}

.plb-grid-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
}

.plb-grid-item {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.plb-grid-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.plb-grid-item:hover img {
	transform: scale(1.05);
	opacity: 0.85;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.plb-btn {
		width: 40px;
		height: 40px;
	}

	.plb-nav {
		width: 40px;
		height: 40px;
	}

	.property-lightbox .plb-thumbs .swiper-slide {
		width: 64px;
		height: 44px;
	}

	.property-lightbox .plb-main .swiper-zoom-container img {
		max-width: 100%;
	}

	.plb-grid-inner {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
}

/* Cursor on lightbox link */
.slide-image-wrapper.property-gallery-trigger {
	cursor: zoom-in;
	display: block;
	position: relative;
}

.slide-image-wrapper.property-gallery-trigger::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.property-gallery-trigger:hover::after {
	opacity: 1;
}
