/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --orange:      #d4610a;
  --orange-light:#f08030;
  --cream:       #fdf6ec;
  --brown:       #5c3a1e;
  --brown-light: #8b5e3c;
  --green:       #4a6741;
  --text:        #2d1f0f;
  --muted:       #7a6254;
  --border:      #e8d5be;
  --white:       #ffffff;
  --shadow:      0 2px 12px rgba(0,0,0,0.10);
  --radius:      8px;
  --max-width:   960px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ────────────────────────────────────────────────────────── */
header {
  background: var(--brown);
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: var(--shadow);
}
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--cream);
  letter-spacing: 0.03em;
}
.nav-logo span { color: var(--orange-light); }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav ul a {
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
  transition: opacity 0.2s;
}
nav ul a:hover,
nav ul a.active { opacity: 1; text-decoration: none; color: var(--orange-light); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--brown) 0%, var(--brown-light) 60%, var(--orange) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 2rem;
  font-style: italic;
}
.btn {
  display: inline-block;
  background: var(--orange-light);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--orange); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── Page sections ──────────────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section-title {
  font-size: 1.75rem;
  color: var(--brown);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--orange-light);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.section p { color: var(--muted); max-width: 680px; }

/* ── Photo grid ─────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.photo-placeholder {
  background: var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 0.5rem;
}
.photo-placeholder svg { opacity: 0.4; }

/* ── Drop site finder page ──────────────────────────────────────── */
.finder-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.finder-layout h1 {
  font-size: 1.75rem;
  color: var(--brown);
  margin-bottom: 0.4rem;
}
.finder-layout .lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.search-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.search-bar input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--orange-light); }
.search-bar .btn { white-space: nowrap; }

#status-msg {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  min-height: 1.3em;
}
#status-msg.error { color: #b94a48; }

#map {
  width: 100%;
  height: 460px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin-bottom: 2rem;
}

/* ── Site list ──────────────────────────────────────────────────── */
.site-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.site-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-card:hover { border-color: var(--orange-light); box-shadow: var(--shadow); }
.site-card.nearest {
  border-color: var(--orange);
  background: #fff8f0;
  box-shadow: 0 0 0 3px var(--orange-light);
}
.site-card h3 { font-size: 1rem; color: var(--brown); margin-bottom: 0.2rem; }
.site-card .card-addr { font-size: 0.85rem; color: var(--muted); }
.site-card .card-hours { font-size: 0.85rem; color: var(--green); margin-top: 0.3rem; }
.site-card .card-dist {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--orange);
  margin-top: 0.4rem;
}
.nearest-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  margin-left: 0.4rem;
  vertical-align: middle;
  font-family: system-ui, sans-serif;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}
footer a { color: var(--orange-light); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  #map { height: 320px; }
  nav ul { gap: 1rem; }
}
