/* ===========================================================
   BRICKVANSTEEN — REISMAP NERDY PACK (scoped)
   Save as: /places-nerdy.css
   Include after /style.css
   =========================================================== */

/* Zorg dat de pagina dezelfde layout heeft als dice pagina */
body.places-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Remove page-shell padding that creates a gap under the sticky header */
body.places-page main.page-shell {
  flex: 1;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
}

/* Footer to the bottom on short pages */
body.places-page .footer { 
  margin-top: auto;
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
}

body.places-page main.page-shell > section:first-child { 
  margin-bottom: 0; 
}

/* -----------------------
   HERO: quest log vibe (zelfde als dice hero)
------------------------ */
.hero.visited-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg, #f7f7f7) 0%, rgba(255,255,255,0.95) 100%);
  border-bottom: 4px solid var(--comic-border, #111);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero.visited-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 3px solid var(--comic-border, #111);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--comic-shadow-small, 2px 2px 0 #111);
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero.visited-hero h1 {
  margin: 0 0 16px 0;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.1;
  text-shadow: 4px 4px 0 var(--comic-border, #111);
  color: var(--text, #111);
}

@media (max-width: 768px) {
  .hero.visited-hero h1 {
    font-size: 2.5rem;
  }
}

.hero.visited-hero .visited-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-top: 1.5rem;
  color: var(--text, #333);
}

.hero.visited-hero .visited-sub code {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid var(--comic-border, #111);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--primary, #ff3b3b);
  font-weight: 900;
}

/* -----------------------
   MAP CARD: comic bubble look (zelfde als dice cards)
------------------------ */
.visited-map-section .map-card {
  border: 4px solid var(--comic-border, #111);
  border-radius: 18px;
  box-shadow: var(--comic-shadow, 4px 4px 0 #111);
  background: rgba(255,255,255,.92);
  overflow: hidden;
  margin-bottom: 40px;
}

.visited-map-section .map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 4px solid var(--comic-border, #111);
  background: rgba(255,255,255,.95);
}

.visited-map-section .map-card__head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 var(--comic-border, #111);
  display: flex;
  align-items: center;
  gap: 12px;
}

.visited-map-section .map-card__head h2 i {
  color: var(--secondary, #00a8ff);
}

.visited-map-section .map-card__body {
  padding: 14px 16px 16px;
}

/* -----------------------
   HUD + toggles (comic style)
------------------------ */
.places-hud {
  padding: 14px 16px;
  border-bottom: 4px solid var(--comic-border, #111);
  background: rgba(255,255,255,.95);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hud-left, .hud-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 3px solid var(--comic-border, #111);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--comic-shadow-small, 2px 2px 0 #111);
  font-weight: 900;
  font-size: 14px;
}

.hud-pill small {
  opacity: 0.7;
  font-weight: 800;
  font-size: 0.9em;
}

.hud-btn {
  appearance: none;
  border: 3px solid var(--comic-border, #111);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--comic-shadow-small, 2px 2px 0 #111);
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-speed, .2s) var(--transition-timing, ease);
}

.hud-btn:hover { 
  transform: translate(-1px, -1px); 
}

.hud-btn:active { 
  transform: translate(0, 0); 
}

.hud-btn i { 
  color: var(--secondary, #00a8ff); 
}

.hud-btn.is-on {
  background: rgba(255,215,0,.22);
}

/* XP bar */
.xp-wrap {
  min-width: 240px;
  max-width: 420px;
  flex: 1 1 240px;
}

.xp-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  font-size: 12px;
  opacity: .9;
  margin-bottom: 6px;
  font-family: var(--font-accent, var(--font-body, system-ui));
}

.xp-bar {
  height: 14px;
  border: 3px solid var(--comic-border, #111);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--comic-shadow-small, 2px 2px 0 #111);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary, #00a8ff), var(--accent, #ffd700));
  transition: width 0.3s ease;
}

/* -----------------------
   MAP: comic style container
------------------------ */
.visited-map-section .map-wrap {
  padding: 16px;
}

.visited-map {
  height: 520px;
  min-height: 520px;
  width: 100%;
  position: relative;
  border: 4px solid var(--comic-border, #111);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--comic-shadow, 4px 4px 0 #111);
  background: rgba(255,255,255,.92);
}

/* scanlines */
.visited-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.12) 0px,
    rgba(0,0,0,.12) 1px,
    rgba(255,255,255,.00) 2px,
    rgba(255,255,255,.00) 6px
  );
  opacity: .16;
  pointer-events: none;
  z-index: 450;
}

/* Optional "Ultra Nerd Mode" class toggles stronger scanlines */
.visited-map.ultra-nerd::before {
  opacity: .24;
}

/* fog layer container */
.fog-overlay-vibe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 452;
  opacity: 0;
  transition: opacity .2s ease;
  background: rgba(0, 0, 0, 0.4);
}

.visited-map.is-fog .fog-overlay-vibe {
  opacity: 1;
}

/* Leaflet tiles styling */
.visited-map .leaflet-tile {
  filter: saturate(1.05) contrast(1.03);
}

/* -----------------------
   MARKERS: loot pin + ping (comic style)
------------------------ */
.bvs-marker {
  background: transparent;
  border: none;
}

.bvs-pin {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--comic-border, #111);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.80));
  box-shadow: 3px 3px 0 var(--comic-border, #111);
  color: var(--pin-color, var(--primary, #ff3b3b));
  transform: translateY(-8px) rotate(-1deg);
  position: relative;
}

.bvs-pin::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pin-color, var(--primary, #ff3b3b));
  border: 3px solid var(--comic-border, #111);
  left: 50%;
  top: 100%;
  transform: translate(-50%, -38%) rotate(45deg);
  box-shadow: 2px 2px 0 var(--comic-border, #111);
}

.bvs-pin i {
  font-size: 16px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.18));
}

/* ping ring */
.marker-ping {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--pin-color, var(--secondary, #00a8ff));
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.bvs-pin.is-pinging .marker-ping {
  animation: ping 900ms ease-out 1;
}

@keyframes ping {
  0% { opacity: .95; width: 14px; height: 14px; }
  100% { opacity: 0; width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  .bvs-pin {
    animation: nerd-bob 2.4s ease-in-out infinite;
  }
  
  @keyframes nerd-bob {
    0%, 100% { transform: translateY(-8px) rotate(-1deg); }
    50% { transform: translateY(-11px) rotate(1deg); }
  }
}

/* -----------------------
   CONTROLS: comic buttons
------------------------ */
.visited-map .leaflet-control-zoom a {
  border: 3px solid var(--comic-border, #111) !important;
  border-radius: 12px !important;
  box-shadow: 2px 2px 0 var(--comic-border, #111) !important;
  background: rgba(255,255,255,.95) !important;
  color: var(--text, #111) !important;
  font-weight: 900;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 18px !important;
  margin-bottom: 4px !important;
}

.visited-map .leaflet-control-zoom a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--comic-border, #111) !important;
}

.visited-map .leaflet-control-attribution {
  border: 3px solid var(--comic-border, #111);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--comic-border, #111);
  background: rgba(255,255,255,.90) !important;
  font-family: var(--font-accent, var(--font-body, system-ui));
  font-size: 10px !important;
  letter-spacing: .04em;
  padding: 6px 10px !important;
}

/* -----------------------
   POPUP: quest tooltip (comic style)
------------------------ */
.leaflet-popup-content-wrapper {
  border: 3px solid var(--comic-border, #111);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--comic-border, #111);
  font-family: var(--font-body, system-ui);
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.90));
}

.leaflet-popup-tip {
  border: 3px solid var(--comic-border, #111);
  box-shadow: 3px 3px 0 var(--comic-border, #111);
}

.place-popup__title {
  font-family: var(--font-heading, system-ui);
  font-size: 20px;
  margin: 0 0 4px 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,.1);
}

.place-popup__meta {
  font-size: 12px;
  color: var(--muted, #666);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.place-popup__meta::before {
  content: "📍";
}

.place-popup__desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.place-popup__link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 900;
  text-decoration: none;
  color: var(--secondary, #00a8ff);
  border-bottom: 2px dashed currentColor;
}

.place-popup__link:hover {
  color: var(--accent, #ffd700);
}

/* rarity badge */
.rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 3px solid var(--comic-border, #111);
  box-shadow: 2px 2px 0 var(--comic-border, #111);
  background: rgba(255,255,255,.95);
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 8px;
}

.rarity-badge i {
  font-size: 12px;
}

.rarity-common {
  color: #666;
}

.rarity-rare {
  color: var(--secondary, #00a8ff);
}

.rarity-epic {
  color: #8a2be2;
}

.rarity-legendary {
  color: var(--accent, #ffd700);
}

/* -----------------------
   LIST: quest entries (comic cards)
------------------------ */
.visited-map-section .places-list {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.visited-map-section .place-card {
  position: relative;
  border: 3px solid var(--comic-border, #111);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 3px 3px 0 var(--comic-border, #111);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-speed, .2s) var(--transition-timing, ease);
}

.visited-map-section .place-card:hover {
  transform: translate(-1px, -1px);
}

.visited-map-section .place-card::before {
  content: "QUEST";
  position: absolute;
  right: -18px;
  top: 12px;
  transform: rotate(18deg);
  font-family: var(--font-accent, var(--font-body, system-ui));
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .10;
}

.visited-map-section .place-icon {
  width: 44px;
  height: 44px;
  border: 3px solid var(--comic-border, #111);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  box-shadow: 2px 2px 0 var(--comic-border, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.visited-map-section .place-icon i {
  font-size: 18px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.18));
}

.visited-map-section .place-body h3 {
  margin: 2px 0 6px 0;
  font-family: var(--font-heading, system-ui);
  font-size: 18px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.08);
}

.visited-map-section .place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted, #666);
  margin-bottom: 8px;
}

.visited-map-section .place-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 2px solid var(--comic-border, #111);
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 2px 2px 0 var(--comic-border, #111);
}

.visited-map-section .place-body p {
  margin: 0 0 8px 0;
  line-height: 1.55;
  font-size: 14px;
}

.visited-map-section .place-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
  color: var(--secondary, #00a8ff);
}

.visited-map-section .place-link:hover {
  color: var(--accent, #ffd700);
}

/* -----------------------
   TOAST: achievements (comic style)
------------------------ */
.achievements {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  border: 3px solid var(--comic-border, #111);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--comic-border, #111);
  background: rgba(255,255,255,.95);
  padding: 12px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: toastIn 240ms ease-out;
}

.toast .t-ico {
  width: 42px;
  height: 42px;
  border: 3px solid var(--comic-border, #111);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  box-shadow: 2px 2px 0 var(--comic-border, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
}

.toast .t-body {
  flex: 1;
}

.toast .t-title {
  font-weight: 900;
  margin: 0 0 4px 0;
  font-family: var(--font-accent, var(--font-body, system-ui));
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.toast .t-msg {
  margin: 0;
  font-weight: 900;
}

.toast .t-sub {
  margin-top: 6px;
  opacity: .75;
  font-size: 12px;
  font-weight: 800;
}

.toast.legendary .t-ico {
  color: var(--accent, #ffd700);
}

.toast.epic .t-ico {
  color: #8a2be2;
}

.toast.rare .t-ico {
  color: var(--secondary, #00a8ff);
}

.toast.common .t-ico {
  color: #666;
}

@keyframes toastIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* -----------------------
   RESPONSIVE
------------------------ */
@media (max-width: 720px) {
  body.places-page main.page-shell {
    padding-bottom: 3rem !important;
  }
  
  .hero.visited-hero {
    padding: 60px 0;
  }
  
  .hero.visited-hero h1 {
    font-size: 2rem;
  }
  
  .visited-map {
    height: 420px;
    min-height: 420px;
  }
  
  .places-hud {
    padding-bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hud-left, .hud-right {
    justify-content: center;
  }
  
  .xp-wrap {
    min-width: 100%;
    max-width: 100%;
  }
  
  .achievements {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: unset;
  }
  
  .visited-map-section .places-list {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  
  .visited-map-section .map-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .visited-map {
    height: 300px;
    min-height: 300px;
  }
  
  .hud-pill, .hud-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero.visited-hero h1 {
    font-size: 1.8rem;
  }
  
  .hero.visited-hero .kicker {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}

/* Voeg ook deze classes toe aan je HTML body tag */
body.places-page .dice-section {
  padding-bottom: 260px !important;
}

body.places-page main.page-shell {
  min-height: auto !important;
  flex: 1 0 auto !important;
  padding-bottom: 3rem !important;
  overflow: visible !important;
}
/* =========================================================
   BRICKVANSTEEN — PLACES HERO (v2)
   - Match MOVIES/DICE hero colors
   - Extra nerd: quest + comics + dungeon grid overlays
========================================================= */

/* HERO: Movie-style gradient + quest map overlays */
body.places-page .hero.visited-hero{
  padding: 80px 0;
  background:
    linear-gradient(135deg, var(--primary-light, #ff6b6b), var(--secondary, #00a8ff)),
    var(--hero-bg, none);
  border-bottom: 4px solid var(--comic-border, #111);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Comic halftone + glow blobs */
body.places-page .hero.visited-hero::before{
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,215,0,.40) 0 140px, transparent 320px),
    radial-gradient(circle at 86% 22%, rgba(255,59,59,.34) 0 160px, transparent 340px),
    radial-gradient(circle at 68% 110%, rgba(0,168,255,.34) 0 180px, transparent 360px),
    repeating-radial-gradient(circle at 0 0, rgba(0,0,0,.15) 0 1px, transparent 1px 12px);
  opacity: .55;
  transform: rotate(-2deg) scale(1.02);
  filter: saturate(1.1);
  pointer-events: none;
  z-index: 0;
}

/* Dungeon grid + diagonal comic stripes */
body.places-page .hero.visited-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 10px, rgba(255,255,255,0) 10px 20px);
  opacity: .12;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Keep hero content above overlays */
body.places-page .hero.visited-hero .container,
body.places-page .hero.visited-hero .hero-container{
  position: relative;
  z-index: 1;
}

/* A geeky “stamp” in the corner (hide on small screens) */
body.places-page .hero.visited-hero .container::after{
  content: "🧭 QUEST LOG";
  position: absolute;
  right: 0;
  top: -10px;
  transform: rotate(8deg);
  padding: 8px 12px;
  background: rgba(255,215,0,.88);
  border: 3px solid var(--comic-border, #111);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--comic-border, #111);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111;
  opacity: .98;
}

body.places-page .hero.visited-hero .kicker{
  background: rgba(255,255,255,.88);
  color: var(--text, #111);
  border: 3px solid var(--comic-border, #111);
  box-shadow: var(--comic-shadow-small, 2px 2px 0 #111);
  font-family: var(--font-accent, var(--font-body, system-ui));
}

body.places-page .hero.visited-hero .kicker::before{
  content: "📜";
  display: inline-block;
  margin-right: 8px;
}

body.places-page .hero.visited-hero h1{
  color: #fff;
  text-shadow: 4px 4px 0 var(--comic-border, #111);
  letter-spacing: .02em;
}

/* Quest log panel for the intro text */
body.places-page .hero.visited-hero .visited-sub{
  color: rgba(255,255,255,.95);
  text-shadow: 1px 1px 0 rgba(0,0,0,.22);
  background: rgba(255,255,255,.14);
  border: 3px solid var(--comic-border, #111);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--comic-shadow-small, 2px 2px 0 #111);
  backdrop-filter: blur(6px);
  margin-top: 1.2rem;
  max-width: 860px;
}

body.places-page .hero.visited-hero .visited-sub code{
  background: rgba(255,215,0,.24);
  color: #111;
  border: 2px solid var(--comic-border, #111);
  border-radius: 8px;
  padding: 2px 8px;
  box-shadow: 1px 1px 0 var(--comic-border, #111);
}

@media (max-width: 780px){
  body.places-page .hero.visited-hero .container::after{ display: none; }
}

@media (max-width: 720px){
  body.places-page .hero.visited-hero{ padding: 60px 0; }
  body.places-page .hero.visited-hero h1{ font-size: 2rem; }
}

@media (max-width: 480px){
  body.places-page .hero.visited-hero{ padding: 54px 0; }
}
