/*
Theme Name: LocalSpotlight
Theme URI: https://localspotlight.wales/
Author: LocalSpotlight.wales
Description: Lightweight theme for the LocalSpotlight.wales business directory MVP.
Version: 0.1.6
Text Domain: localspotlight
*/

:root {
	--ls-bg: #f6f7f7;
	--ls-ink: #202022;
	--ls-muted: #66706c;
	--ls-primary: #356b63;
	--ls-primary-dark: #244c47;
	--ls-primary-soft: #eef5f1;
	--ls-primary-wash: #f7fbf9;
	--ls-primary-shadow: rgba(53, 107, 99, 0.18);
	--ls-border: #dfe6e2;
	--ls-panel: #ffffff;
	--ls-accent: #a56a43;
	--ls-cream: #ffffff;
	--ls-deep: #201a19;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--ls-bg);
	color: var(--ls-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
}

a {
	color: var(--ls-primary);
}

img {
	max-width: 100%;
	height: auto;
}

.site-header,
.site-footer {
	background: #fff;
	border-bottom: 1px solid var(--ls-border);
}

.site-header {
	position: relative;
	z-index: 2;
	box-shadow: 0 8px 26px rgba(43, 23, 12, 0.05);
}

.site-footer {
	border-top: 1px solid var(--ls-border);
	border-bottom: 0;
}

.site-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
	gap: 34px;
	padding: 34px 20px 22px;
}

.site-footer__brand {
	display: grid;
	align-content: start;
	gap: 14px;
	max-width: 330px;
}

.site-footer__marks {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-footer__logo {
	width: 108px;
	height: auto;
}

.site-footer__flag {
	width: 122px;
	aspect-ratio: 5 / 3;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 10px 24px rgba(43, 23, 12, 0.08);
}

.site-footer__brand p,
.site-footer__nav p,
.site-footer__bottom p {
	margin: 0;
	color: var(--ls-muted);
	font-weight: 650;
}

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.site-footer__nav section {
	display: grid;
	align-content: start;
	gap: 9px;
}

.site-footer__nav h2 {
	margin: 0 0 4px;
	color: var(--ls-ink);
	font-size: 0.95rem;
}

.site-footer__nav a,
.site-footer__bottom a {
	color: var(--ls-primary-dark);
	font-weight: 800;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.site-footer__bottom {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	border-top: 1px solid var(--ls-border);
	padding-top: 18px;
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
	align-items: center;
	gap: 18px;
	min-height: 76px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	color: var(--ls-ink);
	font-size: 1.25rem;
	font-weight: 900;
	text-decoration: none;
}

.site-brand img {
	display: block;
	width: clamp(58px, 7vw, 74px);
	max-height: 68px;
	object-fit: contain;
	object-position: left center;
}

.cookie-notice {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 50;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: min(720px, calc(100vw - 36px));
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 20px 46px rgba(43, 23, 12, 0.16);
}

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice p {
	margin: 0;
	color: var(--ls-muted);
	font-weight: 650;
}

.cookie-notice__body {
	display: grid;
	gap: 8px;
}

.cookie-notice__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cookie-notice a {
	color: var(--ls-primary-dark);
	font-weight: 850;
}

.cookie-notice button {
	min-height: 42px;
	border: 0;
	border-radius: 7px;
	padding: 10px 18px;
	background: var(--ls-primary);
	color: #fff;
	font: inherit;
	font-weight: 850;
	cursor: pointer;
}

.cookie-notice button:hover {
	background: var(--ls-primary-dark);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 24px;
	row-gap: 10px;
	justify-self: center;
	min-height: 58px;
}

.site-nav a,
.site-nav summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 4px;
	color: var(--ls-ink);
	font-weight: 750;
	text-decoration: none;
}

.site-nav__browse {
	position: relative;
}

.site-nav__browse summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
}

.site-nav__browse summary::-webkit-details-marker {
	display: none;
}

.site-nav__browse summary::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

.site-nav__browse-panel {
	position: absolute;
	top: calc(100% + 14px);
	left: 0;
	z-index: 10;
	display: grid;
	gap: 4px;
	width: min(260px, calc(100vw - 40px));
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 10px;
	background: #fff;
	box-shadow: 0 18px 38px rgba(43, 23, 12, 0.14);
}

.site-nav__browse:not([open]) .site-nav__browse-panel {
	display: none;
}

.site-nav__browse-panel a {
	justify-content: flex-start;
	min-height: 0;
	border-radius: 7px;
	padding: 9px 10px;
	color: var(--ls-primary-dark);
	text-align: left;
}

.site-nav__browse-panel a:hover {
	background: var(--ls-cream);
}

.site-nav__account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	min-height: 40px;
	border-radius: 7px;
	padding: 8px 14px;
	background: var(--ls-primary);
	color: #fff;
	font-weight: 850;
	box-shadow: 0 8px 18px var(--ls-primary-shadow);
}

.site-nav__account:hover {
	background: var(--ls-primary-dark);
	color: #fff;
}

.site-main {
	min-height: 70vh;
}

.hero {
	position: relative;
	isolation: isolate;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.12) 72%),
		url("/wp-content/uploads/localspotlight-cover.jpg") center / cover no-repeat;
	color: #fff;
	border-bottom: 1px solid var(--ls-border);
}

.hero__inner {
	display: grid;
	gap: 24px;
	min-height: clamp(360px, 34vw, 520px);
	align-items: center;
	padding: 56px 20px;
}

.hero__copy {
	display: grid;
	gap: 18px;
	max-width: 680px;
	color: var(--ls-ink);
}

.hero h1 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(2.3rem, 4vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: 0;
}

.hero p {
	max-width: 720px;
	margin: 0;
	color: var(--ls-muted);
	font-size: 1.14rem;
	font-weight: 700;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button,
.button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 7px;
	padding: 10px 16px;
	font-weight: 850;
	text-decoration: none;
}

.button {
	background: var(--ls-primary);
	color: #fff;
}

.button-secondary {
	border: 1px solid rgba(53, 107, 99, 0.35);
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.content-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 44px 20px;
}

.home-search {
	position: relative;
	z-index: 1;
	margin-top: -34px;
}

.home-search__form {
	display: grid;
	grid-template-columns: minmax(260px, 1.5fr) minmax(200px, 0.85fr) auto;
	gap: 12px;
	align-items: end;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	box-shadow: 0 16px 34px rgba(43, 23, 12, 0.1);
}

.home-search__form label {
	display: grid;
	gap: 6px;
	color: var(--ls-muted);
	font-size: 0.88rem;
	font-weight: 850;
}

.home-search__keyword {
	position: relative;
}

.home-search__form input,
.home-search__form select,
.home-select summary {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--ls-border);
	border-radius: 7px;
	padding: 9px 10px;
	background: #fff;
	color: var(--ls-ink);
	font: inherit;
}

.home-select {
	position: relative;
	width: 100%;
}

.home-select summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	cursor: pointer;
	color: var(--ls-ink);
	font-weight: 850;
}

.home-select summary::-webkit-details-marker {
	display: none;
}

.home-select summary::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.home-select[open] summary {
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	border-color: rgba(53, 107, 99, 0.28);
	background: #fff;
}

.home-select[open] summary::after {
	transform: translateY(2px) rotate(225deg);
}

.home-select__menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 30;
	display: grid;
	width: 100%;
	max-height: 320px;
	overflow: auto;
	border: 1px solid rgba(53, 107, 99, 0.28);
	border-top: 0;
	border-radius: 0 0 7px 7px;
	background: #fff;
	box-shadow: 0 18px 38px rgba(43, 23, 12, 0.14);
}

.home-select__menu button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 42px;
	border: 0;
	border-bottom: 1px solid var(--ls-border);
	padding: 9px 10px;
	background: #fff;
	color: var(--ls-ink);
	font: inherit;
	font-weight: 850;
	text-align: left;
	cursor: pointer;
}

.home-select__menu button:hover,
.home-select__menu button[aria-current="true"] {
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.home-select__menu button:last-child {
	border-bottom: 0;
}

.home-search-suggestions {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 35;
	display: grid;
	width: 100%;
	max-height: 320px;
	overflow: auto;
	border: 1px solid rgba(53, 107, 99, 0.28);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 38px rgba(43, 23, 12, 0.14);
}

.home-search-suggestions[hidden],
.home-search-suggestions__empty[hidden] {
	display: none;
}

.home-search-suggestions button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 42px;
	border: 0;
	border-bottom: 1px solid var(--ls-border);
	padding: 9px 12px;
	background: #fff;
	color: var(--ls-ink);
	font: inherit;
	font-weight: 850;
	text-align: left;
	cursor: pointer;
}

.home-search-suggestions button span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-search-suggestions button small {
	flex: 0 0 auto;
	color: var(--ls-muted);
	font-size: 0.76rem;
	font-weight: 850;
}

.home-search-suggestions button:hover {
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.home-search-suggestions button:last-child {
	border-bottom: 0;
}

.home-search-suggestions__empty {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 35;
	width: 100%;
	margin: 0;
	border: 1px dashed var(--ls-border);
	border-radius: 8px;
	padding: 12px;
	background: #fffaf2;
	color: var(--ls-muted);
	box-shadow: 0 18px 38px rgba(43, 23, 12, 0.1);
}

.home-section {
	display: grid;
	gap: 20px;
}

.home-section + .home-section,
.home-browse-panels,
.home-cta {
	padding-top: 10px;
}

.home-section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
}

.home-section__header h2,
.home-cta h2 {
	margin: 0;
	font-size: clamp(1.55rem, 2.1vw, 2.25rem);
	line-height: 1.12;
}

.home-section__header a {
	font-weight: 850;
	color: var(--ls-primary);
}

.home-eyebrow {
	margin: 0 0 6px;
	color: var(--ls-primary);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home-card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.home-listing-card {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(43, 23, 12, 0.08);
}

.home-listing-card__media {
	display: grid;
	place-items: center;
	height: 230px;
	background: var(--ls-cream);
	color: var(--ls-primary);
	font-weight: 900;
	text-decoration: none;
	overflow: hidden;
}

.home-listing-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14px;
	background: #fff;
}

.home-listing-card__body {
	display: grid;
	gap: 12px;
	grid-template-rows: auto auto 1fr;
	align-content: stretch;
	padding: 16px;
	min-width: 0;
}

.home-listing-card__top {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.home-listing-card h3 {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.2;
	min-width: 0;
}

.home-listing-card h3 a {
	display: block;
	overflow: hidden;
	color: var(--ls-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-listing-card p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--ls-muted);
	font-weight: 650;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.home-listing-card__link {
	align-self: end;
	color: var(--ls-primary);
	font-weight: 900;
}

.home-listing-card--placeholder {
	border-style: dashed;
	background: var(--ls-cream);
}

.home-listing-card--placeholder .home-listing-card__media span {
	font-size: 3rem;
	line-height: 1;
}

.home-browse-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.home-browse-panel,
.home-cta {
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 24px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(43, 23, 12, 0.06);
}

.home-chip-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.home-chip {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	border: 1px solid var(--ls-border);
	border-radius: 999px;
	padding: 8px 12px;
	color: var(--ls-primary-dark);
	font-weight: 850;
	text-decoration: none;
}

.home-chip:hover {
	background: var(--ls-cream);
}

.home-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 44px;
}

.home-cta p {
	margin: 10px 0 0;
	color: var(--ls-muted);
	font-weight: 700;
}

.page-title {
	margin: 0 0 24px;
	font-size: clamp(2rem, 3vw, 3.2rem);
	line-height: 1.1;
}

.listing-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas:
		"main side"
		"contact side"
		"map map";
	gap: 28px;
	align-items: start;
}

.listing-layout--no-contact {
	grid-template-areas:
		"main side"
		"map map";
}

.listing-layout--no-map {
	grid-template-areas:
		"main side"
		"contact side";
}

.listing-layout--no-contact.listing-layout--no-map {
	grid-template-areas:
		"main side";
}

.listing-main,
.listing-side {
	background: var(--ls-panel);
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 24px;
}

.listing-main {
	grid-area: main;
}

.listing-side {
	grid-area: side;
	display: flex;
	flex-direction: column;
}

.listing-main > .wp-post-image {
	display: block;
	width: min(66%, 680px);
	max-height: 430px;
	margin: 0 auto 30px;
	object-fit: contain;
}

.listing-meta {
	display: grid;
	gap: 12px;
	margin: 0;
}

.listing-meta div {
	display: grid;
	gap: 8px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ls-border);
}

.listing-meta dt {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #52635f;
	font-weight: 800;
}

.listing-meta dd {
	margin: 0;
	padding-left: 66px;
}

.listing-icon {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--ls-primary-soft);
	color: var(--ls-primary);
}

.listing-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.listing-meta dt .listing-icon {
	position: static;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: var(--ls-primary-wash);
	color: rgba(53, 107, 99, 0.72);
}

.listing-meta dt .listing-icon svg {
	width: 30px;
	height: 30px;
}

.listing-meta__title-link {
	color: var(--ls-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.listing-meta__title-link:hover {
	color: var(--ls-primary-dark);
}

.listing-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 160px));
	gap: 12px;
	margin-top: 24px;
}

.listing-gallery__item {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 8px;
	padding: 0;
	background: transparent;
	cursor: zoom-in;
}

.listing-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
}

.listing-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 72px 84px;
	background: rgba(16, 20, 22, 0.86);
}

.listing-lightbox[aria-hidden="false"] {
	display: flex;
}

.listing-lightbox-open {
	overflow: hidden;
}

.listing-lightbox figure {
	margin: 0;
}

.listing-lightbox img {
	display: block;
	max-width: min(100%, 1180px);
	max-height: calc(100vh - 120px);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	object-fit: contain;
}

.listing-lightbox button {
	border: 0;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
}

.listing-lightbox__close,
.listing-lightbox__nav {
	position: fixed;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	font-size: 2rem;
	line-height: 1;
}

.listing-lightbox__close {
	top: 22px;
	right: 22px;
}

.listing-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.listing-lightbox__nav--previous {
	left: 22px;
}

.listing-lightbox__nav--next {
	right: 22px;
}

.listing-share {
	margin-top: 28px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 20px;
	background: #fff;
}

.listing-contact-form {
	grid-area: contact;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 18px;
	background: #fff;
}

.listing-share h2,
.listing-contact-form h2 {
	margin-top: 0;
}

.listing-share__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.listing-share__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--ls-border);
	border-radius: 999px;
	padding: 8px 12px;
	color: var(--ls-primary);
	font-weight: 800;
	text-decoration: none;
}

.listing-share__links .listing-icon {
	position: static;
	width: 22px;
	height: 22px;
	background: transparent;
}

.listing-share__links .listing-icon svg {
	width: 18px;
	height: 18px;
}

.listing-contact-form form {
	display: grid;
	gap: 10px;
}

.listing-contact-form label {
	display: grid;
	gap: 6px;
	font-weight: 800;
}

.listing-contact-form input,
.listing-contact-form textarea {
	width: 100%;
	border: 1px solid var(--ls-border);
	border-radius: 7px;
	padding: 9px 10px;
	font: inherit;
}

.listing-contact-form__trap {
	position: absolute;
	left: -9999px;
}

.listing-map {
	grid-area: map;
	overflow: hidden;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
}

.listing-map iframe {
	display: block;
	width: 100%;
	min-height: 240px;
	border: 0;
}

.listing-map--large {
	margin-top: 0;
}

.listing-map--large iframe {
	min-height: 520px;
	height: 100%;
}

.listing-map--coverage {
	grid-area: map;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	position: relative;
}

.listing-coverage-map__canvas {
	min-height: 360px;
	height: 360px;
	background: #eef6f7;
}

.listing-coverage-map__canvas[hidden] {
	display: none;
}

.listing-map--coverage .leaflet-container {
	font-family: inherit;
}

.listing-coverage-map__chip {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 450;
	display: grid;
	gap: 5px;
	min-width: 238px;
	max-width: min(350px, calc(100% - 96px));
	max-height: calc(100% - 28px);
	border: 1px solid rgba(14, 28, 45, .1);
	border-radius: 3px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 1px 2px rgba(14, 28, 45, .18), 0 4px 12px rgba(14, 28, 45, .12);
	color: var(--ls-ink);
	line-height: 1.25;
	padding: 13px 14px;
	pointer-events: none;
	overflow: auto;
}

.listing-coverage-map__chip strong {
	font-size: 1.05rem;
	font-weight: 800;
}

.listing-coverage-map__chip-coverage {
	color: #5f6368;
	font-size: .88rem;
	font-weight: 650;
}

.listing-coverage-map__chip ul {
	display: grid;
	gap: 4px;
	margin: 6px 0 0;
	padding: 9px 0 0;
	border-top: 1px solid rgba(14, 28, 45, .08);
	list-style: none;
	color: var(--ls-ink);
	font-size: .86rem;
	font-weight: 650;
}

.listing-coverage-map__chip li {
	margin: 0;
	overflow-wrap: anywhere;
	padding-left: 13px;
	position: relative;
}

.listing-coverage-map__chip li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--ls-primary);
}

.listing-coverage-panel__areas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.listing-coverage-panel__areas li {
	border: 1px solid rgba(53, 107, 99, .22);
	border-radius: 999px;
	background: var(--ls-primary-wash);
	color: var(--ls-ink);
	font-size: .9rem;
	font-weight: 800;
	padding: 7px 10px;
}

.listing-coverage-panel__areas-wrap {
	padding: 14px 18px 18px;
}

.listing-coverage-panel__details summary {
	cursor: pointer;
	font-weight: 800;
	color: var(--ls-ink);
}

.listing-coverage-panel__details .listing-coverage-panel__areas {
	margin-top: 12px;
}

.listing-taxonomy {
	margin-top: 18px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	background: #fff;
}

.listing-taxonomy summary {
	cursor: pointer;
	padding: 12px 14px;
	color: var(--ls-ink);
	font-weight: 900;
}

.listing-taxonomy__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 14px 14px;
}

.listing-taxonomy__chips a {
	border: 1px solid var(--ls-border);
	border-radius: 999px;
	padding: 6px 10px;
	color: var(--ls-primary);
	font-size: 0.92rem;
	font-weight: 750;
	text-decoration: none;
}

.listing-taxonomy__chips a[hidden] {
	display: none;
}

.listing-review-panel,
.listing-review-form {
	margin-top: 18px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 18px;
	background: #fff;
}

.listing-review-form {
	grid-column: 1 / -1;
	margin-top: 0;
}

.listing-review-panel h2 {
	margin-top: 0;
}

.listing-review-panel__link {
	color: var(--ls-primary);
	font-weight: 850;
	text-underline-offset: 3px;
}

.listing-review-form .comment-reply-title,
.listing-review-form .comment-notes,
.listing-review-form .logged-in-as {
	margin-top: 0;
}

.listing-review-form .comment-form {
	display: grid;
	gap: 12px;
}

.listing-review-form .comment-form p {
	margin: 0;
}

.listing-review-form .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 800;
}

.listing-review-form .comment-form input,
.listing-review-form .comment-form textarea,
.listing-review-form .comment-form select {
	width: 100%;
	border: 1px solid var(--ls-border);
	border-radius: 7px;
	padding: 9px 10px;
	font: inherit;
}

.listing-rating {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lsd-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.lsd-star {
	color: #d7d2c4;
	font-size: 1.1rem;
}

.lsd-star.is-filled {
	color: #f6b800;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.comment-list {
	padding-left: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 16px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.lsd-browse {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 24px;
	border: 0;
	padding: 0;
	background: transparent;
}

.lsd-browse__group {
	position: relative;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(43, 23, 12, 0.05);
}

.lsd-browse__group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	cursor: pointer;
	list-style: none;
	padding: 16px 18px;
	color: var(--ls-ink);
	font-weight: 900;
}

.lsd-browse__group summary::-webkit-details-marker {
	display: none;
}

.lsd-browse__group summary::after {
	content: "+";
	margin-left: auto;
	color: var(--ls-primary);
	font-size: 1.35rem;
	line-height: 1;
}

.lsd-browse__group[open] summary::after {
	content: "-";
}

.lsd-browse__group summary small {
	border-radius: 999px;
	padding: 4px 9px;
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
	font-size: 0.78rem;
	font-weight: 900;
}

.lsd-browse__links {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 20;
	display: grid;
	width: 100%;
	max-height: 320px;
	overflow: auto;
	border: 1px solid var(--ls-border);
	border-top: 0;
	border-radius: 0 0 8px 8px;
	padding: 0;
	background: #fff;
	box-shadow: 0 18px 38px rgba(43, 23, 12, 0.14);
}

.lsd-browse__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--ls-border);
	padding: 9px 18px;
	background: #fff;
	color: var(--ls-ink);
	font: inherit;
	font-weight: 900;
	text-decoration: none;
}

.lsd-browse__links a:hover {
	color: var(--ls-primary-dark);
	background: var(--ls-primary-soft);
}

.lsd-browse__links a:last-child {
	border-bottom: 0;
}

.lsd-category-finder {
	display: grid;
	gap: 16px;
	margin: 0 0 28px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(43, 23, 12, 0.06);
}

.lsd-category-finder__intro {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.lsd-category-finder h2,
.lsd-category-finder p {
	margin: 0;
}

.lsd-category-finder h2 {
	font-size: 1.1rem;
}

.lsd-category-finder p {
	margin-top: 4px;
	color: var(--ls-muted);
	font-weight: 650;
}

.lsd-category-finder__intro a {
	flex: 0 0 auto;
	color: var(--ls-primary);
	font-weight: 900;
}

.lsd-category-finder__input {
	width: 100%;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 13px 15px;
	background: #fff;
	color: var(--ls-ink);
	font: inherit;
	font-weight: 850;
}

.lsd-category-finder__input:focus {
	border-color: var(--ls-primary);
	outline: 3px solid rgba(53, 107, 99, 0.12);
}

.lsd-category-finder__results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-height: 280px;
	overflow: auto;
}

.lsd-category-finder__results[hidden],
.lsd-category-finder__empty[hidden] {
	display: none;
}

.lsd-category-finder__results a {
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 11px 12px;
	background: #fff;
	color: var(--ls-primary);
	font-weight: 900;
	text-decoration: none;
}

.lsd-category-finder__results a:hover {
	border-color: rgba(53, 107, 99, 0.24);
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.lsd-category-finder__empty {
	border: 1px dashed var(--ls-border);
	border-radius: 8px;
	padding: 12px;
	background: #fffaf2;
}

.content-shell > .lsd-listing-grid,
.lsd-wrap > .lsd-listing-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.lsd-listing-card {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	min-width: 0;
}

.lsd-listing-card .lsd-card__image {
	display: grid;
	place-items: center;
	height: 230px;
	min-height: 0;
	overflow: hidden;
}

.lsd-listing-card .lsd-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
	background: #fff;
}

.lsd-listing-card .lsd-card__body {
	display: grid;
	gap: 12px;
	grid-template-rows: auto auto 1fr;
	align-content: stretch;
	padding: 16px;
	background: #fff;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.lsd-listing-card .lsd-card__top,
.lsd-listing-card .lsd-card__footer {
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.lsd-listing-card h3 {
	margin: 0;
	font-size: 1.06rem;
	line-height: 1.2;
	max-width: 100%;
	min-width: 0;
}

.lsd-listing-card h3 a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lsd-listing-card p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--ls-muted);
	font-size: 0.95rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.lsd-listing-card .lsd-card__footer {
	align-self: end;
}

/* Directory plugin brand pass. */
.lsd-eyebrow,
.lsd-link,
.listing-taxonomy__chips a,
.listing-share__links a,
.lsd-browse__links a {
	color: var(--ls-primary);
}

.lsd-tab {
	border-color: var(--ls-border);
	color: var(--ls-primary-dark);
}

.lsd-tab.is-active,
.lsd-button,
.lsd-form button,
.lsd-auth #wp-submit,
.wp-block-button__link {
	background: var(--ls-primary);
	color: #fff;
}

.lsd-tab.is-active,
.lsd-listing-picker__item.is-active,
.lsd-listing-slot.is-active .lsd-listing-slot__thumb {
	border-color: var(--ls-primary);
}

.lsd-button:hover,
.lsd-auth #wp-submit:hover {
	background: var(--ls-primary-dark);
}

.lsd-button--secondary {
	border-color: var(--ls-border);
	background: #fff;
	color: var(--ls-primary-dark);
}

.lsd-button--secondary:hover,
.lsd-option-card:hover,
.lsd-choice:hover {
	background: var(--ls-cream);
	color: var(--ls-primary-dark);
}

.lsd-card,
.lsd-panel,
.lsd-form-section,
.lsd-interest-group,
.lsd-service-card,
.lsd-help-grid div,
.lsd-share-panel,
.lsd-rules,
.lsd-empty-state,
.lsd-choice-list,
.lsd-form input,
.lsd-form textarea,
.lsd-form select,
.lsd-auth input[type="text"],
.lsd-auth input[type="email"],
.lsd-auth input[type="password"],
.comment-form input,
.comment-form textarea,
.comment-form select {
	border-color: var(--ls-border);
}

.lsd-card,
.lsd-panel {
	box-shadow: 0 14px 34px rgba(43, 23, 12, 0.08);
}

.lsd-card--muted,
.lsd-listing-picker__item--new,
.lsd-listing-slot__thumb,
.lsd-service-card,
.lsd-interest-group,
.lsd-help-grid div,
.lsd-rules,
.lsd-empty-state,
.lsd-share-panel,
.lsd-form-section summary {
	background: var(--ls-cream);
}

.lsd-card__image {
	background: #fff2df;
	color: var(--ls-primary);
}

.lsd-badge,
.lsd-badge--approved,
.lsd-badge--featured,
.lsd-badge--premium {
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.lsd-badge--pending_review,
.lsd-badge--renewal_due {
	background: #fff7d9;
	color: #73520b;
}

.lsd-badge--draft {
	background: #eef2f7;
	color: #374151;
}

.lsd-badge--rejected,
.lsd-badge--expired {
	background: #ffe5e5;
	color: var(--ls-primary-dark);
}

.lsd-choice:has(input:checked),
.lsd-notice--success {
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.lsd-form-section summary::after {
	color: var(--ls-primary);
}

@media (max-width: 820px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		padding: 18px 0;
	}

	.site-footer__nav {
		grid-template-columns: 1fr;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-header__inner {
		grid-template-columns: 1fr;
		justify-items: start;
		padding: 18px 20px;
	}

	.site-nav {
		justify-content: flex-start;
		justify-self: start;
	}

	.site-nav__account {
		justify-self: start;
	}

	.cookie-notice {
		grid-template-columns: 1fr;
	}

	.listing-layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"main"
			"side"
			"contact"
			"map";
	}

	.listing-layout--no-contact {
		grid-template-areas:
			"main"
			"side"
			"map";
	}

	.listing-layout--no-map {
		grid-template-areas:
			"main"
			"side"
			"contact";
	}

	.listing-layout--no-contact.listing-layout--no-map {
		grid-template-areas:
			"main"
			"side";
	}

	.listing-main > .wp-post-image {
		width: 100%;
	}

	.listing-lightbox {
		padding: 64px 16px;
	}

	.listing-lightbox__nav {
		width: 42px;
		height: 42px;
	}

	.listing-lightbox__nav--previous {
		left: 10px;
	}

	.listing-lightbox__nav--next {
		right: 10px;
	}

	.listing-map--large iframe {
		min-height: 320px;
	}

	.listing-coverage-map__canvas {
		min-height: 300px;
		height: 300px;
	}

	.listing-coverage-map__chip {
		max-width: calc(100% - 88px);
		padding: 9px 10px;
	}

	.site-nav__browse-panel {
		left: auto;
		right: 0;
	}

	.home-search {
		margin-top: 0;
	}

	.home-search__form,
	.home-browse-panels,
	.home-cta,
	.lsd-browse,
	.lsd-category-finder__intro,
	.lsd-category-finder__results {
		grid-template-columns: 1fr;
	}

	.lsd-category-finder__intro {
		display: grid;
	}

	.home-card-grid,
	.home-chip-grid,
	.content-shell > .lsd-listing-grid,
	.lsd-wrap > .lsd-listing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-cta {
		display: grid;
	}
}

@media (min-width: 821px) and (max-width: 1080px) {
	.home-search__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.content-shell > .lsd-listing-grid,
	.lsd-wrap > .lsd-listing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.site-shell {
		padding: 0 14px;
	}

	.site-header__inner {
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 12px;
		padding: 10px 14px 12px;
	}

	.site-brand img {
		width: 48px;
		max-height: 48px;
	}

	.site-nav {
		grid-column: 1 / -1;
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		width: 100%;
		min-height: 0;
		overflow-x: auto;
		padding-bottom: 2px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar {
		display: none;
	}

	.site-nav a,
	.site-nav summary {
		flex: 0 0 auto;
		justify-content: center;
		min-height: 34px;
		border: 1px solid var(--ls-border);
		border-radius: 7px;
		padding: 7px 10px;
		background: #fff;
		font-size: 0.9rem;
		line-height: 1.2;
	}

	.site-nav__browse-panel {
		position: fixed;
		top: 118px;
		left: 14px;
		right: 14px;
		width: auto;
		max-height: min(360px, calc(100vh - 150px));
		overflow-y: auto;
	}

	.site-nav__account {
		justify-self: end;
		min-height: 38px;
		padding: 8px 13px;
	}

	.site-footer__inner {
		gap: 18px;
		padding: 24px 18px 18px;
		text-align: center;
	}

	.site-footer__brand {
		justify-items: center;
		max-width: none;
		width: 100%;
		margin: 0 auto;
		text-align: center;
	}

	.site-footer__brand p {
		max-width: 31ch;
		margin-inline: auto;
	}

	.site-footer__marks {
		justify-content: center;
	}

	.site-footer__logo {
		width: 72px;
	}

	.site-footer__flag {
		width: 96px;
	}

	.site-footer__nav {
		gap: 12px;
		text-align: center;
	}

	.site-footer__nav section {
		justify-items: center;
		border: 1px solid var(--ls-border);
		border-radius: 8px;
		padding: 14px;
		background: #fff;
	}

	.site-footer__nav p {
		text-align: center;
	}

	.site-footer__bottom {
		align-items: center;
		gap: 8px;
		text-align: center;
	}

	.content-shell {
		width: 100%;
		overflow-x: hidden;
		padding: 24px 14px;
	}

	.page-title {
		margin-bottom: 18px;
		font-size: clamp(2rem, 11vw, 2.55rem);
		overflow-wrap: anywhere;
	}

	input,
	select,
	textarea,
	button {
		font-size: 16px;
	}

	.home-card-grid,
	.home-chip-grid,
	.content-shell > .lsd-listing-grid,
	.lsd-wrap > .lsd-listing-grid {
		grid-template-columns: 1fr;
	}

	.lsd-browse__links {
		grid-template-columns: 1fr;
		right: auto;
		left: 0;
		width: calc(100vw - 40px);
	}
}

/* Keep directory browse panels as readable dropdown lists, even when plugin CSS loads later. */
.lsd-browse .lsd-browse__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	width: 100%;
	max-height: 320px;
	overflow: auto;
	border: 1px solid var(--ls-border);
	border-top: 0;
	border-radius: 0 0 8px 8px;
	padding: 0;
	background: #fff;
	box-shadow: 0 18px 38px rgba(43, 23, 12, 0.14);
}

.lsd-browse .lsd-browse__links a,
.lsd-browse .lsd-browse__links a:visited {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	border: 0;
	border-bottom: 1px solid var(--ls-border);
	border-radius: 0;
	box-shadow: none;
	padding: 9px 18px;
	background: #fff;
	color: var(--ls-ink);
	font: inherit;
	font-weight: 900;
	text-decoration: none;
}

.lsd-browse .lsd-browse__links a:hover {
	background: var(--ls-primary-soft);
	color: var(--ls-primary-dark);
}

.lsd-browse .lsd-browse__links a:last-child {
	border-bottom: 0;
}

/* Final mobile guardrails: keep the header, dropdowns, forms, and footer inside the phone viewport. */
@media (max-width: 640px) {
	html {
		-webkit-text-size-adjust: 100%;
	}

	html,
	body {
		max-width: 100%;
		overflow-x: hidden;
	}

	.site-header {
		position: relative;
		z-index: 50;
	}

	.site-header .site-shell.site-header__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 14px;
		width: 100%;
		max-width: none;
		min-height: 0;
		padding: 16px 14px 18px;
	}

	.site-brand {
		align-self: center;
	}

	.site-brand img {
		width: 64px;
		max-height: 64px;
		object-position: center;
	}

	.site-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		overflow: visible;
		padding: 0;
	}

	.site-nav a,
	.site-nav summary {
		display: flex;
		justify-content: center;
		width: 100%;
		min-height: 42px;
		border: 1px solid var(--ls-border);
		border-radius: 7px;
		padding: 9px 10px;
		background: #fff;
		font-size: 16px;
		line-height: 1.15;
		text-align: center;
		white-space: normal;
	}

	.site-nav__browse {
		position: static;
	}

	.site-nav__browse-panel {
		position: fixed;
		top: 168px;
		left: 14px;
		right: 14px;
		z-index: 100;
		width: auto;
		max-height: min(360px, calc(100vh - 190px));
		overflow-y: auto;
		border-radius: 8px;
		padding: 8px;
	}

	.site-nav__browse-panel a {
		justify-content: flex-start;
		text-align: left;
	}

	.site-nav__account {
		align-self: center;
		justify-self: auto;
		min-width: 132px;
		min-height: 42px;
	}

	.home-search__form input,
	.home-search__form select,
	.home-select summary,
	.lsd-form input,
	.lsd-form select,
	.lsd-form textarea,
	.lsd-category-finder__input,
	input[type="search"],
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="tel"],
	select,
	textarea {
		font-size: 16px !important;
	}

	.site-footer {
		overflow: hidden;
	}

	.site-footer .site-shell.site-footer__inner {
		display: grid;
		grid-template-columns: 1fr;
		justify-items: center;
		width: 100%;
		max-width: none;
		margin: 0 auto;
		padding: 28px 18px 22px;
		text-align: center;
	}

	.site-footer__brand,
	.site-footer__nav,
	.site-footer__bottom {
		width: 100%;
		max-width: 420px;
		margin-inline: auto;
	}

	.site-footer__brand {
		justify-items: center;
	}

	.site-footer__marks {
		justify-content: center;
	}

	.site-footer__brand p {
		max-width: 26ch;
		margin-inline: auto;
	}

	.site-footer__nav {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.site-footer__nav section {
		justify-items: center;
	}

	.site-footer__bottom {
		align-items: center;
		justify-content: center;
		flex-direction: column;
		text-align: center;
	}
}
