/* ---------- Base layout ---------- */
body {
  font-family: system-ui, sans-serif;
  background: #f7f4ef; /* warm off-white */
  color: #2b2b2b;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-block;
  background: #4b7f52; /* natural green */
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover,
.btn:active {
  background: #3a6641; /* deeper green */
  transform: translateY(-1px);
}


a.link {
  color: #b86900; /* warm amber accent */
  text-decoration: none;
  font-weight: 500;
}

a.link:hover {
  text-decoration: underline;
}

/* ---------- Hero banner ---------- */
/* ---------- Hero banner (compact background version) ---------- */
.hero-content {
  text-align: center;
  color: #fff;
  background-image: url("afbeeldingen/banner.jpg"); /* 👈 your banner image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 1.5rem;
  border-bottom: 3px solid #d1c7a3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-content::before {
  /* adds subtle warm overlay to improve contrast */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 20, 0.45); /* warm brownish overlay */
  backdrop-filter: blur(1px);
}

.hero-content > * {
  position: relative; /* ensures text appears above overlay */
  z-index: 1;
}

.hero-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  color: #fff8f0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-content p {
  color: #f7f2e9;
  margin-bottom: 1rem;
  max-width: 500px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 4rem 2rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ---------- Sections ---------- */
main {
  padding: 1.5rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  color: #4b7f52;
  border-bottom: 2px solid #d1c7a3;
  padding-bottom: 0.3rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

/* ---------- How it works ---------- */
.how-it-works ol {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.how-it-works li {
  background: #e9e3d6;
  margin: 0.5rem 0;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ---------- Route cards ---------- */
.route-card {
  background: #e9e3d6;
  border: 1px solid #d7cfb9;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.route-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.route-card h3 {
  margin: 0.5rem 0 0.4rem 0;
  color: #3a3a3a;
}

.route-card p {
  margin-bottom: 0.8rem;
  color: #4f4f4f;
}

/* ---------- Route thumbnails ---------- */
.route-thumb {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  object-fit: cover;
  max-height: 160px;
}

/* ---------- Leaderboard preview ---------- */
.leaderboard-preview ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.leaderboard-preview li {
  background: #e9e3d6;
  margin: 0.4rem 0;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

/* ---------- Reviews ---------- */
.reviews blockquote {
  background: #e9e3d6;
  border-left: 4px solid #b86900;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #444;
  border-radius: 6px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #d7cfb9;
  padding: 1rem;
  margin-top: 2rem;
  background: #f0ece4;
}

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .hero-image {
    height: 240px;
  }
}

@media (min-width: 768px) {
  main {
    padding: 2rem 1.5rem;
  }
  .hero-image {
    height: 300px;
  }
  .hero-content {
    padding: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

/* ============================================
   Start Map Preview (on main page)
=============================================== */
.start-map {
  height: 220px;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #d7cfb9;
}

/* Puzzle bar base */
.demo-puzzle-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff9ed; /* warm beige */
  padding: 1rem 1.2rem 1.4rem;
  border-top: 2px solid #d7cfb9;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
  font-size: 1rem;
  line-height: 1.4;
  color: #4a3f2f;
  transition: transform 0.35s ease;
  z-index: 8000;
}

/* Hide animation */
.demo-puzzle-bar.hidden {
  transform: translateY(110%);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: #4a3f2f;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 1;
}

/* Puzzle image */
.puzzle-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

/* Question text */
.puzzle-question {
  margin-bottom: 0.6rem;
}

/* Multiple choice container */
.choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

/* Multiple choice button */
.choice {
  background: #f5e8cd;
  border: 1px solid #d7cfb9;
  padding: 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-size: 1rem;
}

.choice:hover {
  background: #f1e2bf;
}

/* Feedback line */
.feedback {
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #4a3f2f;
}

/* Hidden feedback */
.feedback.hidden {
  display: none;
}

/* Next button */
.next-btn {
  background: #4a6f4f;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.next-btn:hover {
  background: #3c5b41;
}

/* Hidden next button */
.next-btn.hidden {
  display: none;
}

/* ---------- Puzzle Types Section ---------- */

.puzzle-types {
  background: #fff9ed;
  border: 1px solid #d7cfb9;
  padding: 1.4rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.puzzle-types h2 {
  margin-bottom: 1rem;
}

.puzzle-type {
  margin-bottom: 1.6rem;
}

.puzzle-type:last-child {
  margin-bottom: 0;
}

.example-box {
  background: #fdf4dd;
  border: 1px solid #e6d5ba;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 0.6rem;
}

.example-question {
  margin-bottom: 0.6rem;
}

.example-choices {
  margin-left: 0.4rem;
  line-height: 1.5;
}

.example-input {
  display: inline-block;
  background: #fff;
  border: 1px dashed #b8a88b;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  color: #4a3f2f;
}
/* ---------- GPS Feature Section ---------- */
.gps-feature {
  background: #e9e3d6; 
  border: 1px solid #d0e0d3;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ---------- Route overzicht pagina ---------- */

.route-card {
  display: block;
  background: #f6f1e9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  max-width: 250px;
  margin: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.route-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.route-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.route-card h3 {
  margin: 0.3rem 0 0.2rem;
}

.route-card p {
  margin: 0;
  opacity: 0.8;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-items: center; /* centers cards inside each column */
}

/* ---------- Route filters ---------- */

.route-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #e9e3d6;
  border: 1px solid #d7cfb9;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

.filter-btn.active {
  background: #4b7f52;
  color: white;
  border-color: #3a6641;
}

/* ---------- More routes section ---------- */

.more-routes {
  background: #f6f1e9;
  border: 1px solid #d7cfb9;
  padding: 1.2rem;
  margin-top: 2rem;
  border-radius: 10px;
  text-align: center;
}

.more-routes h2 {
  margin-top: 0;
}

.more-routes-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.more-routes .secondary-btn {
  background: #d0e3b1;
  color: #3a3a3a;
  border: 1px solid #d7cfb9;
}

.more-routes .secondary-btn:hover {
  background: #b4c797;
}

