:root {
  --ink: #241d18;
  --muted: #6f625b;
  --line: #e6ddd6;
  --paper: #fffaf5;
  --panel: #ffffff;
  --accent: #0f7c72;
  --accent-dark: #07564f;
  --sun: #f7b538;
  --clay: #c75d3f;
  --shadow: 0 18px 50px rgba(61, 44, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  background:
    radial-gradient(circle at 80% 20%, rgba(247, 181, 56, 0.45), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(199, 93, 63, 0.42), transparent 26%),
    linear-gradient(130deg, rgba(15, 124, 114, 0.98), rgba(9, 82, 76, 0.94));
  background-position: center;
  background-size: cover;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 88px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1;
}

.hero-text {
  max-width: 710px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
  line-height: 1.55;
}

.search-panel {
  max-width: 720px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.search-label {
  display: block;
  margin: 0 0 8px 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input,
.newsletter-form input,
.newsletter-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 850;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.trust-card {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.stat-number {
  display: block;
  font-size: 4.4rem;
  font-weight: 950;
  line-height: 0.85;
}

.stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.trust-line {
  height: 1px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.3);
}

.trust-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.quick-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.plan-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.plan-card {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: start;
  border: 1px solid var(--line);
  padding: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 30px rgba(61, 44, 33, 0.06);
  text-align: left;
}

.plan-card span {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.plan-card:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.plan-card:hover span {
  color: #fff;
}

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

.section-header .eyebrow,
.panel .eyebrow,
.newsletter .eyebrow {
  color: var(--clay);
}

.result-count {
  color: var(--muted);
  font-weight: 800;
}

.map-section {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 18px;
  margin: 0 0 22px;
}

.map-copy,
.map-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(61, 44, 33, 0.07);
}

.map-copy {
  padding: 22px;
}

.map-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.map-shell {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 124, 114, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 124, 114, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(39, 111, 191, 0.2), transparent 18%),
    radial-gradient(circle at 70% 62%, rgba(247, 181, 56, 0.22), transparent 20%),
    #f8f3ed;
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto;
}

.event-map {
  position: absolute;
  inset: 22px;
}

.map-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 0;
  box-shadow: 0 8px 22px rgba(36, 29, 24, 0.25);
  transform: translate(-50%, -50%);
}

.map-dot:hover,
.map-dot.selected {
  z-index: 3;
  width: 30px;
  height: 30px;
}

.map-dot span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 180px;
  border-radius: 8px;
  padding: 7px 9px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.map-dot:hover span,
.map-dot.selected span {
  opacity: 1;
}

.map-label {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(36, 29, 24, 0.58);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-label.north {
  top: 16px;
  left: 44%;
}

.map-label.west {
  top: 44%;
  left: 22px;
}

.map-label.center {
  top: 52%;
  left: 43%;
}

.map-label.east {
  right: 22px;
  top: 50%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(61, 44, 33, 0.07);
}

.event-card.selected {
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(15, 124, 114, 0.18);
}

.event-image {
  min-height: 108px;
  background: linear-gradient(135deg, var(--accent), var(--sun));
}

.event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent-dark);
  background: #e8f4f2;
  font-size: 0.76rem;
  font-weight: 850;
}

.event-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.event-meta {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.details-button,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--accent-dark);
  background: #eef7f5;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.details-button:hover,
.primary-link:hover,
.secondary-link:hover {
  color: #fff;
  background: var(--accent-dark);
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.event-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 29, 24, 0.58);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0;
  background: rgba(36, 29, 24, 0.58);
  font-size: 1.45rem;
  line-height: 1;
}

.modal-hero {
  min-height: 150px;
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  margin-bottom: 12px;
}

.modal-description {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.detail-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  line-height: 1.35;
  font-weight: 750;
}

.good-for h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.primary-link {
  min-height: 44px;
  color: #fff;
  background: var(--accent);
}

.secondary-link {
  min-height: 44px;
}

body.modal-open {
  overflow: hidden;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.not-found-brand {
  position: absolute;
  top: 24px;
  left: 24px;
}

.not-found-panel {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.not-found-panel h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.not-found-panel p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 44px;
}

.panel,
.newsletter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.newsletter-note {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.panel {
  padding: 24px;
}

.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.source-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}

.source-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 650;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 26px;
  background: var(--ink);
  color: #fff;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 950;
}

.newsletter h2 {
  margin-bottom: 0;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 160px auto;
  gap: 10px;
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .newsletter,
  .map-section,
  .plan-strip {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-card {
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 3rem;
  }

  .search-row,
  .newsletter-form,
  .section-header,
  .source-list {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
    align-items: start;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }
}
