/* ==========================================================================
   Genvel Inmobiliaria — ficha de propiedad (ERE single-property)
   Diseño en dos columnas: contenido a la izquierda, tarjeta de contacto
   fija a la derecha. Solo CSS sobre el marcado de ERE.
   ========================================================================== */

/* ---------- Encabezado: título, precio, ubicación, datos ---------- */
.ere__single-property-header-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 32px;
	align-items: end;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--gv-border);
}
.ere__single-property-header-info-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.ere__single-property .ere__single-property-title {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0;
	color: var(--gv-primary-dark);
}
.ere__single-property-header-price-location {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}
/* Ubicación debajo del título, discreta */
.ere__single-property-header-price-location .ere__single-property-location {
	order: -1;
	flex-basis: 100%;
	margin: 0;
	color: var(--gv-muted);
	font-size: 0.98rem;
}
.ere__single-property-location i {
	color: var(--gv-accent);
	margin-right: 6px;
}
.ere__single-property-location a {
	color: inherit;
	text-decoration: none;
}
.ere__single-property-price {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	font-weight: 800;
	color: var(--gv-primary);
	letter-spacing: -0.02em;
	line-height: 1;
}
.ere__single-property-price .property-price-postfix,
.ere__single-property-price small {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--gv-muted);
}
.ere__single-property-status {
	margin: 0;
}
.ere__single-property-status .ere__loop-property-status-item {
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
}

/* Datos clave en una franja de "fichas" */
.ere__single-property-header-meta-action {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.ere__single-property-info .property-info-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ere__single-property-info .ere__loop-property-info-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	margin: 0;
	background: var(--gv-soft);
	border: 1px solid var(--gv-border);
	border-radius: 12px;
}
.ere__single-property-info .ere__loop-property-info-item i {
	font-size: 1.15rem;
	color: var(--gv-primary);
	width: 22px;
	text-align: center;
}
.ere__single-property-info .ere__lpi-content {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.ere__single-property-info .ere__lpi-value {
	font-weight: 700;
	font-size: 1rem;
	color: var(--gv-text);
}
.ere__single-property-info .ere__lpi-label {
	font-size: 0.78rem;
	color: var(--gv-muted);
}

/* Acciones: compartir, favorito, comparar, imprimir */
.ere__single-property-action {
	display: flex;
	gap: 8px;
}
.ere__single-property-action .ere__loop-property_action-item,
.ere__single-property-action > a,
.ere__single-property-action > div {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff !important;
	border: 1px solid var(--gv-border);
	color: var(--gv-primary) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ere__single-property-action .ere__loop-property_action-item:hover,
.ere__single-property-action > a:hover,
.ere__single-property-action > div:hover {
	background: var(--gv-soft) !important;
	border-color: var(--gv-primary);
}
.ere__single-property-action i {
	color: var(--gv-primary) !important;
	font-size: 1rem;
}

/* ---------- Galería ---------- */
.ere__single-property-gallery .owl-stage-outer,
.ere__single-property-gallery .single-property-image-main {
	border-radius: 16px;
	overflow: hidden;
}
.ere__single-property-gallery .single-property-image-thumb img,
.ere__single-property-gallery .owl-item img {
	border-radius: 10px;
}

/* ---------- Secciones ---------- */
.ere__single-property .ere-heading-style2 h2 {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--gv-primary-dark);
}
.ere__single-property .ere-heading-style2 h2::after,
.ere__single-property .ere-heading-style2::after {
	background-color: var(--gv-accent) !important;
}
.ere__single-property .ere__single-property-element {
	margin-bottom: 40px;
}
.ere__single-property-description .ere-property-element {
	color: #2f3a3b;
	line-height: 1.75;
}

/* Dirección en tarjeta */
.ere__single-property-address .ere-property-element {
	background: var(--gv-soft);
	border-radius: 14px;
	padding: 18px 22px;
}
.ere__property-address-list li {
	padding: 6px 0;
}

/* Pestañas Resumen / Características: subrayado en lugar de barra negra */
.property-info-tabs .nav-tabs {
	background: transparent !important;
	border-bottom: 2px solid var(--gv-border);
	gap: 8px;
}
.property-info-tabs .nav-tabs .nav-link {
	background: transparent !important;
	color: var(--gv-muted) !important;
	border: 0 !important;
	border-bottom: 3px solid transparent !important;
	margin-bottom: -2px;
	font-weight: 700;
	padding: 12px 6px;
	margin-right: 18px;
}
.property-info-tabs .nav-tabs .nav-link.active,
.property-info-tabs .nav-tabs .nav-link:hover {
	color: var(--gv-primary-dark) !important;
	border-bottom-color: var(--gv-accent) !important;
}
.property-info-tabs .tab-content {
	padding-top: 20px;
}
.property-info-tabs .tab-pane .ere-heading-style2 {
	display: none;
}
.ere__list-bg-gray li {
	border-radius: 8px;
	font-size: 0.95rem;
}
.ere__list-2-col li strong {
	font-weight: 600;
	color: var(--gv-muted);
}
/* Pie de la ficha (fecha y visitas): discreto */
.ere__single-property-info-footer {
	justify-content: flex-start !important;
	font-size: 0.85rem;
	color: var(--gv-muted);
	border-top: 1px solid var(--gv-border);
	padding-top: 14px;
}
.ere__single-property-info-footer i {
	color: var(--gv-muted);
}

/* ---------- Tarjeta de contacto del asesor ---------- */
.ere__single-property-contact-agent {
	background: #fff;
	border: 1px solid var(--gv-border);
	border-radius: 18px;
	box-shadow: var(--gv-shadow);
	padding: 24px;
}
.ere__single-property-contact-agent .ere-heading-style2 h2 {
	font-size: 1.1rem;
	margin-bottom: 0;
}
.ere__single-property-contact-agent .ere__contact-agent-info.row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin: 18px 0 14px;
}
.ere__single-property-contact-agent .ere__agent-image,
.ere__single-property-contact-agent .ere__agent-content {
	max-width: none;
	flex: none;
	padding: 0;
	width: auto;
}
.ere__single-property-contact-agent .ere__agent-image img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
.ere__single-property-contact-agent .ere__agent-name {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 2px;
}
.ere__single-property-contact-agent .ere__agent-name a {
	color: var(--gv-primary-dark);
	text-decoration: none;
}
.ere__single-property-contact-agent .ere__agent-position {
	font-size: 0.85rem;
	color: var(--gv-muted);
}
.ere__single-property-contact-agent .ere__single-agent-contact-info {
	margin-top: 10px;
	font-size: 0.88rem;
}
.ere__single-property-contact-agent .ere__single-agent-contact-info a {
	color: var(--gv-text);
	text-decoration: none;
}
.ere__single-property-contact-agent .ere__single-agent-contact-info a:hover {
	color: var(--gv-primary);
	text-decoration: underline;
}
.ere__single-property-contact-agent .ere__single-agent-contact-info span {
	overflow-wrap: anywhere;
}
.ere__single-property-contact-agent .ere__address {
	display: none !important; /* La dirección del asesor no aporta en la ficha de una propiedad */
}
/* Botón de WhatsApp (lo añade genvel-contacto.js) */
.gv-wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	margin: 0 0 16px;
	border-radius: 8px;
	background: #1f7a4d;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}
.gv-wa-btn:hover {
	background: #18603c;
}
.ere__single-property-contact-agent .ere__contact-form {
	border-top: 1px solid var(--gv-border);
	padding-top: 16px;
}
.ere__single-property-contact-agent .ere__single-agent-contact-info > div {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 4px 0;
	word-break: break-word;
}
.ere__single-property-contact-agent .ere__single-agent-contact-info i {
	color: var(--gv-primary);
	width: 16px;
	text-align: center;
}
.ere__single-property-contact-agent .ere__agent-content > .btn {
	display: none; /* "Otras propiedades": el nombre ya enlaza a la ficha del asesor */
}
/* El formulario en una sola columna dentro de la tarjeta */
.ere__single-property-contact-agent .ere__contact-form .row > [class*="col-"] {
	flex: 0 0 100%;
	max-width: 100%;
}
.ere__single-property-contact-agent .ere__contact-form label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.ere__single-property-contact-agent .ere__contact-form .form-group {
	margin-bottom: 10px;
}
.ere__single-property-contact-agent .ere__contact-form textarea {
	min-height: 110px;
}
.ere__single-property-contact-agent .ere__btn-submit-contact-form {
	width: 100%;
	min-height: 46px;
}

/* ---------- Dos columnas en escritorio ---------- */
@media (min-width: 1100px) {
	.ere__single-property {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 360px;
		column-gap: 44px;
		align-items: start;
	}
	.ere__single-property > .ere__single-property-element,
	.ere__single-property > .property-info-tabs {
		grid-column: 1;
	}
	.ere__single-property > .ere__single-property-header-info,
	.ere__single-property > .ere__single-property-gallery {
		grid-column: 1 / -1;
	}
	.ere__single-property > .ere__single-property-contact-agent {
		grid-column: 2;
		grid-row: 3 / span 6;
		position: sticky;
		top: 130px;
		margin-bottom: 0;
	}
	.admin-bar .ere__single-property > .ere__single-property-contact-agent {
		top: 162px;
	}
}
/* ERE añade márgenes propios a los datos y recorta la dirección en una línea */
.ere__single-property-info .property-info-inner > .ere__loop-property-info-item {
	margin: 0 !important;
}
.ere__single-property-header-price-location .ere__single-property-location,
.ere__single-property-header-price-location .ere__single-property-location a,
.ere__single-property-header-price-location .ere__single-property-location span {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

@media (max-width: 781px) {
	.ere__single-property-header-info {
		grid-template-columns: 1fr;
	}
	.ere__single-property-info,
	.ere__single-property-info .property-info-inner {
		width: 100%;
	}
	.ere__single-property-info .property-info-inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.ere__single-property-info .ere__loop-property-info-item {
		padding: 8px 12px;
	}
	.ere__single-property-action {
		width: 100%;
		justify-content: flex-start;
	}
	.ere__single-property-contact-agent {
		padding: 18px;
	}
	.ere__single-property-contact-agent .ere__contact-agent-info.row {
		grid-template-columns: 56px minmax(0, 1fr);
	}
	.ere__single-property-contact-agent .ere__agent-image img {
		width: 56px;
		height: 56px;
	}
	.ere__single-property-contact-agent .ere__single-agent-contact-info {
		font-size: 0.85rem;
	}
	.gv-breadcrumbs ol li:last-child {
		display: none; /* En móvil el título ya dice dónde estás */
	}
}
