﻿/*
Theme Name: Fern & Thistle
Theme URI: https://www.fernandthistle.co.nz/
Author: OpenAI Codex
Description: Custom Fern & Thistle WordPress theme rebuilt to follow the current Fern & Thistle live-site structure and styling more closely.
Version: 0.2.22
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fern-and-thistle
*/

:root {
	--ft-grey-950: #111111;
	--ft-grey-800: #444444;
	--ft-grey-700: #6b6b6b;
	--ft-grey-600: #727272;
	--ft-grey-500: #9c9c9c;
	--ft-grey-300: #d3d3d3;
	--ft-grey-200: #e9e9e9;
	--ft-grey-100: #f5f5f5;
	--ft-brick-900: #46251c;
	--ft-brick-700: #6f3523;
	--ft-brick-500: #9a6047;
	--ft-paper: #f7efe4;
	--ft-copy: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ft-display: "Abril Fatface", Georgia, serif;
	--ft-width: min(1180px, calc(100vw - 1.5rem));
	--ft-shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.16);
	--ft-shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.15);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ft-copy);
	font-size: 15px;
	line-height: 1.7;
	color: #555555;
	background-color: var(--ft-grey-200);
	background-image: url("assets/images/grounds-garden.jpg");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(233, 233, 233, 0.76);
	pointer-events: none;
	z-index: -1;
}

body.ft-lightbox-open,
body.history-detail-open {
	overflow: hidden;
}

a {
	color: #222222;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

p {
	margin: 0 0 1rem;
}

ul {
	margin: 0;
	padding-left: 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-shell {
	min-height: 100vh;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(114, 114, 114, 0.95);
}

.site-header__inner {
	width: min(1240px, calc(100vw - 1.5rem));
	margin: 0 auto;
	min-height: 80px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 1rem;
}

.site-branding {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	justify-self: start;
}

.site-branding__logo {
	width: 65px;
	height: auto;
}

.site-nav {
	justify-self: stretch;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: #222222;
	font-size: 20px;
	font-weight: 700;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	color: #ffffff;
	text-decoration: none;
}

.site-header__aside {
	justify-self: end;
}

.tools_button,
.button,
.facility_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ft-grey-700);
	border-radius: 12px;
	background: #6b6b6b;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 0.95rem 1.6rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
	text-decoration: none;
}

.tools_button:hover,
.button:hover,
.facility_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
	color: #ffffff;
	text-decoration: none;
	opacity: 0.96;
}

.button--primary {
	min-width: 240px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.site-main {
	width: var(--ft-width);
	margin: 0 auto 0;
	background: #ffffff;
	box-shadow: var(--ft-shadow-soft);
}

.title-bar {
	--title-bg-image: url("assets/images/hero-estate.jpg");
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-image: var(--title-bg-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.title-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--title-bg-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(3px) brightness(0.9);
	transform: scale(1.05);
	z-index: 0;
}

.title-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.22);
	z-index: 0;
}

.title-bar__inner {
	position: relative;
	z-index: 1;
	padding: 4rem 1.5rem;
	text-align: center;
}

.title-bar--home .title-bar__inner {
	padding: 4.5rem 1.5rem;
}

.page-title {
	margin: 0;
	font-family: var(--ft-display);
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	font-weight: 400;
	color: #ffffff;
	text-transform: none;
	line-height: 1.05;
}

.page-title--logo {
	width: min(520px, 74vw);
	height: 225px;
	margin: 0 auto;
	background-image: url("assets/images/logo.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	font-size: 0;
	color: transparent;
}

.page-subtitle {
	max-width: 760px;
	margin: 1rem auto 0;
	color: #ffffff;
	font-size: 17px;
}

.book-strip {
	padding: 1.5rem 1rem 0;
	text-align: center;
}

.section-block {
	padding: 2.5rem clamp(1.1rem, 3vw, 2.5rem);
}

.section-block + .section-block {
	border-top: 1px solid #ededed;
}

.section-heading {
	margin: 0 0 1.25rem;
	font-family: var(--ft-display);
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 400;
	line-height: 1.1;
	color: #5f6738;
	text-align: center;
}

.section-heading--left {
	text-align: left;
}

.section-kicker {
	margin: 0 0 0.65rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #444444;
}

.section-copy {
	max-width: 980px;
	margin: 0 auto;
	color: #555555;
}

.section-note {
	max-width: 820px;
	margin: -0.2rem auto 1.2rem;
	text-align: center;
	color: #666666;
}

.section-note--left {
	max-width: 620px;
	margin: -0.2rem 0 1.6rem;
	text-align: left;
}

.section-block--facilities {
	padding-top: 2.2rem;
}

.section-block--bnb {
	padding-top: 2.2rem;
}

.facility-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
}

.facility-card {
	width: calc(33.333% - 20px);
	min-width: 250px;
	padding: 22px 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background:
		linear-gradient(180deg, #f2f2f2, #cfcfcf 40%, #e5e5e5 60%, #bdbdbd),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.05) 0,
			rgba(255, 255, 255, 0.05) 1px,
			rgba(0, 0, 0, 0.04) 2px,
			rgba(0, 0, 0, 0.04) 3px
		);
	border: 1px solid #9c9c9c;
	border-radius: 6px;
	box-shadow: var(--ft-shadow-card);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.facility-card:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(0, 0, 0, 0.2), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.facility-card__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 12px;
	object-fit: contain;
}

.facility-card__icon--photo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.facility-card__title {
	margin: 0 0 0.75rem;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: #323232;
}

.facility-card__description {
	margin: 0;
	color: #4d4d4d;
	font-size: 15px;
	flex: 1;
}

.facility_button {
	width: 180px;
	margin: 16px auto 0;
}

.image-strip,
.gallery-grid {
	display: grid;
	gap: 1rem;
}

.image-strip,
.gallery-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-block + .gallery-block {
	margin-top: 2.5rem;
}

.home-marquee {
	position: relative;
	overflow: hidden;
	margin-top: 1.5rem;
	padding: 0.45rem 0;
}

.home-marquee::before,
.home-marquee::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 72px;
	z-index: 1;
	pointer-events: none;
}

.home-marquee::before {
	left: 0;
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.home-marquee::after {
	right: 0;
	background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.home-marquee__track {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	width: max-content;
	animation: ft-marquee-scroll 68s linear infinite;
}

.home-marquee:hover .home-marquee__track {
	animation-play-state: paused;
}

.home-marquee__item {
	flex: 0 0 clamp(220px, 27vw, 360px);
	margin: 0;
	overflow: hidden;
	border-radius: 24px;
	background: #e9e1d7;
	box-shadow: 0 18px 34px rgba(71, 58, 38, 0.12);
}

.home-marquee__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.home-marquee__action {
	margin: 1.5rem 0 0;
	text-align: center;
}

@keyframes ft-marquee-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-50% - 0.5rem));
	}
}

.gallery-showcase + .gallery-showcase {
	border-top: 1px solid #ededed;
}

.gallery-item,
.image-tile {
	margin: 0;
	overflow: hidden;
	background: #ececec;
}

.gallery-item img,
.image-tile img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gallery-item figcaption {
	padding: 0.7rem 0 0;
	text-align: center;
	color: #333333;
}

.event-intro {
	max-width: 900px;
	margin-inline: 0;
}

.event-card .media-card__hint::after {
	content: " photos";
}

.event-cta {
	margin-top: clamp(2rem, 5vw, 4rem);
	padding: clamp(1.35rem, 3vw, 2rem);
	border-radius: 28px;
	background:
		linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(246, 237, 223, 0.94)),
		#f7f1e8;
	box-shadow: 0 18px 40px rgba(71, 58, 38, 0.12);
}

.event-cta p {
	max-width: 720px;
	margin: 0 0 1rem;
	color: #4f463c;
}

.ft_sauna_page {
	display: grid;
	gap: clamp(1.6rem, 4vw, 3rem);
}

.sauna-page-intro {
	max-width: 840px;
	margin-inline: auto;
	text-align: center;
}

.sauna-page-intro p {
	margin: 0;
	color: #4f463c;
	font-size: clamp(1rem, 2vw, 1.16rem);
	line-height: 1.8;
}

.sauna-slideshow-card {
	max-width: 980px;
	margin: 0 auto clamp(2rem, 5vw, 3.2rem);
}

.sauna-slideshow-card__trigger {
	display: grid;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 24px;
	background: #f8f4ed;
	box-shadow: 0 18px 40px rgba(71, 58, 38, 0.14);
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.sauna-slideshow-card__image-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	background: #e9e1d7;
}

.sauna-slideshow-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 280ms ease, opacity 180ms ease;
}

.sauna-slideshow-card__trigger:hover .sauna-slideshow-card__image {
	transform: scale(1.025);
}

.sauna-slideshow-card__badge {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 250, 243, 0.92);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ft-brick-900);
}

.sauna-slideshow-card__body {
	display: grid;
	gap: 0.45rem;
	padding: clamp(1rem, 3vw, 1.4rem);
}

.sauna-slideshow-card__body strong {
	font-family: var(--ft-display);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 400;
	line-height: 1;
	color: var(--ft-brick-900);
}

.sauna-slideshow-card__body span {
	max-width: 720px;
	color: #5c5247;
}

/* Fern and Thistle, Sauna page styling for Amelia */
.ft_sauna_page .ft_booking_embed {
	max-width: 980px;
	margin: 0 auto;
	width: 100%;
}

.ft_sauna_page .ft_booking_head {
	text-align: center;
	margin-bottom: 16px;
}

.ft_sauna_page .ft_booking_title {
	margin: 0 0 8px 0;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ft_sauna_page .ft_booking_note {
	margin: 0;
	opacity: 0.88;
	line-height: 1.6;
}

.ft_sauna_page .ft_booking_frame {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.ft_sauna_page .ft_booking_frame * {
	box-sizing: border-box;
}

.ft_sauna_page .ft_booking_frame iframe,
.ft_sauna_page .ft_booking_frame .amelia-app-booking,
.ft_sauna_page .ft_booking_frame .ameliabooking,
.ft_sauna_page .ft_booking_frame #ameliabooking {
	max-width: 100%;
}

.ft_sauna_page .ft_booking_frame button,
.ft_sauna_page .ft_booking_frame .am-btn,
.ft_sauna_page .ft_booking_frame .el-button,
.ft_sauna_page .ft_booking_frame .am-button {
	background: #5b5f33 !important;
	border-color: #5b5f33 !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px;
}

.ft_sauna_page .ft_booking_frame input,
.ft_sauna_page .ft_booking_frame select,
.ft_sauna_page .ft_booking_frame textarea {
	border-radius: 8px !important;
	border: 1px solid rgba(0, 0, 0, 0.18) !important;
	padding: 10px 12px !important;
}

.ft_sauna_page .ft_booking_frame h1,
.ft_sauna_page .ft_booking_frame h2,
.ft_sauna_page .ft_booking_frame h3,
.ft_sauna_page .ft_booking_frame h4 {
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sauna-login-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
}

.sauna-info-panel,
.sauna-terms-panel {
	width: min(980px, 100%);
	margin: 0 auto;
	padding: clamp(1.2rem, 3vw, 1.8rem);
	border: 1px solid rgba(112, 86, 57, 0.16);
	border-radius: 22px;
	background: rgba(255, 250, 243, 0.88);
	box-shadow: 0 16px 36px rgba(71, 58, 38, 0.08);
}

.sauna-info-panel .section-copy {
	margin-bottom: 1rem;
}

.sauna-faq-list {
	display: grid;
	gap: 0.75rem;
}

.sauna-faq-list details {
	border: 1px solid rgba(112, 86, 57, 0.14);
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
}

.sauna-faq-list summary {
	padding: 0.9rem 1rem;
	cursor: pointer;
	font-weight: 900;
	color: var(--ft-brick-900);
}

.sauna-faq-list details[open] summary {
	border-bottom: 1px solid rgba(112, 86, 57, 0.12);
	background: #f7efe4;
}

.sauna-faq-list p,
.sauna-terms-panel p,
.sauna-terms-panel li {
	color: #51473d;
	line-height: 1.75;
}

.sauna-faq-list p {
	margin: 0;
	padding: 0.85rem 1rem 1rem;
}

.sauna-terms-panel h2 {
	margin-top: 0;
	color: var(--ft-olive-700);
}

.sauna-terms-panel ul {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
}

.sauna-terms-panel li + li {
	margin-top: 0.55rem;
}

.full-house-layout {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 239, 228, 0.7)),
		#ffffff;
}

.full-house-layout__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
	gap: clamp(1.25rem, 4vw, 2.5rem);
	align-items: start;
	margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.full-house-layout__intro p {
	max-width: 830px;
	color: #4f463c;
}

.full-house-layout__capacity {
	display: grid;
	gap: 0.35rem;
	padding: 1.25rem;
	border: 1px solid #eadfce;
	border-radius: 8px;
	background: #fffaf3;
	box-shadow: 0 14px 30px rgba(71, 58, 38, 0.08);
}

.full-house-layout__capacity strong {
	font-family: var(--ft-display);
	font-size: clamp(3rem, 7vw, 5rem);
	line-height: 0.9;
	color: var(--ft-brick-900);
}

.full-house-layout__capacity span {
	color: #5c5247;
}

.form-notice {
	margin: 0 0 1.35rem;
	padding: 1rem 1.15rem;
	border-radius: 8px;
	font-weight: 700;
}

.form-notice--success {
	border: 1px solid rgba(67, 112, 55, 0.24);
	background: #edf6e7;
	color: #2d5526;
}

.form-notice--error {
	border: 1px solid rgba(111, 53, 35, 0.24);
	background: #fff1e8;
	color: var(--ft-brick-900);
}

.full-house-form {
	display: grid;
	gap: 1.35rem;
}

.full-house-form input,
.full-house-form textarea,
.full-house-form select {
	width: 100%;
	border: 1px solid #d8c9b7;
	border-radius: 8px;
	padding: 0.82rem 0.9rem;
	background: #fffdf8;
	color: #1f1b16;
	font: inherit;
}

.full-house-form input:focus,
.full-house-form textarea:focus,
.full-house-form select:focus {
	outline: 2px solid rgba(111, 53, 35, 0.24);
	border-color: var(--ft-brick-700);
}

.full-house-form label span {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 800;
	color: #2d2924;
}

.full-house-form .required-field {
	display: inline;
	margin-left: 0.35rem;
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ft-brick-700);
}

.full-house-form__details {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.full-house-form__extras {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	padding: 0.95rem 1rem;
	border: 1px solid #eadfce;
	border-radius: 16px;
	background: #fffaf3;
}

.full-house-form__extras p {
	margin: 0;
	color: #5c5247;
}

.cot-room-select {
	display: grid;
	gap: 0.35rem;
	min-width: min(100%, 260px);
}

.cot-room-select span {
	margin: 0;
	font-weight: 800;
	color: #2d2924;
}

.full-house-form__status {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	width: fit-content;
	padding: 0.85rem 1rem;
	border-radius: 999px;
	background: var(--ft-brick-900);
	color: #ffffff;
	box-shadow: 0 14px 26px rgba(70, 37, 28, 0.2);
}

.full-house-form__status strong {
	font-family: var(--ft-display);
	font-size: 2rem;
	line-height: 1;
}

.full-house-form.is-complete .full-house-form__status {
	background: #50602f;
}

.full-house-form.is-over .full-house-form__status {
	background: #8f2f21;
}

.room-allocation-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.room-allocation-card {
	display: grid;
	gap: 0.9rem;
	padding: 1.1rem;
	border: 1px solid #eadfce;
	border-radius: 8px;
	background: #fffaf3;
	box-shadow: 0 14px 28px rgba(71, 58, 38, 0.08);
}

.room-allocation-card__heading h3 {
	margin: 0 0 0.25rem;
	font-family: var(--ft-display);
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1;
	color: #1f1b16;
}

.room-allocation-card__heading p,
.room-allocation-card__note,
.room-allocation-card__max {
	margin: 0;
	color: #5c5247;
}

.room-allocation-card__note {
	min-height: 2.8em;
}

.room-counter {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	gap: 0.55rem;
	align-items: end;
}

.room-counter__button {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--ft-brick-900);
	color: #ffffff;
	font-size: 1.35rem;
	font-weight: 800;
	cursor: pointer;
}

.room-counter__button:disabled,
.full-house-form__actions .button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.single-setup-toggle {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	padding: 0.7rem 0.75rem;
	border-radius: 8px;
	background: #f7efe4;
}

.single-setup-toggle input {
	width: auto;
	margin: 0;
}

.single-setup-toggle span {
	margin: 0;
}

.cot-setup-toggle {
	margin: 0;
	background: #ffffff;
}

.full-house-form__notes {
	display: block;
}

.full-house-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.3rem;
}

.full-house-form__actions p {
	margin: 0;
	color: #5c5247;
	font-weight: 800;
}

.history-credit {
	margin-top: 0;
	margin-bottom: 1.35rem;
	font-size: 13px;
	color: #666666;
}

.history-intro {
	max-width: 880px;
}

.history-readmore {
	margin-top: 0.35rem;
}

.history-timeline {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18)),
		linear-gradient(180deg, var(--ft-paper) 0%, #efdfcb 100%);
}

.history-timeline__track {
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(215px, 245px);
	gap: 0.15rem;
	overflow-x: auto;
	padding: 1.75rem 0.6rem 2rem;
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.history-timeline__track::before {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	top: 50%;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ft-brick-900) 0%, var(--ft-brick-500) 45%, #7a513f 100%);
	box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.32);
	transform: translateY(-50%);
}

.history-timeline__track.is-dragging {
	cursor: grabbing;
}

.history-event {
	position: relative;
	min-height: 365px;
}

.history-event__marker {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 58px;
	height: 58px;
	border-radius: 999px;
	overflow: hidden;
	border: 4px solid #f7f2ea;
	background: var(--ft-brick-700);
	box-shadow: 0 12px 22px rgba(69, 35, 23, 0.28);
	transform: translate(-50%, -50%);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.history-event__marker img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.history-event__stem {
	position: absolute;
	left: 50%;
	z-index: 1;
	width: 2px;
	background: linear-gradient(180deg, rgba(70, 37, 28, 0.85), rgba(70, 37, 28, 0.24));
	transform: translateX(-50%);
}

.history-event--upper .history-event__stem {
	bottom: calc(50% + 28px);
	height: 58px;
}

.history-event--lower .history-event__stem {
	top: calc(50% + 28px);
	height: 58px;
}

.history-event__panel {
	position: absolute;
	left: 50%;
	display: grid;
	gap: 0.45rem;
	width: min(205px, calc(100% - 0.8rem));
	padding: 0.82rem 0.85rem 0.9rem;
	border: 1px solid rgba(111, 53, 35, 0.15);
	border-radius: 26px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 241, 228, 0.96) 100%),
		repeating-linear-gradient(
			90deg,
			rgba(111, 53, 35, 0.03) 0,
			rgba(111, 53, 35, 0.03) 2px,
			rgba(255, 255, 255, 0) 2px,
			rgba(255, 255, 255, 0) 7px
		);
	box-shadow: 0 18px 34px rgba(71, 58, 38, 0.16);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transform: translateX(-50%);
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.history-event__panel::before {
	content: "";
	display: block;
	width: 54px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ft-brick-700), var(--ft-brick-500));
}

.history-event--upper .history-event__panel {
	bottom: calc(50% + 84px);
}

.history-event--lower .history-event__panel {
	top: calc(50% + 84px);
}

.history-event:hover .history-event__panel,
.history-event__panel:focus-visible {
	border-color: rgba(111, 53, 35, 0.35);
	box-shadow: 0 26px 42px rgba(71, 58, 38, 0.2);
	transform: translateX(-50%) translateY(-6px);
}

.history-event:hover .history-event__marker {
	box-shadow: 0 16px 28px rgba(69, 35, 23, 0.34);
	transform: translate(-50%, -50%) scale(1.05);
}

.history-event__panel:focus-visible {
	outline: 2px solid rgba(111, 53, 35, 0.6);
	outline-offset: 3px;
}

.history-event__year {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ft-brick-700);
}

.history-event__title {
	margin: 0;
	font-family: var(--ft-display);
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	font-weight: 400;
	line-height: 1.05;
	color: #261813;
}

.history-event__body,
.history-event__note {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #5c4c40;
}

.history-event__body {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.history-event__cta {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ft-brick-700);
}

.history-event__note {
	font-size: 13px;
	color: #765f52;
}

.history-sources {
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.history-sources__list {
	display: grid;
	gap: 0.55rem;
	max-width: 860px;
}

.history-source {
	margin: 0;
	padding: 0.75rem 0;
	border-top: 1px solid rgba(88, 73, 54, 0.18);
	font-size: 13px;
	color: #5c5247;
}

.history-source strong {
	display: inline;
	margin-right: 0.45rem;
	color: #241f19;
}

.media-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.media-card {
	min-width: 0;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 18px 34px rgba(71, 58, 38, 0.14);
	overflow: hidden;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.media-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 26px 44px rgba(71, 58, 38, 0.19);
}

.media-card__trigger {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.media-card__image-wrap {
	position: relative;
	overflow: hidden;
}

.media-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 260ms ease;
}

.media-card:hover .media-card__image {
	transform: scale(1.04);
}

.media-card__hint {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.72);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease;
}

.media-card:hover .media-card__hint,
.media-card__trigger:focus-visible .media-card__hint {
	opacity: 1;
	transform: translateY(0);
}

.media-card__body {
	display: grid;
	gap: 0.8rem;
	padding: 1.1rem 1.1rem 1.35rem;
}

.media-card__title {
	display: block;
	font-size: 28px;
	font-family: var(--ft-display);
	font-weight: 400;
	line-height: 1.05;
	color: #1e1e1e;
}

.media-card__description {
	display: block;
	font-size: 15px;
	line-height: 1.7;
	color: #5e5e5e;
}

.ft-lightbox[hidden] {
	display: none;
}

.ft-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.ft-lightbox__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(12, 12, 12, 0.82);
}

.ft-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	width: min(1120px, calc(100vw - 2rem));
	padding: 1.25rem;
	border-radius: 28px;
	background: rgba(249, 245, 236, 0.96);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.ft-lightbox__content {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.ft-lightbox__frame {
	overflow: hidden;
	border-radius: 22px;
	background: #d8d0c5;
}

.ft-lightbox__image {
	width: 100%;
	max-height: min(68vh, 760px);
	object-fit: cover;
}

.ft-lightbox__meta {
	display: grid;
	gap: 0.35rem;
}

.ft-lightbox__counter {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #6e665c;
}

.ft-lightbox__title {
	margin: 0;
	font-family: var(--ft-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1;
	color: #1f1b16;
}

.ft-lightbox__description {
	margin: 0;
	max-width: 680px;
	color: #5c5247;
}

.ft-lightbox__thumbs {
	display: flex;
	gap: 0.85rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.ft-lightbox__thumb {
	width: 110px;
	flex: 0 0 110px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 18px;
	background: transparent;
	overflow: hidden;
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.ft-lightbox__thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ft-lightbox__thumb.is-active {
	border-color: #5f6738;
	transform: translateY(-2px);
}

.ft-lightbox__thumb:not(.is-active) {
	opacity: 0.7;
}

.ft-lightbox__nav,
.ft-lightbox__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.1);
	color: #1f1b16;
	font-size: 28px;
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease;
}

.ft-lightbox__nav:hover,
.ft-lightbox__close:hover {
	transform: translateY(-2px);
	background: rgba(17, 17, 17, 0.18);
}

.ft-lightbox__close {
	position: absolute;
	top: 0.95rem;
	right: 0.95rem;
	z-index: 1;
}

.history-detail-modal[hidden] {
	display: none;
}

.history-detail-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.history-detail-modal__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(12, 12, 12, 0.72);
}

.history-detail-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, calc(100vw - 2rem));
	max-height: min(86vh, 820px);
	overflow: auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 241, 230, 0.96)),
		var(--ft-paper);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.history-detail-modal__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.1);
	color: #1f1b16;
	font-size: 26px;
	cursor: pointer;
}

.history-detail-modal__title {
	max-width: 740px;
	margin: 0 0 0.65rem;
	font-family: var(--ft-display);
	font-size: clamp(2.1rem, 5vw, 3.65rem);
	font-weight: 400;
	line-height: 0.98;
	color: #1f1b16;
}

.history-detail-modal__summary {
	max-width: 760px;
	margin: 0 0 1.2rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #4c443b;
}

.history-detail-modal__body {
	display: grid;
	gap: 0.8rem;
	max-width: 780px;
}

.history-detail-modal__body p {
	margin: 0;
	color: #4f463c;
}

.history-detail-modal__images {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8rem;
	margin-top: 1.4rem;
}

.history-detail-modal__image {
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #d8d0c5;
}

.history-detail-modal__image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.benefit-list {
	max-width: 820px;
	margin: 0 auto 1.6rem;
}

.benefit-list li + li {
	margin-top: 0.45rem;
}

.contact-block {
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
	gap: 2rem;
	align-items: start;
}

.contact-block__details p,
.contact-block__content p {
	margin-bottom: 1rem;
}

.contact-block__details,
.contact-block__content {
	border: 1px solid rgba(88, 73, 54, 0.12);
	border-radius: 24px;
	background: linear-gradient(180deg, #fffdf8, #f8f1e7);
	box-shadow: 0 18px 34px rgba(71, 58, 38, 0.12);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-block__details .section-heading,
.contact-block__content .section-heading {
	margin-top: 0;
	text-align: left;
}

.contact-form-panel {
	display: grid;
	gap: 1rem;
}

.contact-form-panel label {
	display: grid;
	gap: 0.4rem;
}

.contact-form-panel label span {
	font-weight: 800;
	color: #2d2924;
}

.contact-form-panel input,
.contact-form-panel textarea {
	width: 100%;
	border: 1px solid #d8c9b7;
	border-radius: 10px;
	background: #fffaf3;
	padding: 0.85rem 0.95rem;
	font: inherit;
	color: #2d2924;
}

.contact-form-panel textarea {
	resize: vertical;
	min-height: 150px;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
	outline: 2px solid rgba(111, 53, 35, 0.24);
	border-color: var(--ft-brick-700);
	background: #ffffff;
}

.contact-form-panel .button {
	justify-self: start;
	border: 0;
	cursor: pointer;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.site-footer {
	background: #111111;
	color: #cccccc;
	margin-top: 0;
}

.site-footer__inner {
	width: min(1240px, calc(100vw - 1.5rem));
	margin: 0 auto;
	padding: 2.5rem 0;
	display: grid;
	gap: 1.5rem;
}

.site-footer__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

.site-footer__logo {
	width: min(300px, 70vw);
}

.site-footer__partner {
	width: min(260px, 60vw);
}

.site-footer__copy {
	text-align: center;
}

.site-footer__copy a {
	color: #cccccc;
}

.site-footer__copy a:hover {
	color: #ffffff;
}

.back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 60;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.1);
	color: #ffffff;
	font-size: 22px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top:hover {
	background: #3957ff;
}

.back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.home-marquee {
		overflow-x: auto;
	}

	.home-marquee__track {
		animation: none;
	}
}

@media (max-width: 1120px) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.site-nav__list a {
		font-size: 17px;
	}

	.facility-card {
		width: calc(50% - 20px);
	}

	.media-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.history-timeline__track {
		grid-auto-columns: minmax(210px, 235px);
	}

	.ft-lightbox__dialog {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 4rem;
	}

	.ft-lightbox__nav {
		position: absolute;
		top: calc(50% - 20px);
	}

	.ft-lightbox__nav--prev {
		left: 1rem;
	}

	.ft-lightbox__nav--next {
		right: 1rem;
	}

	.history-detail-modal__images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		padding: 0.35rem 0;
	}

	.site-nav {
		display: none;
		grid-column: 1 / -1;
		justify-self: start;
		order: 5;
	}

	.site-nav.is-open {
		display: block;
		padding-bottom: 0.8rem;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		padding-top: 0.3rem;
	}

	.site-nav__list a {
		font-size: 18px;
		color: #ffffff;
	}

	.tools_button {
		padding-inline: 1.15rem;
	}

	.contact-block {
		grid-template-columns: 1fr;
	}

	.full-house-layout__intro,
	.full-house-form__details {
		grid-template-columns: 1fr 1fr;
	}

	.room-allocation-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 700px) {
	.image-strip,
	.gallery-grid--three,
	.media-card-grid {
		grid-template-columns: 1fr;
	}

	.history-timeline__track {
		grid-auto-columns: minmax(205px, 78vw);
		padding: 1.75rem 0.35rem 2rem;
	}

	.history-event {
		min-height: 430px;
	}

	.history-event__marker {
		width: 50px;
		height: 50px;
	}

	.history-event--upper .history-event__stem,
	.history-event--lower .history-event__stem {
		height: 66px;
	}

	.history-event--upper .history-event__panel {
		bottom: calc(50% + 94px);
	}

	.history-event--lower .history-event__panel {
		top: calc(50% + 94px);
	}

	.history-event__panel {
		width: min(222px, calc(100% - 0.5rem));
		padding: 0.9rem 0.9rem 1rem;
	}

	.history-event__title {
		font-size: 1.35rem;
	}

	.home-marquee::before,
	.home-marquee::after {
		width: 32px;
	}

	.home-marquee__item {
		flex-basis: min(78vw, 300px);
	}

	.page-title--logo {
		height: 170px;
	}

	.facility-card {
		width: 100%;
	}

	.site-main {
		width: min(100vw - 0.75rem, 1180px);
	}

	.title-bar__inner {
		padding: 3rem 1rem;
	}

	.media-card {
		border-radius: 20px;
	}

	.media-card__title {
		font-size: 22px;
	}

	.section-heading--left,
	.section-note--left {
		text-align: center;
	}

	.full-house-layout__intro,
	.full-house-form__details,
	.room-allocation-grid {
		grid-template-columns: 1fr;
	}

	.full-house-layout__capacity,
	.full-house-form__status {
		justify-self: center;
		text-align: center;
	}

	.full-house-form__actions {
		justify-content: center;
		text-align: center;
	}

	.sauna-slideshow-card__image {
		aspect-ratio: 4 / 3;
	}

	.ft_sauna_page .ft_booking_frame {
		padding: 14px;
		border-radius: 10px;
	}

	.section-note--left {
		margin-inline: auto;
	}

	.ft-lightbox {
		padding: 0.4rem;
	}

	.ft-lightbox__dialog {
		width: calc(100vw - 0.8rem);
		padding: 4.2rem 0.85rem 1rem;
		border-radius: 20px;
	}

	.ft-lightbox__nav {
		width: 44px;
		height: 44px;
		font-size: 24px;
	}

	.ft-lightbox__thumb {
		width: 88px;
		flex-basis: 88px;
	}

	.history-timeline__track {
		grid-auto-columns: minmax(205px, 225px);
		padding-inline: 0.3rem;
	}

	.history-event {
		min-height: 390px;
	}

	.history-detail-modal {
		padding: 0.5rem;
	}

	.history-detail-modal__dialog {
		width: calc(100vw - 1rem);
		max-height: calc(100vh - 1rem);
		border-radius: 20px;
	}

	.history-detail-modal__images {
		grid-template-columns: minmax(0, 1fr);
	}
}
