/* ==========================================================================
   Static Pages — Visit, Access, 404, Search
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VISIT PAGE
   -------------------------------------------------------------------------- */

.visit-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
}

@media (min-width: 768px) {
	.visit-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.visit-grid--3 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.visit-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.visit-card {
	background-color: var(--color-bg-soft);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
}

.visit-card h2 {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-md);
}

.visit-address {
	font-style: normal;
	line-height: var(--leading-relaxed);
	margin-bottom: var(--space-lg);
}

.visit-contact {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-bottom: var(--space-sm);
	font-size: var(--text-sm);
}

.visit-contact a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.visit-hours {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.visit-hours__row {
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border);
}

.visit-hours__row:last-child {
	border-bottom: none;
}

.visit-hours__row dt {
	font-weight: var(--weight-semibold);
	margin-bottom: 2px;
}

.visit-hours__row dd {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.visit-map-placeholder {
	aspect-ratio: 16 / 7;
	background-color: var(--color-bg);
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-2xl);
	color: var(--color-text-muted);
}

.visit-transport h3 {
	font-size: var(--text-xl);
	margin-bottom: var(--space-sm);
}

.visit-transport p {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   2. ACCORDION — Used on Visit FAQs and elsewhere
   -------------------------------------------------------------------------- */

.accordion {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.accordion__item {
	border-bottom: 1px solid var(--color-border);
}

.accordion__item:last-child {
	border-bottom: none;
}

.accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--space-lg);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--color-dark);
	transition: background-color var(--transition-base);
}

.accordion__trigger:hover {
	background-color: var(--color-bg-soft);
}

.accordion__trigger:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: -3px;
}

.accordion__icon {
	flex-shrink: 0;
	transition: transform var(--transition-base);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
	transform: rotate(180deg);
}

.accordion__panel[hidden] {
	display: none;
}

.accordion__content {
	padding: 0 var(--space-lg) var(--space-lg);
	color: var(--color-text-muted);
}

.accordion__content p {
	margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   3. ACCESS PAGE
   -------------------------------------------------------------------------- */

.access-page .entry-content section {
	margin-bottom: var(--space-2xl);
	padding-bottom: var(--space-2xl);
	border-bottom: 1px solid var(--color-border);
}

.access-page .entry-content section:last-child {
	border-bottom: none;
}

.access-nav {
	background-color: var(--color-bg-soft);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	margin-bottom: var(--space-2xl);
}

.access-nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.access-nav a {
	display: inline-block;
	padding: 0.375em 0.875em;
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	text-decoration: none;
	transition: background-color var(--transition-base), border-color var(--transition-base);
}

.access-nav a:hover {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-bg);
}

.access-table-wrapper {
	overflow-x: auto;
	margin-bottom: var(--space-lg);
}

.access-table {
	width: 100%;
	font-size: var(--text-sm);
}

.access-table th,
.access-table td {
	padding: var(--space-sm) var(--space-md);
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}

.access-table th {
	font-weight: var(--weight-semibold);
	background-color: var(--color-bg-soft);
	white-space: nowrap;
}

.access-table td {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. 404 PAGE
   -------------------------------------------------------------------------- */

.error-404 {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-404__content {
	text-align: center;
	max-width: 600px;
	padding: var(--space-3xl) 0;
}

.error-404__number {
	font-family: var(--font-heading);
	font-size: 8rem;
	font-weight: var(--weight-black);
	line-height: 1;
	color: var(--color-bg-soft);
	margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
	.error-404__number {
		font-size: 12rem;
	}
}

.error-404__title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
	.error-404__title {
		font-size: var(--text-3xl);
	}
}

.error-404__text {
	color: var(--color-text-muted);
	margin-bottom: var(--space-xl);
}

.error-404__actions {
	display: flex;
	gap: var(--space-md);
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: var(--space-3xl);
}

.error-404__links {
	text-align: left;
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-xl);
}

.error-404__links h2 {
	font-size: var(--text-xl);
	margin-bottom: var(--space-md);
}

.error-404__links ul {
	list-style: none;
	padding: 0;
	margin-bottom: var(--space-xl);
}

.error-404__links li {
	margin-bottom: var(--space-sm);
}

.error-404__links a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. SEARCH RESULTS
   -------------------------------------------------------------------------- */

.search-results {
	padding-bottom: var(--space-3xl);
	min-height: 50vh;
}

.search-result {
	padding: var(--space-lg) 0;
	border-bottom: 1px solid var(--color-border);
}

.search-result__title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-xs);
}

.search-result__title a {
	text-decoration: none;
}

.search-result__title a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.search-result__type {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-primary);
	margin-bottom: var(--space-sm);
}

.search-result__excerpt {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.search-results__empty {
	text-align: center;
	padding: var(--space-3xl) 0;
}

.search-results__empty h2 {
	margin-bottom: var(--space-sm);
}

.search-results__empty p {
	color: var(--color-text-muted);
	margin-bottom: var(--space-xl);
}

/* Search form in content */
.search-form__inner {
	display: flex;
	gap: var(--space-sm);
}

.search-form__input {
	flex: 1;
}
