* {
  box-sizing: border-box;
}

:root {
  --main-font: 'Caveat', cursive;
}


.map-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#map {
  width: 900px;
  height: 700px;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}
#filters {
    text-align: center;
    margin-bottom: 15px; /* space between buttons and map */
  }

h1 {
  font-family: var(--main-font);
  font-size: 64px;
  margin-top: 80px;
  margin-bottom: 40px;
  color: #333;
  text-shadow: 2px 2px 0 #fff, 4px 4px 10px rgba(0, 0, 0, 0.2);
}

body {
  position: relative;
  background-color: #fefcf3;
  font-family: var(--main-font);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  text-align: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.intro {
  font-family: var(--main-font);
  font-size: 22px;
  max-width: 600px;
  margin: 0 auto 50px;
  color: #444;
  line-height: 1.5;
  text-shadow: 1px 1px 0 #fff;
}

/* Content wrapper for layering above drawings */
.page-wrapper {
  position: relative;
  z-index: 5;
  padding: 0 1.2rem 4rem;
  max-width: 780px;
  margin: 0 auto;
}

.background-drawings {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allows clicking through to links or buttons */
  z-index: 0;
}

.drawing {
  position: absolute;
  opacity: 0;
  animation: fadeIn 0s ease forwards;
}

/* Individual positioning */
.house {
  width: 350px;
  bottom: 100px;
  left: 5%;
  animation: fadeInLessOpaque 0s ease forwards
}

.bridge {
  width: 300px;
  bottom: 100px;
  left: 75%;
  bottom: 45%;
  animation: fadeIn 0s ease forwards
}

.mill {
  width: 200px;
  bottom: 100px;
  left: 4%;
  bottom: 65%;
  animation: fadeIn 0s ease forwards
}

.bike {
  width: 150px;
  bottom: 120px;
  left: 45%;
  animation: fadeIn 0s ease forwards
}

.pizza2 {
  width: 220px;
  bottom: 100px;
  left: 6%;
  bottom: 45%;
  animation: fadeInFullOpaque 0s ease forwards
}
.pizza2-ranking {
  width: 150px;
  bottom: 100px;
  left: 15%;
  bottom: 90%;
  animation: fadeInFullOpaque 0s ease forwards
}
.pizza1 {
  width: 350px;
  bottom: 100px;
  left: 80%;
  bottom: 75%;
  animation: fadeInFullOpaque 0s ease forwards
}


.veggie {
  width: 280px;
  bottom: 100px;
  left: 80%;
  animation: fadeInFullOpaque 0s ease forwards
}

/* Buttons */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

button {
  padding: 12px 30px;
  font-size: 25px;
  font-family: 'Caveat', cursive;
  background-color: #ffcc5c;
  color: #333;
  border: 2px solid #f4a261;
  border-radius: 3px;
  box-shadow: 2px 2px 0 #f4a261;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #f4a261;
  color: white;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #e76f51;
}

/* Sticker strip (hidden by default; enabled on small screens) */
.sticker-strip {
  display: none;
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 0.7;
  }
}

@keyframes fadeInFullOpaque {
  to {
    opacity: 0.9;
  }


}
/* Fade-in animation */
@keyframes fadeInLessOpaque {
  to {
    opacity: 0.4;
  }


}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.pizza-card {
  background-color: #fff8e1;
  border: 2px solid #f4a261;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.pizza-card:hover {
  transform: translateY(-5px);
}

.pizza-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.pizza-card h3 {
  margin: 8px 0 4px;
  font-size: 20px;
  font-family: var(--main-font);
}

.pizza-card p {
  font-size: 18px;
  color: #444;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: 'Caveat', cursive;
}

/* .container {
  display: flex;
  height: 100vh;
}

.map-wrapper {
  flex: 3;
  padding: 10px;
  position: relative;
}

#map {
  height: calc(100% - 100px);
  width: 100%;
  border-radius: 10px;
} */

.sidebar {
  flex: 1;
  padding: 20px;
  background: #fff5e1;
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

#place-list {
  list-style: none;
  padding: 0;
}

#place-list li {
  margin-bottom: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.2s;
}

#place-list li:hover {
  background-color: #ffe0b2;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

#filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}


.comment-form {
  max-width: 600px;
  margin: 30px auto;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  padding: 20px;
  background: #fff5e1;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  font-family: inherit;
  font-size: 18px;
  border: 2px solid #f4a261;
  border-radius: 5px;
  box-sizing: border-box;
}

.comment-form button {
  margin-top: 10px;
  padding: 10px 30px;
  font-size: 20px;
  font-family: 'Caveat', cursive;
  background-color: #ffcc5c;
  color: #333;
  border: 2px solid #f4a261;
  border-radius: 5px;
  box-shadow: 2px 2px 0 #f4a261;
  cursor: pointer;
}

.comment-form button:hover {
  background-color: #ffe0b2;
}

/* ------------------ Responsive adjustments ------------------ */
@media (max-width: 900px) {
  h1 { font-size: clamp(48px, 8vw, 60px); margin-top: 70px; margin-bottom: 32px; }
  .intro { font-size: clamp(18px, 4.5vw, 22px); margin-bottom: 42px; }
  .drawing { max-width: 45vw; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
  .house { width: 40vw; left: 2%; bottom: 4%; opacity: .25; }
  .mill { width: 26vw; left: 4%; top: 6%; bottom: auto; opacity: .35; }
  .bridge { width: 38vw; right: 0; left: auto; top: 34%; bottom: auto; opacity: .25; }
  .bike { width: 22vw; left: 55%; bottom: 12%; opacity: .35; }
  .pizza1 { width: 46vw; right: -6%; left: auto; top: 4%; bottom: auto; opacity: .30; }
  .pizza2 { width: 36vw; left: -6%; top: 42%; bottom: auto; opacity: .35; }
  .veggie { width: 40vw; right: -4%; bottom: 2%; left: auto; opacity: .30; }
  .btn-container { flex-wrap: wrap; gap: 14px; }
  button { font-size: clamp(20px, 5.8vw, 26px); padding: 10px 26px; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(40px, 12vw, 56px); margin-top: 48px; }
  .intro { margin-bottom: 34px; }
  button { flex: 1 1 220px; }
  /* Hide decorative drawings entirely on small screens to avoid overlap with text */
  .background-drawings { display: none; }
  /* Strengthen readability area */
  .page-wrapper { background: #fefcf3; }
  .sticker-strip { 
    display: flex;
    gap: 14px;
    padding: 12px 14px 6px;
    margin: 34px auto 8px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    border: 2px solid #f4a26115;
    border-radius: 14px;
    background: linear-gradient(135deg,#fff8e8 0%,#fffdf8 100%);
  }
  .sticker-strip::-webkit-scrollbar { display: none; }
  .sticker-strip img { 
    height: 58px;
    width: auto;
    flex: 0 0 auto;
    object-fit: contain;
    scroll-snap-align: center;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
    transition: transform .25s ease, opacity .25s ease;
    opacity: .85;
  }
  .sticker-strip img:active, .sticker-strip img:focus-visible {
    transform: scale(1.08) rotate(-2deg);
    opacity: 1;
  }
  /* Tweak white-background line art images so the stark white box is softened (bridge + houses) */
  .sticker-strip img[src*='bridge'],
  .sticker-strip img[src*='amsterdam'] {
    background: #fefcf3; /* match page tone */
    border-radius: 12px;
    padding: 4px 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    mix-blend-mode: multiply; /* reduce white glare while keeping lines */
  }
}

@media (max-width: 430px) {
  h1 { font-size: clamp(36px, 14vw, 50px); }
  .intro { font-size: clamp(17px, 4.8vw, 20px); }
  button { font-size: clamp(19px, 6vw, 24px); padding: 9px 22px; }
  .house, .veggie, .pizza1, .pizza2, .bridge { opacity: .15; }
}

@media (min-width: 1100px) {
  h1 { font-size: 64px; }
}
