/* Our Town events page. Uses the site tokens from styles.css. */
.town { padding-bottom: 32px; }
.town-head { padding: 12px 0 8px; }
.town-head h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 0 0 12px; max-width: 22ch; }
.town-head .lede { max-width: 60ch; margin: 0 0 8px; }
.town-note { color: var(--muted); font-size: 14px; max-width: 70ch; margin: 0 0 8px; }

.town-filters {
  position: sticky;
  top: 72px;
  z-index: 4;
  background: rgba(244, 238, 228, 0.96);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 18px 0 8px;
  display: grid;
  gap: 8px;
}
.town-filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.town-filter-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  min-width: 64px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.town-count { margin: 0; font-size: 13px; color: var(--muted); }

.town-month { margin-top: 22px; }
.town-month h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.town-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.town-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(48, 28, 12, 0.04);
}
.town-card h3 { font-size: 21px; margin: 4px 0 8px; }
.town-card p { margin: 0 0 6px; }
.town-tags { display: flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.town-tag { background: var(--oxblood); color: #fffaf3; border-radius: 999px; padding: 2px 9px; letter-spacing: 0.08em; }
.town-card[data-category="Concert"] .town-tag, .town-card[data-category="Festival"] .town-tag { background: var(--pine); }
.town-card[data-category="Fair"] .town-tag, .town-card[data-category="Ranching"] .town-tag { background: var(--brass); }
.town-card[data-category="Heritage"] .town-tag, .town-card[data-category="Dance"] .town-tag { background: var(--oxblood-dark); }
.town-when { font-weight: 600; color: var(--ink); }
.town-where { color: var(--muted); font-size: 15px; }
.town-line { color: var(--ink); font-size: 15px; flex: 1; }
.town-link { margin-top: 8px; align-self: flex-start; font-weight: 600; }
.town-empty { margin: 18px 0; color: var(--muted); }
.town-cta { margin-top: 28px; }
.town-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.town-cta .actions { margin-top: 12px; }

.town-local { margin-top: 36px; }
.town-local > h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; }
.town-thanks { margin: 0 0 18px; }
.town-thanks .page-header { margin: 8px 0 12px; }
.town-thanks p { max-width: 62ch; margin: 0; }
.town-local-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.town-local-grid h3 { margin: 0 0 8px; font-size: 20px; }
.town-local-grid ul { margin: 0; padding-left: 1.1rem; }
.town-local-grid li { margin: 4px 0; }


.town-concerts, .town-other { margin-top: 22px; }
.town-concerts > h2, .town-other > h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 8px;
}
.town-concerts > .lede { max-width: 70ch; margin: 0 0 8px; }
.town-concerts > .town-note { margin: 0 0 8px; }
.town-concerts .town-month, .town-other .town-month { margin-top: 16px; }

[hidden] { display: none !important; }

@media (min-width: 768px) and (max-width: 1023px) {
  .town-grid, .town-local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .town-filters { position: static; }
  .town-filter-label { min-width: 0; width: 100%; }
  .town-grid, .town-local-grid { grid-template-columns: 1fr; }
}

/* Hero: the Miami rodeo photo behind the title and intro. */
.town-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1b140f;
  padding: 0;
  margin-top: 4px;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.town-hero-bg, .town-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.town-hero-bg img { object-fit: cover; object-position: center 62%; }
.town-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(15, 10, 8, 0.84) 0%, rgba(15, 10, 8, 0.55) 45%, rgba(15, 10, 8, 0.12) 100%),
    linear-gradient(90deg, rgba(15, 10, 8, 0.45) 0%, rgba(15, 10, 8, 0) 70%);
}
.town-hero-text {
  position: relative;
  z-index: 2;
  padding: 120px 36px 52px;
  max-width: 760px;
}
.town-hero .kicker { color: var(--brass-bright); }
.town-hero h1 { color: #f6efe4; }
.town-hero .lede { color: rgba(246, 239, 228, 0.94); }
.town-hero .town-note { color: rgba(246, 239, 228, 0.8); }
.town-hero .photo-credit { z-index: 3; left: auto; right: 10px; }
@media (max-width: 767px) {
  .town-hero { border-radius: 14px; min-height: 0; }
  .town-hero-text { padding: 96px 18px 48px; }
  .town-hero .lede { font-size: 16px; }
}
