/**
 * Destination Single Page Styles
 */

:root {
	--color-primary: #002349;
}

/* ==========================================================================
   Hero Section - Matching Agents Page Style
   ========================================================================== */

.destination-hero {
	background: url('/wp-content/themes/sir/assets/images/title-background.png') no-repeat center center;
	background-size: cover;
	padding: 0;
	margin-top: 76px;
	display: flex;
	align-items: stretch;
}

.destination-hero-content {
	max-width: 1600px;
	margin: 0 auto;
	flex-grow: 1;
	padding: 3rem;
	display: flex;
	align-items: center;
}

.destination-hero-title {
	font-family: var(--sir-font-serif);
	font-size: 2rem;
	font-weight: 500 !important;
	line-height: 1.3;
	margin: 0;
	color: var(--color-primary);
}

@media (max-width: 992px) {
	.destination-hero-content {
		padding: 2rem;
	}

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

@media (max-width: 768px) {
	.destination-hero {
		padding: 0;
	}

	.destination-hero-content {
		padding: 1.5rem;
	}

	.destination-hero-title {
		font-size: 1.25rem;
	}
}

/* ==========================================================================
   Properties Section
   ========================================================================== */

.destination-properties-section {
	padding: 2rem 0 4rem;
	background: #fff;
}

.destination-properties-section .e-con-inner {
	padding: 0 2rem;
}

/* Intro description shown before the filters */
.destination-intro {
	width: 100%;
	max-width: 100%;
	margin: 0 0 2.5rem;
	color: #333;
	font-size: 1rem;
	line-height: 1.8;
}

.destination-intro p {
	margin: 0 0 1rem;
}

.destination-intro p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.destination-intro {
		margin-bottom: 1.5rem;
	}
}

/* Properties Header with Filter */
.destination-properties-section .properties-header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
}

.destination-properties-section .filter-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.destination-properties-section .filter-wrapper label {
	font-size: 0.9rem;
	color: #333;
}

.destination-properties-section .filter-select {
	padding: 0.5rem 2.5rem 0.5rem 0.75rem;
	border: 1px solid #d0d0d0;
	font-size: 0.9rem;
	background-color: #ffffff;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 12 12"%3E%3Cpath fill="%23333" d="M6 9L1 4h10z"/%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	appearance: none;
	cursor: pointer;
	min-width: 180px;
}

.destination-properties-section .properties-count {
	font-size: 1rem;
	color: #333;
	margin: 0;
}

.destination-properties-section .no-properties {
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 3rem 0;
}

/* ==========================================================================
   Property Grid - 4 Columns
   ========================================================================== */

.destination-properties-section .property-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.destination-properties-section .property-card {
	display: block;
	background: #fff;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
	color: inherit;
}

.destination-properties-section .property-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.destination-properties-section .property-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	position: relative;
	background: #f0f0f0;
}

.destination-properties-section .property-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0;
}

.destination-properties-section .property-image img.loaded {
	opacity: 1;
}

.destination-properties-section .property-card:hover .property-image img {
	transform: scale(1.05);
}

.destination-properties-section .property-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #999;
	gap: 0.5rem;
}

.destination-properties-section .property-image-placeholder svg {
	opacity: 0.5;
}

.destination-properties-section .property-image-placeholder span {
	font-size: 0.85rem;
}

/* Property Details */
.destination-properties-section .property-details {
	padding: 1rem;
}

.destination-properties-section .property-card .property-title {
	font-family: var(--sir-font-sans);
	font-size: 0.9rem;
	color: var(--color-primary);
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: 0.3px;
}

.destination-properties-section .property-location {
	font-size: 0.85rem;
	color: #666;
	margin: 0 0 0.75rem 0;
	letter-spacing: 0.3px;
}

.destination-properties-section .property-price {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.destination-properties-section .price-main {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-primary);
}

.destination-properties-section .price-secondary {
	font-size: 0.85rem;
	color: #888;
}

/* Preferred currency (set by preferences-apply.js) */
.destination-properties-section .price-preferred {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-primary);
	order: -1;
}

.destination-properties-section .price-other {
	font-size: 0.85rem;
	color: #888;
	font-weight: 400;
}

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

@media (max-width: 1200px) {
	.destination-properties-section .property-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.destination-properties-section .property-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.destination-properties-section .e-con-inner {
		padding: 0 1.5rem;
	}
}

@media (max-width: 768px) {
	.destination-properties-section .property-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.destination-properties-section .property-card .property-title {
		font-size: 0.85rem;
	}

	.destination-properties-section .price-main,
	.destination-properties-section .price-secondary {
		font-size: 0.85rem;
	}
}

@media (max-width: 576px) {
	.destination-properties-section .property-grid {
		grid-template-columns: 1fr;
	}

	.destination-properties-section .e-con-inner {
		padding: 0 1rem;
	}
}
