.nexus-propiedad-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nexus-propiedad-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.nexus-propiedad-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.nexus-propiedad-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

.nexus-propiedad-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nexus-propiedad-card__placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	color: #94a3b8;
	font-size: 14px;
}

.nexus-propiedad-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	background: #0f766e;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 999px;
	line-height: 1.2;
}

.nexus-propiedad-card__type {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	color: #047857;
	background: #ecfdf5;
	padding: 4px 10px;
	border-radius: 999px;
	line-height: 1.3;
}

.nexus-propiedad-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.nexus-propiedad-card__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: #0f172a;
}

.nexus-propiedad-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nexus-propiedad-card__title a:hover {
	color: #0f766e;
}

.nexus-propiedad-card__location {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

.nexus-propiedad-card__location-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0f766e;
	font-size: 14px;
	line-height: 1;
	margin-top: 2px;
}

.nexus-propiedad-card__location-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nexus-propiedad-card__location-text {
	flex: 1;
	min-width: 0;
}

.nexus-propiedad-card__excerpt {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

.nexus-propiedad-card__features,
.nexus-single-propiedad .nexus-propiedad-card__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexus-propiedad-card__features li,
.nexus-single-propiedad .nexus-propiedad-card__features li {
	background: #f1f5f9;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

.nexus-range {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em;
}

.nexus-range__prefix {
	font-size: 0.72em;
	font-weight: 500;
	opacity: 0.8;
	text-transform: lowercase;
}

.nexus-range__value {
	font-weight: 700;
}

.nexus-propiedad-card__price .nexus-range__prefix {
	font-size: 0.58em;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.nexus-propiedad-card__price .nexus-range__value {
	font-size: 1em;
}

.nexus-propiedad-card__price {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nexus-propiedad-card__price--current {
	font-size: 20px;
	font-weight: 700;
	color: #0f766e;
}

.nexus-propiedad-card__price--old {
	font-size: 14px;
	color: #94a3b8;
	text-decoration: line-through;
}

.nexus-propiedad-card__footer {
	display: flex;
	margin-top: auto;
	padding-top: 4px;
}

.nexus-propiedad-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	background: #0f766e;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid #0f766e;
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nexus-propiedad-card__button:hover {
	background: #0d5f58;
	border-color: #0d5f58;
	color: #fff;
}

.nexus-propiedad-card__button-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.nexus-propiedad-card__button-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nexus-propiedades-grid {
	display: grid;
	gap: 24px;
}

.nexus-propiedades-grid--cols-1 { grid-template-columns: 1fr; }
.nexus-propiedades-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nexus-propiedades-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nexus-propiedades-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

@media (max-width: 767px) {
	.nexus-propiedades-grid--cols-4,
	.nexus-propiedades-grid--cols-3,
	.nexus-propiedades-grid--cols-2 {
		grid-template-columns: 1fr;
	}
}

.nexus-propiedades-carousel {
	position: relative;
}

.nexus-propiedades-carousel__swiper {
	overflow: hidden;
}

.nexus-propiedades-carousel__arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 2;
	user-select: none;
}

.nexus-propiedades-carousel__arrow--prev { left: -12px; }
.nexus-propiedades-carousel__arrow--next { right: -12px; }

.nexus-propiedades-carousel__dots {
	margin-top: 16px;
	text-align: center;
}

.nexus-inmo-empty {
	padding: 24px;
	text-align: center;
	color: #64748b;
	background: #f8fafc;
	border-radius: 8px;
}

/* Buscador */
.nexus-inmo-search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	width: 100%;
	background: #fff;
	padding: 20px 24px;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.nexus-inmo-search__field {
	flex: 1 1 180px;
	min-width: 0;
}

.nexus-inmo-search__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.nexus-inmo-search__select {
	width: 100%;
	appearance: none;
	background-color: #f8fafc;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 40px 12px 14px;
	font-size: 15px;
	line-height: 1.3;
	color: #0f172a;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexus-inmo-search__select:focus {
	outline: none;
	border-color: #0f766e;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.nexus-inmo-search__actions {
	flex: 0 0 auto;
}

.nexus-inmo-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #0f766e;
	background: #0f766e;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.nexus-inmo-search__submit:hover {
	background: #0d5f58;
	border-color: #0d5f58;
	color: #fff;
}

.nexus-inmo-search__submit-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.nexus-inmo-search__submit-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

@media (max-width: 767px) {
	.nexus-inmo-search {
		flex-direction: column;
		align-items: stretch;
	}

	.nexus-inmo-search__field,
	.nexus-inmo-search__actions {
		flex: 1 1 auto;
		width: 100%;
	}

	.nexus-inmo-search__submit {
		width: 100%;
	}
}

/* Single property */
.nexus-single-propiedad {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
}

.nexus-single-propiedad__header {
	margin-bottom: 24px;
}

.nexus-single-propiedad__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	line-height: 1.2;
}

.nexus-single-propiedad__excerpt {
	margin: 0 0 16px;
	color: #475569;
}

.nexus-single-propiedad__units-title {
	margin: 0 0 16px;
	font-size: 1.5rem;
}

.nexus-single-propiedad__gallery--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexus-single-propiedad__gallery--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nexus-ficha-propiedad {
	width: 100%;
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-units {
	width: 100%;
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__selector-label {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-start;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 48px;
	min-width: 48px;
	max-width: 48px;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	color: #64748b !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	transition: transform 0.15s ease;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge:hover {
	transform: translateY(-1px);
	background: transparent !important;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge:focus,
.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge:focus-visible {
	outline: none;
	background: transparent !important;
	box-shadow: none !important;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge:focus-visible .nexus-ml-ficha__badge-media {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #93c5fd;
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badge-media {
	display: block;
	width: 44px;
	height: 44px;
	padding: 2px;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge:hover .nexus-ml-ficha__badge-media {
	border-color: #cbd5e1;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge.is-active .nexus-ml-ficha__badge-media {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badge-media img,
.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badge-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 11px;
	display: block;
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badge-fallback {
	display: grid;
	place-items: center;
	font-size: 0.7rem;
	font-weight: 700;
	color: #3b82f6;
	background: #f1f5f9;
}

.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badge-name {
	display: block;
	width: 100%;
	max-width: 48px;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.15;
	color: #94a3b8 !important;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: transparent !important;
	transition: color 0.15s ease;
}

.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge.is-active .nexus-ml-ficha__badge-name {
	color: #3b82f6 !important;
}

@media (max-width: 767px) {
	.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badges {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.nexus-ficha-propiedad--unidades-ml .nexus-ml-ficha__badges::-webkit-scrollbar {
		display: none;
	}

	.nexus-ficha-propiedad--unidades-ml button.nexus-ml-ficha__badge {
		scroll-snap-align: start;
	}
}

.nexus-ficha-propiedad--galeria-ml .nexus-ml-gallery {
	width: 100%;
}

.nexus-unit-bind {
	display: inline;
}

.nexus-ml-ficha__selector {
	margin-bottom: 16px;
}

.nexus-ml-ficha__selector-label {
	margin: 0 0 10px;
	font-size: 14px;
	color: #334155;
}

.nexus-ml-ficha__selector-label strong {
	color: #111827;
}

.nexus-ml-ficha__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nexus-ml-ficha__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 3px;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nexus-ml-ficha__badge-media {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 4px;
}

.nexus-ml-ficha__badge.is-active {
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb;
}

.nexus-ml-ficha__badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.nexus-ml-ficha__badge-name {
	display: none;
}

.nexus-ml-ficha__badge-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-weight: 700;
	color: #475569;
	background: #f1f5f9;
}

.nexus-ml-ficha__body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 24px;
	align-items: start;
}

.nexus-ml-ficha__gallery {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	min-height: 420px;
}

.nexus-ml-ficha__thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 520px;
	overflow: auto;
	padding-right: 2px;
}

.nexus-ml-ficha__thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	flex: 0 0 auto;
}

.nexus-ml-ficha__thumb.is-active {
	border-color: #2563eb;
}

.nexus-ml-ficha__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nexus-ml-ficha__stage {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
	min-height: 420px;
}

.nexus-ml-ficha__main-image {
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	display: block;
}

.nexus-ml-ficha__placeholder {
	display: grid;
	place-items: center;
	min-height: 420px;
	color: #94a3b8;
	background: #f1f5f9;
}

.nexus-ml-ficha__view-all {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 0;
	border-radius: 6px;
	background: rgba(17, 24, 39, 0.82);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.nexus-ml-ficha__info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nexus-ml-ficha__operacion {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
}

.nexus-ml-ficha__unit-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
	color: #111827;
}

.nexus-ml-ficha__referencia {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.nexus-ml-ficha__price {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.nexus-ml-ficha__price .nexus-range__prefix {
	font-size: 0.55em;
}

.nexus-ml-ficha__price-old {
	display: block;
	font-size: 0.55em;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: line-through;
}

.nexus-ml-ficha__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexus-ml-ficha__features li {
	background: #f1f5f9;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

.nexus-ml-ficha__excerpt {
	margin: 0;
	color: #475569;
	line-height: 1.5;
}

.nexus-ml-ficha__extras {
	margin: 0;
	padding-left: 18px;
	color: #475569;
}

.nexus-ml-ficha__modal[hidden] {
	display: none;
}

.nexus-ml-ficha__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.nexus-ml-ficha__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
}

.nexus-ml-ficha__modal-panel {
	position: relative;
	width: min(1100px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	margin: 16px auto;
	padding: 20px;
	background: #fff;
	border-radius: 12px;
	overflow: auto;
}

.nexus-ml-ficha__modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #334155;
}

.nexus-ml-ficha__modal-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.nexus-ml-ficha__modal-item {
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #f8fafc;
}

.nexus-ml-ficha__modal-item img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.nexus-ml-ficha__body {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.nexus-ml-ficha__gallery {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.nexus-ml-ficha__thumbs {
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 4px;
	}

	.nexus-ml-ficha__stage,
	.nexus-ml-ficha__main-image,
	.nexus-ml-ficha__placeholder {
		min-height: 280px;
	}

	.nexus-ml-ficha__modal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.nexus-single-propiedad__parent {
	margin: 0 0 8px;
}

.nexus-single-propiedad__parent a {
	color: #0f766e;
	font-weight: 600;
	text-decoration: none;
}

.nexus-single-propiedad__parent a:hover {
	text-decoration: underline;
}

.nexus-single-propiedad__units {
	margin-top: 48px;
}

.nexus-single-propiedad__units h2 {
	margin: 0 0 24px;
	font-size: 28px;
}

.nexus-single-propiedad__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	color: #64748b;
	margin-top: 8px;
}

.nexus-single-propiedad__badge {
	display: inline-block;
	background: #ecfeff;
	color: #0f766e;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.nexus-single-propiedad__extras {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	color: #475569;
	font-size: 14px;
}

.nexus-single-propiedad__extras li strong {
	color: #0f172a;
}

.nexus-single-propiedad__price {
	font-size: 32px;
	font-weight: 700;
	color: #0f766e;
	margin: 16px 0;
}

.nexus-single-propiedad__price-old {
	font-size: 18px;
	color: #94a3b8;
	text-decoration: line-through;
	margin-right: 10px;
}

.nexus-single-propiedad__cover,
.nexus-single-propiedad__gallery img {
	width: 100%;
	border-radius: 12px;
	display: block;
}

.nexus-single-propiedad__cover {
	margin-bottom: 16px;
}

.nexus-single-propiedad__gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 32px;
}

.nexus-single-propiedad__gallery img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.nexus-single-propiedad__content {
	line-height: 1.7;
	color: #334155;
}

@media (max-width: 767px) {
	.nexus-single-propiedad__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
