/* === Yellow Me: ficha individual de propiedad (2 columnas) ===
   Plantilla: divi-pevaro/single-wdd-property.php
   Lógica:    wp-content/novamira-sandbox/yellowme-property-single.php
   Solo se carga en las fichas. Todo va bajo .yellowme-property para no
   chocar con wadda-inmo.css. */

.yellowme-property {
	--ym-yellow: #FFDA03;
	--ym-ink: #000;
	--ym-muted: #5f5f5f;
	--ym-line: #e6e6e6;
	--ym-soft: #f7f7f7;
	--ym-gap: 40px;
	color: var(--ym-ink);
	font-size: 15px;
	line-height: 1.65;
	padding: 8px 0 72px;
}

.yellowme-property *,
.yellowme-property *::before,
.yellowme-property *::after {
	box-sizing: border-box;
}

.yellowme-property h1,
.yellowme-property h2 {
	font-family: 'Quicksand', sans-serif;
	color: var(--ym-ink);
	line-height: 1.2;
	padding: 0;
}

/* Cabecera */
.yellowme-property__header {
	margin-bottom: 28px;
}

.yellowme-property__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.yellowme-property__kicker .op {
	background: var(--ym-yellow);
	color: var(--ym-ink);
	font-weight: 700;
	padding: 3px 10px;
}

.yellowme-property__kicker .loc {
	color: var(--ym-muted);
}

.single-wdd-property .yellowme-property h1.yellowme-property__title {
	/* Anula el título con fondo amarillo de la ficha antigua (style.css del tema hijo). */
	background: none;
	color: var(--ym-ink);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 700;
	margin: 0;
	max-width: 900px;
}

/* Dos columnas: contenido + columna fija con precio y contacto */
.yellowme-property__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: var(--ym-gap) 48px;
	align-items: start;
}

.yellowme-property__content > * + * {
	margin-top: var(--ym-gap);
}

/* Imagen principal + miniaturas */
.yellowme-property__main {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ym-soft);
}

.yellowme-property__main img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform .4s ease;
}

.yellowme-property__main:hover img {
	transform: scale(1.02);
}

.yellowme-property__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	background: var(--ym-yellow);
	color: var(--ym-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 12px;
}

.yellowme-property .yellowme-property__thumbs {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.yellowme-property__thumbs li {
	margin: 0;
	padding: 0;
}

.yellowme-property__thumbs li[hidden] {
	display: none;
}

.yellowme-property__thumbs a {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ym-soft);
}

.yellowme-property__thumbs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: opacity .2s ease;
}

.yellowme-property__thumbs a:hover img {
	opacity: .85;
}

.yellowme-property__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-family: 'Quicksand', sans-serif;
	font-size: 24px;
	font-weight: 700;
}

.yellowme-property__all-photos {
	display: inline-block;
	margin-top: 14px;
	color: var(--ym-ink);
	font-weight: 600;
	border-bottom: 2px solid var(--ym-yellow);
}

/* Secciones */
.yellowme-property__section h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
}

.yellowme-property__section h2::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 10px;
	background: var(--ym-yellow);
}

.yellowme-property__description p {
	padding-bottom: 1em;
}

.yellowme-property__description p:last-child {
	padding-bottom: 0;
}

.yellowme-property__features dl {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
}

.yellowme-property__features dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--ym-line);
}

.yellowme-property__features dt {
	color: var(--ym-muted);
}

.yellowme-property__features dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.yellowme-property__map-note {
	color: var(--ym-muted);
	margin: 0 0 12px;
	padding: 0;
}

.yellowme-property__map #wip-map {
	width: 100%;
	height: 380px;
	margin: 0;
	z-index: 0;
	background: var(--ym-soft);
}

/* Columna derecha */
.yellowme-property__aside {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.yellowme-property__card {
	background: var(--ym-ink);
	color: #fff;
	padding: 26px 28px;
}

.yellowme-property__price {
	font-family: 'Quicksand', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ym-yellow);
	margin: 0;
	padding: 0;
}

.yellowme-property__price + .yellowme-property__price {
	margin-top: 6px;
	font-size: 24px;
}

.yellowme-property__price span {
	font-size: 16px;
	font-weight: 500;
}

.yellowme-property .yellowme-property__facts {
	list-style: none;
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.yellowme-property__facts li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.yellowme-property__ref {
	margin: 16px 0 0;
	padding: 0;
	font-size: 13px;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, .7);
}

/* Formulario de contacto (widget de Wadda Inmo) */
.yellowme-property__contact .widget {
	background: var(--ym-soft);
	padding: 26px 28px;
	margin: 0;
}

.yellowme-property__contact .widget-title {
	font-family: 'Quicksand', sans-serif;
	font-size: 20px;
	font-weight: 700;
	text-transform: none;
	text-align: left;
	margin: 0 0 6px;
	padding: 0;
}

.yellowme-property__contact .widget-text {
	color: var(--ym-muted);
	margin-bottom: 18px;
}

.yellowme-property__contact .wdd-field {
	margin-bottom: 12px;
}

.yellowme-property__contact .wdd-field > label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.yellowme-property__contact .wdd-field.legal > label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	font-weight: 400;
}

.yellowme-property__contact .wdd-field.legal input {
	margin-top: 4px;
}

.yellowme-property__contact input[type="text"],
.yellowme-property__contact textarea {
	width: 100%;
	border: 1px solid var(--ym-line);
	background: #fff;
	padding: 12px 14px;
	font-size: 15px;
	color: var(--ym-ink);
	border-radius: 0;
}

.yellowme-property__contact textarea {
	min-height: 120px;
	resize: vertical;
}

.yellowme-property__contact input[type="text"]:focus,
.yellowme-property__contact textarea:focus {
	outline: 2px solid var(--ym-yellow);
	outline-offset: -1px;
	border-color: var(--ym-yellow);
}

.yellowme-property__contact .wdd-notice {
	font-size: 12px;
	color: var(--ym-muted);
	margin-bottom: 10px;
}

.yellowme-property__contact .wdd-field.send input,
.yellowme-property__contact .wdd-field.send .btn {
	width: 100%;
	background: var(--ym-yellow);
	color: var(--ym-ink);
	border: 0;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease;
}

.yellowme-property__contact .wdd-field.send input:hover {
	background: #000;
	color: var(--ym-yellow);
}

/* Tablet: la columna derecha pasa debajo */
@media (max-width: 980px) {
	.yellowme-property__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.yellowme-property__aside {
		position: static;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* Móvil: una columna; el precio sube justo después de las fotos */
@media (max-width: 767px) {
	.yellowme-property {
		--ym-gap: 32px;
		padding: 0 0 48px;
	}

	.yellowme-property__layout {
		display: flex;
		flex-direction: column;
		gap: var(--ym-gap);
	}

	.yellowme-property__content,
	.yellowme-property__aside {
		display: contents;
	}

	.yellowme-property__content > * + * {
		margin-top: 0;
	}

	.yellowme-property__media { order: 1; }
	.yellowme-property__card { order: 2; }
	.yellowme-property__description { order: 3; }
	.yellowme-property__features { order: 4; }
	.yellowme-property__map { order: 5; }
	.yellowme-property__contact { order: 6; }

	.yellowme-property .yellowme-property__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
	}

	.yellowme-property__more {
		font-size: 18px;
	}

	.yellowme-property__features dl {
		grid-template-columns: minmax(0, 1fr);
	}

	.yellowme-property__map #wip-map {
		height: 300px;
	}

	.yellowme-property__price {
		font-size: 28px;
	}
}
