/* La Guia Navarclina · estils
   Sense fonts externes ni galetes: tot es carrega des d'aquest servidor. */

:root {
  --river: #1f4f4c;
  --river-2: #2f6f6a;
  --river-lt: #e3efec;
  --ink: #1f2a2a;
  --muted: #55625f;
  --paper: #f7f2e8;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --line: #ddd3bf;
  --ochre: #e9b55f;
  --ochre-dk: #8a5a12;
  --clay: #a4532f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 42, 42, .06), 0 8px 24px rgba(31, 42, 42, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--river-2); }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--river); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 999; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.eyebrow--lt { color: var(--ochre); }

/* ── Capçalera ── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 232, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__logo { width: 44px; height: 44px; }
.brand__txt { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1; }
.brand__la { font-style: italic; font-weight: 400; color: var(--river-2); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="true"] { background: var(--river); color: #fff; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); flex-shrink: 0; }
.lang button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--river); color: #fff; }

@media (max-width: 980px) {
  .hdr__in { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 48px); margin: 8px -24px 0; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 600px) {
  .hdr__in { padding-left: 16px; padding-right: 16px; padding-top: 8px; }
  .brand__logo { width: 36px; height: 36px; }
  .brand__txt { font-size: 18.5px; }
  .lang button { padding: 4px 8px; font-size: 12.5px; }
  .nav { width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 12px 8px; }
  .nav a { font-size: 14.5px; padding: 7px 10px; }
  .wrap { padding: 0 16px; }
}

/* ── Portada: foto a tot l'ample amb el text a sobre ── */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #163a37; color: #fff; }
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(1.18) contrast(1.06); opacity: 0; transition: opacity 1.4s ease; }
.hero__bg.is-on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 38, 36, .9) 0%, rgba(14, 38, 36, .74) 38%, rgba(14, 38, 36, .22) 72%, rgba(14, 38, 36, .05) 100%),
              linear-gradient(0deg, rgba(14, 38, 36, .5) 0%, rgba(14, 38, 36, 0) 45%); }
.hero__in { display: flex; align-items: center; min-height: min(620px, 78vh); padding-top: 72px; padding-bottom: 128px; }
.hero__txt { max-width: 610px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); margin-bottom: 18px; color: #fff; text-wrap: balance; }
.lede { font-size: 19px; color: #dde9e6; max-width: 32em; }
.hero__peu { position: absolute; right: 24px; bottom: 68px; left: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hero__credit { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); text-align: right; }
.hero__credit a { color: inherit; }
.hero__ctl { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(10, 26, 25, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__ctl[hidden] { display: none; }
.hero__dot { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; }
.hero__dot::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .2s, inset .2s; }
.hero__dot[aria-current="true"]::before { inset: 8px; background: #fff; }
.hero__dot:hover::before { background: #fff; }
.hero__pausa { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; }
.hero__pausa svg { width: 14px; height: 14px; fill: currentColor; }
.hero__pausa:hover { background: rgba(255, 255, 255, .16); }

.search { position: relative; margin-top: 30px; max-width: 540px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 17px 52px 17px 50px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(233, 181, 95, .55), 0 10px 30px rgba(0, 0, 0, .25); }
.search__clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 20px; line-height: 1; }
.search__status { min-height: 1.6em; margin-top: 10px; font-size: 15px; font-weight: 600; color: #f3e6c8; }

/* Accessos ràpids: munten sobre la foto */
.tiles { position: relative; z-index: 2; margin-top: -56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(31, 42, 42, .12); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--river-2); box-shadow: 0 14px 32px rgba(31, 42, 42, .16); }
.tile__ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: var(--river-lt); color: var(--river); }
.tile__ico svg, .card__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__nom { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.tile__n { font-size: 13.5px; color: var(--muted); }
.cercant .tiles { display: none; }

@media (max-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .hero::before { background: linear-gradient(180deg, rgba(14, 38, 36, .45) 0%, rgba(14, 38, 36, .78) 45%, rgba(14, 38, 36, .9) 100%); }
  .hero__in { min-height: 0; padding-top: 56px; padding-bottom: 104px; }
  .hero__peu { right: 16px; left: 16px; bottom: 62px; gap: 10px; }
  .hero__credit { font-size: 11px; }
}
@media (max-width: 600px) {
  .hero__in { padding-top: 40px; padding-bottom: 128px; }
  .hero__peu { flex-direction: column-reverse; align-items: flex-end; gap: 6px; bottom: 58px; }
  .lede { font-size: 17px; }
  .search { margin-top: 22px; }
  .search input { padding-top: 15px; padding-bottom: 15px; }
  .tiles { gap: 8px; margin-top: -50px; }
  .tile { padding: 12px 10px 11px; border-radius: 14px; }
  .tile__ico { width: 36px; height: 36px; margin-bottom: 6px; }
  .tile__nom { font-size: 14px; }
  .tile__n { font-size: 12.5px; }
}

/* ── Seccions ── */
.sec { padding: 64px 0; }
.tiles + .sec { padding-top: 56px; }
.sec--alt { background: var(--paper-2); }
.sec__hd { max-width: 42em; margin-bottom: 28px; }
.sec__hd h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.sec__hd p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { .sec { padding: 44px 0; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

/* Targeta de lloc */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); scroll-margin-top: 100px; transition: border-color .15s; }
.card:hover { border-color: #cbbfa6; }
.card__hd { display: flex; align-items: flex-start; gap: 12px; }
.card__ico { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--river-lt); color: var(--river); }
.card__hd .badge { margin-top: 7px; }
.card:target { outline: 3px solid var(--ochre); }
.card__segell { width: 56px; height: 56px; flex-shrink: 0; margin: -4px 0 0 -4px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15)); }
.card__segell-txt { margin-top: -4px; font-size: 13px; font-weight: 700; color: var(--ochre-dk); }

/* Galeria de fotos d'una fitxa: es passa lliscant (o amb les fletxes) i en tocar-la s'amplia */
.gal { position: relative; margin: -20px -20px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--paper-2); }
.gal__pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 16 / 9; }
.gal__pista::-webkit-scrollbar { display: none; }
.gal__foto { flex: 0 0 100%; padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: zoom-in; }
.gal__foto img { width: 100%; height: 100%; object-fit: cover; }
.gal__foto:focus-visible { outline-offset: -4px; }
.gal__n { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 30, 30, .62); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.gal__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .92); color: var(--ink); font-size: 24px; line-height: 1; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .15s; }
.gal__btn--prev { left: 10px; }
.gal__btn--next { right: 10px; }
.gal:hover .gal__btn, .gal__btn:focus-visible { opacity: 1; }
@media (hover: none) { .gal__btn { opacity: .9; width: 32px; height: 32px; font-size: 20px; } }
.ruta--foto > .gal { margin: -22px -22px 0; }
.ruta--dest > .gal { grid-column: 1 / -1; }
.ruta--dest .gal__pista { aspect-ratio: 21 / 9; }

/* Visor a pantalla completa */
.visor { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 20, 20, .94); color: #fff; }
.visor::backdrop { background: rgba(12, 20, 20, .6); }
html.visor-obert { overflow: hidden; }
.visor__pista { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visor__pista::-webkit-scrollbar { display: none; }
.visor__slide { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 16px 64px; scroll-snap-align: start; }
.visor__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.visor__peu { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 15px; color: #d9e4e1; pointer-events: none; }
.visor__tanca, .visor__btn { position: absolute; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; font-size: 28px; line-height: 1; padding: 0 0 4px; }
.visor__tanca:hover, .visor__btn:hover { background: rgba(255, 255, 255, .26); }
.visor__tanca { top: 12px; right: 12px; }
.visor__btn { top: 50%; transform: translateY(-50%); }
.visor__btn--prev { left: 12px; }
.visor__btn--next { right: 12px; }
@media (max-width: 600px) { .visor__btn { display: none; } }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__tipus { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--river-2); }
.card h3 { font-size: 21px; margin-top: 3px; text-wrap: balance; }
.badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ochre-dk); background: #fbecd0; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.card__desc { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card__addr { display: flex; gap: 6px; font-size: 15px; color: var(--ink); }
.card__addr svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; fill: none; stroke: var(--clay); stroke-width: 2; }
.card__act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.card__act .btn { min-height: 38px; padding: 7px 12px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn:hover { border-color: var(--river-2); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--pri { background: var(--river); border-color: var(--river); color: #fff; }
.btn--pri:hover { background: var(--river-2); border-color: var(--river-2); }

/* ── Autocaravana ── */
.auto { background: var(--river); color: #f4efe4; padding: 64px 0; }
.auto__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.auto h2 { font-size: clamp(30px, 4vw, 42px); color: #fff; margin-bottom: 12px; }
.auto__lede { font-size: 18px; color: #d6e4e0; max-width: 34em; }
.auto__stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 18px; }
.auto__stats div { display: flex; flex-direction: column-reverse; }
.auto__stats dt { font-size: 14px; color: #b9cfca; }
.auto__stats dd { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--ochre); line-height: 1.1; }
.auto__addr { font-size: 16px; color: #e6eeec; margin-bottom: 18px; }
.auto__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auto .btn { border-color: rgba(255, 255, 255, .35); color: #fff; }
.auto .btn:hover { border-color: #fff; }
.auto .btn--pri { background: var(--ochre); border-color: var(--ochre); color: #2a2109; }
.auto__serveis { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auto__serveis li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; font-size: 16px; }
.auto__serveis li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--ochre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%232a2109' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 860px) { .auto__in { grid-template-columns: 1fr; gap: 28px; } .auto { padding: 44px 0; } }

/* ── Rutes ── */
.rutes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.ruta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.ruta--dest { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; background: var(--river-lt); border-color: #c6dcd7; }
.ruta--dest .ruta__main { display: flex; flex-direction: column; gap: 12px; }
.ruta h3 { font-size: 24px; }
.ruta--dest h3 { font-size: 30px; }
.ruta__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.ruta--dest .chip { background: #fff; }
.ruta__desc { color: var(--muted); font-size: 16px; }
.punts { list-style: none; padding: 0; margin: 0; position: relative; }
.punts li { position: relative; padding: 0 0 10px 26px; font-size: 15px; }
.punts li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--river-2); }
.punts li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 19px; bottom: 0; width: 1.5px; background: #b9d2cd; }
.ruta .btn { align-self: flex-start; margin-top: auto; }
.more { margin-top: 20px; }
.more a { font-weight: 600; }
.more--prop { margin-top: 18px; font-size: 16px; }
@media (max-width: 700px) { .ruta--dest { grid-template-columns: 1fr; } .rutes { grid-template-columns: 1fr; } }

/* ── Agenda ── */
.agenda { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.agenda li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--clay); }
.agenda .quan { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); }
.agenda h3 { font-size: 20px; margin: 6px 0; }
.agenda p { color: var(--muted); font-size: 15px; }

/* ── Info útil ── */
.info { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.info li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.info strong { font-size: 16px; }
.info span { color: var(--muted); font-size: 15px; }
.info .links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.info a { font-weight: 600; font-size: 15px; }

.empty { padding: 40px 24px 80px; font-size: 18px; color: var(--muted); text-align: center; }
.empty a { display: block; margin-top: 8px; font-weight: 600; }

/* ── Propostes ── */
.proposa { background: var(--paper-2); padding: 64px 0; border-top: 1px solid var(--line); }
.proposa__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.proposa__segell { width: 132px; height: 132px; margin-bottom: 18px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .15)); }
.proposa h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.proposa__lede { color: var(--muted); font-size: 18px; max-width: 30em; }
.prop { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.prop fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prop__tipus label, .prop__veina label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; background: #fff; }
.prop__tipus label:has(input:checked), .prop__veina label:has(input:checked) { border-color: var(--river-2); background: var(--river-lt); }
.prop__tipus input, .prop__veina input { width: 17px; height: 17px; margin: 0; accent-color: var(--river); }
.prop__veina legend { width: 100%; font-size: 15px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.prop__f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.prop__f input, .prop__f textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.prop__f textarea { resize: vertical; min-height: 90px; }
.prop__f input:focus, .prop__f textarea:focus { outline: none; border-color: var(--river-2); box-shadow: 0 0 0 4px rgba(47, 111, 106, .18); }
.prop__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prop__peu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.prop__peu .btn[disabled] { opacity: .6; cursor: default; }
.prop__msg { font-size: 15px; font-weight: 600; color: var(--muted); }
.prop__msg--ok { color: #22624a; }
.prop__msg--err { color: #9b2c1c; }
.prop__nota { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .proposa__in { grid-template-columns: 1fr; gap: 24px; } .proposa { padding: 44px 0; } .proposa__segell { width: 96px; height: 96px; } }
@media (max-width: 480px) { .prop { padding: 18px; } }

/* ── Peu ── */
.ftr { background: #172f2d; color: #c9d8d4; padding: 44px 0 52px; }
.ftr__in { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.brand--ftr { color: #fff; margin-bottom: 4px; }
.brand--ftr .brand__la { color: var(--ochre); }
.ftr a { color: var(--ochre); }
.ftr__small { font-size: 14px; color: #93aaa5; }

/* Cerca: amaga el que no coincideix */
[data-hidden], [hidden] { display: none !important; }

/* Formulari tancat des del gestor */
.sense-propostes .proposa, .sense-propostes .more--prop, .sense-propostes .empty a { display: none; }

/* «Mostra'ls tots»: cada secció ensenya primer els millors */
.grid--plegada > :nth-child(n+7) { display: none; }
@media (max-width: 600px) { .grid--plegada > :nth-child(n+5) { display: none; } }
.cercant .grid--plegada > * { display: flex; }
.mostra { margin-top: 18px; background: var(--card); }
.mostra::after { content: ""; width: 8px; height: 8px; margin: -3px 2px 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.mostra[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.cercant .mostra { display: none; }

/* Torna a dalt */
.dalt { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--river); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.dalt svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dalt:hover { background: var(--river-2); }

/* Crèdit de les fotos amb llicència lliure */
.gal__credits { margin: -6px 0 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.gal__credits a { color: inherit; }
.ruta--dest > .gal__credits { grid-column: 1 / -1; margin: 0; }

/* ── Moviment ── (tot queda quiet si el sistema demana reduir-lo) */
.card, .ruta { transition: transform .25s ease, box-shadow .25s ease, border-color .15s; }
.tile__ico { transition: background .2s, color .2s, transform .2s; }
.btn { transition: background .15s, border-color .15s, color .15s, transform .12s; }
.btn:active { transform: scale(.97); }
.hdr { transition: box-shadow .25s; }
.hdr--avall { box-shadow: 0 6px 20px rgba(31, 42, 42, .08); }
@media (hover: hover) {
  .card:hover, .ruta:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 42, 42, .06), 0 18px 40px rgba(31, 42, 42, .13); }
  .gal__foto img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .card:hover .gal__foto img, .ruta:hover .gal__foto img { transform: scale(1.05); }
  .tile:hover .tile__ico { background: var(--river); color: #fff; transform: rotate(-6deg) scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  /* Zoom lent de la foto que es veu (i de la que marxa, perquè no faci un salt) */
  .hero__bg.is-on, .hero__bg.sortint { animation: kenburns 11s ease-out both; }
  @keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
  /* Entrada del text de la portada */
  .hero__txt > * { animation: entra .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__txt > :nth-child(2) { animation-delay: .08s; }
  .hero__txt > :nth-child(3) { animation-delay: .18s; }
  .hero__txt > :nth-child(4) { animation-delay: .28s; }
  @keyframes entra { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  /* Apareix en entrar a la pantalla (la classe la posa app.js) */
  .rv { opacity: 0; translate: 0 26px;
        transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1), transform .25s ease, box-shadow .25s ease, border-color .15s;
        transition-delay: var(--rv-d, 0ms), var(--rv-d, 0ms), 0s, 0s, 0s; }
  .rv.vist { opacity: 1; translate: none; }
}

/* Pàgina 404 */
.p404 { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.p404__in { max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.p404 .brand { margin-bottom: 18px; }
.p404 h1 { font-size: clamp(32px, 6vw, 48px); }
.p404__txt { color: var(--muted); font-size: 18px; margin-bottom: 8px; }
