/* Els Quatre Llops — web de l'apartament. Paleta: sorra, blanc de calç,
   blau marí profund, turquesa de cala i un toc de terracota. */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-italic.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --sand: #f8f4ec;
  --sand-2: #f1eadd;
  --paper: #ffffff;
  --ink: #102c36;
  --ink-2: #2f4a53;
  --muted: #62777e;
  --line: #e6ddcd;
  --sea: #0c7489;
  --sea-deep: #075565;
  --sea-tint: #e3f1f3;
  --cove: #5fb6c2;
  --terra: #c9623f;
  --terra-tint: #f8e7df;
  --sun: #efb93f;
  --ok: #2f7d5b;
  --ok-tint: #e3f2ea;
  --warn: #9a6a12;
  --warn-tint: #fbf1d9;
  --danger: #b4432a;
  --danger-tint: #fbe7e1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 44, 54, .05), 0 12px 32px -12px rgba(16, 44, 54, .18);
  --shadow-lg: 0 30px 60px -24px rgba(7, 85, 101, .35);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65; font-weight: 450;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cove); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sea); margin-bottom: 14px; }
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--terra); border-radius: 2px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
section[id], #summary, #manage-root { scroll-margin-top: 86px; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.muted { color: var(--muted); }

/* ── Botons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 10px 24px -10px rgba(12, 116, 137, .7); }
.btn-primary:hover { background: var(--sea-deep); color: #fff; }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 10px 24px -10px rgba(201, 98, 63, .7); }
.btn-terra:hover { background: #b0532f; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn-light { background: rgba(255, 255, 255, .92); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--sea-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #963620; color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sea); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── Capçalera ────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.site-header.solid, .site-header.always-solid { background: rgba(248, 244, 236, .94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-mark { width: auto; height: 38px; flex: none; }
/* A mida petita la línia del logo es fa més gruixuda perquè es llegeixi */
.brand-mark .l-ink { stroke-width: 4.4; }
.brand-mark .l-sea { stroke-width: 3.4; }
/* Sobre la foto de la portada i al peu fosc, el logo va en blanc */
.site-header:not(.solid):not(.always-solid) .brand-mark .l-ink, .site-footer .brand-mark .l-ink { stroke: #fff; }
.site-header:not(.solid):not(.always-solid) .brand-mark .l-sea, .site-footer .brand-mark .l-sea { stroke: rgba(255, 255, 255, .72); }
.brand-name { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
@media (max-width: 520px) { .brand-mark { height: 28px; } .brand-name { font-size: 11.5px; letter-spacing: .14em; } }
.brand-name em { font-style: normal; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; opacity: .92; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.site-header.solid .nav a:hover, .site-header.always-solid .nav a:hover { background: var(--sand-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none; background: transparent; color: inherit; border: 1.5px solid currentColor;
  border-radius: 999px; padding: 7px 30px 7px 13px; font: 700 13px var(--sans); letter-spacing: .06em; cursor: pointer; opacity: .9;
}
.lang select option { color: var(--ink); }
.lang::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.header-book { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); color: var(--ink); padding: 8px var(--gutter) 18px; box-shadow: 0 18px 30px -18px rgba(16, 44, 54, .3); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .menu-toggle { display: block; }
  .header-book { display: none; }
}

/* ── Portada ──────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 40, 52, .55) 0%, rgba(7, 40, 52, .05) 30%, rgba(7, 40, 52, .1) 55%, rgba(7, 40, 52, .78) 100%); }
.hero-inner { padding-top: 130px; padding-bottom: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; opacity: .95; }
.hero .eyebrow svg { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(50px, 9vw, 116px); font-weight: 400; letter-spacing: -.025em; line-height: .95; text-shadow: 0 2px 30px rgba(0, 0, 0, .2); }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero-lead { max-width: 560px; font-size: clamp(17px, 1.8vw, 20px); margin: 22px 0 26px; opacity: .96; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: 14px; }
.hero-card { width: min(360px, 100%); background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); }
.hero-card .rating-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.hero-card .score { background: var(--sea); color: #fff; font-weight: 800; border-radius: 10px 10px 10px 2px; padding: 5px 9px; font-size: 15px; }
.hero-card h2 { font-size: 24px; margin-bottom: 4px; }
.hero-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.hero-card .field { margin-bottom: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { width: 100%; }
  .scroll-cue { display: none; }
  .hero-media img { object-position: 30% center; }
}

/* ── Introducció ──────────────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-text h2 { margin-bottom: 22px; }
.intro-media { position: relative; }
.intro-media .main { border-radius: 26px 26px 26px 120px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.intro-media .main img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .float { position: absolute; left: -40px; bottom: 36px; width: 46%; border-radius: 18px; overflow: hidden; border: 6px solid var(--sand); box-shadow: var(--shadow); aspect-ratio: 1; }
.intro-media .float img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; }
.facts .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sea-tint); color: var(--sea); display: grid; place-items: center; }
.facts .ic svg { width: 21px; height: 21px; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { order: -1; max-width: 520px; }
  .intro-media .float { left: auto; right: -8px; bottom: -24px; width: 40%; }
}
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ── Galeria ──────────────────────────────────────────── */
.gallery-section { background: var(--paper); }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 220px); gap: 12px; }
.mosaic button { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mosaic button:hover img { transform: scale(1.05); }
.mosaic button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic button:nth-child(2) { grid-row: span 2; }
.mosaic button:nth-child(6) { grid-column: span 2; }
.mosaic .more.more-m { display: none; }
.mosaic .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 40, 52, .5); color: #fff; font-weight: 700; font-size: 17px; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic button:nth-child(2) { grid-row: span 1; }
  .mosaic button:nth-child(6) { grid-column: span 1; }
  .mosaic button:nth-child(n+6) { display: none; }
  .mosaic button:nth-child(5) .more.more-m { display: grid; }
}
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 26, 33, .96); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); gap: 12px; font-size: 14.5px; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-btn { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-caption { text-align: center; padding: 14px var(--gutter) 22px; font-family: var(--serif); font-size: 19px; font-style: italic; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; } .lb-caption { padding-bottom: 76px; } }

/* ── Equipament ───────────────────────────────────────── */
.amen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.amen-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.amen-card h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 14px; }
.amen-card h3 .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--terra-tint); color: var(--terra); display: grid; place-items: center; }
.amen-card h3 .ic svg { width: 19px; height: 19px; }
.amen-card ul { margin: 0; padding: 0; list-style: none; }
.amen-card li { display: flex; gap: 9px; padding: 6px 0; font-size: 15px; color: var(--ink-2); border-top: 1px dashed var(--line); }
.amen-card li:first-child { border-top: 0; }
.amen-card li::before { content: ''; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--cove); flex: none; }
@media (max-width: 1000px) { .amen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .amen-grid { grid-template-columns: 1fr; } }
.rating-band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--sea-tint); color: var(--sea-deep); }
.rating-band .big { font-family: var(--serif); font-size: 44px; line-height: 1; }
.rating-band strong { display: block; font-size: 17px; }
.rating-band .stars { color: var(--sun); letter-spacing: 2px; }

/* ── Ubicació ─────────────────────────────────────────── */
.location-section { background: linear-gradient(180deg, var(--sand) 0%, var(--sea-tint) 100%); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.map-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); }
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(.85) hue-rotate(-6deg); }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.near { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.near-col { background: rgba(255, 255, 255, .75); border-radius: var(--radius); padding: 20px 22px; border: 1px solid rgba(12, 116, 137, .12); }
.near-col h3 { font-size: 19px; margin-bottom: 10px; display: flex; gap: 9px; align-items: center; }
.near-col h3 svg { width: 20px; height: 20px; color: var(--sea); }
.near-col ul { margin: 0; padding: 0; list-style: none; }
.near-col li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.near-col li:first-child { border-top: 0; }
.near-col li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } .near { grid-template-columns: 1fr; } }

/* ── Normes ───────────────────────────────────────────── */
.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rule { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.rule .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--sand-2); color: var(--ink-2); display: grid; place-items: center; margin-bottom: 14px; }
.rule .ic svg { width: 21px; height: 21px; }
.rule h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.rule p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rules-grid { grid-template-columns: 1fr; } }

/* ── Reserva ──────────────────────────────────────────── */
.book-section { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.book-section::before { content: ''; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 182, 194, .25), transparent 65%); pointer-events: none; }
.book-section .kicker { color: var(--cove); }
.book-section .lead { color: rgba(255, 255, 255, .8); }
.perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .9); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks svg { width: 18px; height: 18px; color: var(--sun); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; position: relative; }
.panel { background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
@media (max-width: 940px) { .book-grid { grid-template-columns: 1fr; } }
/* Reserves tancades: només el formulari d'interessats, centrat */
.book-grid.closed { grid-template-columns: minmax(0, 640px); justify-content: center; }
.book-grid.closed > .panel:first-child { display: none; }

.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cal-hint { font-weight: 700; font-size: 15px; }
.cal-hint small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover:not([disabled]) { border-color: var(--sea); color: var(--sea); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }
.cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 640px) { .cal-months { grid-template-columns: 1fr; } .cal-month:nth-child(2) { display: none; } }
.cal-month h4 { margin: 0 0 10px; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal-dow { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; padding-bottom: 6px; letter-spacing: .04em; }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 0; background: none; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.cal-day span { position: relative; z-index: 1; width: 100%; height: 100%; max-width: 44px; max-height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .15s; }
.cal-day:hover:not([disabled]) span { background: var(--sea-tint); }
.cal-day[disabled] { cursor: default; color: #b6c1c4; }
.cal-day.booked { color: #a9b5b8; }
.cal-day.booked span { text-decoration: line-through; text-decoration-color: rgba(201, 98, 63, .7); }
.cal-day.booked.can-checkout { color: var(--ink); cursor: pointer; }
.cal-day.booked.can-checkout span { text-decoration: none; }
.cal-day.today span { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-day.in-range::before { content: ''; position: absolute; inset: 12% 0; background: var(--sea-tint); }
.cal-day.start::before { left: 50%; } .cal-day.end::before { right: 50%; }
.cal-day.start.end::before { display: none; }
.cal-day.start span, .cal-day.end span { background: var(--sea) !important; color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cal-legend .free { border: 1.5px solid var(--line); }
.cal-legend .bk { background: #dfe5e6; }
.cal-legend .sel { background: var(--sea); }
.cal-loading { opacity: .45; pointer-events: none; }

.summary h3 { font-size: 24px; margin-bottom: 14px; }
.sum-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.sum-dates div { padding: 10px 14px; }
.sum-dates div + div { border-left: 1.5px solid var(--line); }
.sum-dates small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sum-dates strong { font-size: 15.5px; }
.price-lines { margin: 16px 0 6px; padding: 0; list-style: none; }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.price-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lines li.disc { color: var(--ok); }
.price-lines li.total { border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 19px; color: var(--ink); }
.note { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin: 10px 0; }
.notice.err { background: var(--danger-tint); color: var(--danger); }
.notice.ok { background: var(--ok-tint); color: var(--ok); }
.notice.warn { background: var(--warn-tint); color: var(--warn); }
.notice.info { background: var(--sea-tint); color: var(--sea-deep); }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sand-2), #fbf8f2, var(--sand-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 10px 0; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Formularis ───────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: 11px 14px; font: 500 16px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2362777e' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(12, 116, 137, .14); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); margin: 6px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea); flex: none; }
.code-row { display: flex; gap: 8px; }
/* Captcha invisible: només ocupa lloc si demana un clic */
.captcha:not(:empty) { margin: 4px 0 12px; }
.code-row .input { text-transform: uppercase; }
.code-row .btn { min-height: 48px; padding: 0 16px; }

.done-card { text-align: center; padding: 18px 6px; }
.done-card .badge-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }
.done-card .badge-ic svg { width: 34px; height: 34px; }
.done-card h3 { font-size: 30px; margin-bottom: 8px; }
.ref-box { display: inline-block; margin: 16px 0; padding: 12px 22px; border-radius: 14px; border: 2px dashed var(--cove); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; letter-spacing: .14em; color: var(--sea-deep); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--sea); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); margin: -4px 0 20px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── Peu ──────────────────────────────────────────────── */
.site-footer { background: #0b222a; color: rgba(255, 255, 255, .78); padding: 64px 0 28px; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.wave-divider { display: block; width: 100%; height: 40px; color: var(--sand); }

/* ── Botó flotant de reserva (mòbil) ──────────────────── */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(140%); transition: transform .3s; }
.mobile-cta.show { transform: none; }
@media (max-width: 860px) { .mobile-cta { display: block; } }

/* ── Pàgines interiors (reserva / legal) ──────────────── */
.page { padding: 120px 0 80px; min-height: 80vh; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.page-narrow { max-width: 760px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.confirmed { background: var(--ok-tint); color: var(--ok); }
.status.pending { background: var(--warn-tint); color: var(--warn); }
.status.cancelled { background: var(--danger-tint); color: var(--danger); }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bk-head h2 { font-size: 30px; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dl div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.dl dt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dl dd { margin: 3px 0 0; font-weight: 700; font-size: 16px; word-break: break-word; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; } .dl div:nth-child(odd) { border-right: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.link-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--sea-tint); color: var(--sea-deep); text-decoration: none; }
.link-card:hover { background: #d5eaed; color: var(--sea-deep); }
.link-card svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.link-card strong { display: block; }
.link-card small { color: var(--ink-2); }
@media (max-width: 560px) { .link-cards { grid-template-columns: 1fr; } }
.sub-panel { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--sand); border: 1px solid var(--line); }
.sub-panel h3 { font-size: 21px; margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.missing { background: var(--warn-tint); color: var(--warn); padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* ── Aparicions suaus ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Avís de galetes i textos legals ───── */
[hidden] { display: none !important; }
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cookie-inner { display: flex; align-items: center; gap: 18px; padding: 16px 18px; }
.cookie-inner p { margin: 0; font-size: 14px; color: var(--ink-2); flex: 1; }
.cookie-inner p strong { color: var(--ink); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { background: var(--sea); color: #fff; padding: 10px 18px; min-width: 104px; justify-content: center; }
.cookie-btn:hover { background: var(--sea-deep); color: #fff; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions .cookie-btn { flex: 1; }
}
.data-info { font-size: 12px; margin-top: 4px; }
.legal h3 { font-size: 19px; margin: 22px 0 8px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.legal-toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--sea-tint); color: var(--sea-deep); font-weight: 700; font-size: 14px; text-decoration: none; }
.legal-toc a:hover { background: #d5eaed; }
.legal h2 { scroll-margin-top: 100px; }
.legal-table { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table th { background: var(--sand); color: var(--ink); font-weight: 800; }
.legal-table tr:last-child td { border-bottom: 0; }
