/* =============================================================================
   Venue Directory — layout only. Colour and type come from the site design
   tokens in 07_website-and-systems (var(--color-*) / var(--font-*)); this file
   adds no second palette or font, only structure. Fallbacks match the tokens
   so it still reads correctly if the variables are ever missing.
   ========================================================================== */

.vd-directory {
	--vd-primary: var(--color-primary, #113322);
	--vd-accent: var(--color-accent, #C5A02B);
	--vd-text: var(--color-text, #1C1C1C);
	--vd-bg: var(--color-bg, #FAF9F6);
	--vd-rule: rgba(28, 28, 28, 0.14);
	color: var(--vd-text);
}

.vd-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
}

.vd-container--narrow {
	max-width: 760px;
}

.vd-breadcrumb {
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.vd-title {
	font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
	color: var(--vd-primary);
	margin: 0 0 0.5rem;
}

.vd-intro {
	max-width: 65ch;
	margin: 0 0 2rem;
}

/* Hub "browse down" links (Directory → Libraries → …). */
.vd-sections {
	margin: 0 0 2rem;
}

.vd-sections ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.vd-sections li a {
	display: inline-block;
	border: 1px solid var(--vd-rule);
	padding: 0.35rem 0.85rem;
	text-decoration: none;
	font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
	font-size: 1.15rem;
	color: var(--vd-primary);
}

.vd-sections li a:hover,
.vd-sections li a:focus-visible {
	border-color: var(--vd-primary);
	background: var(--vd-primary);
	color: #fff;
}

/* When no facets are worth showing, the results take the full width.
   Double class so it beats the base .vd-layout rule regardless of source order. */
.vd-layout.vd-layout--nofilters {
	grid-template-columns: 1fr;
}

/* Two-column layout: filters beside results, stacking on small screens. */
.vd-layout {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 781px) {
	.vd-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* --- Filters ------------------------------------------------------------- */
.vd-filters-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.75rem;
}

.vd-facet {
	border: 0;
	border-top: 1px solid var(--vd-rule);
	padding: 0.85rem 0 0.35rem;
	margin: 0;
}

.vd-facet legend {
	font-weight: 700;
	padding: 0;
	margin-bottom: 0.4rem;
}

.vd-opt {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0.15rem 0;
	cursor: pointer;
}

.vd-opt input {
	margin: 0;
	flex: 0 0 auto;
}

.vd-opt-count {
	color: #6b6b6b;
	font-size: 0.85rem;
}

.vd-showmore {
	background: none;
	border: 0;
	color: var(--vd-primary);
	text-decoration: underline;
	cursor: pointer;
	padding: 0.3rem 0;
	font-size: 0.9rem;
}

.vd-filter-actions {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.vd-clear {
	font-size: 0.9rem;
}

/* --- Results ------------------------------------------------------------- */
.vd-count {
	font-size: 0.9rem;
	color: #6b6b6b;
	margin: 0 0 1rem;
}

.vd-listings {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vd-listing {
	display: flex;
	gap: 1.1rem;
	padding: 1.15rem 0;
	border-top: 1px solid var(--vd-rule);
}

.vd-listing:last-child {
	border-bottom: 1px solid var(--vd-rule);
}

.vd-thumb {
	flex: 0 0 96px;
}

.vd-thumb img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	display: block;
}

.vd-body {
	flex: 1 1 auto;
	min-width: 0;
}

.vd-name {
	font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
	font-size: 1.4rem;
	margin: 0 0 0.2rem;
	line-height: 1.2;
}

.vd-meta {
	font-size: 0.9rem;
	color: #6b6b6b;
	margin: 0 0 0.4rem;
}

.vd-desc {
	margin: 0 0 0.4rem;
	max-width: 65ch;
}

.vd-verified {
	font-size: 0.82rem;
	color: #6b6b6b;
	margin: 0;
}

.vd-empty {
	padding: 1.5rem 0;
}

/* --- Pagination ---------------------------------------------------------- */
.vd-pagination {
	margin-top: 2rem;
}

.vd-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

.vd-pagination a,
.vd-pagination span {
	display: inline-block;
	min-width: 44px;
	min-height: 44px;
	line-height: 44px;
	text-align: center;
	padding: 0 0.6rem;
	border: 1px solid var(--vd-rule);
	text-decoration: none;
}

.vd-pagination .current {
	background: var(--vd-primary);
	color: #fff;
	border-color: var(--vd-primary);
}

/* --- Single -------------------------------------------------------------- */
.vd-hero {
	margin: 1rem 0 1.5rem;
}

.vd-hero img {
	width: 100%;
	height: auto;
	display: block;
}

.vd-facts {
	margin: 0 0 1.5rem;
}

.vd-fact {
	margin: 0 0 0.5rem;
}

.vd-features ul,
.vd-collections ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vd-features li {
	border: 1px solid var(--vd-rule);
	padding: 0.2rem 0.65rem;
	font-size: 0.9rem;
}

.vd-map-note,
.vd-back {
	font-size: 0.9rem;
	margin-top: 1.5rem;
}
