/*
 * UL Properties: the Property Grid cards and the property page.
 * Mobile first. Live measured at 1440 on 2026-11-14 (sites/ul/notes/live-1440.md).
 *
 * Colors come from the theme's tokens, with UL's own as the fallback:
 *   navy  #314a61  Color 1: facts boxes, names, arrows   white on it 9.2, it on #f4f4f4 8.4
 *   gray  #f4f4f4  live's card foot and tab box           #606060 on it 5.7
 * Gold (#d4af37) is never text here: 2.1 on white.
 */

.ul-props-section,
.ul-prop {
	--ul-navy: var(--color-brand-1, #314a61);
	--ul-gray: #f4f4f4;
	--ul-line: #dad9d9;
	--ul-text: #606060;
	--ul-serif: var(--font-secondary, 'Gelasio', Georgia, serif);
}

/* ------------------------------------------------------------------ *
 * Shared: the navy facts box (grid card) and a block's caps heading
 * ------------------------------------------------------------------ */

.ul-prop-facts {
	margin: 0;
	padding: 0.75rem 1rem;
	background: var(--ul-navy);
	color: #fff;
	font-size: 0.8125rem;   /* live's 13 */
	font-weight: 700;
	line-height: 1.25;
}

.ul-prop-facts__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0;
}

.ul-prop-facts dt,
.ul-prop-facts dd {
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * The Property Grid (Luxury Rentals)
 * ------------------------------------------------------------------ */

.ul-props {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48rem) {
	.ul-props {
		grid-template-columns: repeat(var(--ul-props-cols-t, 2), minmax(0, 1fr));
		gap: 2rem;
	}
}

@media (min-width: 64rem) {
	.ul-props {
		grid-template-columns: repeat(var(--ul-props-cols, 2), minmax(0, 1fr));
		gap: 2.25rem 3rem;   /* live: 48 across, 36 down */
	}
}

/* One card: the photo, then the gray foot. The whole card is the link (the name's ::after covers it). */
.ul-prop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ul-gray);
}

.ul-prop-card__media {
	aspect-ratio: 558 / 349;   /* live's photo */
	overflow: hidden;
	background: var(--ul-line);
}

.ul-prop-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.ul-prop-card:hover .ul-prop-card__img,
.ul-prop-card:focus-within .ul-prop-card__img {
	transform: scale(1.04);
}

/* The foot: the name and address on the left, the facts box over the photo's corner on the right. */
.ul-prop-card__foot {
	flex: 1;
	min-height: 6rem;   /* live's 96 */
	padding: 1.25rem 10rem 1.5rem 1.25rem;
}

.ul-prop-card__title {
	margin: 0 0 0.25rem;
	font-family: var(--ul-serif);
	font-size: 1.375rem;   /* live's 22 */
	font-weight: 400;
	line-height: 1.2;
	color: var(--ul-navy);
}

.ul-prop-card__link {
	color: inherit;
	text-decoration: none;
}

.ul-prop-card__link::after {
	content: '';
	position: absolute;
	inset: 0;   /* the whole card, photo too, is the one link */
	z-index: 1;
}

.ul-prop-card__link:focus-visible {
	outline: none;
}

.ul-prop-card:focus-within {
	outline: 3px solid var(--ul-navy);
	outline-offset: 3px;
}

.ul-prop-card__addr {
	margin: 0;
	font-size: 0.8125rem;   /* live's 13 */
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ul-navy);
}

.ul-prop-card .ul-prop-facts {
	position: absolute;
	right: 0;
	bottom: 1.5rem;   /* live: 24 above the card's bottom, rising over the photo's corner */
	width: 8.25rem;   /* live's 132 */
}

/* Very narrow phones: the facts box under the words instead of beside them. */
@media (max-width: 22rem) {
	.ul-prop-card__foot {
		padding-right: 1.25rem;
	}

	.ul-prop-card .ul-prop-facts {
		position: static;
		width: auto;
		margin-top: 1rem;
	}
}

/* ------------------------------------------------------------------ *
 * The property page
 * ------------------------------------------------------------------ */

.ul-prop__wrap {
	padding-block: 2.5rem 4rem;
	color: var(--ul-text);
}

/* The facts strip: four gray cells, the number bold. */
.ul-prop-strip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	background: #fff;
}

@media (min-width: 48rem) {
	.ul-prop-strip {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		grid-auto-flow: column;
	}
}

.ul-prop-strip__item {
	display: flex;
	flex-direction: row-reverse;
	justify-content: center;
	align-items: baseline;
	gap: 0.375rem;
	padding: 0.875rem 0.5rem;
	background: var(--ul-gray);
}

.ul-prop-strip dt,
.ul-prop-strip dd {
	margin: 0;
}

.ul-prop-strip dt {
	font-size: 0.8125rem;
}

.ul-prop-strip dd {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ul-navy);
}

/* The photos: the base carousel, one at a time; live's navy square arrows. */
.ul-prop-photos {
	margin-top: 0;
}

.ul-prop-gallery .tg-cards__arrow {
	background: var(--ul-navy);
	color: #fff;
	border-radius: 0;
}

.ul-prop-gallery .tg-cards__arrow:hover,
.ul-prop-gallery .tg-cards__arrow:focus-visible {
	background: #fff;
	color: var(--ul-navy);
}

.ul-prop-photos__hint {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	text-align: center;
}

/* A block of the page: Tour, Location, Contact. Live's heading: serif caps, letter-spaced, a line under it. */
.ul-prop-block {
	margin-top: 3.5rem;
}

.ul-prop-block__title {
	max-width: 36rem;
	margin: 0 auto 1.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid currentColor;
	font-family: var(--ul-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);   /* live's 24 */
	font-weight: 400;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	color: var(--ul-text);
}

/* Description / Features / Details: the base tabs on live's gray box. */
.ul-prop-about .tg-tabs__panels {
	padding: 1.5rem;
	background: var(--ul-gray);
}

@media (min-width: 48rem) {
	.ul-prop-about .tg-tabs__panels {
		padding: 2rem 1.75rem;
	}
}

/* Live's bold lines that head each part of a description. */
.ul-prop-desc h3 {
	margin: 1.75rem 0 0.75rem;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
	color: #353535;
}

.ul-prop-desc > :first-child {
	margin-top: 0;
}

.ul-prop-features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.625rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.ul-prop-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.ul-prop-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ul-prop-features li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ul-prop-features__icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	color: var(--ul-navy);
}

.ul-prop-details {
	display: grid;
	gap: 0;
	max-width: 40rem;
	margin: 0;
}

.ul-prop-details__row {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 1rem;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--ul-line);
}

.ul-prop-details dt {
	font-weight: 700;
	color: var(--ul-navy);
}

.ul-prop-details dd {
	margin: 0;
}

.ul-prop-rates__title {
	margin: 2rem 0 0.75rem;
	font-size: 1.125rem;
}

.ul-prop-rates {
	overflow-x: auto;
}

.ul-prop-rates table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.ul-prop-rates th {
	background: var(--ul-navy);
	color: #fff;
	text-align: left;
}

.ul-prop-rates th,
.ul-prop-rates td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--ul-line);
}

/* Video and 3D tour: a photo each, the words on a dark band. */
.ul-prop-tours__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 48rem) {
	.ul-prop-tours__list {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		grid-auto-flow: column;
	}
}

.ul-prop-tour {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ul-navy);
	color: #fff;
	text-decoration: none;
}

.ul-prop-tour__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.ul-prop-tour:hover .ul-prop-tour__img,
.ul-prop-tour:focus-visible .ul-prop-tour__img {
	transform: scale(1.04);
}

.ul-prop-tour__label {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: rgb(0 0 0 / 0.6);   /* white words on it pass on any photo */
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ul-prop-tour__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--ul-navy);
}

.ul-prop-tour__icon svg {
	width: 1.125rem;
	height: 1.125rem;
}

.ul-prop-tour:focus-visible {
	outline: 3px solid var(--ul-navy);
	outline-offset: 3px;
}

/* The Matterport tour inside the lightbox. */
.ul-prop-3d {
	width: min(90vw, 80rem);
	aspect-ratio: 16 / 9;
}

.ul-prop-3d iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Location: the map, then the address and the directions button. */
.ul-prop-map--embed {
	aspect-ratio: 4 / 3;
	background: var(--ul-line);
}

@media (min-width: 48rem) {
	.ul-prop-map--embed {
		aspect-ratio: 21 / 9;
	}
}

.ul-prop-map--embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ul-prop-location__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
}

.ul-prop-location__addr {
	margin: 0;
	font-weight: 700;
	color: var(--ul-navy);
}

/* Contact: live's gray box around the form. */
.ul-prop-contact {
	padding: 2rem 1.25rem;
	background: var(--ul-gray);
}

@media (min-width: 48rem) {
	.ul-prop-contact {
		padding: 2.5rem;
	}
}

.ul-prop-contact__lede {
	margin: -0.75rem 0 1.5rem;
	text-align: center;
}

.ul-prop__back {
	margin: 3rem 0 0;
}

.ul-prop__back a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--ul-navy);
}

@media (prefers-reduced-motion: reduce) {
	.ul-prop-card__img,
	.ul-prop-tour__img {
		transition: none;
	}

	.ul-prop-card:hover .ul-prop-card__img,
	.ul-prop-card:focus-within .ul-prop-card__img,
	.ul-prop-tour:hover .ul-prop-tour__img,
	.ul-prop-tour:focus-visible .ul-prop-tour__img {
		transform: none;
	}
}
