/*
 * Hello Elementor's own reset.css styles every bare button/[type=button]/
 * [type=submit] with a pink (#c36) border+text, filled pink on hover/focus
 * — a generic default meant for the theme's own unstyled buttons, not
 * ours. It targets the raw element/attribute (not a class), so it applies
 * to every real <button> we render unless explicitly reset. Every custom
 * button rule in this file (and widgets.css) carries an explicit
 * `!important` on border/background/color specifically to beat that
 * theme rule — don't drop !important from a button rule or the pink
 * border/hover-fill comes back on that specific button.
 *
 * Same file also has a bare `a { color: #c36; }` — any link inside the
 * ficha that we haven't explicitly colored (the agent's mailto: link,
 * rich-text links in Descripcion, etc.) inherits that pink instead of
 * looking like normal text. Reset it to the same dark color used for the
 * agent's name (--nh-color-text) here, scoped to the ficha's own
 * containers so it doesn't touch links elsewhere on the site. Kept at
 * the top of the file, before any of our own colored-link rules below
 * (.nh-whatsapp-btn, .nh-similar-card__body), which now carry
 * `!important` themselves so they still win over this reset.
 */
.nh-ficha-topbar a,
.nh-ficha__card a,
.nh-ficha__agent a,
.nh-ficha__contact-box a,
.nh-similar-grid a,
.nh-ficha-hero-gallery a,
.nh-ficha-hero-gallery__mobile a,
.nh-ficha-modal a,
.nh-ficha__sidebar a,
.nh-ficha a {
	color: var(--nh-color-text);
}

.nh-ficha-topbar a:hover,
.nh-ficha__card a:hover,
.nh-ficha__agent a:hover,
.nh-ficha__contact-box a:hover,
.nh-similar-grid a:hover,
.nh-ficha-hero-gallery a:hover,
.nh-ficha-hero-gallery__mobile a:hover,
.nh-ficha-modal a:hover,
.nh-ficha__sidebar a:hover,
.nh-ficha a:hover {
	color: var(--nh-color-gold-dark);
}

/* Hero banner: foto de fondo con degradado + codigo/badge/titulo/ubicacion/
   precio superpuestos. */
.nh-ficha-banner {
	position: relative;
	min-height: 420px;
	background-color: var(--nh-color-olive, #6d6f52);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}

.nh-ficha-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 20, 18, 0.8), rgba(20, 20, 18, 0.2));
}

.nh-ficha-banner__overlay {
	position: relative;
	z-index: 1;
	color: #fff;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
	padding: 40px 24px;
}

.nh-ficha-banner__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.nh-ficha-banner__codigo {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(2px);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 5px 12px;
	border-radius: 4px;
}

.nh-ficha-banner__badge {
	display: inline-block;
	background: var(--nh-color-gold, #c99a5b);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
}

.nh-ficha-banner__title {
	font-family: var(--nh-font-body);
	font-size: 40px;
	margin: 0 0 10px;
	line-height: 1.1;
}

.nh-ficha-banner__address {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	opacity: 0.92;
	margin: 0 0 18px;
}

.nh-ficha-banner__price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.nh-ficha-banner__price-uf {
	font-family: var(--nh-font-body);
	font-size: 28px;
	font-weight: 700;
	color: #fff;
}

.nh-ficha-banner__price-clp {
	font-size: 14px;
	opacity: 0.85;
}

/* ---- Ficha topbar: caja blanca con titulo/precio/specs/acciones/CTA ---- */

.nh-ficha-topbar {
	background: #fff;
	max-width: 1100px;
	margin: 0 auto 20px;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nh-ficha-topbar__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.nh-ficha-topbar__row--sub {
	align-items: center;
	margin-top: 10px;
}

.nh-ficha-topbar__row--specs {
	justify-content: flex-start;
	gap: 24px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee9df;
	color: var(--nh-color-text);
	font-size: 14px;
	font-weight: 700;
}

.nh-ficha-topbar__spec-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nh-ficha-topbar__spec-icon {
	border: solid 1px #c99a5b !important;
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 24px !important;
	flex-shrink: 0;
}

.nh-ficha-topbar__codigo,
.nh-ficha-topbar__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 3px 10px;
	border-radius: 999px;
	margin: 0 6px 8px 0;
}

.nh-ficha-topbar__codigo {
	background: var(--nh-color-bg);
	color: var(--nh-color-muted);
}

.nh-ficha-topbar__badge {
	background: var(--nh-color-gold);
	color: #fff;
}

.nh-ficha-topbar__title {
	font-family: var(--nh-font-body);
	font-size: 30px;
	margin: 0;
	line-height: 1.2;
	color: var(--nh-color-text);
}

.nh-ficha-topbar__price {
	text-align: right;
	white-space: nowrap;
	flex-shrink: 0;
}

.nh-ficha-topbar__price-uf {
	display: block;
	font-family: var(--nh-font-body);
	font-size: 26px;
	font-weight: 700;
	color: var(--nh-color-text);
}

.nh-ficha-topbar__price-clp {
	display: block;
	font-size: 13px;
	color: var(--nh-color-muted);
	margin-top: 2px;
}

.nh-ficha-topbar__price-arriendo {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--nh-color-text);
	margin-top: 4px;
}

.nh-ficha-topbar__address {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--nh-color-muted);
	font-size: 14px;
}

.nh-ficha-topbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.nh-ficha-topbar__fav,
.nh-ficha-topbar__share,
.nh-ficha-topbar__send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: none !important;
	background: none !important;
	color: var(--nh-color-muted) !important;
	font-size: 15px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.nh-ficha-topbar__fav {
	font-size: 19px;
}

.nh-ficha-topbar__fav.is-active {
	color: #d94f4f !important;
}

.nh-ficha-topbar__fav:hover,
.nh-ficha-topbar__share:hover,
.nh-ficha-topbar__send:hover {
	color: var(--nh-color-gold-dark) !important;
	background: none !important;
}

.nh-ficha-topbar__consultar {
	margin-top: 18px;
	background: var(--nh-color-gold) !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.nh-ficha-topbar__consultar:hover {
	background: var(--nh-color-gold-dark) !important;
}

@keyframes nh-flash-highlight {
	0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
	30% { box-shadow: 0 0 0 4px var(--nh-color-gold); }
}

.nh-flash {
	animation: nh-flash-highlight 1.3s ease;
}

@media (max-width: 600px) {
	.nh-ficha-topbar__row--head {
		flex-direction: column;
	}

	.nh-ficha-topbar__price {
		text-align: left;
	}

	.nh-ficha-topbar__title {
		font-size: 24px;
	}
}

.nh-ficha {
	background: var(--nh-color-bg);
	padding: 32px 24px 72px;
}

.nh-ficha__layout {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
	align-items: start;
}

.nh-ficha__description {
	color: var(--nh-color-text);
	line-height: 1.7;
	margin-bottom: 8px;
}

.nh-ficha__gallery-title {
	font-family: var(--nh-font-body);
	font-size: 22px;
	margin: 40px 0 16px;
}

.nh-ficha__card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nh-ficha__card .nh-ficha__gallery-title {
	margin: 0 0 16px;
	font-size: 19px;
    font-weight: 600;
}

.nh-ficha__card:last-child {
	margin-bottom: 0;
}

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

.nh-ficha__gallery-item img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

/* ---- Ficha video card ---- */

.nh-ficha__video {
	position: relative;
	height: 420px;
	border-radius: 10px;
	overflow: hidden;
	background: #111;
}

.nh-ficha__video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Vertical video (filmed with a phone): keep the card's height but let the
   box narrow to the video's real aspect ratio instead of stretching full
   width and cropping the sides off — object-fit switches to "contain" so
   nothing gets cut, and it's centered like the horizontal case. */
.nh-ficha__video--portrait {
	width: auto;
	max-width: 100%;
	aspect-ratio: var(--nh-video-ratio, 9 / 16);
	margin: 0 auto;
}

.nh-ficha__video--portrait video {
	object-fit: contain;
	background: #111;
}

.nh-ficha__video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 2px solid #fff !important;
	background: rgba(0, 0, 0, 0.35) !important;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.nh-ficha__video-play .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.nh-ficha__video-play:hover {
	background: rgba(0, 0, 0, 0.55) !important;
	transform: translate(-50%, -50%) scale(1.06);
}

.nh-ficha__video.is-playing .nh-ficha__video-play {
	display: none;
}

@media (max-width: 600px) {
	.nh-ficha__video {
		height: 220px;
	}
}

/* Detalle: 2-column icon/label/value grid. */
.nh-detalle {
	display: grid;
	grid-template-columns: 1fr 1fr;
    border: solid 1px #c99a5b;
    
}

.nh-detalle__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 14px;
	border-bottom: 1px solid #c99a5b;
	font-size: 14px;
}

.nh-detalle__item:nth-child(odd) {
	padding-right: 18px;
}

.nh-detalle__item:nth-child(even) {
	padding-left: 18px;
	border-left: 1px solid #c99a5b;
}

.nh-detalle__icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
    border-radius: 24px !important;
    border: solid 1px #c99a5b !important;
}

.nh-detalle__label {
	color: var(--nh-color-muted, #6b6b6b);
	min-width: 110px;
}

.nh-detalle__value {
	font-weight: 700;
	color: var(--nh-color-text, #2b2b2b);
	margin-left: auto;
	text-align: right;
}

/* Caracteristicas checklist. */
.nh-caracteristicas {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px 20px;
	padding: 0;
	margin: 0;
}

.nh-caracteristicas li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--nh-color-text, #2b2b2b);
}

.nh-caracteristicas__dot {
	width: 6px;
	height: 6px;
	border-radius: 1px;
	background: var(--nh-color-gold-dark, #b6864a);
	flex-shrink: 0;
	display: inline-block;
}

.nh-ficha__map-location {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--nh-color-muted);
	font-size: 13px;
	margin: -8px 0 14px;
}

.nh-ficha__map-location .nh-icon-ubicacion {
	color: var(--nh-color-gold-dark);
	width: 16px;
	height: 16px;
}

.nh-ficha__sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nh-ficha__agent {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nh-ficha__agent-heading {
	font-family: var(--nh-font-body);
	font-size: 16px;
	font-weight: 800;
	color: var(--nh-color-text, #2b2b2b);
	margin: 0 0 16px;
}

.nh-ficha__agent-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.nh-ficha__agent img {
	border-radius: 50%;
	width: 54px;
	height: 54px;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.nh-ficha__agent-name {
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 6px;
}

.nh-ficha__agent-phones {
	list-style: none;
	padding: 0;
	margin: 0 0 4px;
}

.nh-ficha__agent-phones li,
.nh-ficha__agent-email {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--nh-color-text, #2b2b2b);
	margin: 4px 0;
}

.nh-ficha__agent-phones .dashicons,
.nh-ficha__agent-email .dashicons {
	color: var(--nh-color-gold-dark, #b6864a);
	font-size: 16px;
	width: 16px;
}

.nh-ficha__back {
	color: var(--nh-color-text) !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
}

.nh-ficha__back:hover {
	color: var(--nh-color-gold-dark) !important;
}

@media (max-width: 860px) {
	.nh-ficha__layout {
		grid-template-columns: 1fr;
	}

	.nh-ficha-banner__title {
		font-size: 28px;
	}

	.nh-ficha-banner__overlay {
		padding: 28px 20px;
	}

	.nh-ficha__gallery,
	.nh-caracteristicas {
		grid-template-columns: repeat(2, 1fr);
	}

	.nh-detalle {
		grid-template-columns: 1fr;
	}
}

.nh-carousel-wrap {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nh-carousel {
	position: relative;
	background: #111;
}

.nh-carousel__track {
	display: flex;
	transition: transform 0.4s ease;
}

.nh-carousel__slide {
	flex: 0 0 100%;
}

.nh-carousel__slide img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	display: block;
}

.nh-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85) !important;
	color: var(--nh-color-text, #2b2b2b) !important;
	border: none !important;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.nh-carousel__arrow:hover {
	background: #fff !important;
}

.nh-carousel__arrow--prev {
	left: 14px;
}

.nh-carousel__arrow--next {
	right: 14px;
}

.nh-carousel__counter {
	position: absolute;
	bottom: 14px;
	right: 14px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
	padding: 4px 12px;
	border-radius: 999px;
}

.nh-carousel__countbar {
	background: var(--nh-color-dark, #23262b);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.nh-carousel__countbar .dashicons {
	font-size: 16px;
	width: 16px;
}

@media (max-width: 600px) {
	.nh-carousel__slide img {
		height: 260px;
	}
}

/* ---- Carousel dots (used by the mobile gallery + the fullscreen modal) ---- */

.nh-carousel__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 1;
}

.nh-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5) !important;
	cursor: pointer;
}

.nh-carousel__dot.is-active {
	background: #fff !important;
}

/* ---- Ficha hero gallery: 1 foto grande + miniaturas (desktop) ---- */

.nh-ficha-hero-gallery {
	display: flex;
	gap: 8px;
	height: 420px;
	max-width: 1100px;
	margin: 0 auto;
}

.nh-ficha-hero-gallery__main {
	flex: 2;
	height: 100%;
	padding: 0;
	border: 0 !important;
	background: none !important;
	cursor: pointer;
	display: block;
}

.nh-ficha-hero-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.nh-ficha-hero-gallery__grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	height: 100%;
}

.nh-ficha-hero-gallery__grid .nh-ficha-hero-gallery__thumb:first-child {
	grid-column: 1 / -1;
}

.nh-ficha-hero-gallery__thumb {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0 !important;
	background: none !important;
	cursor: pointer;
	display: block;
}

.nh-ficha-hero-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.nh-ficha-hero-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	border-radius: 14px;
}

.nh-ficha-hero-gallery__mobile {
	display: none;
	max-width: 1100px;
	margin: 0 auto;
}

.nh-mobile-hide-arrows .nh-carousel__arrow {
	display: none;
}

.nh-mobile-hide-dots .nh-carousel__dots {
	display: none;
}

@media (max-width: 860px) {
	.nh-ficha-hero-gallery {
		display: none;
	}

	.nh-ficha-hero-gallery__mobile {
		display: block;
	}
}

/* ---- Ficha photo modal (fullscreen carousel of every photo) ---- */

body.nh-modal-open {
	overflow: hidden;
}

.nh-ficha-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

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

.nh-ficha-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 8, 0.92);
}

.nh-ficha-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1000px;
}

.nh-ficha-modal__dialog .nh-carousel__slide img {
	height: min(70vh, 560px);
}

.nh-ficha-modal__close {
	position: absolute;
	top: -46px;
	right: 0;
	background: none !important;
	border: 0 !important;
	color: #fff !important;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

@media (max-width: 600px) {
	.nh-ficha-modal {
		padding: 20px 12px;
	}

	.nh-ficha-modal__close {
		top: -40px;
		right: -4px;
	}
}

/*
 * "Contactanos" WhatsApp lightbox (Ficha_Vendedor's nh-contacto-modal) —
 * reuses .nh-ficha-modal for the overlay/backdrop/close button, just a
 * narrower white dialog instead of the gallery's dark carousel one. Form
 * fields reuse .nh-ficha__contact-form's styling (shared with the CF7 "Quieres
 * saber mas" box) since the class is the same.
 */
.nh-contacto-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 380px;
}

.nh-contacto-modal__box {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
}

.nh-contacto-modal__heading {
	font-family: var(--nh-font-body);
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--nh-color-text);
	text-align: center;
}

.nh-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 0;
	color: #fff !important;
	text-decoration: none !important;
	font-family: inherit;
	transition: background 0.2s ease;
	box-sizing: border-box;
	/*
	 * Now a real <button type="button"> (opens the contacto lightbox)
	 * instead of an <a> — Hello Elementor's reset.css targets [type=button]
	 * with the SAME specificity as a single class (0,1,0), so every
	 * property it also sets needs !important here or it's a coin-flip on
	 * load order which one wins. Learned this the hard way: background,
	 * padding, border-radius, font-size/weight all got silently reset to
	 * the theme's transparent/pink-outline button look the first time.
	 */
	background: var(--nh-color-gold) !important;
	padding: 12px 18px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	border: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
    width: 100% !important;
    border-radius: 8px !important;
}

.nh-whatsapp-btn:hover {
	background: var(--nh-color-gold-dark) !important;
	color: #fff !important;
}

.nh-whatsapp-btn i {
	font-size: 16px;
}

.nh-lead-form {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e6e1d8;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}

.nh-lead-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nh-lead-form input[type="text"],
.nh-lead-form input[type="email"],
.nh-lead-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd8cd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

.nh-lead-form__submit {
	background: var(--nh-color-gold, #c99a5b) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nh-lead-form__submit:hover {
	background: var(--nh-color-gold-dark, #b6864a) !important;
}

.nh-lead-form__message {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	margin-top: 18px;
}

.nh-lead-form__message--ok {
	background: #e6f4ea;
	color: #1e6b34;
}

.nh-lead-form__message--error {
	background: #fbe8e6;
	color: #a3312a;
}

/*
 * .nh-section-title is shared with Home's Property_Grid widget (its own
 * "Propiedades Destacadas" heading, in widgets.css) — scope this override
 * to the ficha only via body.nh-header-light (set only on is_singular
 * 'propiedad', see Frontend::body_class_header_light) instead of editing
 * the shared rule, so Home keeps its Geffroy Eleonora heading font.
 */
body.nh-header-light .nh-section-title {
	font-family: var(--nh-font-body);
}

/* ---- "Propiedades similares" cards ---- */

.nh-similar-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	/* .nh-property-section (widgets.css) sets text-align:center for the
	   section heading — Property_Grid's own .nh-property-grid resets this
	   back to left, but .nh-similar-grid never did, so the card title/
	   address/meta inherited center by default. Left here as the base look;
	   the widget's "Alineacion del titulo" Style control still overrides it. */
	text-align: left;
}

.nh-similar-grid--cols-1 { grid-template-columns: 1fr; }
.nh-similar-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nh-similar-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.nh-similar-card {
	display: block;
}

.nh-similar-card__photo {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	height: 190px;
}

.nh-similar-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nh-similar-card__fav {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border: none !important;
	background: none !important;
	color: #fff !important;
	font-size: 18px;
	cursor: pointer;
}

.nh-similar-card__fav.is-active {
	color: #d94f4f !important;
}

.nh-similar-card__photo-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 24px 14px 10px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

.nh-similar-card__price {
	font-weight: 700;
	font-size: 16px;
}

.nh-similar-card__specs {
	font-size: 12px;
	opacity: 0.9;
}

.nh-similar-card__body {
	display: block;
	padding-top: 10px;
	text-decoration: none !important;
	color: inherit;
}

.nh-similar-card__address {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--nh-color-muted);
}

.nh-similar-card__address .nh-icon-ubicacion {
	width: 10px;
	height: 12px;
	color: var(--nh-color-gold-dark);
}

.nh-similar-card__title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 14px;
	color: var(--nh-color-text);
}

.nh-similar-card__meta {
	margin: 0;
	font-size: 12px;
	color: var(--nh-color-muted);
}

/* "Ubicacion de la informacion: Dentro de la imagen" (Similar_Grid widget
   control, `prefix_class` = nh-similar-info-dentro) — moves address/title/
   meta from below the photo to an overlay at its bottom, and pushes
   price/specs up to the top so the two groups don't collide. Base
   look (colors/layout) lives here as static CSS on purpose, same pattern as
   every other widget in this plugin — the Elementor Style tab only adds
   value-based overrides (color/alignment/spacing/radius) on top. */
.nh-similar-info-dentro .nh-similar-card__photo-info {
	top: 0;
	bottom: auto;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
	padding: 10px 14px 24px;
}

.nh-similar-info-dentro .nh-similar-card {
	position: relative;
}

.nh-similar-info-dentro .nh-similar-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 40px 14px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.nh-similar-info-dentro .nh-similar-card__address,
.nh-similar-info-dentro .nh-similar-card__title,
.nh-similar-info-dentro .nh-similar-card__meta {
	color: #fff;
}

.nh-similar-info-dentro .nh-similar-card__address .nh-icon-ubicacion {
	color: #fff;
}

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

@media (max-width: 480px) {
	.nh-similar-grid,
	.nh-similar-grid--cols-2,
	.nh-similar-grid--cols-3,
	.nh-similar-grid--cols-4 {
		grid-template-columns: 1fr;
	}
}

/* ---- "Quieres saber mas de esta propiedad?" contact box ---- */

.nh-ficha__contact-box {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nh-ficha__contact-heading {
	font-family: var(--nh-font-body);
	font-size: 17px;
	margin: 0 0 16px;
	color: var(--nh-color-text);
}

.nh-ficha__contact-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nh-ficha__contact-form input,
.nh-ficha__contact-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd8cd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

.nh-ficha__contact-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	padding: 12px 18px;
	background: var(--nh-color-gold) !important;
	color: #fff !important;
	border: none !important;
	/* !important on these three too — this is a CF7 <input type="submit">,
	   which ties with a single class on specificity against Hello
	   Elementor's [type=submit] reset (border-radius:3px, font-weight:400,
	   font-size:1rem). Same lesson as .nh-whatsapp-btn: whichever loads
	   later in the cascade silently wins without it. */
	border-radius: 999px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nh-ficha__contact-submit:hover {
	background: var(--nh-color-gold-dark) !important;
}
