/* Ficha de propiedad (single-propiedad.php). Se carga solo en las fichas. */
.qb-ficha {
	max-width: 1200px;
	margin: 32px auto 56px;
	padding: 40px 32px 56px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 40px rgba(0, 0, 0, 0.08);
	color: var(--qb-gris);
	font-size: 16px;
	line-height: 1.7;
}
.qb-ficha h1,
.qb-ficha h2,
.qb-ficha h3 {
	font-family: 'Yanone Kaffeesatz', Helvetica, Arial, sans-serif;
	text-transform: uppercase;
	color: var(--qb-negro);
	padding: 0;
}
.qb-ficha-back {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 14px;
	text-decoration: none;
}
.qb-ficha-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.qb-ficha-badges {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.qb-ficha .qb-badge {
	position: static;
	display: inline-block;
}
.qb-chip {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--qb-terracota);
	border-radius: 20px;
	color: var(--qb-terracota);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}
.qb-ficha h1 {
	font-size: 46px;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 10px;
}
.qb-ficha-ubicacion {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 17px;
}
.qb-ficha .qb-icon {
	flex: none;
	color: var(--qb-terracota);
}
.qb-ficha-price {
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--qb-terracota);
	white-space: nowrap;
}
.qb-ficha-price small {
	margin-left: 4px;
	font-size: 18px;
	font-weight: 600;
	color: var(--qb-gris);
}
.qb-ficha-price-consultar {
	font-size: 28px;
}
/* Bajada de precio en la cabecera y en la tarjeta de contacto */
.qb-ficha-price {
	text-align: right;
}
.qb-ficha-bajada,
.qb-contacto-bajada {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 400;
	line-height: 1.2;
}
.qb-ficha-bajada {
	justify-content: flex-end;
	margin-top: 8px;
	font-size: 20px;
}
.qb-contacto-bajada {
	margin-top: 8px;
	font-size: 16px;
}
.qb-ficha-bajada s,
.qb-contacto-bajada s {
	color: var(--qb-gris);
	white-space: nowrap;
}
.qb-ficha-bajada .qb-bajada {
	padding: 3px 11px;
	font-size: 14px;
}
.qb-contacto-bajada .qb-bajada {
	font-size: 13px;
}

/* Galería */
.qb-galeria-main {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #eee;
	outline-offset: 3px;
}
.qb-galeria-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.qb-galeria-track::-webkit-scrollbar {
	display: none;
}
.qb-slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	aspect-ratio: 16 / 9;
	cursor: zoom-in;
}
.qb-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.qb-galeria-nav,
.qb-galeria-zoom {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--qb-negro);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, color 0.2s ease;
}
.qb-galeria-nav:hover,
.qb-galeria-zoom:hover {
	background: var(--qb-terracota);
	color: #fff;
}
.qb-galeria-nav {
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	font-size: 34px;
	line-height: 1;
	padding-bottom: 4px;
}
.qb-galeria-prev {
	left: 14px;
}
.qb-galeria-next {
	right: 14px;
}
.qb-galeria-zoom {
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	padding: 0;
}
.qb-galeria-count {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 4px 12px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
}
.qb-galeria-thumbs {
	position: relative;
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--qb-terracota) #eee;
}
.qb-thumb {
	flex: none;
	width: 96px;
	height: 66px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #eee;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}
.qb-thumb:hover {
	opacity: 1;
}
.qb-thumb.is-active {
	opacity: 1;
	border-color: var(--qb-terracota);
}
.qb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Datos clave */
.qb-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 8px;
	padding: 0;
	list-style: none;
}
.qb-facts li {
	flex: 1 1 130px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 16px 12px;
	border-radius: 12px;
	background: #f7f5f3;
	text-align: center;
}
.qb-facts .qb-icon {
	width: 28px;
	height: 28px;
	margin-bottom: 4px;
}
.qb-facts strong {
	font-size: 22px;
	line-height: 1.2;
	color: var(--qb-negro);
}
.qb-facts span {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Cuerpo */
.qb-ficha-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: start;
	margin-top: 24px;
}
.qb-sec {
	margin-bottom: 40px;
}
.qb-sec h2 {
	margin: 0 0 16px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
}
.qb-ficha-descripcion p {
	padding-bottom: 1em;
}
/* Formato que se puede dar a la descripción desde el editor del panel */
.qb-sec .qb-ficha-descripcion h2,
.qb-sec .qb-ficha-descripcion h3,
.qb-sec .qb-ficha-descripcion h4 {
	margin: 1.2em 0 0.4em;
	font-weight: 700;
	line-height: 1.1;
}
.qb-sec .qb-ficha-descripcion h2 {
	font-size: 28px;
}
.qb-sec .qb-ficha-descripcion h3 {
	font-size: 24px;
}
.qb-sec .qb-ficha-descripcion h4 {
	font-size: 20px;
}
.qb-ficha-descripcion > :first-child {
	margin-top: 0;
}
.qb-ficha-descripcion ul,
.qb-ficha-descripcion ol {
	margin: 0 0 1em;
	padding: 0 0 0 1.4em;
}
.qb-ficha-descripcion ul {
	list-style: disc;
}
.qb-ficha-descripcion ol {
	list-style: decimal;
}
.qb-ficha-descripcion li {
	padding-bottom: 0.25em;
}
.qb-ficha-descripcion hr {
	margin: 1.5em 0;
	border: 0;
	border-top: 1px solid #ece7e2;
}
.qb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.qb-chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 10px;
	border-radius: 20px;
	background: #f7f5f3;
	color: var(--qb-negro);
	font-size: 15px;
}
.qb-chips .qb-icon {
	width: 18px;
	height: 18px;
}
.qb-detalles {
	margin: 0;
	border-top: 1px solid #ece7e2;
}
.qb-detalles > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #ece7e2;
}
.qb-detalles dt {
	font-weight: 600;
	color: var(--qb-negro);
}
.qb-detalles dd {
	margin: 0;
	text-align: right;
}
.qb-ficha-mapa {
	margin: 14px 0 0;
}

/* Tarjeta de contacto */
.qb-ficha-side {
	position: sticky;
	top: 120px;
}
.qb-contacto-card {
	padding: 28px 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
	border-top: 5px solid var(--qb-terracota);
}
.qb-contacto-card h3 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}
.qb-contacto-card p {
	margin: 0 0 18px;
	padding: 0;
}
.qb-contacto-card .qb-contacto-precio {
	margin-bottom: 14px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: var(--qb-terracota);
}
.qb-contacto-precio small {
	font-size: 15px;
	color: var(--qb-gris);
}
.qb-btn-contacto {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 12px 16px;
	border: 2px solid var(--qb-terracota);
	border-radius: 8px;
	color: var(--qb-terracota);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.qb-btn-contacto:hover {
	background: var(--qb-terracota);
	color: #fff;
}
.qb-btn-contacto:hover .qb-icon {
	color: #fff;
}
.qb-btn-principal {
	background: var(--qb-terracota);
	color: #fff;
	font-size: 17px;
}
.qb-btn-principal:hover {
	background: var(--qb-terracota-oscuro);
	border-color: var(--qb-terracota-oscuro);
}
.qb-contacto-card .qb-contacto-ref {
	margin: 12px 0 0;
	font-size: 12px;
	text-align: center;
	color: #999;
}

/* Relacionadas */
.qb-relacionadas {
	margin: 56px 0 0;
}

/* Visor a pantalla completa */
.qb-lb-lock {
	overflow: hidden;
}
.qb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 8, 6, 0.94);
}
.qb-lightbox.is-open {
	display: flex;
}
.qb-lb-fig {
	margin: 0;
	max-width: 92vw;
	max-height: 90vh;
}
.qb-lb-fig img {
	display: block;
	max-width: 92vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	border-radius: 6px;
}
.qb-lb-close,
.qb-lb-nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}
.qb-lb-close:hover,
.qb-lb-nav:hover {
	background: var(--qb-terracota);
}
.qb-lb-close {
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	font-size: 30px;
	line-height: 1;
}
.qb-lb-nav {
	top: 50%;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	font-size: 38px;
	line-height: 1;
	padding-bottom: 5px;
}
.qb-lb-prev {
	left: 18px;
}
.qb-lb-next {
	right: 18px;
}
.qb-lb-count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 14px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 14px;
}

@media (max-width: 980px) {
	.qb-ficha {
		margin: 0 auto;
		padding: 24px 16px 56px;
		border-radius: 0;
		box-shadow: none;
	}
	.qb-ficha h1 {
		font-size: 36px;
	}
	.qb-ficha-price {
		font-size: 36px;
	}
	.qb-ficha-cols {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.qb-ficha-side {
		position: static;
		order: -1;
		margin-bottom: 32px;
	}
	.qb-slide {
		aspect-ratio: 4 / 3;
	}
	.qb-galeria-nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
		font-size: 28px;
	}
	.qb-thumb {
		width: 76px;
		height: 54px;
	}
}
