:root {
  --cream: #fff8ef;
  --cream-alt: #fff0dc;
  --terracotta: #e2703a;
  --terracotta-dark: #c95a28;
  --warm-orange: #ffb37b;
  --cocoa: #4a3428;
  --cocoa-soft: #7a5c47;
  --ice-blue: #bfe3ff;
  --ice-blue-dark: #8fc4ee;
  --mustard: #f2a93b;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(74, 52, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--cream);
  color: var(--cocoa);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  color: var(--cocoa);
  margin: 0;
}

/* ---------- Snow effect ---------- */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: var(--white);
  text-shadow: 0 0 6px rgba(191, 227, 255, 0.8);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0);
  }
  50% {
    transform: translateY(50vh) translateX(20px);
  }
  100% {
    transform: translateY(110vh) translateX(-10px);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--warm-orange) 0%, var(--terracotta) 55%, var(--terracotta-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cream);
  border-radius: 100% 100% 0 0 / 60px 60px 0 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap-reverse;
}

.hero-content {
  max-width: 480px;
  text-align: left;
}

.hero-mascot {
  width: 190px;
  max-width: 40vw;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 18px rgba(74, 52, 40, 0.25));
  animation: bear-bob 4s ease-in-out infinite;
  cursor: pointer;
}

.hero-mascot.bear-clicked {
  animation: bear-bob 4s ease-in-out infinite, bear-spin 0.5s ease;
}

@keyframes bear-bob {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes bear-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(360deg) scale(1.15);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hero-kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
}

.hero-dates {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background: var(--mustard);
  color: var(--cocoa);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 999px;
}

.hero-sub {
  margin: 1.2rem auto 2rem;
  font-size: 1.1rem;
  max-width: 480px;
  opacity: 0.95;
}

.btn-cta {
  display: inline-block;
  background: var(--mustard);
  color: var(--cocoa);
  font-weight: 800;
  font-family: "Baloo 2", sans-serif;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ---------- Paw print dividers ---------- */
.paw-divider {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.6rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.destination-highlights li::marker {
  content: "🐾 ";
}

/* ---------- Sections ---------- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.section-wide {
  max-width: 1400px;
}

.section-alt {
  background: var(--cream-alt);
  max-width: none;
  border-radius: var(--radius-lg);
  margin: 0 1.5rem 4rem;
  padding: 3.5rem 1.5rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.section-sub {
  color: var(--cocoa-soft);
  font-size: 1.05rem;
  margin: 0.5rem 0 2rem;
}

.vote-warning {
  color: var(--terracotta-dark);
  font-weight: 700;
}

.vote-note {
  color: var(--cocoa-soft);
  font-size: 0.9rem;
}

.votes-overview-title {
  margin-top: 2.5rem;
  font-size: 1.2rem;
}

.votes-overview {
  max-width: 900px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: left;
}

.votes-column {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.votes-column h4 {
  font-family: "Baloo 2", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.6rem;
  color: var(--terracotta-dark);
}

.votes-column ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--cocoa);
}

.votes-column li {
  margin-bottom: 0.2rem;
}

.votes-empty {
  color: var(--cocoa-soft);
  font-style: italic;
  list-style: none;
  margin-left: -1.1rem;
}

.vote-form {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vote-form label {
  font-weight: 700;
  text-align: left;
}

.vote-form select {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--warm-orange);
  background: var(--white);
  color: var(--cocoa);
}

.vote-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.vote-buttons .btn-vote {
  width: 100%;
}

/* ---------- Destinations ---------- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

@media (max-width: 1200px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .destinations-grid {
    grid-template-columns: 1fr;
  }
}

.destination-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.destination-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--ice-blue);
}

.destination-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.destination-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.destination-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cocoa-soft);
  margin: -0.2rem 0 0.4rem;
}

.destination-meta {
  color: var(--cocoa-soft);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.destination-price {
  font-weight: 800;
  color: var(--terracotta-dark);
  margin: 0.4rem 0;
}

/* ---------- Quick facts ---------- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.quick-fact {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream-alt);
  color: var(--cocoa);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
}

.quick-fact-icon {
  font-size: 0.95rem;
}

/* ---------- Price block ---------- */
.destination-price-block {
  margin: 0.9rem 0;
  padding: 0.9rem 1rem;
  background: var(--cream-alt);
  border-radius: var(--radius-md);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0;
  font-size: 0.92rem;
  color: var(--cocoa);
}

.price-line-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--terracotta-dark);
}

.price-note {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--cocoa-soft);
  font-style: italic;
}

/* ---------- Bed callout ---------- */
.bed-callout {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.9rem 0;
  padding: 0.8rem 1rem;
  background: var(--mustard);
  color: var(--cocoa);
  border-radius: var(--radius-md);
}

.bed-callout-label {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.bed-callout-detail {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Details / meer info ---------- */
.destination-details {
  margin: 0.9rem 0;
}

.destination-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--terracotta);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.destination-details summary:hover {
  color: var(--terracotta-dark);
}

.destination-details[open] summary {
  margin-bottom: 0.3rem;
}

/* ---------- Extra costs table ---------- */
.extra-costs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.extra-costs-table td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--cream-alt);
}

.extra-costs-table td:first-child {
  color: var(--cocoa-soft);
}

.extra-costs-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--cocoa);
}

.extra-costs-note {
  font-size: 0.75rem;
  color: var(--cocoa-soft);
  font-style: italic;
  margin-top: 0.4rem;
}

.destination-link {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  margin: 0.3rem 0;
}

.destination-link:hover {
  text-decoration: underline;
}

.destination-desc {
  color: var(--cocoa-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.destination-subheading {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cocoa-soft);
  margin: 0.9rem 0 0.3rem;
}

.destination-highlights {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--cocoa);
  font-size: 0.92rem;
}

.destination-highlights li {
  margin-bottom: 0.25rem;
}

.destination-lowlights li {
  color: var(--cocoa-soft);
}

.btn-vote {
  width: 100%;
  border: none;
  background: var(--terracotta);
  color: var(--white);
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-vote:hover:not(:disabled) {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn-vote:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-vote.voted {
  background: var(--mustard);
  color: var(--cocoa);
  opacity: 1;
}

.vote-result {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--cocoa-soft);
}

.vote-bar {
  background: var(--cream-alt);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.vote-bar-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--ice-blue-dark), var(--terracotta));
  transition: width 0.4s ease;
}

.vote-stats {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.vote-pct {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.vote-count {
  font-size: 0.9rem;
  color: var(--cocoa-soft);
}

.leader-badge {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--mustard);
  color: var(--cocoa);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.leader-badge[hidden] {
  display: none;
}

.destination-card.leading {
  border: 3px solid var(--mustard);
}

/* ---------- Vote toast ---------- */
.vote-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--terracotta-dark);
  color: var(--white);
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  z-index: 20;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vote-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Participants ---------- */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1.5rem;
}

.participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--cocoa);
}

.avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

/* ijsbeer-oortjes achter elke avatar */
.avatar-wrap::before,
.avatar-wrap::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(191, 227, 255, 0.5);
  z-index: 0;
}

.avatar-wrap::before {
  left: -6px;
}

.avatar-wrap::after {
  right: -6px;
}

.participant-avatar {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
}

.participant-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ice-blue), var(--warm-orange));
  color: var(--cocoa);
  font-family: "Baloo 2", sans-serif;
  font-size: 1.6rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--cocoa-soft);
  font-size: 0.9rem;
}

.footer-fact {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ---------- Bear likes ---------- */
.bear-likes {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 15;
}

.btn-bear-like {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: var(--ice-blue);
  color: var(--cocoa);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-bear-like:hover {
  background: var(--ice-blue-dark);
  transform: translateY(-2px) scale(1.02);
}

.btn-bear-like:active {
  transform: scale(0.96);
}

.bear-like-count {
  background: var(--white);
  color: var(--terracotta-dark);
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

@keyframes bear-like-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.btn-bear-like.liked-pop {
  animation: bear-like-pop 0.35s ease;
}

@media (max-width: 900px) {
  .vote-buttons,
  .votes-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hero-content {
    text-align: center;
  }

  .hero-mascot {
    width: 140px;
    max-width: 55vw;
  }

  .vote-buttons,
  .votes-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4.5rem 1.2rem 4rem;
  }

  .section {
    padding: 3rem 1.2rem;
  }
}
