/* ==========================================================================
   Lodges With Hot Tubs - 2026 guides (/help/), LWHT-only styles
   Loaded last on the /help/ pages, after guides.css (Lodge's) and lwht.css.
   Templates: help/wp-content/themes/generatepress_child/bhl/
   The shortcodes in the posts (accommodation boxes, buttons, offer lines),
   the old editor's captions, and the listing templates' extra panels.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font Awesome icons swapped for the site's own (bhl_fa_icons())
   -------------------------------------------------------------------------- */

.faIcon { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }

/* --------------------------------------------------------------------------
   [accommodationBox] - a lodge in a guide: name, place, distance, photo,
   sleeps / pets / hot tub, text, price and buttons
   -------------------------------------------------------------------------- */

.accommodationBoxHeader {
	clear: both;
	margin: 1.8em 0 .1em;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	line-height: 1.2;
	color: var(--forest-800);
}

.accommodationBoxSubHeader { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--gold-700); }

.accommodationBoxDistance { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); font-size: 14px; font-weight: 700; color: var(--forest-700); }
.accommodationBoxDistance .faIcon { width: 15px; height: 15px; color: var(--gold-700); }

.accommodationBoxContainerLR {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.accommodationBoxLeft { position: relative; }
.accommodationBoxLeft img { display: block; width: 100%; height: 100%; min-height: 200px; max-height: 340px; margin: 0; object-fit: cover; border-radius: 12px; }

.accommodationBoxRating {
	position: absolute;
	top: 10px; right: 10px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--forest-800);
}
.accommodationBoxRating .ratingSource { font-size: 11.5px; font-weight: 500; color: var(--ink-2); }

.accommodationBoxRight { display: flex; flex-direction: column; font-size: 15.5px; line-height: 1.65; }

.accommodationBoxRight .infoTextContainer { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.accommodationBoxRight .infoText { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.accommodationBoxRight .infoText .faIcon { width: 16px; height: 16px; color: var(--forest-600); }

.accommodationBoxPrice { margin: 12px 0 14px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; text-align: right; color: var(--forest-800); }
.accommodationBoxPrice .specialOffersText { margin: 0 0 8px; font-family: var(--font-body); font-size: 15px; text-align: right !important; }

.accommodationBoxButtons { display: flex; gap: 10px; margin-top: auto; }

.gArticle a.accommodationBoxLink, .gArticle a.accommodationBoxInfo,
.guide__content a.accommodationBoxLink, .guide__content a.accommodationBoxInfo {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .3s var(--ease-out);
}
.gArticle a.accommodationBoxLink, .guide__content a.accommodationBoxLink { width: auto !important; background: var(--cta); color: #fff; }
.gArticle a.accommodationBoxLink:hover, .guide__content a.accommodationBoxLink:hover { background: var(--cta-hover); color: #fff; transform: translateY(-2px); }
.gArticle a.accommodationBoxInfo, .guide__content a.accommodationBoxInfo { border: 1.5px solid var(--forest-700); background: #fff; color: var(--forest-700); }
.gArticle a.accommodationBoxInfo:hover, .guide__content a.accommodationBoxInfo:hover { background: var(--forest-700); color: #fff; }

hr.accommodationBoxHR { height: 0; margin: 26px 0 0; border: 0; }

/* --------------------------------------------------------------------------
   [niceButton] and the offer lines ([specialOffersText] etc.)
   -------------------------------------------------------------------------- */

.niceButtonContainer { margin: 1.2em 0 1.6em; }
.gArticle a.niceButton, .guide__content a.niceButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	max-width: 100%;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--cta);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -12px rgba(239, 106, 12, .7);
	transition: background-color .2s, transform .3s var(--ease-out);
}
.gArticle a.niceButton:hover, .guide__content a.niceButton:hover { background: var(--cta-hover); transform: translateY(-2px); }
.niceButton .faIcon { width: 16px; height: 16px; }

.specialOffersText { margin: 1em 0 1.4em; font-size: 16px; font-weight: 700; color: var(--ink); }
.gArticle .specialOffersText a, .guide__content .specialOffersText a { color: var(--deal); text-decoration: none; }
.gArticle .specialOffersText a:hover, .guide__content .specialOffersText a:hover { color: var(--cta); }
.specialOffersTextSmall { margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--forest-600); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Captions and other editor leftovers
   -------------------------------------------------------------------------- */

.gArticle .picCaption { margin: -.4em 0 1.6em; font-size: 14px; font-style: italic; text-align: center; color: var(--ink-2); }
.gArticle .wp-caption { width: auto !important; }
.gArticle .wp-caption img { display: block; margin: 0 auto; }
.gArticle .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.4em 0; }
.gArticle .gallery br { display: none; }
.gArticle .gallery .gallery-item { width: auto !important; margin: 0 !important; }
.gArticle .gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; }

/* WP Table Builder tables keep their own layout but fit the column */
.gArticle .wptb-table-container, .guide__content .wptb-table-container { max-width: 100%; overflow-x: auto; }

/* --------------------------------------------------------------------------
   404: search the guides
   -------------------------------------------------------------------------- */

.gSearch { display: flex; gap: 10px; max-width: 560px; margin-top: 22px; }
.gSearch input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; font: 500 16px var(--font-body); color: var(--ink); }
.gSearch input:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Listing templates (bhl/listing-page.php): the guides under the lodges,
   the post's own guide, and the side panels of links
   -------------------------------------------------------------------------- */

.gGuides { padding: clamp(60px, 7vw, 96px) 0; }
.gGuides .secHead { margin-bottom: clamp(24px, 3vw, 36px); }
.gGuides .secTitle { font-family: var(--font-display); }

.gListGuide .guide__content { max-width: none; }
.gListGuide .legal { align-items: start; }
.gListGuide .legal__aside { position: static; }
.gListGuide .guide__content .gArticle, .gListGuide .gArticle { font-size: 17px; }

/* "Your Location: ..." (Lodges Near Me) */
.gLocation { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-family: var(--font-body); font-size: 15px; font-weight: 700; color: #fff; }
.gLocation .icon { width: 17px; height: 17px; color: var(--gold-200); }

/* The offers on the Last Minute and Christmas guides */
.gOffers .offersFields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
	.accommodationBoxContainerLR { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
	.accommodationBoxLeft img { min-height: 0; aspect-ratio: 3 / 2; }
	.accommodationBoxButtons { flex-direction: column; }
	.gSearch { flex-direction: column; }
	.gSearch .btn { justify-content: center; }
	.gOffers .offersFields { grid-template-columns: 1fr; }
}

/* The Christmas page's panels under the guides (find a lodge, more like this, latest) */
.gPanels__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (max-width: 1000px) { .gPanels__grid { grid-template-columns: 1fr; } }

/* "By <author>" on the post lists (as the old lists) */
.gCard__by { margin: -4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.gCard__by a { font-weight: 700; color: var(--forest-700); }
.gCard__by a:hover { color: var(--cta); }
.gCard--lead .gCard__by { font-size: 14.5px; }

/* Captioned photos in the town guides sit beside the text like the other photos (guides.css floats the img) */
.gTownGuide figure.wp-caption { float: left; width: min(46%, 420px) !important; margin: .35em 26px 1em 0; }
.gTownGuide figure.wp-caption img { float: none; width: 100%; margin: 0; }
.gTownGuide figure.wp-caption figcaption { clear: both; }
@media (max-width: 640px) {
	.gTownGuide figure.wp-caption { float: none; width: 100% !important; margin: .4em 0 1.1em; }
}

/* A row of the old side panels with a long list (Categories): keep it in step with the others */
.gPanels .asideCard { height: 100%; }

/* Last Minute: two filters (region, sleeps) */
.gOffers--two .offersFields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gOffers--two .offersFields .field:nth-child(2) { border-right: 0; }
@media (max-width: 760px) { .gOffers--two .offersFields { grid-template-columns: 1fr 1fr; } }

@media (max-width: 760px) {
	/* 404 search: the box keeps its height when the button drops under it */
	.gSearch input { flex: none; }
}
