/**
 * Streamline Properties Listing - Premium coastal retreat catalog
 * Teal headings, warm CTA buttons, clean cards. Fully responsive.
 *
 * @package Streamline_Integration
 */

/* Brand design tokens - shared by wrapper and grid */
.streamline-properties-wrapper,
.streamline-properties {
	--streamline-teal: #006d7a;
	--streamline-teal-dark: #005560;
	--streamline-orange: #e86b2f;
	--streamline-orange-hover: #d45d26;
	--streamline-text: #272c30;
	--streamline-text-muted: #62707c;
	--streamline-border: 1px solid rgba(0, 0, 0, 0.08);
	--streamline-border-light: 1px solid rgba(0, 0, 0, 0.06);
	--streamline-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--streamline-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
	--streamline-shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.14);
	--streamline-radius: 10px;
	--streamline-radius-sm: 6px;
}

/* Hero section */
.streamline-properties-hero {
	text-align: center;
	margin-bottom: 1.5rem;
	padding: 0 1rem;
}

.streamline-properties-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 600;
	color: var(--streamline-teal);
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	letter-spacing: -0.02em;
}

.streamline-properties-hero__subtitle {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	color: var(--streamline-text-muted);
	line-height: 1.5;
}

.streamline-properties-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem 1.5rem;
}

.streamline-properties-hero__rating {
	font-size: 0.9375rem;
	color: var(--streamline-text);
	font-weight: 500;
}

.streamline-properties-hero__count {
	font-size: 0.9375rem;
	color: var(--streamline-teal);
	font-weight: 600;
}

.streamline-properties-hero__trust {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: var(--streamline-text-muted);
}

/* Grid container */
.streamline-properties {
	display: grid;
	gap: 2.75rem 2.25rem;
	width: 100%;
}

.streamline-properties--cols-1 { grid-template-columns: 1fr; }
.streamline-properties--cols-2 { grid-template-columns: repeat(2, 1fr); }
.streamline-properties--cols-3 { grid-template-columns: repeat(3, 1fr); }
.streamline-properties--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.streamline-properties--cols-3,
	.streamline-properties--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.streamline-properties--cols-2 {
		grid-template-columns: 1fr;
	}
}

/* Wrapper spacing */
.streamline-properties-wrapper {
	padding: 3rem 2rem 4rem;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 640px) {
	.streamline-properties-wrapper {
		padding: 2rem 1.25rem 3rem;
	}

	.streamline-properties-hero {
		margin-bottom: 1.25rem;
	}

	.streamline-properties {
		gap: 2rem 0;
	}
	.streamline-properties--cols-2,
	.streamline-properties--cols-3,
	.streamline-properties--cols-4 {
		grid-template-columns: 1fr;
	}
}

/* Card */
.streamline-property-card {
	position: relative;
	border: var(--streamline-border);
	border-radius: var(--streamline-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: var(--streamline-shadow);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}

.streamline-property-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.streamline-property-card__link + *,
.streamline-property-card__link ~ * {
	position: relative;
	z-index: 0;
}

.streamline-property-card__cta {
	position: relative;
	z-index: 2;
}

.streamline-property-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--streamline-shadow-lift);
	border-color: rgba(0, 109, 122, 0.2);
}

.streamline-property-card__image-wrap {
	aspect-ratio: 16 / 10;
	background: #e8ecef;
	position: relative;
	overflow: hidden;
}

.streamline-property-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.streamline-property-card:hover .streamline-property-card__image-wrap img {
	transform: scale(1.06);
}

.streamline-property-card__image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0) 55%);
	pointer-events: none;
}

.streamline-property-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.35rem 0.75rem;
	background: rgba(255, 255, 255, 0.95);
	color: var(--streamline-teal);
	border-radius: 999px;
}

.streamline-property-card__gallery-count {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	font-size: 0.75rem;
	padding: 0.35rem 0.75rem;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	font-weight: 500;
}

.streamline-property-card__image-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.25rem 1rem 1rem;
}

.streamline-property-card__title-overlay {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	line-height: 1.3;
	font-weight: 700;
}

.streamline-property-card__title-overlay a {
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

.streamline-property-card__title-overlay a:hover {
	color: rgba(255, 255, 255, 0.95);
}

.streamline-property-card__title-overlay a:focus {
	outline: 2px solid var(--streamline-orange);
	outline-offset: 2px;
}

.streamline-property-card__sleeps-overlay {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

.streamline-property-card__image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--streamline-text-muted);
	opacity: 0.6;
	font-size: 0.875rem;
}

.streamline-property-card__body {
	padding: 1.35rem 1.35rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.streamline-property-card__location {
	font-size: 0.9375rem;
	margin-bottom: 0.6rem;
	color: var(--streamline-text-muted);
}

.streamline-property-card__description {
	font-size: 0.875rem;
	line-height: 1.55;
	margin-bottom: 0.9rem;
	flex: 1;
	color: var(--streamline-text);
	min-height: 0;
}

.streamline-property-card__description-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.streamline-property-card__read-more {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--streamline-orange);
	text-decoration: none;
	transition: color 0.2s ease;
}

.streamline-property-card__read-more:hover {
	color: var(--streamline-orange-hover);
}

.streamline-property-card__amenities {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.5rem;
	margin-bottom: 0.9rem;
	min-height: 2.35rem;
}

.streamline-property-card__amenity-tag {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.3rem 0.6rem;
	height: 1.75rem;
	display: inline-flex;
	align-items: center;
	background: rgba(0, 109, 122, 0.08);
	color: var(--streamline-teal);
	border-radius: 999px;
	white-space: nowrap;
}

.streamline-property-card__amenity-more {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.3rem 0.6rem;
	height: 1.75rem;
	display: inline-flex;
	align-items: center;
	color: var(--streamline-text-muted);
	border-radius: 999px;
	white-space: nowrap;
}

.streamline-property-card__rates {
	font-size: 0.9375rem;
	margin-bottom: 1rem;
	font-weight: 600;
	color: var(--streamline-teal);
}

.streamline-property-card__cta {
	display: inline-block;
	min-height: 40px;
	padding: 0.5rem 1.1rem;
	text-decoration: none;
	border: none;
	border-radius: var(--streamline-radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
	background: var(--streamline-orange);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
	align-self: flex-start;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.streamline-property-card:hover .streamline-property-card__cta {
	transform: translateY(-1px);
}

.streamline-property-card__cta:hover {
	background: var(--streamline-orange-hover);
	color: #fff;
}

.streamline-property-card__cta:focus,
.streamline-property-card__cta:focus-visible {
	outline: 2px solid var(--streamline-teal);
	outline-offset: 2px;
}

.streamline-property-card__meta {
	font-size: 0.75rem;
	margin-top: 0.75rem;
	padding-top: 0.5rem;
	border-top: var(--streamline-border-light);
	color: var(--streamline-text-muted);
	opacity: 0.8;
}

/* Responsive: smaller cards on narrow screens */
@media (max-width: 640px) {
	.streamline-property-card__body {
		padding: 1.1rem 1.1rem 1.25rem;
	}

	.streamline-property-card__title-overlay {
		font-size: 1.125rem;
	}

	.streamline-property-card__cta {
		width: 100%;
		text-align: center;
		padding: 0.75rem 1.25rem;
	}
}

@media (max-width: 640px) {
	.streamline-property-card:hover {
		transform: none;
	}
}
