.arrenda-property-page {
	padding: clamp(2rem, 5vw, 4rem) max(1.25rem, calc((100vw - var(--global-content-width, 1200px)) / 2));
}

.arrenda-property {
	--arrenda-accent: var(--global-palette1, #1f5f82);
	--arrenda-accent-dark: var(--global-palette2, #17445d);
	--arrenda-text: var(--global-palette3, #263238);
	--arrenda-muted: var(--global-palette5, #64727a);
	--arrenda-surface: var(--global-palette9, #fff);
	--arrenda-border: color-mix(in srgb, var(--arrenda-text) 16%, transparent);
	color: var(--arrenda-text);
	margin-inline: auto;
	max-width: var(--global-content-width, 1200px);
}

.arrenda-property *,
.arrenda-property *::before,
.arrenda-property *::after {
	box-sizing: border-box;
}

.arrenda-property__back {
	color: var(--arrenda-accent);
	display: inline-block;
	font-weight: 650;
	margin-bottom: 1.25rem;
	text-decoration: none;
}

.arrenda-property__back:hover {
	color: var(--arrenda-accent-dark);
	text-decoration: underline;
}

.arrenda-property__header {
	margin-bottom: 1.5rem;
}

.arrenda-property__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.arrenda-property__badge {
	background: var(--arrenda-accent);
	border-radius: 999px;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	padding: 0.35rem 0.7rem;
	text-transform: uppercase;
}

.arrenda-property__badge--unavailable {
	background: #5c6266;
}

.arrenda-property__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.1;
	margin: 0;
}

.arrenda-property__intro {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin-top: 0.75rem;
}

.arrenda-property__location,
.arrenda-property__reference {
	color: var(--arrenda-muted);
	margin: 0;
}

.arrenda-property__reference {
	font-weight: 650;
}

.arrenda-property__gallery {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.arrenda-property__main-media {
	aspect-ratio: 16 / 9;
	background: #eef1f3;
	border-radius: 0.85rem;
	margin: 0;
	overflow: hidden;
	position: relative;
}

.arrenda-property__main-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.arrenda-property__gallery-control {
	align-items: center;
	background: rgb(18 28 34 / 72%);
	border: 1px solid rgb(255 255 255 / 45%);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	height: clamp(2.75rem, 5vw, 3.5rem);
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 160ms ease, transform 160ms ease;
	width: clamp(2.75rem, 5vw, 3.5rem);
	z-index: 2;
}

.arrenda-property__gallery-control--previous {
	left: clamp(0.65rem, 2vw, 1.25rem);
}

.arrenda-property__gallery-control--next {
	right: clamp(0.65rem, 2vw, 1.25rem);
}

.arrenda-property__gallery-control:hover {
	background: rgb(18 28 34 / 90%);
	transform: translateY(-50%) scale(1.05);
}

.arrenda-property__gallery-control svg {
	fill: none;
	height: 1.65rem;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
	width: 1.65rem;
}

.arrenda-property__unavailable-overlay {
	align-items: center;
	background: rgb(24 31 35 / 68%);
	color: #fff;
	display: flex;
	font-size: clamp(1.4rem, 4vw, 2.6rem);
	font-weight: 800;
	inset: 0;
	justify-content: center;
	letter-spacing: 0.04em;
	position: absolute;
	text-transform: uppercase;
}

.arrenda-property__thumbnails {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.arrenda-property__thumbnail {
	aspect-ratio: 4 / 3;
	background: #eef1f3;
	border: 2px solid transparent;
	border-radius: 0.4rem;
	cursor: pointer;
	overflow: hidden;
	padding: 0;
}

.arrenda-property__thumbnail.is-current {
	border-color: var(--arrenda-accent);
}

.arrenda-property__thumbnail img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.arrenda-property__thumbnail:focus-visible,
.arrenda-property__gallery-control:focus-visible,
.arrenda-property__back:focus-visible,
.arrenda-property__catalog-link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--arrenda-accent) 35%, transparent);
	outline-offset: 3px;
}

.arrenda-property__layout {
	align-items: start;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 0.75fr);
}

.arrenda-property__section + .arrenda-property__section {
	border-top: 1px solid var(--arrenda-border);
	margin-top: 2rem;
	padding-top: 2rem;
}

.arrenda-property__historical-context {
	background: color-mix(in srgb, var(--arrenda-accent) 7%, var(--arrenda-surface));
	border-left: 0.3rem solid var(--arrenda-accent);
	border-radius: 0.35rem;
	line-height: 1.65;
	margin-bottom: 2rem;
	padding: 1rem 1.15rem;
}

.arrenda-property__historical-context h2 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	margin: 0 0 0.65rem;
}

.arrenda-property__historical-context p {
	margin: 0;
}

.arrenda-property__historical-context p + p {
	margin-top: 0.75rem;
}

.arrenda-property__section h2,
.arrenda-property__recommendations h2,
.arrenda-property__summary h2 {
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	margin: 0 0 1rem;
}

.arrenda-property__description {
	line-height: 1.7;
}

.arrenda-property__description p:first-child {
	margin-top: 0;
}

.arrenda-property__features {
	display: grid;
	gap: 0.65rem 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.arrenda-property__features li {
	padding-left: 1.3rem;
	position: relative;
}

.arrenda-property__features li::before {
	color: var(--arrenda-accent);
	content: "✓";
	font-weight: 800;
	left: 0;
	position: absolute;
}

.arrenda-property__summary {
	background: var(--arrenda-surface);
	border: 1px solid var(--arrenda-border);
	border-radius: 0.75rem;
	box-shadow: 0 0.35rem 1.25rem rgb(25 42 52 / 7%);
	padding: 1.25rem;
	position: sticky;
	top: 2rem;
}

.arrenda-property__price {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	margin: 0 0 1rem;
}

.arrenda-property__facts {
	display: grid;
	gap: 0;
	margin: 0;
}

.arrenda-property__facts div {
	align-items: baseline;
	border-top: 1px solid var(--arrenda-border);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.75rem 0;
}

.arrenda-property__facts dt {
	color: var(--arrenda-muted);
}

.arrenda-property__facts dd {
	font-weight: 700;
	margin: 0;
	text-align: right;
}

.arrenda-property--unavailable .arrenda-property__summary {
	background: color-mix(in srgb, #5c6266 6%, var(--arrenda-surface));
}

.arrenda-property__recommendations {
	border-top: 1px solid var(--arrenda-border);
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.arrenda-property__recommendations-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.arrenda-property__catalog-link {
	margin-top: 1.5rem;
}

@media (max-width: 800px) {
	.arrenda-property__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.arrenda-property__summary {
		position: static;
	}

	.arrenda-property__thumbnails {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.arrenda-property-page {
		padding-inline: 1rem;
	}

	.arrenda-property__main-media {
		aspect-ratio: 4 / 3;
	}

	.arrenda-property__thumbnails {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.arrenda-property__features,
	.arrenda-property__recommendations-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}


