/**
 * TempStars local-search footer module.
 *
 * Scoped under .ts-local-footer. A vertical stack of native <details>
 * accordions (one per province + the regional guides), collapsed by default
 * at every breakpoint so the footer gains only a few rows of height.
 * Expanding a province reveals its city links, which flow into multiple
 * columns on wider screens. Every <a> stays in the static HTML whether open
 * or closed, so all links remain crawlable; only the visual state changes.
 *
 * Palette and type mirror the live Elementor footer (template 19077) so the
 * module is visually indistinguishable from the existing footer links:
 *   background #0B4598 (set on the host section)  |  text/links #FFFFFF
 *   link hover/accent #FB7872  |  font "Poppins", Sans-serif
 */

.ts-local-footer {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 26px 20px 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	color: #ffffff;
}

.ts-local-footer *,
.ts-local-footer *::before,
.ts-local-footer *::after {
	box-sizing: border-box;
}

.ts-local-footer__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 500;
	color: #ffffff;
}

.ts-local-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.ts-local-footer__market {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ts-local-footer__market-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	list-style: none;
	margin: 0;
	padding: 13px 0;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
}

.ts-local-footer__market-name::-webkit-details-marker {
	display: none;
}

.ts-local-footer__market-name::after {
	content: "+";
	margin-left: 12px;
	font-size: 20px;
	line-height: 1;
	font-weight: 400;
	color: #fb7872; /* footer accent (coral) */
}

.ts-local-footer__market[open] > .ts-local-footer__market-name::after {
	content: "\2013"; /* en dash */
}

.ts-local-footer__links {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 28px;
}

.ts-local-footer__links a {
	display: inline-block;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	color: #ffffff;
	text-decoration: none;
}

.ts-local-footer__links a:hover,
.ts-local-footer__links a:focus {
	color: #fb7872; /* matches the existing footer link hover */
}

.ts-local-footer__links a:focus-visible {
	outline: 2px solid #fb7872;
	outline-offset: 2px;
}

/* Wider screens: an expanded province's city links flow into multiple
   columns so the open state stays compact instead of one tall column. */
@media (min-width: 700px) {
	.ts-local-footer__links {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}
