/* Flare Homes — single property template.
   Mobile-first: base rules target small screens, min-width queries layer
   on larger layouts. */

.fh-section-heading--left {
	text-align: left;
	margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------
   Title block (replaces the old background-image banner)
------------------------------------------------------------------------ */
.fh-property-title-block {
	padding: 1.75rem 0 1.25rem;
}
.fh-property-title-block__title {
	font-size: 1.7rem;
	margin: 0 0 0.35rem;
}
.fh-property-title-block__subtitle {
	color: #6b685e;
	font-size: 0.95rem;
	margin: 0 0 0.5rem;
}
.fh-property-title-block__summary {
	color: #45443d;
	max-width: 65ch;
	margin: 0;
}

@media (min-width: 768px) {
	.fh-property-title-block__title {
		font-size: 2.1rem;
	}
}

/* ---------------------------------------------------------------------
   Photo grid + lightbox
------------------------------------------------------------------------ */
.fh-gallery {
	padding-bottom: 1.5rem;
}
.fh-gallery-grid {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-radius: 12px;
	overflow: hidden;
}
.fh-gallery-grid__tile {
	position: relative;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	overflow: hidden;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
}
.fh-gallery-grid__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.fh-gallery-grid__tile:hover img {
	transform: scale(1.04);
}
.fh-gallery-grid__side {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}
.fh-gallery-grid__side .fh-gallery-grid__tile {
	aspect-ratio: auto;
	height: 140px;
}
.fh-gallery-grid__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(20, 20, 18, 0.55);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
}
.fh-gallery-grid__overlay .flarehomes-icon {
	width: 22px;
	height: 22px;
}

/*
 * Desktop: main image left (50%), side tiles right (50%), both the same
 * total height — the side layout adapts by count (1-4) so there's never an
 * empty leftover cell, whatever the actual number of gallery images is.
 */
@media (min-width: 768px) {
	.fh-gallery-grid {
		flex-direction: row;
		height: 420px;
	}
	.fh-gallery-grid__tile--main {
		flex: 1 1 50%;
		height: 100%;
		aspect-ratio: auto;
	}
	.fh-gallery-grid__tile--main:only-child {
		flex-basis: 100%;
	}
	.fh-gallery-grid__side {
		flex: 1 1 50%;
		height: 100%;
		display: grid;
		gap: 6px;
	}
	.fh-gallery-grid__side .fh-gallery-grid__tile {
		height: 100%;
	}

	/* 1 side image: fills the entire side area */
	.fh-gallery-grid--side-1 .fh-gallery-grid__side {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
	}

	/* 2 side images: side by side, each full height */
	.fh-gallery-grid--side-2 .fh-gallery-grid__side {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: 1fr;
	}

	/* 3 side images: two stacked on the left, one tall on the right */
	.fh-gallery-grid--side-3 .fh-gallery-grid__side {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
	}
	.fh-gallery-grid--side-3 .fh-gallery-grid__side .fh-gallery-grid__tile:nth-child(3) {
		grid-row: 1 / 3;
	}

	/* 4 side images: standard 2x2 */
	.fh-gallery-grid--side-4 .fh-gallery-grid__side {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
	}
}

.fh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background-color: rgba(20, 20, 18, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
}
.fh-lightbox[hidden] {
	display: none;
}
.fh-lightbox__image {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
}
.fh-lightbox__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fh-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fh-lightbox__nav--prev {
	left: 1.25rem;
}
.fh-lightbox__nav--next {
	right: 1.25rem;
}
.fh-lightbox__close:hover,
.fh-lightbox__nav:hover {
	background-color: rgba(255, 255, 255, 0.25);
}
.fh-lightbox__counter {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.85rem;
	background-color: rgba(255, 255, 255, 0.12);
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
}

/* ---------------------------------------------------------------------
   Compact property info strip
------------------------------------------------------------------------ */
.fh-property-info {
	padding: 0.5rem 0 1.75rem;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 1.75rem;
}
.fh-info-strip {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}
.fh-info-strip__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	color: var(--color-charcoal);
}
.fh-info-strip__item .flarehomes-icon {
	width: 18px;
	height: 18px;
	color: var(--color-forest);
}

/* ---------------------------------------------------------------------
   Main two-column layout: description (+ sub-sections) | sticky sidebar
------------------------------------------------------------------------ */
.fh-property-main {
	padding-bottom: 3rem;
}
.fh-property-main__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
.fh-property-main__content > div + div {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--color-border);
}

@media (min-width: 900px) {
	.fh-property-main__grid {
		grid-template-columns: 2fr 1fr;
		align-items: start;
	}
	.fh-property-main__sidebar {
		position: sticky;
		top: 90px;
	}
}

/* Description */
.fh-property-description h2 {
	font-size: 1.4rem;
	margin-top: 2rem;
}
.fh-property-description h2:first-child {
	margin-top: 0;
}
.fh-property-description h3 {
	font-size: 1.15rem;
	margin-top: 1.5rem;
}
.fh-property-description p {
	color: #45443d;
	line-height: 1.75;
}

/* Amenities */
.fh-amenities-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.fh-amenity-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	background-color: #f4efe3;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 0.88rem;
	color: var(--color-charcoal);
}
.fh-amenity-chip .flarehomes-icon {
	width: 18px;
	height: 18px;
	color: var(--color-terracotta);
}

/* Pricing */
.fh-pricing-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
.fh-pricing-card {
	background-color: #f4efe3;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 1.5rem;
}
.fh-pricing-card__title {
	font-size: 1.02rem;
	margin: 0 0 0.75rem;
}
.fh-pricing-card__title span {
	color: var(--color-terracotta);
	font-weight: 400;
	font-size: 0.85rem;
}
.fh-pricing-card__primary {
	font-family: var(--font-heading);
	font-size: 1.7rem;
	color: var(--color-forest);
	margin: 0 0 1rem;
}
.fh-pricing-card__primary span {
	font-family: var(--font-body);
	font-size: 0.85rem;
	color: #6b685e;
}
.fh-pricing-card__rows {
	list-style: none;
	margin: 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.fh-pricing-card__rows li {
	display: flex;
	justify-content: space-between;
	font-size: 0.88rem;
	color: #55534c;
}

@media (min-width: 560px) {
	.fh-pricing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* House Rules — sits right below Pricing */
.fh-house-rules__list {
	list-style: none;
	margin: 0;
	padding: 1.5rem 1.75rem;
	background-color: #f4efe3;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.fh-house-rules__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.92rem;
	color: var(--color-charcoal);
	line-height: 1.5;
}
.fh-house-rules__list .flarehomes-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 0.15rem;
	color: var(--color-terracotta);
}

/* Location */
.fh-location-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
.fh-location-details__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	color: var(--color-charcoal);
}
.fh-location-details__destinations {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}
.fh-tag-link {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background-color: #f4efe3;
	color: var(--color-forest);
	font-size: 0.82rem;
	text-decoration: none;
}
.fh-tag-link:hover {
	background-color: var(--color-forest);
	color: #fff;
}
.fh-location-attractions h3 {
	font-size: 1rem;
	margin-bottom: 0.4rem;
}
.fh-location-attractions p {
	color: #45443d;
	line-height: 1.7;
}
.fh-location-map {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
}
.fh-location-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------------------------------------------------------------------
   Sidebar inquiry card
------------------------------------------------------------------------ */
.fh-inquiry-card {
	background-color: #f4efe3;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 1.75rem;
}
.fh-inquiry-card h2 {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}
.fh-inquiry-card p {
	color: #55534c;
	font-size: 0.92rem;
	margin: 0 0 1.25rem;
}
.fh-inquiry-card__cta {
	width: 100%;
	text-align: center;
}
.fh-btn--large {
	padding: 1rem 2.25rem;
	font-size: 1.02rem;
}

