:root {
  --green-900: #1b4332;
  --green-700: #2d6a4f;
  --green-500: #40916c;
  --green-300: #74c69d;
  --green-100: #d8f3dc;
  --earth:     #6b4226;
  --sand:      #f0e6d3;
  --accent:    #e76f51;
  --bg:        #f7f5f0;
  --bg-card:   #ffffff;
  --text:      #1a1a1a;
  --text-muted:#6b7280;
  --border:    #e5e7eb;
  --radius:    0.5rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 20px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--green-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}

.site-title {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.continent-nav {
  display: flex;
  gap: 0.125rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 0;
}
.continent-nav::-webkit-scrollbar { display: none; }

.continent-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.continent-link:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.375rem 0;
}
.lang-btn {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}

/* ── Page intro ──────────────────────────────────────────── */
.page-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}
.site-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ── Continent sections ──────────────────────────────────── */
.continent-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0.5rem;
}

.continent-header {
  border-bottom: 2px solid var(--green-500);
  padding-bottom: 0.875rem;
  margin-bottom: 2rem;
}

.continent-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.country-pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.country-pill:hover {
  background: var(--green-300);
  color: var(--green-900);
  border-color: var(--green-500);
}

/* ── Country headings (inside the shared grid) ───────────── */
.country-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--earth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.country-heading::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--green-300);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Walks grid ──────────────────────────────────────────── */
.walks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Each country occupies one or more columns and is itself a grid */
.country-col {
  display: grid;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  align-items: start;
  min-width: 0;
}
.country-col--1 { grid-template-columns: 1fr; }
.country-col--2 { grid-template-columns: repeat(2, 1fr); }
.country-col--3 { grid-template-columns: repeat(3, 1fr); }

/* Heading spans all columns inside its country-col */
.country-heading {
  grid-column: 1 / -1;
}
/* ── Walk card ───────────────────────────────────────────── */
.walk-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.walk-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.walk-image-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green-100);
  flex-shrink: 0;
  cursor: pointer;
}
.walk-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.walk-card:hover .walk-image-wrap img {
  transform: scale(1.04);
}

.walk-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.walk-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.walk-location {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green-500);
}

.walk-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-top: 0.2rem;
}

.walk-link {
  display: inline-block;
  margin-top: 0.875rem;
  padding: 0.45rem 1rem;
  background: var(--green-700);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.15s;
}
.walk-link:hover { background: var(--green-900); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.65);
  margin-top: 4rem;
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.footer-lang { display: flex; gap: 1.25rem; }
.footer-lang a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-lang a:hover { color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  .continent-nav {
    order: 3;
    width: 100%;
    flex: none;
    padding: 0 0 0.25rem;
  }
  .walks-grid {
    grid-template-columns: 1fr;
  }
  .country-col {
    grid-column: span 1 !important;
    grid-template-columns: 1fr !important;
  }
  .continent-section {
    padding: 2rem 1rem 0.5rem;
  }
}

/* ── Suggest button & modal ──────────────────────────────── */
.suggest-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--green-700);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background 0.15s, transform 0.15s;
}
.suggest-btn:hover { background: var(--green-900); transform: translateY(-1px); }

.suggest-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.suggest-overlay[hidden] { display: none; }

.suggest-dialog {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.suggest-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.suggest-dialog-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-900);
}
.suggest-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}
.suggest-close:hover { color: var(--text); }

.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.suggest-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.suggest-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.suggest-field input,
.suggest-field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
}
.suggest-field input:focus,
.suggest-field textarea:focus {
  outline: none;
  border-color: var(--green-500);
}
.suggest-field textarea { resize: vertical; }

.suggest-error {
  font-size: 0.8125rem;
  color: var(--accent);
}
.suggest-error[hidden] { display: none; }

.suggest-submit {
  padding: 0.55rem 1.25rem;
  background: var(--green-700);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}
.suggest-submit:hover { background: var(--green-900); }
.suggest-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.suggest-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-align: center;
  color: var(--text);
}
.suggest-thanks[hidden] { display: none; }

@media (max-width: 768px) {
  .suggest-btn { bottom: 1rem; right: 1rem; font-size: 0.8125rem; padding: 0.5rem 0.9rem; }
}
