:root {
  --forest-950: #10261f;
  --forest-800: #17392f;
  --forest-700: #235444;
  --forest-600: #2e6b56;
  --forest-100: #edf5f1;
  --slate-950: #172229;
  --slate-800: #31434b;
  --slate-600: #5a6d74;
  --slate-300: #c7d1d3;
  --slate-200: #dde6e7;
  --slate-100: #f4f7f7;
  --white: #ffffff;
  --gold-500: #c79a46;
  --gold-200: #f4e2bd;
  --shadow-soft: 0 28px 60px rgba(23, 34, 41, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--slate-950);
  background:
    radial-gradient(circle at top left, rgba(46, 107, 86, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(199, 154, 70, 0.16), transparent 24%),
    linear-gradient(180deg, #f8fbfa 0%, #eef4f2 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.leaderboard-ad,
.sidebar-ad,
.filters-card,
.table-card,
.insight-card,
.preview-banner,
.empty-card {
  backdrop-filter: blur(16px);
}

.leaderboard-ad {
  margin-bottom: 1rem;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.ad-frame {
  border: 1px dashed rgba(49, 67, 75, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.ad-frame-large {
  min-height: 90px;
  padding: 1rem 1.25rem;
  display: grid;
  place-items: center;
}

.ad-frame-square {
  min-height: 250px;
  padding: 1.5rem;
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.ad-frame strong {
  display: block;
  font-size: 1.05rem;
  color: var(--forest-800);
}

.ad-frame p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 3.25rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(125deg, var(--forest-950) 0%, var(--forest-700) 100%);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: pulseGlow 7s ease-in-out infinite;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.hero-panel h1,
.section-heading h2,
.filters-heading h2,
.insight-card h2,
.empty-card h3,
.featured-card h3,
.featured-placeholder h3 {
  font-family: "Libre Baskerville", serif;
}

.hero-panel h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 58ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--white);
  color: var(--forest-950);
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button-ghost {
  background: var(--forest-100);
  color: var(--forest-800);
}

.button-filter {
  align-self: end;
}

.hero-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(49, 67, 75, 0.08);
  box-shadow: var(--shadow-soft);
  animation: riseIn 480ms ease both;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.stat-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.4rem;
  color: var(--forest-800);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.directory-column,
.sidebar-column {
  display: grid;
  gap: 1rem;
}

.preview-banner,
.filters-card,
.table-card,
.insight-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(49, 67, 75, 0.08);
  box-shadow: var(--shadow-soft);
}

.preview-banner {
  color: var(--forest-800);
  border-left: 4px solid var(--gold-500);
}

.filters-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.filters-heading h2,
.section-heading h2,
.insight-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.18;
  color: var(--slate-950);
}

.results-meta,
.text-link {
  color: var(--slate-600);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--forest-700);
}

.filters-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-950);
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(46, 107, 86, 0.18);
  border-color: var(--forest-600);
}

.featured-section {
  display: grid;
  gap: 1rem;
}

.featured-grid {
  display: grid;
  gap: 1rem;
}

.featured-card,
.featured-placeholder {
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(199, 154, 70, 0.5);
  background:
    linear-gradient(135deg, rgba(244, 226, 189, 0.45), rgba(255, 255, 255, 0.98)),
    var(--white);
  box-shadow: 0 26px 54px rgba(199, 154, 70, 0.18);
}

.featured-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.featured-card h3,
.featured-placeholder h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.featured-card h3 a,
.event-link {
  text-decoration: none;
}

.featured-date,
.featured-copy,
.featured-location,
.event-description,
.insight-list,
.empty-card p {
  color: var(--slate-800);
  line-height: 1.7;
}

.featured-location {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.featured-copy {
  margin: 1rem 0 0;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--forest-800);
}

.featured-meta a {
  text-decoration: none;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 38, 31, 0.92);
  color: var(--white);
  font-size: 0.82rem;
  white-space: nowrap;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(46, 107, 86, 0.11);
  color: var(--forest-800);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.premium-badge::before {
  content: "\2605";
}

.table-scroll {
  overflow-x: auto;
}

.outing-table {
  width: 100%;
  border-collapse: collapse;
}

.outing-table th {
  padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.outing-table td {
  padding: 1rem 0.1rem;
  border-bottom: 1px solid rgba(199, 209, 211, 0.52);
  vertical-align: top;
}

.outing-table tr {
  transition: background 180ms ease, transform 180ms ease;
}

.outing-table tr:hover {
  background: rgba(46, 107, 86, 0.035);
}

.event-link {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--forest-800);
}

.event-description {
  margin: 0.55rem 0 0;
  max-width: 46ch;
}

.location-stack {
  display: grid;
  gap: 0.35rem;
}

.empty-card {
  display: grid;
  gap: 0.45rem;
}

.empty-card-hidden {
  display: none;
}

.sidebar-ad {
  position: sticky;
  top: 1rem;
}

.insight-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .sidebar-ad {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero-panel h1 {
    max-width: none;
  }

  .filters-grid,
  .hero-insights,
  .featured-card-header,
  .featured-meta,
  .filters-heading,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .outing-table thead {
    display: none;
  }

  .outing-table,
  .outing-table tbody,
  .outing-table tr,
  .outing-table td {
    display: block;
    width: 100%;
  }

  .outing-table tr {
    padding: 1rem 0;
  }

  .outing-table td {
    padding: 0.4rem 0;
    border: 0;
  }

  .outing-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-600);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
