/* Ecorahi — Location landing pages v1.1 */
.ecorahi-location-landing-page {
	--elp-g: var(--ecorahi-green, #1f6b4a);
	--elp-g-dark: var(--ecorahi-green-dark, #164e37);
	--elp-g-soft: rgba(31, 107, 74, 0.1);
	--elp-gold: #c47a1a;
	--elp-ink: #1a2118;
	--elp-soft: #4f574c;
	--elp-muted: #7a8278;
	--elp-line: #dfe5dc;
	--elp-white: #fff;
	--elp-bg: #f4f6f2;
	--elp-shadow-sm: 0 4px 18px rgba(22, 30, 24, 0.06);
	--elp-shadow: 0 16px 42px rgba(22, 30, 24, 0.1);
	--elp-radius: 16px;
}

body.ecorahi-location-landing-page {
	background: var(--elp-bg) !important;
}

body.ecorahi-location-landing-page .site-content,
body.ecorahi-location-landing-page .content-area {
	background: transparent;
}

.ecorahi-location-page {
	padding: 24px 0 64px;
}

.ecorahi-location-page .container {
	max-width: 1180px;
}

/* Breadcrumb */
.elp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 600;
	color: var(--elp-muted);
}

.elp-breadcrumb a {
	color: var(--elp-soft);
	text-decoration: none;
	transition: color 0.2s;
}

.elp-breadcrumb a:hover {
	color: var(--elp-g);
}

.elp-breadcrumb-sep {
	color: #c8cfc4;
	user-select: none;
	font-size: 11px;
}

.elp-breadcrumb span {
	color: var(--elp-ink);
}

/* Hero */
.elp-hero {
	position: relative;
	background: linear-gradient(135deg, #fcfdfb 0%, #eef3ea 100%);
	border: 1px solid var(--elp-line);
	border-radius: calc(var(--elp-radius) + 2px);
	padding: 24px 28px 22px;
	margin-bottom: 22px;
	box-shadow: var(--elp-shadow-sm);
	overflow: hidden;
}

.elp-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--elp-g) 0%, var(--ecorahi-teal, #2b7a78) 100%);
	border-radius: 4px 0 0 4px;
}

.elp-hero-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.elp-kicker {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--elp-g-soft);
	color: var(--elp-g-dark);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.elp-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--elp-white);
	border: 1px solid var(--elp-line);
	color: var(--elp-soft);
	font-size: 11px;
	font-weight: 700;
}

.elp-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--elp-ink);
	letter-spacing: -0.025em;
}

.elp-desc {
	max-width: 720px;
	margin: 0 0 14px;
	color: var(--elp-soft);
	font-size: 14px;
	line-height: 1.65;
}

.elp-desc p {
	margin: 0;
}

.elp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elp-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--elp-white);
	border: 1px solid var(--elp-line);
	color: var(--elp-ink);
	font-size: 12px;
	font-weight: 700;
}

.elp-count strong {
	color: var(--elp-g);
	font-size: 14px;
}

/* Map + listings layout */
.elp-main {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-bottom: 28px;
}

.elp-layout--split {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 22px;
	align-items: start;
}

.elp-layout--split .ecorahi-map-location {
	margin-bottom: 0;
	position: sticky;
	top: 96px;
}

.elp-layout--split .ecorahi-map-location .ecorahi-map-canvas {
	min-height: 320px;
}

.elp-layout--split .elp-listings {
	min-width: 0;
}

.elp-layout--split .elp-grid {
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 0;
}

.ecorahi-map-location {
	margin-bottom: 0;
}

.ecorahi-map-location .ecorahi-map-head {
	padding: 14px 18px;
}

.ecorahi-map-location .ecorahi-map-head h2 {
	font-size: 18px;
}

.ecorahi-map-location .ecorahi-map-head p {
	margin-top: 4px;
	font-size: 12px;
}

/* Listings section */
.elp-listings {
	background: var(--elp-white);
	border: 1px solid var(--elp-line);
	border-radius: var(--elp-radius);
	padding: 18px 18px 20px;
	box-shadow: var(--elp-shadow-sm);
}

.elp-listings-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--elp-line);
}

.elp-listings-head h2 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--elp-ink);
	letter-spacing: -0.02em;
}

.elp-listings-lead {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--elp-muted);
}

.elp-listings-count {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--elp-g-soft);
	color: var(--elp-g-dark);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

/* Listing grid */
.elp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 18px;
	margin-bottom: 0;
}

.elp-layout--stack .elp-listings {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.elp-layout--stack .elp-listings-head {
	background: var(--elp-white);
	border: 1px solid var(--elp-line);
	border-radius: var(--elp-radius);
	padding: 16px 18px;
	margin-bottom: 18px;
	box-shadow: var(--elp-shadow-sm);
	border-bottom: 1px solid var(--elp-line);
}

/* Cards */
.elp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--elp-white);
	border: 1px solid var(--elp-line);
	border-radius: calc(var(--elp-radius) - 2px);
	overflow: hidden;
	box-shadow: var(--elp-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.elp-layout--stack .elp-card {
	border-radius: var(--elp-radius);
}

.elp-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--elp-shadow);
	border-color: rgba(31, 107, 74, 0.22);
}

.elp-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	text-decoration: none !important;
	color: inherit;
}

.elp-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #e8ece6;
	overflow: hidden;
}

.elp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.elp-card:hover .elp-thumb img {
	transform: scale(1.05);
}

.elp-nothumb {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	color: var(--elp-muted);
	font-size: 13px;
	font-weight: 600;
}

.elp-cat-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: var(--elp-g-dark);
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.elp-price-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--elp-gold);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.elp-featured-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--elp-g);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.elp-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px 12px;
}

.elp-body h3 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--elp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.elp-card:hover .elp-body h3 {
	color: var(--elp-g);
}

.elp-loc {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	margin: 0 0 8px;
	color: var(--elp-soft);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.elp-loc svg {
	flex: none;
	margin-top: 1px;
	color: var(--elp-g);
	width: 13px;
	height: 13px;
}

.elp-excerpt {
	margin: 0;
	color: var(--elp-muted);
	font-size: 12px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.elp-empty {
	grid-column: 1 / -1;
	padding: 48px 24px;
	text-align: center;
	background: var(--elp-white);
	border: 1px dashed var(--elp-line);
	border-radius: var(--elp-radius);
	color: var(--elp-soft);
}

.elp-empty h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--elp-ink);
}

.elp-empty p {
	margin: 0;
	font-size: 14px;
}

/* Pagination */
.elp-pagi {
	display: flex;
	justify-content: center;
	margin: 18px 0 0;
}

.elp-pagi .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0 3px;
	padding: 0 11px;
	border: 1px solid var(--elp-line);
	border-radius: 10px;
	background: var(--elp-white);
	color: var(--elp-soft);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: 0.2s;
}

.elp-pagi .page-numbers:hover {
	border-color: var(--elp-g);
	color: var(--elp-g-dark);
}

.elp-pagi .page-numbers.current {
	background: var(--elp-g);
	border-color: var(--elp-g);
	color: #fff;
	box-shadow: 0 6px 16px rgba(31, 107, 74, 0.28);
}

/* SEO block */
.elp-seo {
	background: var(--elp-white);
	border: 1px solid var(--elp-line);
	border-radius: var(--elp-radius);
	padding: 22px 26px;
	box-shadow: var(--elp-shadow-sm);
}

.elp-seo h2 {
	margin: 0 0 10px;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 800;
	color: var(--elp-ink);
}

.elp-seo p {
	margin: 0;
	color: var(--elp-soft);
	font-size: 14px;
	line-height: 1.65;
}

/* Language FAB — bottom-right, clear of card actions */
body.ecorahi-location-landing-page.ecorahi-lang-toggle #glt-translate-trigger {
	bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
	right: 16px !important;
	left: auto !important;
}

@media (max-width: 991.98px) {
	.elp-layout--split {
		grid-template-columns: 1fr;
	}

	.elp-layout--split .ecorahi-map-location {
		position: static;
	}

	.elp-layout--split .ecorahi-map-location .ecorahi-map-canvas {
		min-height: 260px;
	}

	.elp-listings {
		padding: 16px 14px 18px;
	}

	.elp-listings-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	body.ecorahi-location-landing-page.ecorahi-lang-toggle #glt-translate-trigger {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
		right: 12px !important;
	}
}

@media (max-width: 640px) {
	.ecorahi-location-page {
		padding: 16px 0 48px;
	}

	.elp-hero {
		padding: 18px 16px 16px;
		margin-bottom: 18px;
	}

	.elp-hero h1 {
		font-size: 22px;
	}

	.elp-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.elp-seo {
		padding: 18px 16px;
	}
}
