/* ==========================================================================
   Estately · Archive de propiedades
   ========================================================================== */

.est-archive {
	--est-navy: #233d66;
	--est-navy-deep: #0f2442;
	--est-blue: #0091ff;
	--est-blue-soft: #e6f3ff;
	--est-accent: #f84f2f;
	--est-bg: #f2f7fd;
	--est-ink: #16243b;
	--est-text: #3d4b61;
	--est-muted: #74839a;
	--est-line: #e2e9f2;
	--est-white: #fff;
	--est-radius: 18px;
	--est-radius-sm: 12px;
	--est-shadow: 0 1px 2px rgba(16, 36, 66, .04), 0 4px 16px rgba(16, 36, 66, .06);
	--est-shadow-lg: 0 2px 6px rgba(16, 36, 66, .06), 0 18px 40px rgba(16, 36, 66, .14);
	--est-ease: cubic-bezier(.2, .7, .2, 1);
	--est-font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
	--est-font-display: "Barlow", "Quicksand", system-ui, sans-serif;

	background: var(--est-bg);
	color: var(--est-text);
	font-family: var(--est-font);
	font-size: 15px;
	line-height: 1.5;
	padding-bottom: 80px;
}

.est-archive *,
.est-archive *::before,
.est-archive *::after {
	box-sizing: border-box;
}

.est-archive h1,
.est-archive h2,
.est-archive h3,
.est-archive p {
	margin: 0;
}

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

.est-container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

.est-icon {
	flex-shrink: 0;
}

/* Inputs nativos ocultos pero accesibles (radios y checkboxes estilizados) */
.est-tabs input,
.est-views input,
.est-pill input,
.est-check-chip input,
.est-segment input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.est-archive .est-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: 600 15px/1 var(--est-font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--est-ease);
	white-space: nowrap;
}

.est-archive .est-btn:focus-visible,
.est-archive .est-link:focus-visible,
.est-archive .est-chip:focus-visible,
.est-archive .est-iconbtn:focus-visible {
	outline: 3px solid rgba(0, 145, 255, .35);
	outline-offset: 2px;
}

.est-archive .est-btn--primary {
	background: var(--est-navy);
	color: var(--est-white);
}

.est-archive .est-btn--primary:hover {
	background: var(--est-navy-deep);
	color: var(--est-white);
	transform: translateY(-1px);
}

.est-archive .est-btn--outline {
	background: var(--est-white);
	border-color: var(--est-line);
	color: var(--est-ink);
}

.est-archive .est-btn--outline:hover {
	border-color: var(--est-navy);
	color: var(--est-navy);
}

.est-archive .est-btn--ghost {
	background: transparent;
	color: var(--est-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.est-archive .est-btn--block {
	width: 100%;
	margin-top: 8px;
}

.est-archive .est-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--est-blue);
	font: 600 14px/1.2 var(--est-font);
	cursor: pointer;
}

.est-archive .est-link:hover {
	color: var(--est-navy);
	background: none;
}

.est-archive .est-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--est-bg);
	color: var(--est-ink);
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero + buscador
   -------------------------------------------------------------------------- */

.est-hero {
	position: relative;
	padding: 64px 0 96px;
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(0, 145, 255, .35), transparent 60%),
		radial-gradient(800px 300px at 0% 120%, rgba(248, 79, 47, .18), transparent 60%),
		linear-gradient(135deg, var(--est-navy-deep), var(--est-navy));
	color: var(--est-white);
	overflow: hidden;
}

.est-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
	pointer-events: none;
}

.est-hero .est-container {
	position: relative;
	z-index: 1;
}

.est-hero__eyebrow {
	margin-bottom: 10px;
	color: rgba(255, 255, 255, .7);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.est-archive .est-hero__title {
	max-width: 720px;
	color: var(--est-white);
	font: 700 clamp(30px, 4.2vw, 48px)/1.08 var(--est-font-display);
	letter-spacing: -.01em;
}

.est-hero__search {
	max-width: 860px;
	margin-top: 32px;
}

.est-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px 999px 0 0;
	background: rgba(255, 255, 255, .12);
	backdrop-filter: blur(8px);
}

.est-tabs__item span {
	display: block;
	padding: 9px 20px;
	border-radius: 999px;
	color: rgba(255, 255, 255, .85);
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.est-tabs__item span:hover {
	color: var(--est-white);
}

.est-tabs__item input:checked + span {
	background: var(--est-white);
	color: var(--est-navy);
}

.est-tabs__item input:focus-visible + span {
	outline: 3px solid rgba(255, 255, 255, .5);
}

.est-searchbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 22px;
	border-radius: 0 999px 999px 999px;
	background: var(--est-white);
	color: var(--est-muted);
	box-shadow: 0 20px 50px rgba(5, 18, 38, .35);
}

.est-archive .est-searchbar input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--est-ink);
	font: 500 16px var(--est-font);
}

.est-archive .est-searchbar input::placeholder {
	color: var(--est-muted);
}

.est-archive .est-searchbar .est-btn {
	min-height: 52px;
	padding: 0 30px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.est-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin-top: -40px;
	position: relative;
}

/* --------------------------------------------------------------------------
   Sidebar de filtros
   -------------------------------------------------------------------------- */

.est-sidebar {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 22px;
	border-radius: var(--est-radius);
	background: var(--est-white);
	box-shadow: var(--est-shadow);
	scrollbar-width: thin;
}

.admin-bar .est-sidebar {
	top: 56px;
	max-height: calc(100vh - 80px);
}

.est-drawer__head,
.est-drawer__foot,
.est-backdrop {
	display: none;
}

.est-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.est-archive .est-filters__head h2 {
	color: var(--est-ink);
	font: 700 20px/1.2 var(--est-font-display);
}

.est-group {
	min-width: 0;
	margin: 0;
	padding: 18px 0;
	border: 0;
	border-top: 1px solid var(--est-line);
}

.est-filters__head + .est-group {
	border-top: 0;
}

.est-group__title {
	float: left;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	color: var(--est-ink);
	font-size: 14px;
	font-weight: 700;
}

.est-group__title + * {
	clear: both;
}

/* Chips de selección múltiple */
.est-chipset {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.est-pills {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 6px;
}

.est-pill span {
	width: 100%;
	padding: 6px 4px;
}

.est-check-chip span,
.est-pill span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--est-line);
	border-radius: 999px;
	background: var(--est-white);
	color: var(--est-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s, background-color .15s, color .15s;
}

.est-check-chip span:hover,
.est-pill span:hover {
	border-color: var(--est-navy);
}

.est-check-chip input:checked + span,
.est-pill input:checked + span {
	border-color: var(--est-navy);
	background: var(--est-navy);
	color: var(--est-white);
}

.est-check-chip input:focus-visible + span,
.est-pill input:focus-visible + span,
.est-segment input:focus-visible + span,
.est-views input:focus-visible + span {
	outline: 3px solid rgba(0, 145, 255, .35);
	outline-offset: 2px;
}

.est-strata {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 6px;
}

.est-check-chip--square span {
	width: 100%;
	padding: 0;
	border-radius: 10px;
}

/* Segmento (estado) */
.est-segment {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	padding: 4px;
	border-radius: 12px;
	background: var(--est-bg);
}

.est-segment span {
	display: block;
	padding: 8px 6px;
	border-radius: 9px;
	color: var(--est-muted);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}

.est-segment input:checked + span {
	background: var(--est-white);
	color: var(--est-navy);
	box-shadow: 0 1px 3px rgba(16, 36, 66, .12);
}

/* Mín / máx */
.est-minmax {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.est-minmax label {
	flex: 1;
	min-width: 0;
}

.est-minmax label span {
	display: block;
	margin-bottom: 4px;
	color: var(--est-muted);
	font-size: 12px;
	font-weight: 600;
}

.est-archive .est-minmax input {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--est-line);
	border-radius: 10px;
	background: var(--est-white);
	color: var(--est-ink);
	font: 600 14px var(--est-font);
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
	-moz-appearance: textfield;
}

.est-archive .est-minmax input::-webkit-outer-spin-button,
.est-archive .est-minmax input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.est-archive .est-minmax input:focus {
	border-color: var(--est-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 145, 255, .15);
}

.est-minmax__sep {
	padding-bottom: 10px;
	color: var(--est-muted);
}

/* Slider doble */
.est-range {
	position: relative;
	height: 28px;
	margin: 2px 8px 14px;
}

.est-range[hidden] {
	display: none;
}

.est-range__track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 4px;
	background: var(--est-line);
	transform: translateY(-50%);
}

.est-range__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 4px;
	background: var(--est-navy);
}

.est-archive .est-range__thumb {
	position: absolute;
	top: 0;
	left: -8px;
	width: calc(100% + 16px);
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.est-range__thumb::-webkit-slider-runnable-track {
	background: transparent;
	border: 0;
}

.est-range__thumb::-moz-range-track {
	background: transparent;
	border: 0;
}

.est-range__thumb::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	border: 2px solid var(--est-navy);
	border-radius: 50%;
	background: var(--est-white);
	box-shadow: 0 2px 6px rgba(16, 36, 66, .25);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.est-range__thumb::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--est-navy);
	border-radius: 50%;
	background: var(--est-white);
	box-shadow: 0 2px 6px rgba(16, 36, 66, .25);
	cursor: grab;
	pointer-events: auto;
}

.est-range__thumb:active::-webkit-slider-thumb {
	cursor: grabbing;
	transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */

.est-results {
	min-width: 0;
}

.est-toolbar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 14px 14px 22px;
	border-radius: var(--est-radius);
	background: var(--est-white);
	box-shadow: var(--est-shadow);
	overflow: hidden;
}

/* Barra de progreso mientras carga */
.est-toolbar::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 40%;
	background: linear-gradient(90deg, transparent, var(--est-blue), transparent);
	transform: translateX(-100%);
	opacity: 0;
}

.est-archive.is-loading .est-toolbar::after {
	opacity: 1;
	animation: est-progress 1s var(--est-ease) infinite;
}

@keyframes est-progress {
	to {
		transform: translateX(260%);
	}
}

.est-toolbar__count {
	color: var(--est-text);
	font-size: 15px;
}

.est-archive .est-toolbar__count span {
	color: var(--est-text);
	background: none;
	-webkit-text-fill-color: currentColor;
}

.est-toolbar__count strong {
	color: var(--est-ink);
	font: 700 22px/1 var(--est-font-display);
	margin-right: 4px;
}

.est-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.est-filters-toggle {
	display: none !important;
}

.est-dot {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--est-accent);
	color: var(--est-white);
	font-size: 12px;
	font-weight: 700;
}

.est-dot[hidden] {
	display: none;
}

.est-select {
	position: relative;
	display: block;
}

.est-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--est-muted);
	border-bottom: 2px solid var(--est-muted);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.est-archive .est-select select {
	height: 44px;
	margin: 0;
	padding: 0 40px 0 16px;
	border: 1px solid var(--est-line);
	border-radius: 999px;
	background: var(--est-white);
	color: var(--est-ink);
	font: 600 14px var(--est-font);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.est-views {
	display: flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--est-bg);
}

.est-views__item span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--est-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}

.est-views__item em {
	font-style: normal;
}

.est-views__item input:checked + span {
	background: var(--est-white);
	color: var(--est-navy);
	box-shadow: 0 1px 3px rgba(16, 36, 66, .12);
}

/* Chips activos */
.est-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.est-chips[hidden] {
	display: none;
}

.est-archive .est-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px 0 14px;
	border: 1px solid #cfe5fb;
	border-radius: 999px;
	background: var(--est-blue-soft);
	color: var(--est-navy);
	font: 600 13px/1 var(--est-font);
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.est-archive .est-chip:hover {
	border-color: var(--est-navy);
	background: var(--est-white);
	color: var(--est-navy);
}

/* --------------------------------------------------------------------------
   Resultados
   -------------------------------------------------------------------------- */

.est-results__body {
	margin-top: 20px;
}

.est-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 22px;
	transition: opacity .2s;
}

.est-archive.is-loading:not(.is-appending) .est-list {
	opacity: .5;
	pointer-events: none;
}


/* --------------------------------------------------------------------------
   Tarjeta
   -------------------------------------------------------------------------- */

.est-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--est-line);
	border-radius: var(--est-radius);
	background: var(--est-white);
	box-shadow: var(--est-shadow);
	overflow: hidden;
	transition: transform .35s var(--est-ease), box-shadow .35s var(--est-ease), border-color .35s;
	animation: est-in .45s var(--est-ease) both;
}

@keyframes est-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.est-card:hover,
.est-card.is-hover {
	transform: translateY(-4px);
	border-color: #cfdcec;
	box-shadow: var(--est-shadow-lg);
}

.est-card--featured {
	border-color: rgba(248, 79, 47, .35);
}

.est-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #dfe8f3;
	overflow: hidden;
}

.est-archive .est-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--est-ease);
}

.est-card:hover .est-card__img {
	transform: scale(1.05);
}

.est-card__img--empty {
	display: grid !important;
	place-items: center;
	color: #a8b8cc;
}

.est-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(to top, rgba(10, 22, 40, .45), transparent);
	pointer-events: none;
}

.est-card__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.est-badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 11px;
	border-radius: 999px;
	background: var(--est-navy);
	color: var(--est-white);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
}

.est-badge--arriendo {
	background: var(--est-blue);
}

.est-badge--light {
	background: rgba(255, 255, 255, .92);
	color: var(--est-navy);
	backdrop-filter: blur(6px);
}

.est-card__featured {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--est-accent);
	color: var(--est-white);
	font-size: 12px;
	font-weight: 700;
}

.est-card__featured .est-icon {
	fill: currentColor;
}

.est-card__photos {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--est-white);
	font-size: 13px;
	font-weight: 600;
}

.est-card__agent {
	position: absolute;
	top: -26px;
	right: 16px;
	z-index: 2;
	width: 48px;
	height: 48px;
	border: 3px solid var(--est-white);
	border-radius: 50%;
	background: var(--est-white);
	box-shadow: 0 4px 12px rgba(16, 36, 66, .2);
	overflow: hidden;
}

.est-archive .est-card__agent img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.est-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 16px;
}

.est-card__price {
	color: var(--est-ink);
	font: 700 23px/1.1 var(--est-font-display);
	letter-spacing: -.01em;
}

.est-card__price small {
	color: var(--est-muted);
	font-size: 14px;
	font-weight: 600;
}

.est-card__price--ask {
	color: var(--est-muted);
	font-size: 17px;
}

.est-archive .est-card__title {
	color: var(--est-ink);
	font: 700 16px/1.35 var(--est-font);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-right: 44px;
}

.est-archive .est-card__link {
	color: inherit;
	text-decoration: none;
}

/* Toda la tarjeta es clicable */
.est-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: var(--est-radius);
}

.est-card__link:focus-visible {
	outline: 0;
}

.est-card__link:focus-visible::after {
	outline: 3px solid rgba(0, 145, 255, .5);
	outline-offset: -3px;
}

.est-card__location {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--est-muted);
	font-size: 14px;
}

.est-card__location span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.est-archive .est-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 6px 0 0;
	padding: 12px 0 0;
	border-top: 1px dashed var(--est-line);
	list-style: none;
}

.est-archive .est-card__specs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--est-muted);
	font-size: 13px;
}

.est-card__specs strong {
	color: var(--est-ink);
	font-weight: 700;
}

.est-card__specs .est-icon {
	color: var(--est-blue);
}

.est-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
}

.est-card__type {
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--est-bg);
	color: var(--est-text);
	font-size: 12px;
	font-weight: 600;
}

.est-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	color: var(--est-blue);
	font-size: 14px;
	font-weight: 700;
}

.est-card__cta .est-icon {
	transition: transform .25s var(--est-ease);
}

.est-card:hover .est-card__cta .est-icon {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Vacío y cargar más
   -------------------------------------------------------------------------- */

.est-empty {
	padding: 64px 24px;
	border: 2px dashed var(--est-line);
	border-radius: var(--est-radius);
	background: var(--est-white);
	text-align: center;
}

.est-empty[hidden] {
	display: none;
}

.est-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--est-blue-soft);
	color: var(--est-blue);
}

.est-archive .est-empty h2 {
	margin-bottom: 6px;
	color: var(--est-ink);
	font: 700 22px/1.25 var(--est-font-display);
}

.est-empty p {
	margin-bottom: 20px !important;
	color: var(--est-muted);
}

.est-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
}

.est-more[hidden] {
	display: none;
}

.est-more__progress {
	color: var(--est-muted);
	font-size: 14px;
}

.est-more__bar {
	width: 220px;
	height: 4px;
	border-radius: 4px;
	background: var(--est-line);
	overflow: hidden;
}

.est-more__bar span {
	display: block;
	height: 100%;
	background: var(--est-navy);
	transition: width .4s var(--est-ease);
}

.est-archive.is-appending [data-est-load-more] {
	opacity: .6;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Vista lista
   -------------------------------------------------------------------------- */

.est-view-lista .est-list {
	grid-template-columns: 1fr;
}

.est-view-lista .est-card {
	flex-direction: row;
}

.est-view-lista .est-card__media {
	flex: 0 0 36%;
	aspect-ratio: auto;
	min-height: 250px;
}

.est-view-lista .est-card__media .est-card__img {
	position: absolute;
	inset: 0;
}

.est-card__excerpt {
	display: none;
}

.est-view-lista .est-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--est-muted);
	font-size: 14px;
}

.est-view-lista .est-card__agent {
	top: 20px;
	right: 24px;
}

.est-view-lista .est-card__featured {
	top: auto;
	bottom: 12px;
	right: 14px;
}

.est-view-lista .est-card__body {
	padding: 24px 28px;
}

.est-view-lista .est-card__title {
	font-size: 18px;
	padding-right: 0;
}

.est-map {
	width: 100%;
	height: 100%;
}

.est-pin-wrap {
	background: none;
	border: 0;
}

.est-pin {
	position: relative;
	display: inline-block;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--est-white);
	color: var(--est-ink);
	font: 700 13px/1 var(--est-font);
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(16, 36, 66, .28);
	transform: translate(-50%, -100%);
	transition: background-color .15s, color .15s, transform .15s;
}

.est-pin::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 10px;
	height: 10px;
	background: inherit;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 0 0 3px 0;
}

.est-pin-wrap:hover .est-pin,
.est-pin-wrap.is-active .est-pin {
	background: var(--est-navy);
	color: var(--est-white);
	transform: translate(-50%, -100%) scale(1.08);
}

.est-archive .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
}

.est-archive .leaflet-popup-content {
	width: 240px !important;
	margin: 0;
}

.est-pop {
	display: block;
	color: var(--est-ink) !important;
	text-decoration: none;
}

.est-pop img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.est-pop__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px 14px;
	font-family: var(--est-font);
}

.est-pop__body strong {
	font: 700 17px/1.2 var(--est-font-display);
}

.est-pop__title {
	font-weight: 600;
}

.est-pop__loc {
	color: var(--est-muted);
	font-size: 13px;
}

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

@media (max-width: 1200px) {
	.est-views__item em {
		display: none;
	}
}

@media (max-width: 991px) {
	.est-layout {
		grid-template-columns: 1fr;
	}

	.est-filters-toggle {
		display: inline-flex !important;
	}

	/* Filtros como panel lateral */
	.est-sidebar {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 2147483001;
		display: flex;
		flex-direction: column;
		width: min(420px, 100%);
		max-height: none;
		padding: 0;
		border-radius: 0;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .35s var(--est-ease), visibility 0s .35s;
	}

	.admin-bar .est-sidebar {
		top: 0;
		max-height: none;
	}

	.est-archive.is-drawer-open .est-sidebar {
		transform: none;
		visibility: visible;
		transition: transform .35s var(--est-ease);
	}

	.est-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		border-bottom: 1px solid var(--est-line);
		color: var(--est-ink);
		font: 700 18px var(--est-font-display);
	}

	.est-sidebar .est-filters {
		flex: 1;
		overflow-y: auto;
		padding: 4px 20px 20px;
	}

	.est-filters__head {
		display: none;
	}

	.est-filters__head + .est-group {
		border-top: 0;
	}

	.est-drawer__foot {
		display: flex;
		gap: 10px;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--est-line);
		background: var(--est-white);
	}

	.est-drawer__foot .est-btn--primary {
		flex: 1;
	}

	.est-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 2147483000;
		background: rgba(10, 22, 40, .45);
		backdrop-filter: blur(2px);
		animation: est-fade .25s both;
	}

	@keyframes est-fade {
		from {
			opacity: 0;
		}
	}

}

@media (max-width: 680px) {
	.est-container {
		padding: 0 16px;
	}

	.est-hero {
		padding: 40px 0 84px;
	}

	.est-tabs {
		display: flex;
		border-radius: 14px 14px 0 0;
	}

	.est-tabs__item {
		flex: 1;
	}

	.est-tabs__item span {
		padding: 9px 8px;
		text-align: center;
	}

	.est-searchbar {
		flex-wrap: wrap;
		padding: 8px 8px 8px 16px;
		border-radius: 0 0 18px 18px;
	}

	.est-archive .est-searchbar input {
		flex: 1 1 calc(100% - 40px);
	}

	.est-archive .est-searchbar .est-btn {
		flex: 1 1 100%;
		min-height: 48px;
	}

	.est-toolbar {
		padding: 14px;
	}

	.est-toolbar__info {
		width: 100%;
	}

	.est-toolbar__actions {
		display: grid;
		grid-template-columns: 1fr auto;
		width: 100%;
	}

	.est-select {
		grid-column: 1 / -1;
		order: 3;
	}

	.est-archive .est-select select {
		width: 100%;
	}

	.est-view-lista .est-card {
		flex-direction: column;
	}

	.est-view-lista .est-card__media {
		flex: none;
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.est-view-lista .est-card__media .est-card__img {
		position: static;
	}

	.est-view-lista .est-card__agent {
		top: -26px;
		right: 16px;
	}

	.est-view-lista .est-card__body {
		padding: 18px 20px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.est-archive *,
	.est-archive *::before,
	.est-archive *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ==========================================================================
   v1.2 · Contadores, zonas, autocompletado, tarjeta enriquecida,
   favoritos, comparador, alertas, mapa por zona
   ========================================================================== */

/* Contadores en filtros */
.est-count {
	margin-left: 4px;
	color: var(--est-muted);
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	opacity: .85;
}

.est-check-chip input:checked + span .est-count,
.est-pill input:checked + span .est-count {
	color: rgba(255, 255, 255, .75);
}

.est-check-chip--square .est-count {
	display: none;
}

.est-tabs .est-count {
	color: inherit;
	opacity: .6;
}

.est-pill .est-count {
	display: none;
}

.is-zero span {
	opacity: .38;
	cursor: not-allowed !important;
	border-style: dashed !important;
}

.is-zero span:hover {
	border-color: var(--est-line) !important;
}

/* Listas largas plegables */
.est-collapsible .est-extra {
	display: none;
}

.est-collapsible.is-open .est-extra {
	display: inline-block;
}

.est-more-toggle {
	flex-basis: 100%;
	justify-content: flex-start;
}

/* Autocompletado */
.est-searchbar {
	position: relative;
}

.est-archive .est-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 50;
	margin: 0;
	padding: 6px;
	border-radius: 16px;
	background: var(--est-white);
	box-shadow: 0 20px 50px rgba(5, 18, 38, .25);
	list-style: none;
}

.est-suggest[hidden] {
	display: none;
}

.est-archive .est-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--est-muted);
	cursor: pointer;
}

.est-suggest__item:hover,
.est-suggest__item.is-active {
	background: var(--est-bg);
	color: var(--est-navy);
}

.est-suggest__item span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.est-suggest__item strong {
	overflow: hidden;
	color: var(--est-ink);
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.est-suggest__item small {
	font-size: 12px;
}

/* Botones extra */
.est-archive .est-btn--sm {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 13px;
}

.est-saved-toggle[aria-pressed="true"] {
	border-color: var(--est-accent) !important;
	color: var(--est-accent) !important;
}

.est-saved-toggle[aria-pressed="true"] .est-icon {
	fill: currentColor;
}

.est-dot--soft {
	background: var(--est-bg);
	color: var(--est-navy);
}

.est-saved-toggle[aria-pressed="true"] .est-dot--soft {
	background: var(--est-accent);
	color: var(--est-white);
}

/* --------------------------------------------------------------------------
   Tarjeta: galería, favoritos, WhatsApp, comparar
   -------------------------------------------------------------------------- */

.est-card__slides {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: pointer;
}

.est-card__slides::-webkit-scrollbar {
	display: none;
}

.est-archive .est-card__slides .est-card__img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	scroll-snap-align: start;
}

.est-view-lista .est-card__media .est-card__slides .est-card__img {
	position: static;
}

.est-card__nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--est-ink);
	box-shadow: 0 2px 8px rgba(16, 36, 66, .2);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%) scale(.9);
	transition: opacity .2s, transform .2s;
}

.est-card__nav--prev {
	left: 10px;
}

.est-card__nav--next {
	right: 10px;
}

.est-card:hover .est-card__nav,
.est-card__nav:focus-visible {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

.est-card__dots {
	position: absolute;
	left: 50%;
	bottom: 12px;
	z-index: 5;
	display: flex;
	gap: 5px;
	transform: translateX(-50%);
	pointer-events: none;
}

.est-card__dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	transition: width .2s, background-color .2s;
}

.est-card__dots span.is-active {
	width: 16px;
	border-radius: 4px;
	background: var(--est-white);
}

.est-card__badges {
	z-index: 5;
	pointer-events: none;
}

.est-badge--new {
	background: #18a058;
}

.est-badge--featured {
	gap: 4px;
	background: var(--est-accent);
}

.est-badge--featured .est-icon {
	fill: currentColor;
}

.est-card__photos {
	z-index: 5;
	pointer-events: none;
}

.est-card__fav {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--est-ink);
	box-shadow: 0 2px 8px rgba(16, 36, 66, .18);
	cursor: pointer;
	transition: transform .2s var(--est-ease), color .2s;
}

.est-card__fav:hover {
	transform: scale(1.08);
	color: var(--est-accent);
}

.est-card__fav[aria-pressed="true"] {
	color: var(--est-accent);
}

.est-card__fav[aria-pressed="true"] .est-icon {
	fill: currentColor;
	animation: est-pop .35s var(--est-ease);
}

@keyframes est-pop {
	50% {
		transform: scale(1.3);
	}
}

.est-card__m2 {
	margin-top: -4px !important;
	color: var(--est-muted);
	font-size: 13px;
	font-weight: 600;
}

.est-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.est-card__tags:empty {
	display: none;
}

.est-card__footer {
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--est-line);
}

.est-card__compare,
.est-card__wa {
	position: relative;
	z-index: 4;
}

.est-card__compare input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.est-card__compare span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border: 1px solid var(--est-line);
	border-radius: 999px;
	color: var(--est-muted);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}

.est-card__compare span:hover {
	border-color: var(--est-navy);
	color: var(--est-navy);
}

.est-card__compare input:checked + span {
	border-color: var(--est-navy);
	background: var(--est-navy);
	color: var(--est-white);
}

.est-card__compare input:focus-visible + span {
	outline: 3px solid rgba(0, 145, 255, .35);
}

.est-archive .est-card__wa {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .15s, transform .15s;
}

.est-archive .est-card__wa:hover {
	background: #1ebe5b;
	color: #fff;
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Alerta
   -------------------------------------------------------------------------- */

.est-alert {
	margin-top: 36px;
	padding: 28px;
	border-radius: var(--est-radius);
	background:
		radial-gradient(500px 200px at 100% 0%, rgba(0, 145, 255, .12), transparent 60%),
		var(--est-white);
	box-shadow: var(--est-shadow);
}

.est-alert[hidden] {
	display: none;
}

.est-alert__intro {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.est-alert__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--est-blue-soft);
	color: var(--est-blue);
}

.est-archive .est-alert h2 {
	margin-bottom: 4px;
	color: var(--est-ink);
	font: 700 21px/1.25 var(--est-font-display);
}

.est-alert__fields {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.est-alert__fields label span {
	display: block;
	margin-bottom: 4px;
	color: var(--est-muted);
	font-size: 12px;
	font-weight: 700;
}

.est-archive .est-alert__fields input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--est-line);
	border-radius: 12px;
	background: var(--est-white);
	color: var(--est-ink);
	font: 600 14px var(--est-font);
}

.est-archive .est-alert__fields input:focus {
	border-color: var(--est-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 145, 255, .15);
}

.est-hp {
	position: absolute !important;
	left: -9999px !important;
}

.est-alert__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 16px;
	color: var(--est-muted);
	font-size: 13px;
}

.est-alert__consent input {
	margin-top: 3px;
	accent-color: var(--est-navy);
}

.est-alert__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.est-alert__msg {
	font-size: 14px;
	font-weight: 600;
}

.est-alert__msg.is-success {
	color: #18a058;
}

.est-alert__msg.is-error {
	color: var(--est-accent);
}

/* --------------------------------------------------------------------------
   Mapa: buscar en esta zona
   -------------------------------------------------------------------------- */

.est-archive .est-map__area {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 1000;
	transform: translateX(-50%);
	box-shadow: 0 8px 24px rgba(16, 36, 66, .3);
}

.est-map__area[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Barra de comparación y modal
   -------------------------------------------------------------------------- */

.est-compare-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
	background: var(--est-white);
	box-shadow: 0 -10px 30px rgba(16, 36, 66, .15);
	animation: est-up .3s var(--est-ease);
}

.est-compare-bar[hidden] {
	display: none;
}

@keyframes est-up {
	from {
		transform: translateY(100%);
	}
}

.est-compare-bar__inner {
	display: flex;
	align-items: center;
	gap: 14px;
}

.est-compare-bar__items {
	display: flex;
	flex: 1;
	gap: 10px;
	min-width: 0;
	overflow-x: auto;
}

.est-compare-bar__item {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	max-width: 240px;
	padding: 4px 6px 4px 4px;
	border: 1px solid var(--est-line);
	border-radius: 12px;
}

.est-archive .est-compare-bar__item img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
}

.est-compare-bar__item span {
	overflow: hidden;
	color: var(--est-ink);
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.est-archive .est-compare-bar__item button {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--est-bg);
	color: var(--est-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.est-compare-bar__hint {
	color: var(--est-muted);
	font-size: 13px;
}

.est-archive [data-est-compare-open]:disabled {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
}

.est-archive.has-compare {
	padding-bottom: 120px;
}

.est-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483002;
	display: grid;
	place-items: center;
	padding: 24px;
}

.est-modal[hidden] {
	display: none;
}

.est-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 40, .55);
	backdrop-filter: blur(3px);
	animation: est-fade .25s both;
}

.est-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	max-height: calc(100vh - 48px);
	border-radius: 20px;
	background: var(--est-white);
	box-shadow: var(--est-shadow-lg);
	animation: est-in .3s var(--est-ease);
}

.est-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--est-line);
}

.est-archive .est-modal__head h2 {
	color: var(--est-ink);
	font: 700 20px var(--est-font-display);
}

.est-modal__body {
	overflow: auto;
	padding: 0 22px 22px;
}

.est-modal__loading {
	padding: 40px;
	color: var(--est-muted);
	text-align: center;
}

.est-compare__scroll {
	overflow-x: auto;
}

.est-archive .est-compare__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
}

.est-archive .est-compare__table th,
.est-archive .est-compare__table td {
	padding: 12px 10px;
	border: 0;
	border-bottom: 1px solid var(--est-line);
	background: none;
	text-align: left;
	vertical-align: top;
}

.est-archive .est-compare__table tbody th {
	width: 150px;
	color: var(--est-muted);
	font-weight: 600;
}

.est-archive .est-compare__table td {
	color: var(--est-ink);
	font-weight: 600;
}

.est-archive .est-compare__table td.is-best {
	color: #18a058;
}

.est-archive .est-compare__table td.is-best::after {
	content: " ✓";
}

.est-archive .est-compare__table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	padding-top: 18px;
	background: var(--est-white);
	vertical-align: bottom;
}

.est-archive .est-compare__head {
	display: block;
	color: var(--est-ink);
	text-decoration: none;
}

.est-archive .est-compare__head img {
	display: block;
	width: 100%;
	height: 120px;
	margin-bottom: 8px;
	border-radius: 12px;
	object-fit: cover;
}

.est-archive .est-compare__head span {
	font: 700 15px/1.3 var(--est-font);
}

.est-archive .est-compare__remove {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--est-accent);
	font: 600 12px var(--est-font);
	cursor: pointer;
}

.est-muted {
	color: var(--est-muted);
}

/* Toast */
.est-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 2147483003;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--est-ink);
	color: var(--est-white);
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--est-shadow-lg);
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .25s, transform .25s var(--est-ease);
}

.est-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.has-compare .est-toast {
	bottom: 100px;
}

@media (max-width: 991px) {
	.est-compare-bar__hint {
		display: none;
	}

	.est-card__nav {
		display: none;
	}
}

@media (max-width: 680px) {
	.est-hide-sm {
		display: none;
	}

	.est-toolbar__actions {
		grid-template-columns: auto auto 1fr;
	}

	.est-views {
		justify-self: end;
	}

	.est-alert {
		padding: 22px 18px;
	}

	.est-alert__fields {
		grid-template-columns: 1fr;
	}

	.est-compare-bar__item span {
		display: none;
	}

	.est-modal {
		padding: 0;
	}

	.est-modal__panel {
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
	}
}

/* Ajustes tarjeta */
.est-card__agent {
	z-index: 6;
}

.est-card__cta {
	display: none;
}

.est-view-lista .est-card__cta {
	display: inline-flex;
}

.est-card__wa {
	margin-left: auto;
}

.est-pills {
	grid-auto-columns: minmax(0, 1fr);
}

.est-pill span {
	font-size: 13px;
	padding: 6px 2px;
}

.est-tabs .is-zero span {
	border: 0 !important;
	opacity: .45;
}

/* Tarjeta resaltada desde el mapa */
.est-card.is-hover {
	border-color: var(--est-navy);
	box-shadow: 0 0 0 2px var(--est-navy), var(--est-shadow-lg);
}


@media (max-width: 680px) {
	.est-toolbar__actions {
		gap: 8px;
	}

	.est-archive .est-toolbar__actions .est-btn {
		padding: 10px 14px;
	}

	.est-views__item span {
		padding: 0 9px;
	}
}

/* ==========================================================================
   v1.2.2 · Mapa en modal
   ========================================================================== */

.est-mapmodal {
	position: fixed;
	inset: 0;
	z-index: 2147483002;
	display: grid;
	place-items: center;
	padding: 24px;
}

.est-mapmodal[hidden] {
	display: none;
}

.est-mapmodal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 40, .6);
	backdrop-filter: blur(3px);
	animation: est-fade .25s both;
}

.est-mapmodal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1400px, 100%);
	height: min(880px, calc(100vh - 48px));
	border-radius: 20px;
	background: var(--est-white);
	box-shadow: var(--est-shadow-lg);
	overflow: hidden;
	animation: est-in .3s var(--est-ease);
}

.est-mapmodal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px 14px 22px;
	border-bottom: 1px solid var(--est-line);
}

.est-archive .est-mapmodal__head h2 {
	color: var(--est-ink);
	font: 700 19px/1.2 var(--est-font-display);
}

.est-mapmodal__head p {
	color: var(--est-muted);
	font-size: 14px;
}

.est-map-wrap {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #dde6f0;
}

.est-mapmodal .est-map {
	position: absolute;
	inset: 0;
}

.est-map-toggle[aria-expanded="true"] {
	border-color: var(--est-navy) !important;
	color: var(--est-navy) !important;
}

@media (max-width: 680px) {
	.est-mapmodal {
		padding: 0;
	}

	.est-mapmodal__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.est-mapmodal__head p {
		display: none;
	}
}

/* Filtros: se puede hacer scroll, pero sin barra visible */
@media (min-width: 992px) {
	.est-sidebar {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.est-sidebar::-webkit-scrollbar {
		display: none;
	}

	/* Degradado inferior que indica que hay más filtros */
	.est-sidebar::after {
		content: "";
		position: sticky;
		bottom: -22px;
		display: block;
		height: 40px;
		margin: -40px -22px -22px;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
		pointer-events: none;
	}
}

/* Filtros y mapa se pegan debajo del encabezado fijo del sitio (ver sticky-offset.js) */
@media (min-width: 992px) {
	.est-sidebar,
	.admin-bar .est-sidebar {
		top: var(--est-top, 24px);
		max-height: calc(100vh - var(--est-top, 24px) - 24px);
	}
}

/* ==========================================================================
   Vendidos / reservados
   ========================================================================== */

.est-badge--reserved {
	background: #f5a524;
	color: #fff;
}

.est-badge--sold {
	background: #e5484d;
	color: #fff;
}

.est-card__price-old {
	margin-right: 8px;
	color: var(--est-muted);
	font-size: 18px;
	font-weight: 600;
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(229, 72, 77, .7);
}

.est-card__price--sold {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(229, 72, 77, .1);
	color: #c9353a;
	font-size: 13px;
	font-weight: 700;
	vertical-align: middle;
}

.est-card--sold .est-card__cta {
	display: inline-flex;
}

/* Interruptor "Mostrar vendidos" */
.est-sold-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	cursor: pointer;
}

.est-sold-toggle strong {
	display: block;
	color: var(--est-ink);
	font-size: 14px;
}

.est-sold-toggle small {
	color: var(--est-muted);
	font-size: 12px;
}

.est-archive .est-switch {
	position: relative;
	flex-shrink: 0;
	width: 42px;
	height: 24px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #cdd6e3;
	cursor: pointer;
	transition: background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}

.est-archive .est-switch::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s;
}

.est-archive .est-switch:checked {
	background: var(--est-navy);
}

.est-archive .est-switch:checked::before {
	transform: translateX(18px);
}

.est-archive .est-switch:focus-visible {
	outline: 3px solid rgba(0, 145, 255, .35);
	outline-offset: 2px;
}
