/* ==========================================================================
   El camí de l'Àngel — estils
   Paleta: paper de mapa vell, tinta marró, verd de bosc, vermell de marca de GR
   ========================================================================== */

:root {
  --paper: #f6efdf;
  --paper-2: #efe4cb;
  --paper-3: #e6d7b6;
  --card: #fffaf0;
  --ink: #2e2318;
  --ink-soft: #66543f;
  --line: rgba(46, 35, 24, .16);
  --forest: #2f5a3c;
  --forest-dk: #1f3d29;
  --red: #c4402f;
  --red-dk: #a3311f;
  --mustard: #e3a92b;
  --wa: #1f9e55;

  --e1: #c4402f;
  --e2: #d9822b;
  --e3: #2f7a4f;
  --e4: #2d6f99;
  --e5: #8a4f9e;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --r: 14px;
  --shadow: 0 1px 0 rgba(46, 35, 24, .08), 0 8px 24px -12px rgba(46, 35, 24, .35);
  --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red-dk); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--f-display); font-variation-settings: "SOFT" 50; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 800; color: var(--forest-dk); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.hand { font-family: var(--f-hand); font-size: 1.35em; font-weight: 700; color: var(--red); line-height: 1; }

/* Marca de pintura de GR (blanc i vermell) */
.marca { display: inline-block; width: 26px; height: 16px; vertical-align: -2px; border-radius: 2px;
  background: linear-gradient(#fff 0 50%, var(--red) 50% 100%); box-shadow: 0 0 0 1px rgba(46,35,24,.18); transform: rotate(-3deg); }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 46px; padding: .6em 1.2em; border-radius: 999px;
  font: 800 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); color: var(--ink); background: var(--card);
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); color: #fff; }
.btn--ghost { background: transparent; }
.btn--paper { background: var(--card); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; background: #1a8a4a; }
.btn--lg { min-height: 54px; font-size: 1.1rem; padding: .7em 1.5em; }
.btn--sm { min-height: 38px; padding: .4em .95em; font-size: .92rem; box-shadow: 0 2px 0 var(--ink); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(246, 239, 223, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 16px; max-width: 1140px; margin: 0 auto; padding: 0 20px; height: var(--top); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 1.15rem/1 var(--f-display); white-space: nowrap; }
.brand img { width: 38px; height: 38px; transform: rotate(-8deg); transition: transform .3s; }
.brand:hover img { transform: rotate(4deg) translateY(-2px); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
}
@media (max-width: 380px) { .brand span { font-size: 1rem; } }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 84px) 0 0;
  background: radial-gradient(120% 70% at 85% 0%, #fbf6ea 0%, var(--paper) 60%); }
.hero__topo { position: absolute; inset: 0; background: url("img/topo.svg") 0 0 / 640px 640px; opacity: .32; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 92%); mask-image: linear-gradient(#000 40%, transparent 92%); }
.hero__in { position: relative; }
.hero__boot { position: absolute; right: 40px; top: 70px; width: clamp(220px, 26vw, 330px); height: auto; transform: rotate(-10deg); filter: drop-shadow(8px 10px 0 rgba(46,35,24,.12)); animation: passa 6s ease-in-out infinite; }
@keyframes passa { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero__boot { animation: none; } }
@media (max-width: 900px) { .hero__boot { display: none; } }
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.hero__title { font-size: clamp(3.4rem, 13vw, 8.2rem); font-weight: 900; line-height: .86; letter-spacing: -.035em; color: var(--forest-dk); margin: 0 0 .25em; }
.hero__sub { font-size: clamp(1.15rem, 2.6vw, 1.45rem); max-width: 34ch; color: var(--ink); margin-bottom: 26px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; }
.stats li { display: flex; align-items: baseline; gap: 6px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; box-shadow: 0 3px 0 var(--ink); }
.stats strong { font: 900 1.45rem/1 var(--f-display); color: var(--red); }
.stats span { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.compte { font-family: var(--f-hand); font-size: 1.6rem; font-weight: 700; color: var(--forest); min-height: 1.4em; margin: 0; transform: rotate(-1.5deg); transform-origin: left; }
.compte strong { color: var(--red); font-size: 1.15em; }

.panorama { margin: 10px 0 0; position: relative; }
.panorama svg { width: 100%; height: clamp(180px, 24vw, 280px); overflow: hidden; }
.pano-label { font: 800 12px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.pano-day { font: 700 11px var(--f-body); fill: var(--ink-soft); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
@media (max-width: 640px) { .pano-label { font-size: 10.5px; } .pano-day { display: none; } }

/* ---------- Seccions ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--red); margin-bottom: 10px; }
.kicker::before { content: ""; width: 26px; height: 16px; border-radius: 2px; background: linear-gradient(#fff 0 50%, var(--red) 50% 100%); box-shadow: 0 0 0 1px rgba(46,35,24,.18); }
.kicker--light { color: var(--mustard); }
.intro { font-size: 1.12rem; max-width: 62ch; color: var(--ink-soft); }
.intro--sm { font-size: 1rem; }
.lead { font-size: 1.22rem; }
.h3 { font-size: 1.55rem; color: var(--forest-dk); margin-top: 1.6em; }

/* ---------- Història ---------- */
.sec--historia { background: var(--paper-2); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.historia { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.historia__text { max-width: 64ch; }
.historia__text p { font-size: 1.1rem; }
.drop::first-letter { float: left; font: 900 4.2em/.8 var(--f-display); color: var(--red); margin: .06em .1em 0 0; }
.pull { font-family: var(--f-hand); font-size: 2.2rem !important; font-weight: 700; color: var(--forest); line-height: 1.1; margin: .4em 0 .6em; transform: rotate(-2deg); }
.fitxa { position: sticky; top: calc(var(--top) + 24px); background: var(--card); border: 2px solid var(--ink); border-radius: 6px; padding: 22px 22px 76px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(1.2deg);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(45, 111, 153, .14) 31px 32px); background-position: 0 58px; }
.fitxa__head { font: 900 1.25rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.fitxa dl { margin: 0; display: grid; gap: 0; }
.fitxa dt { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-top: 8px; }
.fitxa dd { margin: 0; font-family: var(--f-hand); font-size: 1.45rem; font-weight: 700; color: #1d4f8a; line-height: 1.15; }
.fitxa__stamp { position: absolute; right: 20px; bottom: 16px; margin: 0; font: 900 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em;
  color: var(--red); border: 3px solid var(--red); border-radius: 8px; padding: 6px 10px; transform: rotate(-14deg); opacity: .78; mix-blend-mode: multiply; }
@media (max-width: 860px) {
  .historia { grid-template-columns: 1fr; }
  .fitxa { position: relative; top: 0; max-width: 420px; }
}

/* ---------- Etapes ---------- */
.etapes { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.etapes > * { min-width: 0; }
.etapa__top > div:nth-child(2) { min-width: 0; flex: 1 1 auto; }
.etapes__map { position: sticky; top: calc(var(--top) + 16px); }
.mapcard { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.mapchips { display: flex; gap: 6px; padding: 10px; overflow-x: auto; border-bottom: 2px solid var(--ink); background: var(--paper-2); scrollbar-width: none; }
.mapchips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--card); font: 800 .9rem/1 var(--f-body); color: var(--ink); cursor: pointer; }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--ink)); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.mapa { height: min(46vh, 430px); min-height: 300px; background: var(--paper-3); }
.perfil { padding: 10px 14px 6px; border-top: 2px solid var(--ink); }
.perfil__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: .92rem; }
.perfil__dades { color: var(--ink-soft); font-weight: 700; }
#perfil { width: 100%; height: 120px; touch-action: pan-y; cursor: crosshair; }
.perfil-axis { font: 600 10px var(--f-body); fill: var(--ink-soft); }

.etapes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.etapes__list > li { min-width: 0; }
.etapa { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 18px 16px 22px; box-shadow: 0 4px 0 var(--ink); transition: transform .2s, box-shadow .2s; scroll-margin-top: calc(var(--top) + 16px); }
.etapa::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 10px; border-radius: var(--r) 0 0 var(--r); background: var(--c); border: 2px solid var(--ink); border-right: 0; }
.etapa.is-active { transform: translateX(4px); box-shadow: -4px 4px 0 var(--c), 0 4px 0 var(--ink); }
.etapa__top { display: flex; gap: 14px; align-items: flex-start; }
.dia { flex: 0 0 auto; width: 64px; text-align: center; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; line-height: 1; }
.dia b { display: block; background: var(--c); color: #fff; font: 800 .6rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .02em; padding: 5px 0; border-bottom: 2px solid var(--ink); }
.dia strong { display: block; font: 900 1.75rem/1 var(--f-display); padding: 6px 0 0; }
.dia span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--ink-soft); padding: 2px 0 6px; }
.etapa__num { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin: 0 0 2px; }
.etapa h3 { margin: 0 0 4px; font-size: 1.45rem; }
.ruta { font-weight: 800; margin: 0; color: var(--ink); }
.ruta .fletxa { color: var(--c); margin: 0 .2em; }
.etapa__km { margin-left: auto; text-align: right; flex: 0 0 auto; }
.etapa__km strong { display: block; font: 900 1.7rem/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.etapa__km span { font-size: .8rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; margin: 14px 0 10px; }
.meta__km { display: none !important; }
.meta li { display: inline-flex; align-items: center; gap: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .9rem; font-weight: 700; }
.nivell { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; margin: 0 0 10px; }
.nivell__botes { display: inline-flex; gap: 2px; }
.nivell__botes img { width: 24px; height: 24px; }
.nivell__botes img.off { opacity: .2; filter: grayscale(1); }
.etapa__text { margin: 0 0 10px; color: var(--ink); }
.spark { width: 100%; height: 46px; margin: 4px 0 10px; }
.etapa__peu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.etapa__peu .btn { min-height: 40px; font-size: .92rem; box-shadow: 0 2px 0 var(--ink); padding: .4em 1em; }
.quedada { font-size: .88rem; color: var(--ink-soft); font-style: italic; margin: 10px 0 0; }
.etapa__dinar { position: absolute; top: -14px; right: 16px; background: var(--mustard); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .85rem; transform: rotate(3deg); }

@media (max-width: 920px) {
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .etapes__map { position: relative; top: 0; }
}
@media (max-width: 420px) {
  .etapa { padding: 16px 14px 14px 20px; }
  .etapa__top { gap: 10px; }
  .dia { width: 56px; }
  .etapa h3 { font-size: 1.25rem; }
  .etapa__km { display: none; }
  .meta__km { display: inline-flex !important; background: var(--card) !important; border-color: var(--ink) !important; }
}

/* Marcadors del mapa */
.fita { width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); display: grid; place-items: center; font: 900 13px/1 var(--f-body); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.fita--fi { background: var(--mustard); }
.fita--ini { background: var(--red); color: #fff; }
.leaflet-container { font-family: var(--f-body); }
.leaflet-popup-content-wrapper { border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.leaflet-popup-content { margin: 10px 14px; font-size: .95rem; line-height: 1.4; }
.leaflet-popup-content b { font-family: var(--f-display); font-size: 1.05rem; }
.leaflet-control-layers { border: 2px solid var(--ink) !important; border-radius: 10px !important; }
.mapa-punt { width: 16px; height: 16px; border-radius: 50%; background: var(--mustard); border: 3px solid var(--ink); }

/* ---------- Apunta't ---------- */
.sec--apunta { background: var(--forest); color: #f4efe2; overflow: hidden; }
.sec--apunta::before { content: ""; position: absolute; inset: 0; background: url("img/topo.svg") 0 0 / 640px 640px; opacity: .1; filter: invert(1); pointer-events: none; }
.sec--apunta .wrap { position: relative; }
.sec--apunta h2 { color: #fff; }
.sec--apunta .intro { color: #d9e3d6; }
.passos { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pas { position: relative; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); padding: 30px 20px 22px; box-shadow: 0 5px 0 var(--forest-dk); }
.pas h3 { font-size: 1.35rem; }
.pas__n { position: absolute; top: -18px; left: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard); border: 2px solid var(--ink); font: 900 1.25rem/1 var(--f-display); box-shadow: 0 2px 0 var(--ink); }
.opcions { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.opcions li { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 700; line-height: 1.3; }
.opcions span { font-size: 1.25rem; }
.opcions small { font-weight: 600; color: var(--ink-soft); }
.pas .btn { width: 100%; }
.cal { display: grid; gap: 10px; }
@media (max-width: 960px) { .passos { grid-template-columns: 1fr; max-width: 560px; gap: 30px; } }

/* Credencial (segells) */
.credencial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 12px; }
.segell { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed var(--ink-soft); background: var(--paper);
  display: grid; place-items: center; text-align: center; padding: 6px; cursor: pointer; color: var(--ink-soft);
  font: 800 .7rem/1.1 var(--f-body); text-transform: uppercase; letter-spacing: .02em; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.segell b { display: block; font: 900 1.35rem/1 var(--f-display); text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.segell:nth-child(odd) { transform: rotate(-4deg); }
.segell:nth-child(even) { transform: rotate(3deg); }
.segell:hover { border-color: var(--ink); color: var(--ink); }
.segell:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.segell[aria-pressed="true"] { border: 3px solid var(--c, var(--red)); border-style: double; border-width: 5px; color: var(--c, var(--red)); background: color-mix(in srgb, var(--c, var(--red)) 12%, #fff); }
.segell[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -4px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--red)); color: #fff; font-size: .8rem; display: grid; place-items: center; border: 2px solid #fff; }
.segell[aria-pressed="true"] { animation: stamp .28s ease-out; }
@keyframes stamp { 0% { transform: scale(1.25) rotate(-12deg); } 70% { transform: scale(.94) rotate(-2deg); } 100% { transform: scale(1) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .segell[aria-pressed="true"] { animation: none; } }
.credencial__total { min-height: 3em; font-weight: 700; font-size: .95rem; margin: 0 0 12px; }
.credencial__total strong { color: var(--red); }

/* ---------- Dinar ---------- */
.sec--dinar { background: var(--mustard); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background-image: radial-gradient(rgba(46,35,24,.09) 1.5px, transparent 1.6px); background-size: 18px 18px; }
.sec--dinar h2 { color: var(--ink); }
.sec--dinar .kicker { color: var(--ink); }
.dinar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: center; }
.dinar__plat { font-size: clamp(5rem, 16vw, 10rem); line-height: 1; width: 1.3em; height: 1.3em; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 var(--ink); transform: rotate(-8deg); }
.dinar .lead { max-width: 52ch; }
.dinar__dades { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.dinar__dades div { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; }
.dinar__dades dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.dinar__dades dd { margin: 0; font-weight: 800; }
@media (max-width: 640px) { .dinar { grid-template-columns: 1fr; } .dinar__plat { font-size: 4.2rem; } }

/* ---------- Logística ---------- */
.nits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nit { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 3px 0 var(--ink); display: flex; flex-direction: column; gap: 4px; }
.nit__dia { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.nit__poble { font: 800 1.2rem/1.15 var(--f-display); }
.nit__nom { font-weight: 700; }
.nit__nota { font-size: .88rem; color: var(--ink-soft); margin: 4px 0 0; }
.estat { align-self: flex-start; margin-top: 6px; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.estat--pendent { color: var(--ink-soft); }
.estat--buscant { color: #a76a00; background: #fff4d6; }
.estat--reservat { color: var(--forest); background: #e3f1e3; }
.estat--casa { color: var(--e4); background: #e2eef6; }
@media (max-width: 900px) { .nits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .nits { grid-template-columns: 1fr; } }

.motxilla { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; max-width: 820px; }
.motxilla label { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px dashed var(--line); background: var(--card); font-weight: 600; }
.motxilla input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; display: grid; place-items: center; margin: 0; cursor: pointer; }
.motxilla input::after { content: "✓"; font-weight: 900; color: #fff; transform: scale(0); transition: transform .15s; }
.motxilla input:checked { background: var(--forest); border-color: var(--forest); }
.motxilla input:checked::after { transform: scale(1); }
.motxilla input:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.motxilla input:checked + * , .motxilla label:has(input:checked) { color: var(--ink-soft); }
.motxilla label:has(input:checked) { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
@media (max-width: 640px) { .motxilla { grid-template-columns: 1fr; } }

/* ---------- Preguntes ---------- */
.sec--faq { background: var(--paper-2); border-top: 2px dashed var(--line); }
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font: 800 1.12rem/1.3 var(--f-body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 900 1.6rem/1 var(--f-display); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 10px; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); }

/* ---------- Fotos ---------- */
.polaroids { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin: 30px 0 26px; }
.polaroid { margin: 0; background: #fff; padding: 10px 10px 0; border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(46,35,24,.55), 0 1px 2px rgba(46,35,24,.2); }
.polaroid:nth-child(odd) { transform: rotate(-3deg); }
.polaroid:nth-child(even) { transform: rotate(2.5deg) translateY(8px); }
.polaroid__img { aspect-ratio: 1; background: var(--paper-3); display: grid; place-items: center; font-size: 2rem; color: var(--ink-soft);
  background-image: url("img/topo.svg"); background-size: 320px; background-blend-mode: multiply; }
.polaroid figcaption { font: 700 1.3rem/1 var(--f-hand); text-align: center; padding: 10px 2px 12px; color: var(--ink); }
.fotos__crida { font-size: 1.08rem; max-width: 62ch; }
@media (max-width: 900px) { .polaroids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Peu ---------- */
.peu { background: var(--forest-dk); color: #d9e3d6; padding: 40px 0; }
.peu a { color: #fff; }
.peu__in { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.peu__marca { display: flex; gap: 14px; align-items: center; }
.peu__marca p { margin: 0; line-height: 1.35; }
.peu__marca strong { font: 800 1.2rem var(--f-display); color: #fff; }
.peu .hand { color: var(--mustard); font-size: 1.4rem; }
.peu__credits { font-size: .82rem; max-width: 56ch; margin: 0; opacity: .85; }

/* Utilitats */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leaflet-tooltip.poble-tip { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 2px 0 var(--ink); font: 800 12px/1 var(--f-body); color: var(--ink); padding: 4px 7px; }
.leaflet-tooltip.poble-tip::before { display: none; }
