/* NET Houses Precios Kit */

.nh-zone-selector {
	margin-bottom: 1.5rem;
	scroll-margin-top: 1.5rem;
	transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.nh-zone-selector--highlight {
	background-color: #f5f8f6;
	box-shadow: 0 0 0 3px rgba(26, 92, 46, 0.25);
	border-radius: 8px;
	padding: 0.75rem;
}

.nh-zone-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.75rem 1rem;
	background: #f0f4f8;
	border-radius: 6px;
	margin-bottom: 1rem;
}

.nh-zone-banner-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.nh-zone-label {
	font-weight: 600;
}

.nh-zone-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}

.nh-select-wrap {
	flex: 1 1 220px;
	min-width: 220px;
	max-width: 320px;
	position: relative;
}

.nh-select-wrap .select2-container {
	width: 100% !important;
}

.nh-zone-selector,
.nh-zone-form,
.nh-zone-fields {
	overflow: visible;
}

body > .select2-container {
	z-index: 999999;
}

.nh-zone-fields .select2-container--default .select2-selection--single {
	height: auto;
	min-height: 38px;
	padding: 0.35rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.nh-zone-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.4;
	padding-left: 0.25rem;
	color: #333;
}

.nh-zone-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}

.nh-zone-fields select.nh-region-select,
.nh-zone-fields select.nh-comuna-select {
	width: 100%;
}

.nh-zone-form-top {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.nh-link-close-zone {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0;
	border: none;
	background: transparent;
	text-decoration: none;
	color: #666;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1;
}

.nh-link-close-zone:hover,
.nh-link-close-zone:focus {
	color: #333;
	text-decoration: none;
}

.nh-link-close-zone__icon {
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
}

.nh-zone-prompt {
	margin: 0 0 0.75rem;
}

.nh-btn-change-zone,
.nh-btn-confirm-zone {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
}

.nh-btn-confirm-zone {
	background: #1a5c2e;
	color: #fff;
}

.nh-btn-confirm-zone:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.nh-btn-change-zone {
	background: transparent;
	color: #1a5c2e;
	text-decoration: underline;
}

.nh-altitud-notice {
	margin-top: 0.75rem;
	margin-bottom: 0;
	padding: 0.75rem;
	background: #fff8e1;
	border-left: 3px solid #f9a825;
	font-size: 0.9rem;
}

.nh-price-debug {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	background: #f5f5f5;
	border: 1px dashed #999;
	font-size: 0.85rem;
}

.nh-price-debug ul {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

/* Pricing cards */

.nh-pricing {
	position: relative;
}

.nh-price-placeholder {
	display: none;
	margin: 0.75rem 0 1rem;
	padding: 0.85rem 1rem;
	background: #f5f8f6;
	border: 1px dashed #1a5c2e;
	border-radius: 6px;
}

.nh-price-placeholder__text {
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #333;
}

.nh-price-placeholder__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a5c2e;
	text-decoration: underline;
	cursor: pointer;
}

.nh-price-placeholder__link:hover,
.nh-price-placeholder__link:focus {
	color: #0f3d1e;
}

.nh-pricing--no-zone .nh-price-display {
	display: none;
}

.nh-pricing--no-zone .nh-price-placeholder {
	display: block;
}

.nh-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

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

.nh-pricing-card {
	position: relative;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5rem;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.nh-badge-oferta {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: #e53935;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
	border-radius: 3px;
	text-transform: uppercase;
}

.nh-card-heading {
	margin-bottom: 0.5rem;
}

.nh-card-heading-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}

.nh-card-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.25rem 0.55rem;
	border-radius: 3px;
	background: #e8f5e9;
	color: #1a5c2e;
	flex: 0 1 auto;
}

.nh-card-dias {
	font-size: 0.75rem;
	font-weight: 600;
	color: #555;
	text-align: right;
	line-height: 1.25;
	flex: 0 1 auto;
	max-width: 55%;
}

.nh-card-dias-value {
	display: inline-block;
}

.nh-card-dias.is-empty .nh-card-dias-value {
	opacity: 0.45;
}

.nh-card-title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
}

.nh-card-subtitle {
	margin: 0 0 0.5rem;
	color: #666;
	font-size: 0.9rem;
}

.nh-card-highlight {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: #444;
}

.nh-fundacion-toggle {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.nh-fundacion-toggle label {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	cursor: pointer;
}

.nh-price-display {
	margin-bottom: 1rem;
}

.nh-price-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 0.25rem;
}

.nh-price-label--oferta {
	color: #c62828;
}

.nh-price-amount {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.nh-price-desde {
	font-size: 0.95rem;
	font-weight: 500;
	color: #555;
}

.nh-price-value {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1a5c2e;
}

.nh-card-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	flex-grow: 1;
}

.nh-card-features li {
	padding: 0.3rem 0;
	padding-left: 1.2rem;
	position: relative;
	font-size: 0.9rem;
}

.nh-card-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #1a5c2e;
}

.nh-card-despacho {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 1rem;
}

.nh-card-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nh-btn-contacto,
.nh-btn-whatsapp {
	flex: 1;
	min-width: 0;
	display: block;
	text-align: center;
	padding: 0.6rem 0.75rem;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.85rem;
	white-space: nowrap;
}

.nh-btn-contacto {
	background: #1a5c2e;
	color: #fff;
}

.nh-btn-whatsapp {
	background: #25d366;
	color: #fff;
}

/* Loop / catalog card */

/* Elementor Shortcode widget often shrink-wraps content; force full parent width. */
.elementor-widget-shortcode:has(.nh-loop-card),
.elementor-widget-shortcode:has(.nh-loop-card) > .elementor-widget-container,
.elementor-shortcode:has(.nh-loop-card) {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	align-self: stretch;
}

.nh-loop-card {
	display: flex;
	position: relative;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	align-self: stretch;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.nh-loop-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	text-decoration: none;
}

.nh-loop-card__title:hover,
.nh-loop-card__title:focus {
	text-decoration: underline;
}

.nh-loop-card__specs {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
}

.nh-loop-card__price-label {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: #666;
}

.nh-loop-card__price {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1a5c2e;
}

.nh-loop-card__cta {
	display: inline-block;
	margin-top: 0.65rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a5c2e;
	text-decoration: none;
}

.nh-loop-card__cta:hover,
.nh-loop-card__cta:focus {
	text-decoration: underline;
}
