/* Content tools - checklist, lodge table, best month, split the cost, FAQs (js/content-tools.js) */

.bhl-tool {
	--bt-forest: #16330a;
	--bt-green: #2D6C01;
	--bt-moss: #7aa65d;
	--bt-cream: #FAEFD7;
	--bt-paper: #fbf8f1;
	--bt-gold: #856b2c;
	--bt-cta: #ef6a0c;
	--bt-ink: #1a2213;
	--bt-line: rgba(26, 34, 19, .14);
	margin: 1.6em 0;
	padding: 20px 22px;
	background: var(--bt-paper);
	border: 1px solid var(--bt-line);
	border-radius: 16px;
	color: var(--bt-ink);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
	max-width: 100%;
}

.bhl-tool *, .bhl-tool *::before, .bhl-tool *::after { box-sizing: border-box; }
.bhl-tool p { margin: 0 0 .6em; }
.bhl-tool button { font: inherit; cursor: pointer; }
.bhl-tool button:focus-visible, .bhl-tool input:focus-visible { outline: 3px solid var(--bt-cta); outline-offset: 2px; }

.bhl-tool__title {
	font-weight: 700;
	font-size: 1.08em;
	color: var(--bt-forest);
}

.bhl-tool__hint { font-size: .85em; color: #5b6352; margin: .6em 0 0; }

/* Checklist */

.bhl-checklist ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.bhl-checklist li { break-inside: avoid; margin: 0 0 6px; padding: 0; }
.bhl-checklist li::before, .bhl-checklist li::marker { content: none; }
.bhl-checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 8px; border-radius: 10px; }
.bhl-checklist label:hover { background: var(--bt-cream); }
.bhl-checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bt-green); flex: none; }
.bhl-checklist li.is-done label { color: #6c7363; text-decoration: line-through; }

.bhl-checklist__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.bhl-checklist__count { font-weight: 700; color: var(--bt-forest); }
.bhl-checklist__bar { flex: 1 1 140px; height: 8px; background: rgba(45, 108, 1, .14); border-radius: 99px; overflow: hidden; }
.bhl-checklist__fill { display: block; height: 100%; width: 0; background: var(--bt-green); border-radius: 99px; transition: width .3s ease; }
.bhl-checklist__reset { background: none; border: 0; color: var(--bt-gold); text-decoration: underline; padding: 4px; }

/* Lodge table */

.bhl-lodge-table { overflow-x: auto; }
.bhl-lodge-table table { width: 100%; border-collapse: collapse; min-width: 520px; margin: 0; }
.bhl-lodge-table th, .bhl-lodge-table td { padding: 10px 12px; border-bottom: 1px solid var(--bt-line); text-align: left; vertical-align: top; }
.bhl-lodge-table th { background: var(--bt-forest); color: #fff; padding: 0; }
.bhl-lodge-table th:first-child { border-top-left-radius: 10px; }
.bhl-lodge-table th:last-child { border-top-right-radius: 10px; }
.bhl-lodge-table tbody tr:nth-child(even) { background: rgba(250, 239, 215, .5); }
.bhl-lodge-table tr[hidden] { display: none; }
.bhl-lodge-table a { color: var(--bt-green); font-weight: 700; }

.bhl-sort { width: 100%; background: none; border: 0; color: #fff; font-weight: 700; text-align: left; padding: 10px 26px 10px 12px; position: relative; }
.bhl-sort::after { content: '\2195'; position: absolute; right: 10px; opacity: .55; }
th[aria-sort="ascending"] .bhl-sort::after { content: '\2191'; opacity: 1; }
th[aria-sort="descending"] .bhl-sort::after { content: '\2193'; opacity: 1; }

.bhl-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bhl-chips__label { font-weight: 700; font-size: .9em; color: var(--bt-forest); }
.bhl-chip { border: 1px solid var(--bt-green); background: #fff; color: var(--bt-green); border-radius: 99px; padding: 6px 14px; font-size: .9em; font-weight: 600; }
.bhl-chip[aria-pressed="true"] { background: var(--bt-green); color: #fff; }

/* Best month */

.bhl-months__picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.bhl-months__btn { border: 1px solid var(--bt-line); background: #fff; border-radius: 10px; padding: 8px 0; font-weight: 600; color: var(--bt-forest); position: relative; }
.bhl-months__btn[data-rating="4"], .bhl-months__btn[data-rating="5"] { border-color: var(--bt-moss); background: #eef5e8; }
.bhl-months__btn[aria-pressed="true"] { background: var(--bt-forest); border-color: var(--bt-forest); color: #fff; }
.bhl-months__btn:disabled { opacity: .35; cursor: default; }
.bhl-months__panel { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--bt-line); }
.bhl-months__name { font-weight: 700; font-size: 1.05em; color: var(--bt-forest); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bhl-months__rating { display: inline-flex; gap: 4px; }
.bhl-months__rating span { width: 10px; height: 10px; border-radius: 50%; background: rgba(45, 108, 1, .18); }
.bhl-months__rating span.is-on { background: var(--bt-green); }
.bhl-months__text p:last-child { margin-bottom: 0; }

@media (min-width: 640px) {
	.bhl-months__picker { grid-template-columns: repeat(12, 1fr); }
}

/* Split the cost */

.bhl-split__form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bhl-split__field { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; color: var(--bt-forest); }
.bhl-split__input { display: flex; align-items: center; background: #fff; border: 1px solid var(--bt-line); border-radius: 10px; overflow: hidden; }
.bhl-split__prefix { padding: 0 0 0 12px; color: #5b6352; }
.bhl-split__input input { border: 0; padding: 10px 12px; width: 100%; font: inherit; font-size: 16px; background: none; color: var(--bt-ink); min-width: 0; }
.bhl-split__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bhl-split__result p { grid-column: 1 / -1; margin: 0; color: #5b6352; }
.bhl-split__stat { background: #fff; border: 1px solid var(--bt-line); border-radius: 12px; padding: 10px 12px; text-align: center; }
.bhl-split__label { display: block; font-size: .8em; color: #5b6352; }
.bhl-split__stat strong { font-size: 1.3em; color: var(--bt-cta); }

@media (max-width: 560px) {
	.bhl-tool { padding: 16px; }
	.bhl-split__form { grid-template-columns: 1fr 1fr; }
	.bhl-split__form .bhl-split__field:first-child { grid-column: 1 / -1; }
	.bhl-split__result { grid-template-columns: 1fr; }
}

/* FAQs */

details.bhl-faq {
	border: 1px solid rgba(26, 34, 19, .14);
	border-radius: 12px;
	margin: 0 0 10px;
	background: #fff;
	padding: 0 16px;
}

details.bhl-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: #16330a;
	padding: 14px 28px 14px 0;
	list-style: none;
	position: relative;
}

details.bhl-faq summary::-webkit-details-marker { display: none; }
details.bhl-faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 1.4em; color: #2D6C01; }
details.bhl-faq[open] summary::after { content: '\2212'; }
details.bhl-faq[open] { padding-bottom: 14px; }
