:root {
  --bg: #f4efe4;
  --paper: rgba(255, 251, 244, 0.88);
  --paper-strong: #fffaf2;
  --ink: #1f2d2b;
  --muted: #5d6c68;
  --line: rgba(31, 45, 43, 0.12);
  --accent: #0e7a61;
  --accent-strong: #0a5f4c;
  --accent-soft: rgba(14, 122, 97, 0.12);
  --shadow: 0 18px 50px rgba(31, 45, 43, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(233, 175, 77, 0.24), transparent 28%),
    radial-gradient(circle at right 20%, rgba(14, 122, 97, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f3ea 0%, #efe8da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 90%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.search-panel,
.status-strip,
.place-choices,
.results {
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 122, 97, 0.18), transparent 70%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.intro-label {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.intro-list {
  max-width: 54ch;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.intro-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(14, 122, 97, 0.12);
  transform: translateY(-50%);
}

.search-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
}

.segmented {
  display: inline-flex;
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.segment {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.segment:hover,
.segment:focus-visible {
  color: var(--ink);
  outline: none;
}

.segment.is-active {
  background: var(--accent);
  color: white;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
.search-button,
.pager,
.choice-card button,
.event-link {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(31, 45, 43, 0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper-strong);
}

input::placeholder {
  color: #7d8a87;
}

input:focus,
select:focus {
  outline: 2px solid rgba(14, 122, 97, 0.18);
  border-color: rgba(14, 122, 97, 0.35);
}

.search-button,
.pager,
.choice-card button,
.event-link {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.search-button {
  padding: 15px 20px;
  font-weight: 700;
}

.search-button:hover,
.pager:hover,
.choice-card button:hover,
.event-link:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.search-button:disabled,
.pager:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-strip,
.place-choices,
.results {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 24px;
}

.status-strip p,
.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.results-meta {
  text-align: right;
  max-width: 34ch;
}

.choice-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.choice-card,
.event-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  overflow: hidden;
}

.choice-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.choice-card h3,
.event-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.choice-card p,
.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.choice-meta,
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.choice-card button {
  width: fit-content;
  padding: 12px 16px;
  font-weight: 700;
}

.event-card {
  display: grid;
  grid-template-rows: 150px auto;
}

.event-media {
  background:
    linear-gradient(135deg, rgba(14, 122, 97, 0.88), rgba(233, 175, 77, 0.7)),
    var(--accent);
  position: relative;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.event-text {
  display: grid;
  gap: 8px;
}

.event-description {
  min-height: 4.6em;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}

.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
}

.pager {
  padding: 10px 16px;
  min-width: 96px;
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .results-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero-copy,
  .search-panel,
  .status-strip,
  .place-choices,
  .results {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .event-card {
    grid-template-rows: 120px auto;
  }
}
