*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #D4972B;
  --gold-light: #e8b44d;
  --gold-dark: #a86f18;
  --earth: #2e4a3e;
  --earth-mid: #4a7c64;
  --bg: #f7f4f0;
  --bg-card: #ffffff;
  --text: #1c1c1c;
  --text-muted: #777;
  --border: #e0d8cd;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--earth);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

header .logo img { height: 40px; }

/* hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: background 0.15s;
}

.hamburger:hover span { background: var(--gold); }

/* slide-out nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
}

.nav-overlay.open { display: block; }

.side-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--earth);
  z-index: 1200;
  transition: right 0.25s ease;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.side-nav.open { right: 0; }

.side-nav-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  text-align: right;
  padding: 0 20px 16px;
  align-self: flex-end;
}

.side-nav-close:hover { color: white; }

.side-nav-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 8px;
}

.side-nav-logo img { height: 36px; }

.side-nav a {
  color: #ddd;
  text-decoration: none;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s, color 0.15s;
}

.side-nav a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }

/* past events banner */
.past-banner {
  background: #f0e8d8;
  border-bottom: 1px solid #d4c4a0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #7a5c2a;
}

.past-banner button {
  background: none;
  border: 1px solid #b89050;
  color: #7a5c2a;
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.past-banner button:hover { background: #e8d8b8; }

/* ── HERO / SEARCH BAR ── */
.hero {
  background: linear-gradient(135deg, var(--earth) 0%, var(--earth-mid) 100%);
  padding: 32px 16px 24px;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 6px;
}

.hero p {
  color: #c8b8a8;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.search-row {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-row input[type="text"] {
  flex: 1 1 200px;
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
}

.search-row input[type="text"]:focus {
  box-shadow: 0 0 0 3px var(--gold-light);
}

.search-row button {
  background: var(--gold);
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-row button:hover { background: var(--gold-light); }

/* ── FILTERS ── */
.filters {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filters label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }

.filters select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.filters select:focus { outline: none; border-color: var(--gold); }

.type-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill.active { background: var(--gold); border-color: var(--gold); color: white; }

.pill.natural.active { background: #3a7d44; border-color: #3a7d44; }
.pill.seeded.active  { background: #c8922a; border-color: #c8922a; }
.pill.both.active    { background: #5b6abf; border-color: #5b6abf; }

/* view toggle */
.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.view-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}

.view-btn.active { background: var(--earth); color: white; border-color: var(--earth); }

/* ── MAIN LAYOUT ── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.results-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── HUNT CARDS ── */
.hunt-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.hunt-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  border-left: 4px solid var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hunt-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-1px); }
.hunt-card.natural { border-left-color: #3a7d44; }
.hunt-card.seeded  { border-left-color: #c8922a; }
.hunt-card.both    { border-left-color: #5b6abf; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-badge.natural { background: #e8f5ea; color: #3a7d44; }
.type-badge.seeded  { background: #fdf3e3; color: #a06b10; }
.type-badge.both    { background: #eef0fa; color: #3d4fa0; }

.card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-meta span { display: flex; align-items: center; gap: 5px; }

.card-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card-footer .fee {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 14px;
}

.card-actions { display: flex; gap: 8px; }

.btn-details {
  background: var(--earth);
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-details:hover { background: var(--earth-mid); }

.report-text-link {
  font-size: 12px;
  color: #aaa;
  text-decoration: none;
  align-self: center;
  margin-right: auto;
}

.report-text-link:hover { color: #c04040; text-decoration: underline; }

/* ── DETAILS MODAL ── */
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.detail-section p { font-size: 14px; line-height: 1.6; color: var(--text); }
.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.detail-meta-item { background: var(--bg); border-radius: var(--radius); padding: 10px 12px; }
.detail-meta-item .label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 2px; }
.detail-meta-item .value { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.detail-header h2 { font-size: 1.15rem; flex: 1; line-height: 1.3; }
.btn-register { display: block; background: var(--earth); color: white; text-align: center; text-decoration: none; padding: 11px; border-radius: var(--radius); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.btn-register:hover { background: var(--earth-mid); }

/* ── MAP VIEW ── */
#map-view { display: none; }
#map { height: 500px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1rem; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
}

@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
}

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

.modal {
  background: white;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .modal { border-radius: 16px; }
}

.modal h2 { font-size: 1.1rem; margin-bottom: 16px; }

.modal label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-muted); }

.modal input, .modal textarea, .modal select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}

.modal input:focus, .modal textarea:focus, .modal select:focus {
  outline: none;
  border-color: var(--gold);
}

.modal textarea { min-height: 80px; resize: vertical; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.btn-cancel {
  background: none;
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}

.btn-submit {
  background: var(--gold);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.btn-submit:hover { background: var(--gold-light); }

/* ── FOOTER ── */
footer {
  background: var(--earth);
  color: #aaa;
  text-align: center;
  padding: 20px 16px;
  font-size: 13px;
  margin-top: 48px;
}

footer a { color: var(--gold); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
  .filters { gap: 8px; }
  .view-toggle { margin-left: 0; }
}
