/* ==========================================================
   Hotel La Burna Panoràmic — estils comuns (CA / ES / EN / FR)
   Paleta presa de l'hotel: pissarra de la teulada, avet,
   neu, pedra i el blau marí del logotip.
   ========================================================== */
:root {
  --pissarra: #22303a;
  --pissarra-2: #3b4a55;
  --neu: #f5f7f6;
  --boira: #e6ebea;
  --pedra: #cfc7b8;
  --avet: #2c4639;
  --avet-2: #233a2f;
  --blau: #2b4c8c;
  --blau-fosc: #1f3a6e;
  --mel: #b8793a;
  --text-suau: #56636c;
  --linia: #d3d9d8;
  --radi: 6px;
  --ample: 1200px;
  --display: "Marcellus", "Times New Roman", serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--pissarra);
  background: var(--neu);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--blau-fosc); }
:focus-visible { outline: 3px solid var(--mel); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 .45em;
  color: var(--pissarra);
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; max-width: 64ch; }

.container { width: min(100% - 2.5rem, var(--ample)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--boira); }
.lead { font-size: 1.2rem; color: var(--text-suau); max-width: 56ch; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--mel); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; }

/* ---------- botons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--text); letter-spacing: .01em;
  padding: .95rem 1.6rem;
  border-radius: var(--radi);
  border: 2px solid var(--blau);
  background: var(--blau); color: #fff; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button:hover { background: var(--blau-fosc); border-color: var(--blau-fosc); color: #fff; }
.button--ghost { background: transparent; color: var(--blau); }
.button--ghost:hover { background: var(--blau); color: #fff; }
.button--light { background: #fff; border-color: #fff; color: var(--pissarra); }
.button--light:hover { background: var(--neu); border-color: var(--neu); color: var(--pissarra); }
.button--small { padding: .6rem 1.05rem; font-size: .95rem; }

/* ---------- capçalera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 246, .97);
  border-bottom: 1px solid var(--linia);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.header__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--pissarra); line-height: 1; }
.header__logo img { width: 60px; height: 60px; flex: none; }
.header__logo-text { display: flex; flex-direction: column; }
.header__logo strong { font: 400 1.6rem/1 var(--display); color: var(--blau); }
.header__logo-text span { font-size: .78rem; letter-spacing: .08em; color: var(--text-suau); margin-top: .3rem; }
@media (max-width: 520px) { .header__logo img { width: 46px; height: 46px; } .header__logo { gap: .5rem; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav__list, .lang { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav__list { gap: 1.5rem; }
.nav__list a { color: var(--pissarra); text-decoration: none; font-weight: 500; }
.nav__list a:hover { color: var(--blau); text-decoration: underline; }
.nav__list a.nav__cta { background: var(--blau); color: #fff; padding: .6rem 1.15rem; border-radius: var(--radi); text-decoration: none; }
.nav__list a.nav__cta:hover { background: var(--blau-fosc); color: #fff; }
.lang { gap: .15rem; font-size: .85rem; }
.lang a { display: block; padding: .25rem .45rem; border-radius: 4px; color: var(--text-suau); text-decoration: none; }
.lang a:hover { background: var(--boira); color: var(--pissarra); }
.lang a[aria-current="page"] { background: var(--pissarra); color: #fff; }
.header__toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--linia); border-radius: var(--radi); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.header__toggle span { width: 20px; height: 2px; background: var(--pissarra); }

@media (max-width: 980px) {
  .header__toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--neu); border-bottom: 1px solid var(--linia);
    padding: .5rem 1.25rem 1.5rem;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--boira); }
  .nav__list a.nav__cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* ---------- hero amb vídeo ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 880px);
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--pissarra);
  overflow: hidden;
}
.hero__media, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media { z-index: -2; }
.hero__media video { opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 28, 34, .35) 0%, rgba(20, 28, 34, 0) 30%, rgba(20, 28, 34, .1) 55%, rgba(20, 28, 34, .72) 100%);
}
.hero .container { padding-bottom: clamp(3rem, 8vh, 5.5rem); }
.hero__title { color: #fff; font-size: clamp(2.7rem, 6.4vw, 5.4rem); max-width: 13ch; margin-bottom: .3em; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 44ch; color: #eef2f1; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__actions .button--ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hero__actions .button--ghost:hover { background: #fff; color: var(--pissarra); }
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * { animation: pujar .9s ease both; }
  .hero .container > *:nth-child(2) { animation-delay: .12s; }
  .hero .container > *:nth-child(3) { animation-delay: .24s; }
}
@keyframes pujar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- cercador de reserves dins del hero ---------- */
.hero__booking { margin-top: 1.6rem; max-width: 780px; }
.hero__booking .booking { padding: .5rem .75rem; min-height: 88px; box-shadow: 0 18px 44px rgba(10, 16, 20, .32); }
.hero__booking .booking__fallback { margin-top: .6rem; font-size: .88rem; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.hero__booking .booking__fallback a { color: #fff; }
.location__routes { display: flex; flex-wrap: wrap; gap: .75rem; }
.location__bus { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--linia); }
.location__bus h3 { margin-bottom: .5rem; }
.location__bus > p { margin: 0 0 .9rem; }
.link-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.link-list a { color: var(--blau); font-weight: 600; }
.link-list a::after { content: " ↗"; font-weight: 400; }
.location__bus ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .55rem; }
.location__bus li::marker { color: var(--blau); font-weight: 600; }
.bus-line { display: inline-block; padding: .05rem .45rem; border-radius: 4px; background: var(--blau); color: #fff; font-size: .85em; font-weight: 600; letter-spacing: .02em; }
.useful-links { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--linia); }
.useful-links .link-list { margin-top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- banda de reserves (versions ES/EN/FR, pendents d'actualitzar) ---------- */
.booking-band { background: var(--avet); color: #e4ece7; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.booking-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .2em; }
.booking-band p { color: #c9d6cf; margin: 0; }
.booking-band__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.booking {
  background: #fff; color: var(--pissarra);
  border-radius: var(--radi);
  padding: clamp(1rem, 3vw, 1.75rem);
  min-height: 96px;
}
.booking__fallback { margin: 1rem 0 0; font-size: .95rem; color: #c9d6cf; }
.booking__fallback a { color: #fff; }

/* ---------- presentació ---------- */
.intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radi); }
.intro__facts { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; gap: .6rem; }
.intro__facts li { padding-left: 1.6rem; position: relative; }
.intro__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .8rem; height: 2px; background: var(--mel); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- habitacions ---------- */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.card { background: #fff; border-radius: var(--radi); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--linia); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { color: var(--text-suau); margin-bottom: .9rem; }
.features { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.features li { font-size: .9rem; padding: .3rem .7rem; background: var(--boira); border-radius: 999px; }
.card details { margin: 0 0 1.4rem; border-top: 1px solid var(--linia); padding-top: .9rem; }
.card summary { cursor: pointer; font-weight: 600; color: var(--blau); }
.card details p { margin: .7rem 0 0; color: var(--text-suau); }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .7rem; }
.common { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: stretch; }
.common figure { margin: 0; }
.common img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radi); }
.common figcaption { font-size: .9rem; color: var(--text-suau); margin-top: .5rem; }
.common__text { align-self: center; }
.common__text ul { padding-left: 1.1rem; margin: 0; }
@media (max-width: 900px) {
  .rooms { grid-template-columns: 1fr; }
  .common { grid-template-columns: 1fr 1fr; }
  .common__text { grid-column: 1 / -1; grid-row: 1; }
}

/* ---------- serveis ---------- */
.grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 3rem; }
.service { border-top: 1px solid var(--pedra); padding-top: 1.25rem; }
.service svg { width: 34px; height: 34px; stroke: var(--avet); margin-bottom: .8rem; }
.service h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.service p { margin: 0; color: var(--text-suau); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.breakfast { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: clamp(3rem, 7vw, 5rem); }
.breakfast img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radi); }
.breakfast__price { font: 400 2.6rem/1 var(--display); color: var(--blau); margin: .2rem 0 1rem; }
@media (max-width: 820px) { .breakfast { grid-template-columns: 1fr; } }

/* ---------- galeria ---------- */
/* Mosaic com a Valle del Reposo: una foto gran i dues de petites; la resta s'obre al visor */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 2.5rem; aspect-ratio: 16 / 9; }
.gallery button { padding: 0; border: 0; background: var(--boira); border-radius: var(--radi); overflow: hidden; cursor: zoom-in; min-height: 0; }
.gallery button:first-child { grid-row: span 2; }
.gallery button[hidden] { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery-more { margin-top: 1.5rem; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; gap: .5rem; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery button:not(:first-child) { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(16, 22, 27, .92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4.5rem 2rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 4px; }
.lightbox p { color: #dfe6e3; margin: .9rem 0 0; text-align: center; }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__inner { padding: 3.5rem .75rem 4.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); } .lightbox__next { right: calc(50% - 56px); }
}

/* ---------- ubicació ---------- */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 2rem; }
.distances { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; border-top: 1px solid var(--linia); }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linia); }
.distances b { font-weight: 600; white-space: nowrap; }
.map { border-radius: var(--radi); overflow: hidden; background: var(--boira); min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }

/* ---------- contacte ---------- */
.contact { font-style: normal; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; margin-top: 2rem; }
.contact small { display: block; color: var(--text-suau); font-size: .85rem; margin-bottom: .2rem; }
.contact a, .contact span { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } }

/* ---------- peu ---------- */
.footer { background: var(--pissarra); color: #c4ced3; padding-block: 2.5rem; font-size: .95rem; }
.footer a { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer p { margin: 0; }
.footer .lang a { color: #c4ced3; }
.footer .lang a[aria-current="page"] { background: #fff; color: var(--pissarra); }

/* Textos provisionals (pàgines ES / EN / FR mentre no es tradueixin) */
.placeholder { color: var(--text-suau); font-style: italic; }

/* Mòbil: més contrast sota el text del hero */
@media (max-width: 699px) {
  .hero { min-height: 88vh; }
  .hero::after { background: linear-gradient(180deg, rgba(20,28,34,.25) 0%, rgba(20,28,34,.15) 35%, rgba(20,28,34,.8) 75%, rgba(20,28,34,.88) 100%); }
}

/* ---------- les vistes: panoràmica arrossegable + balcons ---------- */
.pano { margin: 2.25rem 0 0; }
.pano__track {
  overflow-x: auto; overflow-y: hidden;
  cursor: grab; scrollbar-width: thin; scrollbar-color: var(--pedra) transparent;
  -webkit-overflow-scrolling: touch;
}
.pano__track.is-dragging { cursor: grabbing; }
.pano__track img { height: clamp(260px, 42vw, 520px); width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.pano figcaption { font-size: .9rem; color: var(--text-suau); margin-top: .7rem; }
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.views figure { margin: 0; }
.views img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radi); }
.views figcaption { font-size: .9rem; color: var(--text-suau); margin-top: .5rem; }
@media (max-width: 700px) {
  .views { grid-template-columns: 1fr 1fr; }
  .views figure:first-child { grid-column: 1 / -1; }
  .views figure:first-child img { aspect-ratio: 4 / 3; }
}

/* ---------- peu: enllaços legals ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer__legal a { color: #c4ced3; }
.footer__legal a:hover { color: #fff; }

/* ---------- pàgina legal ---------- */
.legal { max-width: 72ch; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.7rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linia); }
.legal h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--linia); }
.legal th { font-weight: 600; background: var(--boira); }
.legal .updated { color: var(--text-suau); font-size: .95rem; }
.map { display: grid; }
.map__consent { place-self: center; text-align: center; padding: 2rem 1.5rem; }
.map__consent p { margin: 1rem auto 0; font-size: .92rem; color: var(--text-suau); max-width: 36ch; }

/* ---------- Protecció contra el CSS global del widget d'Octorate ----------
   El widget injecta regles globals amb !important per a tots els <button> i <input>
   (fons verd, padding 0 28px, min-height 46px…). Aquí es restauren els botons propis del web. */
.header__toggle, .gallery button, .lightbox__btn {
  min-height: 0 !important; padding: 0 !important; font-family: inherit !important; font-weight: inherit !important;
}
.header__toggle { width: 46px !important; height: 46px !important; flex: none !important; background: transparent !important; border: 1px solid var(--linia) !important; border-radius: var(--radi) !important; }
.header__toggle:hover { background: var(--boira) !important; }
.gallery button { background: var(--boira) !important; border: 0 !important; border-radius: var(--radi) !important; }
.lightbox__btn { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; border-radius: 50% !important; }
.lightbox__btn:hover { background: rgba(255,255,255,.25) !important; }
.gallery-more .button { min-height: 0 !important; padding: .95rem 1.6rem !important; background: transparent !important; color: var(--blau) !important; border: 2px solid var(--blau) !important; border-radius: var(--radi) !important; font-family: inherit !important; font-weight: 600 !important; }
.gallery-more .button:hover { background: var(--blau) !important; color: #fff !important; }
