/* ==========================================================================
   KEYWORD LANDING PAGES  (assets/css/landing.css)
   Extra pieces for the "Timberroot Landing Pages" patterns. Everything else
   (section spacing, titles, buttons, FAQ, Light/Dark styles) comes from
   group-stays.css, so landing pages match the other Group Stays pages.

   1. Local tokens     read the Group Stays tokens, with fallbacks
   2. Editor notes     .trg-placeholder shows in the editor only
   3. Hero             .trg-hero (cover block with the search bar)
   4. Jump links       .trg-jump
   5. Property         .trg-lp (photo + copy + its stays), sides alternate
   6. Blog cards       .trg-posts / .trg-post
   7. Closing          .trg-closing
   ========================================================================== */

/* 1. Local tokens */
.tr-groups,
.trg-hero {
	--trl-accent: var(--trg-accent, #69745d);
	--trl-ink: #312824;
	--trl-muted: #5b4d45;
	--trl-line: #e4dccb;
	--trl-surface: #ffffff;
	--trl-wrap: 1200px;
}
.tr-groups.is-style-trg-dark {
	--trl-ink: #fbf8f1;
	--trl-muted: #d9cfbd;
	--trl-line: rgba(251, 248, 241, 0.25);
	--trl-surface: #3c322d;
}

/* 2. Editor notes: hidden on the live page, visible while editing */
.trg-placeholder { display: none; }
.editor-styles-wrapper .trg-placeholder {
	display: block;
	margin: 16px 0;
	padding: 12px 16px;
	border: 1px dashed #b49a3c;
	border-radius: 5px;
	background: #f6e7a8;
	color: #4a3b10;
	font-size: 14px;
}

/* 3. Hero */
.wp-block-cover.trg-hero {
	align-items: flex-end;
	padding: 120px 24px 56px;
}
.wp-block-cover.trg-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--trl-wrap);
	margin: 0 auto;
	color: #fff;
}
#content .trg-hero .trg-hero__sub,
.trg-hero .trg-hero__sub {
	margin: 0 0 10px;
	font-size: 19px;
	color: #f3ece0;
}
#content .trg-hero h1.trg-hero__title,
.trg-hero h1.trg-hero__title {
	max-width: 18ch;
	margin: 0 0 32px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(38px, 6vw, 64px);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	text-transform: none;
}

/* 4. Jump links */
.tr-groups .trg-jump {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
}
.tr-groups .trg-jump li { margin: 0; }
.tr-groups .trg-jump a {
	color: var(--trl-accent);
	text-decoration: none;
	border-bottom: 2px solid var(--trl-line);
	padding-bottom: 2px;
}
.tr-groups .trg-jump a:hover { border-color: var(--trl-accent); }

/* 5. Property sections
   Named .trg-lp, not .trg-prop: group-stays.css already uses .trg-prop for the
   hot tub page's property layout, and sharing the name broke this one. */
.tr-groups.trg-lp { scroll-margin-top: 90px; }
.tr-groups .trg-lp__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	align-items: center;
}
/* Every second property section puts its photo on the right */
.tr-groups.trg-lp:nth-child(even of .trg-lp) .trg-lp__photo { order: 2; }
.tr-groups .trg-lp__photo { margin: 0; }
.tr-groups .trg-lp__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 5px;
}
.tr-groups .trg-lp__best {
	margin: 0 0 20px;
	padding-left: 14px;
	border-left: 3px solid var(--trl-accent);
	font-size: 16px;
	color: var(--trl-muted);
}
.tr-groups .trg-lp__best strong { color: var(--trl-ink); }
.tr-groups .trg-lp__text .trg-actions { justify-content: flex-start; margin: 8px 0 0; }
.tr-groups .trg-lp__link { margin: 16px 0 0; font-weight: 700; }
.tr-groups .trg-lp__link a { color: var(--trl-accent); }
.tr-groups.trg-lp .trg-stays { margin-top: 48px; }
.tr-groups.trg-lp .trg-stays:empty { display: none; }

/* 6. Blog cards */
.tr-groups .trg-posts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 28px;
}
.tr-groups .trg-post {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--trl-surface);
	border: 1px solid var(--trl-line);
	border-radius: 5px;
}
.tr-groups .trg-post__photo { margin: 0; }
.tr-groups .trg-post__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.tr-groups .trg-post > :not(.trg-post__photo) { margin-left: 18px; margin-right: 18px; }
.tr-groups .trg-post__tag { margin: 16px 18px 6px; font-size: 13px; color: var(--trl-muted); }
#content .tr-groups .trg-post__title,
.tr-groups .trg-post__title {
	margin: 0 18px 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 19px;
	line-height: 1.3;
}
.tr-groups .trg-post__title a { color: var(--trl-ink); text-decoration: none; }
/* The whole card is clickable through the title link */
.tr-groups .trg-post__title a::after { content: ""; position: absolute; inset: 0; }
.tr-groups .trg-post:hover .trg-post__title a { text-decoration: underline; text-decoration-color: var(--trl-accent); }
.tr-groups .trg-post__text { margin: 0 18px 12px; font-size: 15px; color: var(--trl-muted); }
.tr-groups .trg-post__more { margin: auto 18px 20px; font-size: 15px; font-weight: 700; }
.tr-groups .trg-post__more a { color: var(--trl-accent); text-decoration: none; }

/* 7. Closing */
.tr-groups.trg-closing { text-align: center; }
.tr-groups.trg-closing .trg-actions { justify-content: center; }
.tr-groups.trg-closing .trg-feature__intro { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
	.tr-groups .trg-lp__grid { grid-template-columns: 1fr; gap: 32px; }
	.tr-groups.trg-lp:nth-child(even of .trg-lp) .trg-lp__photo { order: 0; }
	.tr-groups .trg-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.wp-block-cover.trg-hero { padding: 96px 20px 40px; min-height: 620px !important; }
	.tr-groups .trg-posts { grid-template-columns: 1fr; }
}
