/*! Wanda Search v1.3.4 | (c) 2026 Wanda Solutions — Wanda Dev | GPL-2.0-or-later | https://wandasolutions.com */
:root {
	--wps-accent: #00aeff;
	--wps-radius: 14px;
}

.wps,
.wps-results {
	--wps-text: #1d2330;
	--wps-muted: #6b7280;
	--wps-soft: #f5f7fa;
	--wps-border: #e4e7ec;
	--wps-bg: #ffffff;
	--wps-mark: rgba(0, 120, 255, .14);
	--wps-mark: color-mix(in srgb, var(--wps-accent) 18%, transparent);
	--wps-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--wps-shadow-lg: 0 18px 48px -12px rgba(16, 24, 40, .22), 0 4px 12px -4px rgba(16, 24, 40, .08);
	--wps-r-sm: calc(var(--wps-radius) * .6);
	font-family: inherit;
	color: var(--wps-text);
	line-height: 1.4;
	box-sizing: border-box;
}

.wps *,
.wps *::before,
.wps *::after,
.wps-results *,
.wps-results *::before,
.wps-results *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------------
 * Search box
 * ------------------------------------------------------------------- */

.wps { position: relative; width: 100%; max-width: 860px; margin: 0 auto; z-index: 20; }
.wps.is-open { z-index: 9999; }
.wps-form { position: relative; margin: 0; }

.wps-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 56px;
	padding: 6px 6px 6px 16px;
	background: var(--wps-bg);
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-radius);
	box-shadow: var(--wps-shadow-sm);
	transition: border-color .15s, box-shadow .15s;
}
.wps-field:focus-within {
	border-color: var(--wps-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wps-accent) 16%, transparent), var(--wps-shadow-sm);
}

.wps-icon { display: inline-flex; color: var(--wps-muted); flex: none; }

.wps .wps-input,
.wps .wps-input:focus {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 4px;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--wps-text);
	font: inherit;
	font-size: 16px; /* Avoid iOS zoom */
	-webkit-appearance: none;
	appearance: none;
}
.wps .wps-input::placeholder { color: #9aa1ad; opacity: 1; }
.wps .wps-input::-webkit-search-cancel-button { display: none; }

.wps .wps-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wps-soft);
	color: var(--wps-muted);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.wps .wps-clear:hover { background: #e9edf2; color: var(--wps-text); }
.wps .wps-clear[hidden] { display: none; }

.wps .wps-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: none;
	height: 100%;
	min-width: 44px;
	padding: 0 22px;
	margin: 0;
	border: 0;
	border-radius: var(--wps-r-sm);
	background: var(--wps-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: filter .15s, transform .1s;
}
.wps .wps-submit:hover { filter: brightness(1.06); }
.wps .wps-submit:active { transform: scale(.98); }
.wps-submit-icon { display: none; }

/* Layouts */
.wps--hero .wps-field { height: 68px; padding-left: 22px; border-color: transparent; box-shadow: var(--wps-shadow-lg); }
.wps--hero .wps .wps-input,
.wps--hero .wps-input { font-size: 18px; }
.wps--hero .wps-submit { padding: 0 30px; font-size: 16px; }

.wps--compact .wps-field { height: 46px; padding-left: 12px; }
.wps--compact .wps-submit { padding: 0; width: 34px; min-width: 34px; }
.wps--compact .wps-submit-text { display: none; }
.wps--compact .wps-submit-icon { display: block; }
.wps--compact .wps-icon { display: none; }

/* Tabs (Venta / Alquiler) */
.wps-tabs { display: flex; gap: 4px; margin: 0 0 10px; flex-wrap: wrap; }
.wps .wps-tab {
	margin: 0;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .78);
	color: var(--wps-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background .15s, color .15s;
}
.wps .wps-tab:hover { background: #fff; }
.wps .wps-tab.is-active { background: var(--wps-accent); color: #fff; }

/* Understood filters */
.wps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wps-chips[hidden], .wps-chips:empty { display: none; }
.wps .wps-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 8px 5px 11px;
	border: 1px solid #d6e4f5;
	border: 1px solid color-mix(in srgb, var(--wps-accent) 30%, transparent);
	border-radius: 999px;
	background: #f0f6fd;
	background: color-mix(in srgb, var(--wps-accent) 9%, #fff);
	color: var(--wps-text);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	animation: wps-pop .18s ease-out;
	transition: background .15s;
}
.wps .wps-chip svg { opacity: .55; }
.wps .wps-chip:hover { background: color-mix(in srgb, var(--wps-accent) 16%, #fff); }
.wps .wps-chip:hover svg { opacity: 1; }

/* Dropdown panel */
.wps-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: min(560px, 72vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px;
	background: var(--wps-bg);
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-radius);
	box-shadow: var(--wps-shadow-lg);
	text-align: left;
	animation: wps-in .14s ease-out;
}
.wps-panel[hidden] { display: none; }

.wps-sec + .wps-sec { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--wps-border); }

.wps-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: var(--wps-r-sm);
	color: inherit !important;
	text-decoration: none !important;
	cursor: pointer;
	scroll-margin: 6px;
}
.wps-opt.is-active { background: var(--wps-soft); }

.wps-sugg { padding-top: 9px; padding-bottom: 9px; }
.wps-sugg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: #eef5fd;
	background: color-mix(in srgb, var(--wps-accent) 10%, #fff);
	color: var(--wps-accent);
}
.wps-sugg-name { flex: 1; font-weight: 500; }
.wps-sugg-meta { color: var(--wps-muted); font-size: 12.5px; }

.wps-item-img {
	position: relative;
	width: 88px;
	height: 66px;
	flex: none;
	overflow: hidden;
	border-radius: var(--wps-r-sm);
	background: var(--wps-soft);
}
.wps-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wps-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wps-item-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wps-item-sub, .wps-item-meta { font-size: 12.5px; color: var(--wps-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wps-item-price-m { display: none; }
.wps-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; }
.wps-item-side .wps-price { font-size: 15px; }
.wps-item-status {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--wps-muted);
}

.wps-price { font-weight: 700; color: var(--wps-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wps-price small { margin-left: 2px; font-weight: 500; font-size: .78em; color: var(--wps-muted); }
.wps-price--na { font-weight: 600; color: var(--wps-muted); font-size: 13px !important; }

.wps mark,
.wps-results mark { background: var(--wps-mark); color: inherit; padding: 0 1px; border-radius: 3px; }

.wps-all {
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	padding: 11px;
	border-top: 1px solid var(--wps-border);
	border-radius: 0 0 var(--wps-r-sm) var(--wps-r-sm);
	color: var(--wps-accent) !important;
	font-weight: 600;
	font-size: 14px;
}
.wps-all.is-active { background: color-mix(in srgb, var(--wps-accent) 8%, #fff); }

.wps-notice {
	margin: 2px 2px 6px;
	padding: 8px 12px;
	border-radius: var(--wps-r-sm);
	background: #fff8e6;
	color: #7a5a00;
	font-size: 13px;
}
.wps-notice[hidden] { display: none; }

.wps-state {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 22px 14px;
	color: var(--wps-muted);
	font-size: 14px;
}
.wps-state--empty { flex-direction: column; gap: 4px; text-align: center; }
.wps-state--empty strong { color: var(--wps-text); font-weight: 600; }

.wps-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--wps-border);
	border-top-color: var(--wps-accent);
	border-radius: 50%;
	animation: wps-spin .7s linear infinite;
}

.wps-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #b4bac4;
	background: var(--wps-soft);
}

/* ---------------------------------------------------------------------
 * Results grid
 * ------------------------------------------------------------------- */

.wps-results { --wps-cols: 3; margin: 24px 0; }
.wps-results--inline { max-width: 1200px; margin: 28px auto; }

.wps-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.wps-count { font-weight: 600; font-size: 16px; }
.wps-results .wps-sort-select {
	height: 40px;
	margin: 0;
	padding: 0 34px 0 12px;
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-r-sm);
	background: var(--wps-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--wps-text);
	font: inherit;
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wps-grid {
	display: grid;
	/* Up to --wps-cols columns, never narrower than 250px: adapts to the container, not only the screen. */
	grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - (var(--wps-cols) - 1) * 22px) / var(--wps-cols))), 1fr));
	gap: 22px;
}

.wps-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wps-bg);
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-radius);
	box-shadow: var(--wps-shadow-sm);
	transition: box-shadow .2s, transform .2s;
	animation: wps-in .25s ease-out both;
}
.wps-card:hover { box-shadow: var(--wps-shadow-lg); transform: translateY(-2px); }

.wps-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wps-soft);
}
.wps-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.wps-card:hover .wps-card-media img { transform: scale(1.04); }
.wps-card-media .wps-noimg svg { width: 44px; height: 44px; }

.wps-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.wps-badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(17, 24, 39, .72);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .02em;
	backdrop-filter: blur(4px);
}
.wps-badge--ft { background: var(--wps-accent); }

.wps-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.wps-card-price .wps-price { font-size: 20px; color: var(--wps-accent); }
.wps-results h3.wps-card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.wps-card-title a { color: var(--wps-text) !important; text-decoration: none !important; }
.wps-card-title a:hover { color: var(--wps-accent) !important; }
.wps-card-loc { display: flex; align-items: center; gap: 5px; color: var(--wps-muted); font-size: 13.5px; }
.wps-card-loc svg { flex: none; }

.wps-results ul.wps-card-meta {
	display: flex;
	gap: 16px;
	margin: 6px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--wps-border);
	list-style: none;
	font-size: 13.5px;
	color: var(--wps-text);
}
.wps-card-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; white-space: nowrap; }
.wps-card-meta svg { color: var(--wps-muted); }

.wps-card-type {
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--wps-muted);
}
.wps-card-type span { font-weight: 500; text-transform: none; letter-spacing: 0; }

.wps-card--skeleton { animation: none; }
.wps-card--skeleton .wps-card-media,
.wps-card--skeleton .wps-card-body span {
	background: linear-gradient(90deg, #eef1f5 25%, #f7f8fa 50%, #eef1f5 75%);
	background-size: 200% 100%;
	animation: wps-shimmer 1.2s infinite;
}
.wps-card--skeleton .wps-card-body span { display: block; height: 12px; border-radius: 6px; }
.wps-card--skeleton .wps-card-body span:nth-child(1) { width: 40%; height: 18px; }
.wps-card--skeleton .wps-card-body span:nth-child(2) { width: 85%; }
.wps-card--skeleton .wps-card-body span:nth-child(3) { width: 60%; }

.wps-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 56px 20px;
	text-align: center;
	color: var(--wps-muted);
	background: var(--wps-soft);
	border-radius: var(--wps-radius);
}
.wps-empty svg { width: 40px; height: 40px; margin-bottom: 6px; color: #b4bac4; }
.wps-empty strong { color: var(--wps-text); font-size: 16px; }

.wps-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.wps-results .wps-more {
	margin: 0;
	padding: 13px 28px;
	border: 1px solid var(--wps-border);
	border-radius: 999px;
	background: var(--wps-bg);
	color: var(--wps-text);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.wps-results .wps-more:hover { border-color: var(--wps-accent); color: var(--wps-accent); }
.wps-results .wps-more[hidden] { display: none; }

.wps-results .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */

@media (max-width: 640px) {
	.wps-field, .wps--hero .wps-field { height: 54px; padding-left: 14px; }
	.wps .wps-submit { padding: 0; width: 42px; min-width: 42px; }
	.wps-submit-text { display: none; }
	.wps-submit-icon { display: block; }
	.wps-grid { gap: 16px; }
	.wps-item { align-items: flex-start; gap: 10px; }
	.wps-item-img { width: 76px; height: 60px; }
	.wps-item-side { display: none; }
	.wps-item-price-m { display: block; font-size: 14px; }
	.wps-item-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.3; }
	.wps-panel { max-height: 64vh; }
}

@media (prefers-reduced-motion: reduce) {
	.wps *, .wps-results * { animation: none !important; transition: none !important; }
}

@keyframes wps-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes wps-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes wps-spin { to { transform: rotate(360deg); } }
@keyframes wps-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* =====================================================================
 * v1.1 — Houzez portal, filters, map
 * =================================================================== */

/* Dropdown attached to a Houzez field (rendered in <body>) */
.wps-portal { position: absolute; z-index: 100000; max-width: none; margin: 0; height: 0; }
.wps-portal .wps-panel { top: 6px; }

.wps-toolbar-right { display: flex; align-items: center; gap: 8px; }

/* ---------------- Filters ---------------- */
.wps-filters {
	position: relative;
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}
.wps-fwrap { position: relative; }
.wps-results .wps-fbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--wps-border);
	border-radius: 999px;
	background: var(--wps-bg);
	color: var(--wps-text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.wps-results .wps-fbtn:hover { border-color: #c5cad3; }
.wps-results .wps-fbtn b { font-weight: 600; }
.wps-results .wps-fbtn svg { opacity: .6; transition: transform .15s; }
.wps-results .wps-fbtn.is-on { border-color: var(--wps-accent); background: #f0f6fd; background: color-mix(in srgb, var(--wps-accent) 8%, #fff); }
.wps-fwrap.is-open .wps-fbtn svg { transform: rotate(180deg); }
.wps-results .wps-fclear {
	margin: 0 0 0 4px;
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--wps-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.wps-pop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	max-width: 420px;
	max-height: 60vh;
	overflow: auto;
	padding: 12px;
	background: var(--wps-bg);
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-radius);
	box-shadow: var(--wps-shadow-lg);
	animation: wps-in .14s ease-out;
}
.wps-fopts { display: flex; flex-direction: column; gap: 2px; }
.wps-results .wps-fopt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 9px 12px;
	border: 0;
	border-radius: var(--wps-r-sm);
	background: none;
	color: var(--wps-text);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.wps-results .wps-fopt:hover { background: var(--wps-soft); }
.wps-results .wps-fopt.is-on { background: #f0f6fd; background: color-mix(in srgb, var(--wps-accent) 10%, #fff); color: var(--wps-accent); font-weight: 600; }
.wps-fopt em, .wps-fcheck em { font-style: normal; font-size: 12px; color: var(--wps-muted); }

.wps-fseg { display: flex; flex-wrap: wrap; gap: 6px; }
.wps-results .wps-fseg .wps-fopt {
	width: auto;
	padding: 8px 14px;
	border: 1px solid var(--wps-border);
	border-radius: 999px;
}
.wps-results .wps-fseg .wps-fopt.is-on { border-color: var(--wps-accent); }

.wps-fchecks { display: flex; flex-direction: column; gap: 2px; }
.wps-fchecks--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.wps-fcheck {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border-radius: var(--wps-r-sm);
	font-size: 14px;
	cursor: pointer;
}
.wps-fcheck:hover { background: var(--wps-soft); }
.wps-fcheck span { flex: 1; }
.wps-results .wps-fcheck input { width: 16px; height: 16px; margin: 0; accent-color: var(--wps-accent); }
.wps-fsub { margin: 6px 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wps-muted); }
.wps-fsub:not(:first-child) { margin-top: 16px; }

.wps-frange { display: flex; align-items: center; gap: 8px; }
.wps-results .wps-frange input {
	width: 120px;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-r-sm);
	background: var(--wps-bg);
	color: var(--wps-text);
	font: inherit;
	font-size: 15px;
}
.wps-results .wps-frange input:focus { outline: 0; border-color: var(--wps-accent); box-shadow: 0 0 0 3px rgba(0, 120, 255, .12); }
.wps-fhint { margin: 8px 2px 0; font-size: 12px; color: var(--wps-muted); }
.wps-factions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.wps-results .wps-fapply {
	margin: 0;
	padding: 9px 18px;
	border: 0;
	border-radius: var(--wps-r-sm);
	background: var(--wps-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.wps-results .wps-flink { margin: 0; padding: 6px 2px; border: 0; background: none; color: var(--wps-muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }

/* ---------------- Map layout ---------------- */
.wps-results--map .wps-body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
.wps-map-wrap {
	position: sticky;
	top: 24px;
	height: var(--wps-map-h, calc(100vh - 48px));
	min-height: 420px;
	overflow: hidden;
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-radius);
	background: #eef1f4;
}
.wps-map { position: absolute; inset: 0; z-index: 1; font: inherit; }
.wps-map-move {
	position: absolute;
	top: 12px;
	left: 50%;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	transform: translateX(-50%);
	background: var(--wps-bg);
	border-radius: 999px;
	box-shadow: var(--wps-shadow-sm), 0 4px 14px rgba(16, 24, 40, .12);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}
.wps-map-move input { margin: 0; accent-color: var(--wps-accent); }

.wps-results .wps-maptoggle {
	display: none;
	align-items: center;
	gap: 6px;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-r-sm);
	background: var(--wps-bg);
	color: var(--wps-text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.leaflet-marker-icon.wps-pin-wrap { background: none; border: 0; width: 0 !important; height: 0 !important; }
.wps-pin {
	position: absolute;
	transform: translate(-50%, -100%);
	display: inline-block;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--wps-bg, #fff);
	color: #1d2330;
	font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .2), 0 2px 8px rgba(16, 24, 40, .16);
	transition: transform .12s, background .12s, color .12s;
}
.wps-pin::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	margin-left: -5px;
	border: 5px solid transparent;
	border-bottom: 0;
	border-top-color: #fff;
}
.wps-pin--ft { background: var(--wps-accent); color: #fff; }
.wps-pin--ft::after { border-top-color: var(--wps-accent); }
.wps-pin-wrap.is-hover { z-index: 9999 !important; }
.wps-pin-wrap.is-hover .wps-pin { background: #1d2330; color: #fff; transform: translate(-50%, -100%) scale(1.12); }
.wps-pin-wrap.is-hover .wps-pin::after { border-top-color: #1d2330; }

.leaflet-marker-icon.wps-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wps-accent);
	background: color-mix(in srgb, var(--wps-accent) 88%, #000);
	color: #fff;
	font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 0 0 6px rgba(0, 120, 255, .18);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--wps-accent) 22%, transparent);
}

.wps-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 12px; }
.wps-popup .leaflet-popup-content { margin: 0; width: 240px !important; }
.wps-mini { display: block; color: #1d2330 !important; text-decoration: none !important; font-family: inherit; }
.wps-mini-img { display: block; height: 140px; background: #f5f7fa; }
.wps-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wps-mini-img .wps-noimg { height: 100%; }
.wps-mini-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; font-size: 12.5px; color: #6b7280; }
.wps-mini-body .wps-price { font-size: 16px; color: var(--wps-accent); }
.wps-mini-body strong { color: #1d2330; font-size: 13.5px; font-weight: 600; line-height: 1.3; }

@media (max-width: 900px) {
	.wps-results--map .wps-body { display: block; }
	.wps-results--map .wps-map-wrap { display: none; position: relative; top: 0; height: 72vh; }
	.wps-results--map.show-map .wps-map-wrap { display: block; }
	.wps-results--map.show-map .wps-list { display: none; }
	.wps-results .wps-maptoggle { display: inline-flex; }
}

@media (max-width: 640px) {
	.wps-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.wps-filters::-webkit-scrollbar { display: none; }
	.wps-pop {
		position: fixed;
		top: auto;
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
		max-height: 70vh;
		z-index: 100000;
	}
	.wps-fchecks--2 { grid-template-columns: 1fr; }
	.wps-portal .wps-panel { left: 0; right: 0; }
}
.wps-fwrap:last-of-type .wps-pop { left: auto; right: 0; }

/* =====================================================================
 * v1.2 — Portal page (Wanda design): search console, header, cards,
 * filter drawer, pager
 * =================================================================== */

html.wps-noscroll { overflow: hidden; }

/* ---------------- Search console (sticky) ---------------- */
.wps-results--bar { margin-top: 0; }
.wps-bar {
	position: sticky;
	top: var(--wps-sticky-top, 0px);
	z-index: 60;
	margin: 0 0 20px;
	padding: 12px 0;
	background: linear-gradient(var(--wps-bg) 70%, rgba(255, 255, 255, 0));
}
body.admin-bar .wps-bar { top: calc(var(--wps-sticky-top, 0px) + 32px); }
@media (max-width: 782px) { body.admin-bar .wps-bar { top: calc(var(--wps-sticky-top, 0px) + 46px); } }
.wps-bar-inner {
	display: flex;
	align-items: stretch;
	min-height: 62px;
	background: var(--wps-bg);
	border: 1px solid var(--wps-border);
	border-radius: var(--wps-radius);
	box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .35), var(--wps-shadow-sm);
}
.wps-bar .wps--inbar { flex: 1 1 300px; min-width: 200px; max-width: none; margin: 0; }
.wps-bar .wps--inbar .wps-field { height: 100%; min-height: 60px; padding: 0 8px 0 18px; border: 0; border-radius: var(--wps-radius) 0 0 var(--wps-radius); background: transparent; box-shadow: none; }
.wps-bar .wps--inbar .wps-field:focus-within { box-shadow: inset 0 -3px 0 var(--wps-accent); }
.wps-bar .wps--inbar .wps-icon { display: inline-flex; color: var(--wps-accent); }
.wps-bar .wps--inbar .wps-chips { display: none; }
.wps-bar .wps--inbar .wps-panel { top: calc(100% + 10px); min-width: 340px; }
.wps-bar .wps-filters { display: flex; flex: 0 1 auto; flex-wrap: nowrap; gap: 0; margin: 0; }
.wps-bar .wps-fwrap { display: flex; border-left: 1px solid var(--wps-border); }
.wps-bar .wps-fbtn {
	height: auto;
	min-height: 60px;
	padding: 0 14px 0 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: left;
}
.wps-bar .wps-fbtn:hover { background: var(--wps-soft); }
.wps-bar .wps-fbtn.is-on { background: transparent; }
.wps-bar .wps-fbtn.is-on .wps-seg span { color: var(--wps-accent); }
.wps-bar .wps-fwrap.is-open .wps-fbtn { background: var(--wps-soft); }
.wps-seg { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.2; }
.wps-seg small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wps-muted); }
.wps-seg span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--wps-text); }
.wps-bar .wps-fwrap:last-child .wps-fbtn { padding: 0 18px; border-radius: 0 var(--wps-radius) var(--wps-radius) 0; background: #f0f6fd; background: color-mix(in srgb, var(--wps-accent) 8%, #fff); color: var(--wps-accent); }
.wps-bar .wps-fwrap:last-child .wps-fbtn:hover { background: color-mix(in srgb, var(--wps-accent) 14%, #fff); }
.wps-seg-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wps-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wps-accent); color: #fff; font-size: 12px; font-style: normal; }
.wps-results .wps-fbtn .wps-fx { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 6px; color: var(--wps-muted); }
.wps-results .wps-fbtn .wps-fx:hover { background: rgba(0, 0, 0, .07); color: var(--wps-text); }
.wps-results .wps-fbtn .wps-fx svg { transform: none !important; opacity: 1; }
.wps-bar .wps-pop { top: calc(100% + 10px); }

.wps-rooms { min-width: 320px; }
.wps-rooms .wps-fsub { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--wps-text); }
.wps-rooms .wps-fsub svg { color: var(--wps-accent); }
.wps-results .wps-fseg .wps-fopt { border-radius: 10px; }

.wps-switch { display: flex; align-items: center; gap: 10px; margin: 10px 2px 4px; font-size: 14px; cursor: pointer; user-select: none; }
.wps-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wps-switch-ui { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #d5d9e0; transition: background .15s; flex: none; }
.wps-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.wps-switch input:checked + .wps-switch-ui { background: var(--wps-accent); }
.wps-switch input:checked + .wps-switch-ui::after { transform: translateX(16px); }
.wps-switch input:focus-visible + .wps-switch-ui { outline: 2px solid var(--wps-accent); outline-offset: 2px; }

/* ---------------- Header ---------------- */
.wps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wps-results h2.wps-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--wps-text); }
.wps-head .wps-count { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--wps-muted); }
.wps-head .wps-count b { color: var(--wps-text); font-weight: 600; }
.wps-head .wps-count span::before { content: "·"; margin-right: 8px; }
.wps-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--wps-muted); }
.wps-crumbs a { color: var(--wps-muted) !important; text-decoration: none !important; }
.wps-crumbs [aria-current] { color: var(--wps-text); font-weight: 600; }
.wps-head-side { display: flex; align-items: center; gap: 8px; flex: none; }

.wps-results .wps-sort--box { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 4px 0 12px; border: 1px solid var(--wps-border); border-radius: 10px; color: var(--wps-muted); }
.wps-results .wps-sort--box .wps-sort-select { height: 38px; padding: 0 26px 0 2px; border: 0; background-position: right 6px center; color: var(--wps-text); font-weight: 500; }
.wps-views { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--wps-border); border-radius: 10px; background: var(--wps-bg); }
.wps-results .wps-views button,
.wps-results .wps-favtoggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	min-width: 36px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--wps-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.wps-results .wps-views button:hover { color: var(--wps-text); }
.wps-results .wps-views button.is-active { background: var(--wps-text); color: #fff; }
.wps-results .wps-favtoggle { height: 40px; padding: 0 12px; border: 1px solid var(--wps-border); border-radius: 10px; }
.wps-results .wps-favtoggle[aria-pressed="true"] { border-color: #ef4444; color: #dc2626; background: #fef2f2; }
.wps-results .wps-favtoggle[aria-pressed="true"] svg { fill: currentColor; }
.wps-favtoggle span:empty { display: none; }

.wps-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--wps-accent) 35%, var(--wps-border)); border-radius: var(--wps-radius); background: #fafcff; }
.wps-applied[hidden] { display: none; }
.wps-applied-label { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--wps-muted); }
.wps-results .wps-applied-clear { margin: 0 0 0 auto; padding: 4px 6px; border: 0; background: none; color: var(--wps-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wps-applied .wps-chip, .wps-drawer-summary .wps-chip {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 8px 5px 11px;
	border: 1px solid color-mix(in srgb, var(--wps-accent) 30%, transparent); border-radius: 999px;
	background: color-mix(in srgb, var(--wps-accent) 9%, #fff); color: var(--wps-text);
	font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.wps-applied .wps-chip svg, .wps-drawer-summary .wps-chip svg { opacity: .55; }

/* ---------------- Cards (Wanda horizontal layout) ---------------- */
.wps-grid.wps-grid--list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wps-card--h { flex-direction: row; gap: 0; padding: 10px; min-height: 240px; border-radius: calc(var(--wps-radius) + 4px); }
.wps-card--h:hover { transform: none; border-color: color-mix(in srgb, var(--wps-accent) 35%, var(--wps-border)); }
.wps-card--h .wps-card-media { flex: 0 0 min(38%, 360px); aspect-ratio: auto; min-height: 220px; border-radius: var(--wps-radius); }
.wps-card--h .wps-card-body { padding: 8px 10px 4px 22px; gap: 10px; min-width: 0; }
.wps-card-img { display: block; position: absolute; inset: 0; }
.wps-card:not(.wps-card--h) .wps-card-img { position: static; height: 100%; }
.wps-card--h .wps-card-media img { height: 100%; }

.wps-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wps-card-head-main { min-width: 0; }
.wps-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--wps-accent); }
.wps-eyebrow span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--wps-muted); }
.wps-results .wps-card--h h3.wps-card-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.wps-card--h .wps-card-loc { margin-top: 6px; font-size: 14px; }
.wps-pricebox { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 8px 14px; border-radius: 12px; background: var(--wps-soft); text-align: right; }
.wps-pricebox .wps-price { font-size: 22px; color: var(--wps-text); }
.wps-ppm { font-size: 12px; color: var(--wps-muted); font-variant-numeric: tabular-nums; }
.wps-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.wps-spec { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--wps-border); border-radius: 10px; font-size: 13.5px; color: var(--wps-muted); }
.wps-spec b { font-weight: 700; color: var(--wps-text); }
.wps-spec svg { color: var(--wps-accent); }
.wps-card-excerpt { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.55; color: var(--wps-muted); }
.wps-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--wps-border); }
.wps-adv { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wps-adv img, .wps-adv-ini { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--wps-soft); border: 1px solid var(--wps-border); }
.wps-adv-ini { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--wps-accent); }
.wps-adv-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wps-adv-txt small { font-size: 11.5px; color: var(--wps-muted); }
.wps-adv-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.wps-card-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.wps-results .wps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: filter .15s, background .15s, transform .1s; }
.wps-results .wps-btn:active { transform: scale(.98); }
.wps-results .wps-btn--primary { background: var(--wps-text); color: #fff !important; }
.wps-results .wps-btn--primary:hover { background: var(--wps-accent); }
.wps-results .wps-btn--wa { background: #25d366; color: #fff !important; }
.wps-results .wps-btn--wa:hover { filter: brightness(.95); }
.wps-results .wps-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--wps-border); border-radius: 10px; color: var(--wps-text) !important; }
.wps-results .wps-iconbtn:hover { border-color: var(--wps-accent); color: var(--wps-accent) !important; }

/* Featured: ribbon + accent edge */
.wps-card--h.is-featured { box-shadow: inset 4px 0 0 var(--wps-accent), var(--wps-shadow-sm); }
.wps-ribbon { position: absolute; top: 12px; left: 0; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 10px; border-radius: 0 999px 999px 0; background: var(--wps-accent); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.wps-card--h .wps-badges { top: auto; bottom: 12px; left: 12px; }
.wps-card--h .wps-ribbon + .wps-badges, .wps-card--h .wps-badges { flex-direction: row; }
.wps-badge--label { background: rgba(255, 255, 255, .95); color: #1d2330; }

/* Gallery, favorites */
.wps-card-media[data-n] { cursor: pointer; }
.wps-card-media.is-loading { cursor: progress; }
.wps-results .wps-gal-prev, .wps-results .wps-gal-next {
	position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; margin: -16px 0 0; padding: 0; border: 0; border-radius: 10px;
	background: rgba(17, 24, 39, .55); color: #fff; backdrop-filter: blur(4px); cursor: pointer; opacity: 0; transition: opacity .15s;
}
.wps-results .wps-gal-prev { left: 10px; }
.wps-results .wps-gal-next { right: 10px; }
.wps-card-media:hover .wps-gal-prev, .wps-card-media:hover .wps-gal-next, .wps-gal-prev:focus-visible, .wps-gal-next:focus-visible { opacity: 1; }
@media (hover: none) { .wps-results .wps-gal-prev, .wps-results .wps-gal-next { opacity: .85; } }
.wps-gal-dots { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: flex; gap: 5px; transform: translateX(-50%); }
.wps-gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: width .2s, background .2s; }
.wps-gal-dots i.is-on { width: 16px; border-radius: 3px; background: #fff; }
.wps-gal-count { position: absolute; top: 12px; right: 52px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(17, 24, 39, .6); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wps-card--h .wps-gal-dots { bottom: 16px; left: auto; right: 14px; transform: none; }
.wps-results .wps-fav {
	position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .95);
	color: #1d2330; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: pointer; transition: transform .12s;
}
.wps-results .wps-fav svg { width: 18px; height: 18px; }
.wps-results .wps-fav:hover { transform: scale(1.06); }
.wps-results .wps-fav.is-on { color: #ef4444; }
.wps-results .wps-fav.is-on svg { fill: currentColor; }

.wps-card--skeleton.wps-card--h .wps-card-media { min-height: 220px; }
.wps-card--skeleton.wps-card--h .wps-card-body { padding-top: 22px; }

/* ---------------- Pager with progress ---------------- */
.wps-pager { margin-top: 28px; }
.wps-pager:empty { display: none; }
.wps-progress { height: 4px; margin-bottom: 12px; overflow: hidden; border-radius: 999px; background: var(--wps-soft); }
.wps-progress span { display: block; height: 100%; border-radius: 999px; background: var(--wps-accent); transition: width .3s; }
.wps-pager-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wps-pager-info { font-size: 14px; color: var(--wps-muted); }
.wps-pager-nums { display: flex; align-items: center; gap: 4px; }
.wps-results .wps-page { min-width: 38px; height: 38px; margin: 0; padding: 0 10px; border: 1px solid var(--wps-border); border-radius: 10px; background: var(--wps-bg); color: var(--wps-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wps-results .wps-page:hover:not([disabled]) { border-color: var(--wps-accent); color: var(--wps-accent); }
.wps-results .wps-page.is-current { border-color: var(--wps-text); background: var(--wps-text); color: #fff; }
.wps-results .wps-page--nav { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wps-results .wps-page[disabled] { opacity: .35; cursor: default; }
.wps-page-gap { padding: 0 4px; color: var(--wps-muted); }

/* ---------------- Filter drawer (slides in from the right) ---------------- */
.wps-modal { position: fixed; inset: 0; z-index: 100001; }
.wps-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); backdrop-filter: blur(2px); animation: wps-fade .15s ease-out; }
.wps-drawer .wps-modal-box {
	position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
	width: min(460px, 100%); background: var(--wps-bg); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); animation: wps-slide .22s ease-out;
}
.wps-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.wps-modal-head strong { font-size: 20px; font-weight: 700; }
.wps-results .wps-modal-x { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--wps-border); border-radius: 10px; background: none; color: var(--wps-text); cursor: pointer; }
.wps-results .wps-modal-x:hover { background: var(--wps-soft); }
.wps-results .wps-modal-x svg { width: 14px; height: 14px; }
.wps-drawer-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 14px; border-bottom: 1px solid var(--wps-border); }
.wps-drawer-hint { font-size: 13.5px; color: var(--wps-muted); }
.wps-modal-main { display: flex; flex: 1; min-height: 0; }
.wps-modal-content { flex: 1; overflow-y: auto; padding: 0 22px 20px; }
.wps-msec { border-bottom: 1px solid var(--wps-border); }
.wps-results .wps-msec-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding: 16px 0; border: 0; background: none; color: var(--wps-text); font: inherit; font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; }
.wps-msec-head > span { display: inline-flex; align-items: center; gap: 8px; }
.wps-msec-head svg { transition: transform .2s; opacity: .6; }
.wps-msec.is-open .wps-msec-head svg { transform: rotate(180deg); }
.wps-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wps-accent); }
.wps-msec-body { display: none; padding: 0 0 18px; }
.wps-msec.is-open .wps-msec-body { display: block; }
.wps-mpills { display: flex; flex-wrap: wrap; gap: 8px; }
.wps-results .wps-mpill { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 13px; border: 1px solid var(--wps-border); border-radius: 10px; background: var(--wps-bg); color: var(--wps-text); font: inherit; font-size: 14px; cursor: pointer; }
.wps-results .wps-mpill:hover { border-color: #c5cad3; }
.wps-results .wps-mpill.is-on { border-color: var(--wps-text); background: var(--wps-text); color: #fff; }
.wps-results .wps-mpill svg { color: var(--wps-accent); }
.wps-results .wps-mpill.is-on svg { color: #fff; }
.wps-results .wps-mmore { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--wps-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wps-results .wps-minput { width: 100%; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--wps-border); border-radius: 10px; background: var(--wps-bg); color: var(--wps-text); font: inherit; font-size: 15px; }
.wps-results .wps-minput:focus { outline: 0; border-color: var(--wps-accent); box-shadow: 0 0 0 3px rgba(0, 120, 255, .12); }
.wps-modal .wps-frange { display: flex; align-items: center; gap: 8px; }
.wps-results .wps-modal .wps-frange .wps-minput { flex: 1 1 0; width: 100%; min-width: 0; }
.wps-mlocs { display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 220px; margin-top: 10px; overflow-y: auto; }
.wps-mlocs [hidden] { display: none; }
.wps-mlocs small { color: var(--wps-muted); }
.wps-modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--wps-border); background: var(--wps-bg); }
.wps-results .wps-modal-clear { height: 48px; margin: 0; padding: 0 18px; border: 1px solid var(--wps-border); border-radius: 10px; background: none; color: var(--wps-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.wps-results .wps-modal-apply { flex: 1; height: 48px; margin: 0; border: 0; border-radius: 10px; background: var(--wps-accent); color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.wps-results .wps-modal-apply:hover { filter: brightness(1.06); }

/* ---------------- Map toggle ---------------- */
.wps-results--map-toggle .wps-body { display: block; }
.wps-results--map-toggle .wps-map-wrap { display: none; position: relative; top: 0; height: var(--wps-map-h, 72vh); }
.wps-results--map-toggle.show-map .wps-map-wrap { display: block; }
.wps-results--map-toggle.show-map .wps-list { display: none; }

@keyframes wps-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wps-slide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.wps-bar-inner { flex-wrap: wrap; }
	.wps-bar .wps--inbar { flex: 1 1 100%; border-bottom: 1px solid var(--wps-border); }
	.wps-bar .wps--inbar .wps-field { min-height: 54px; border-radius: var(--wps-radius) var(--wps-radius) 0 0; }
	.wps-bar .wps-filters { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
	.wps-bar .wps-filters::-webkit-scrollbar { display: none; }
	.wps-bar .wps-fwrap:first-child { border-left: 0; }
	.wps-bar .wps-fbtn { min-height: 54px; }
	.wps-bar .wps-fwrap:last-child { margin-left: auto; }
	.wps-bar .wps-fwrap:last-child .wps-fbtn { border-radius: 0 0 var(--wps-radius) 0; }
}
@media (max-width: 900px) {
	.wps-head { flex-direction: column; align-items: flex-start; }
	.wps-head-side { width: 100%; }
	.wps-head-side .wps-sort--box { flex: 1; }
	.wps-head-side .wps-sort--box .wps-sort-select { width: 100%; }
}
@media (max-width: 640px) {
	.wps-results h2.wps-title { font-size: 21px; }
	.wps-card--h { flex-direction: column; padding: 8px; }
	.wps-card--h .wps-card-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
	.wps-card--h .wps-card-body { padding: 12px 6px 4px; }
	.wps-card-head { flex-direction: column-reverse; gap: 8px; }
	.wps-pricebox { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; background: none; }
	.wps-card-foot { flex-direction: column; align-items: stretch; }
	.wps-card-actions { flex-wrap: wrap; }
	.wps-card-actions .wps-btn { flex: 1; white-space: nowrap; }
	.wps-card-actions .wps-btn--primary { flex-basis: 100%; }
	.wps-pager-row { justify-content: center; }
	.wps-pager-info { width: 100%; text-align: center; }
	.wps-drawer .wps-modal-box { width: 100%; }
	/* Las opciones se abren justo debajo de la barra, a todo su ancho, igual para cada filtro:
	   cerca del dedo y por encima del teclado (Precio). La barra es la referencia, no el botón,
	   para que el desplazamiento horizontal de los filtros no las recorte. */
	.wps-bar-inner { position: relative; }
	.wps-bar .wps-filters, .wps-bar .wps-fwrap { position: static; }
	.wps-bar .wps-filters .wps-pop {
		position: absolute;
		top: calc(100% + 8px);
		bottom: auto;
		left: 0;
		right: 0;
		min-width: 0;
		max-width: none;
		max-height: min(60vh, 480px);
		z-index: 5;
	}
	/* La barra fija crea su propio apilamiento: con opciones abiertas va por encima de botones flotantes (WhatsApp, chat). */
	.wps-bar:has(.wps-pop) { z-index: 2147483000; }
	.wps-seg span { max-width: 110px; font-size: 14px; }
}
.wps-sort--box, .wps-sort--text { white-space: nowrap; }

/* Crédito Wanda Dev bajo los resultados */
.wps-credit{display:flex;align-items:center;justify-content:center;gap:6px;margin:28px 0 8px;font-size:12px;line-height:1;color:#8a909b;letter-spacing:.01em}
.wps-credit a{color:inherit;font-weight:600;text-decoration:none}
.wps-credit a:hover{color:var(--wps-accent,#1f6feb)}
.wps-credit .wanda-dev-mark{opacity:.85}
