/* ===== Site footer (widgets/site-footer-widget.php, markup in
   includes/caguide-site-footer.php) - design v6 section 5. Phone layout
   first, desktop from 820px like the tour page. Links and buttons carry
   !important where the theme's generic a / button styling otherwise wins. ===== */

.caguide_site_footer {
	--csf-text: rgba(243, 239, 232, 0.82);
	--csf-muted: rgba(243, 239, 232, 0.6);
	--csf-line: rgba(243, 239, 232, 0.18);
	background: #2b2420;
	color: var(--csf-text);
	font-family: "Noto Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	padding: 64px 20px 56px;
}

/* Room for the fixed bottom bars, so the strip is never hidden behind them:
   the tour booking bar (tour pages, every width) and the chat bar (phones). */
body:has(.tour_mobile_bar) .caguide_site_footer {
	padding-bottom: 110px;
}

@media only screen and (max-width: 767px) {
	body.caguide-chat-active .caguide_site_footer {
		padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}

	body.caguide-chat-active:has(.tour_mobile_bar) .caguide_site_footer {
		padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
	}
}

.caguide_site_footer .csf_inner {
	max-width: 1280px;
	margin: 0 auto;
}

.caguide_site_footer .csf_grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

/* Two classes, so it outranks Elementor's site-wide ".elementor-kit-7 a"
   (dark link colour), which loads after this file. */
.caguide_site_footer .csf_inner a {
	color: var(--csf-text);
	text-decoration: none;
}

.caguide_site_footer a:focus-visible,
.caguide_site_footer button:focus-visible {
	outline: 2px solid #e8334f;
	outline-offset: 2px;
}

/* Brand column: logo, contact, social. */
.caguide_site_footer .csf_brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.caguide_site_footer .csf_logo {
	align-self: flex-start;
}

.caguide_site_footer .csf_logo img {
	display: block;
	width: 58px;
	height: 75px;
	filter: brightness(0) invert(0.95);
}

.caguide_site_footer .csf_contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.caguide_site_footer a.csf_strong {
	color: #fff;
	font-weight: 600;
}

.caguide_site_footer a.csf_strong:hover {
	color: #e8334f;
}

.caguide_site_footer .csf_follow {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.caguide_site_footer .csf_label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--csf-muted);
}

.caguide_site_footer .csf_social {
	display: flex;
	gap: 8px;
}

.caguide_site_footer .csf_social a {
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(243, 239, 232, 0.3);
	color: #f3efe8;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.caguide_site_footer .csf_social a:hover,
.caguide_site_footer .csf_social a:focus-visible {
	background: #e8334f;
	border-color: #e8334f;
	color: #fff;
}

.caguide_site_footer .csf_social svg {
	display: block;
}

/* Link groups - accordions on a phone. */
.caguide_site_footer .csf_group {
	border-bottom: 1px solid var(--csf-line);
}

.caguide_site_footer .csf_brand + .csf_group {
	border-top: 1px solid var(--csf-line);
}

.caguide_site_footer .csf_group_label {
	display: none;
}

.caguide_site_footer .csf_group_toggle {
	width: 100%;
	min-height: 52px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: "Noto Sans", sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: left;
	cursor: pointer;
}

.caguide_site_footer .csf_group_icon {
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.caguide_site_footer .csf_group_icon::before {
	content: "+";
}

.caguide_site_footer .csf_group_toggle[aria-expanded="true"] .csf_group_icon::before {
	content: "\2212";
}

.caguide_site_footer .csf_links {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 0 0 14px;
}

.caguide_site_footer .csf_group.is-open .csf_links {
	display: flex;
}

.caguide_site_footer .csf_links a {
	padding: 8px 0;
	font-size: 14px;
	line-height: 1.4;
}

.caguide_site_footer .csf_links a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tripadvisor box - full width on a phone. */
.caguide_site_footer .csf_reviews {
	margin-top: 24px;
}

.caguide_site_footer .csf_reviews > .csf_label {
	display: none;
}

.caguide_site_footer a.csf_ta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	box-sizing: border-box;
	min-width: 0;
	padding: 14px 16px;
	background: #fff;
	color: #2b2420;
}

.caguide_site_footer a.csf_ta:hover,
.caguide_site_footer a.csf_ta:focus-visible {
	outline: 2px solid #e8334f;
	outline-offset: 0;
}

.caguide_site_footer .csf_ta_logo {
	display: block;
	width: auto;
	height: 20px;
}

.caguide_site_footer .csf_ta_rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
	font-size: 14px;
}

.caguide_site_footer .csf_ta_dots {
	display: none;
	gap: 3px;
}

.caguide_site_footer .csf_ta_dot {
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	border: 1.5px solid #00aa6c;
	border-radius: 50%;
}

.caguide_site_footer .csf_ta_dot.is-full {
	background: #00aa6c;
}

.caguide_site_footer .csf_ta_dot.is-half {
	background: linear-gradient(90deg, #00aa6c 50%, transparent 50%);
}

.caguide_site_footer .csf_ta_count {
	color: #6f6458;
	white-space: nowrap;
}

.caguide_site_footer .csf_ta_read {
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Bottom strip. */
.caguide_site_footer .csf_bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 24px;
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--csf-line);
	font-size: 13px;
	color: var(--csf-muted);
}

.caguide_site_footer .csf_legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.caguide_site_footer .csf_legal a {
	color: rgba(243, 239, 232, 0.75);
}

.caguide_site_footer .csf_legal a:hover {
	color: #fff;
}

@media only screen and (min-width: 600px) {
	.caguide_site_footer {
		padding-left: 32px;
		padding-right: 32px;
	}
}

@media only screen and (min-width: 820px) {
	.caguide_site_footer .csf_grid {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px 48px;
	}

	.caguide_site_footer .csf_brand {
		margin-bottom: 0;
	}

	.caguide_site_footer .csf_group,
	.caguide_site_footer .csf_brand + .csf_group {
		display: flex;
		flex-direction: column;
		gap: 12px;
		border: none;
	}

	.caguide_site_footer .csf_group_label,
	.caguide_site_footer .csf_reviews > .csf_label {
		display: block;
		margin-bottom: 4px;
	}

	.caguide_site_footer .csf_group_toggle {
		display: none !important;
	}

	.caguide_site_footer .csf_links {
		display: flex;
		gap: 12px;
		padding: 0;
	}

	.caguide_site_footer .csf_links a {
		padding: 0;
	}

	.caguide_site_footer .csf_reviews {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 0;
	}

	.caguide_site_footer a.csf_ta {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 8px;
		max-width: 240px;
	}

	.caguide_site_footer .csf_ta_logo {
		height: 22px;
	}

	.caguide_site_footer .csf_ta_dots {
		display: flex;
	}
}
