:root {
  --bg: #2a2825;
  --surface: #353230;
  --surface-2: #3e3b38;
  --text: #f5f0e8;
  --text-light: #b5afa5;
  --gold: #c9a84c;
  --border: #4a4643;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.market-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.market-nav a {
  text-decoration: none;
  padding: 0.5rem 0;
}
.market-nav .market-brand {
  font-family: "EB Garamond", serif;
  font-size: 1.55rem;
  margin-right: auto;
  font-weight: 600;
}
.market-nav a[aria-current] {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.directory-intro {
  max-width: 1120px;
  margin: 3rem auto 2rem;
  padding: 0 1.25rem;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
h1 {
  font-family: "EB Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.directory-intro .intro-copy {
  max-width: 700px;
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0;
}
.directory-filters {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
}
.filter-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.85rem;
}
.filter-fields input,
.filter-fields select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface);
}
.filter-fields input::placeholder {
  color: var(--text-light);
  opacity: 1;
}
.results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0;
}
.results-row p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}
.clear-filters,
.description-toggle {
  border: 0;
  background: none;
  padding: 0.5rem 0;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
  text-align: left;
}
.booths-grid {
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.booth-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.booth-photo-link {
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}
.booth-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.booth-photo-link:hover img {
  transform: scale(1.025);
}
.booth-card-body {
  padding: 1.5rem;
}
.booth-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.65rem;
}
.booth-card-title {
  font-family: "EB Garamond", serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}
.booth-card-title a {
  text-decoration: none;
}
.booth-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.booth-card-desc {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0.6rem 0 0;
}
.booth-card-tagline {
  color: var(--text-light);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
.booth-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.booth-specialties a {
  color: var(--text-light);
  background: var(--surface-2);
  text-decoration: none;
  border-radius: 3px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}
.booth-specialties a:hover {
  text-decoration: underline;
}
.booth-page-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: #1a1815;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.9rem 1rem;
  margin-top: 1.25rem;
  overflow-wrap: anywhere;
}
html[data-theme="light"] .booth-page-link {
  color: #fff;
}
.booth-page-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-state {
  max-width: 700px;
  padding: 2rem 1.25rem;
  margin: auto;
  text-align: center;
}
.empty-state h2 {
  font-size: 1.4rem;
}
.directory-footer {
  max-width: 1080px;
  margin: 2rem auto 4rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.directory-footer a {
  color: var(--gold);
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .directory-intro {
    margin-top: 2rem;
  }
  .filter-fields {
    grid-template-columns: 1fr 1fr;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .booths-grid {
    grid-template-columns: 1fr;
  }
  .booth-card-body {
    padding: 1.25rem;
  }
  .market-nav {
    gap: 0.25rem 1.25rem;
  }
  .market-nav .market-brand {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .booth-card-img {
    transition: none;
  }
}
