/* Casa Tramuntana. Edit :root to restyle. */
:root {
  --salt: #F3F2EE;
  --white: #FFFFFF;
  --pine: #2F3B2F;
  --pine-2: #3E4D3E;
  --seaglass: #9DB4B0;
  --seaglass-2: #D5E1DE;
  --olive: #A89A5B;
  --ink: #1F261F;
  --muted: #69716A;

  --serif: "Gilda Display", Georgia, serif;
  --sans: "Albert Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--salt); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1260px, 100% - var(--gutter) * 2); margin-inline: auto; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.i18n-fade { transition: opacity .25s ease; }
.is-switching [data-i18n] { opacity: .15; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 1.6rem; border: 0; border-radius: 99px; background: var(--pine); color: var(--salt); font: 400 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .4s var(--ease), transform .4s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--pine-2); }
.btn:active { transform: scale(.97); }
.btn--small { padding: .7rem 1.2rem; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem var(--gutter); color: var(--white); transition: background-color .5s, color .5s, padding .5s; }
.nav.is-solid { background: rgba(243,242,238,.9); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: .75rem; }
.nav__logo { font: 400 1.5rem var(--serif); text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 2rem; font-size: .95rem; }
.nav__links a { text-decoration: none; opacity: .85; }
.nav__links a:hover { opacity: 1; }
.lang { position: relative; display: inline-grid; grid-template-columns: repeat(4, 2.6rem); padding: .2rem; border-radius: 99px; box-shadow: inset 0 0 0 1px currentColor; }
.lang button { position: relative; z-index: 1; height: 2rem; border: 0; background: none; color: inherit; font: 500 .8rem var(--sans); letter-spacing: .06em; cursor: pointer; transition: color .4s; }
.lang button[aria-pressed="true"] { color: var(--pine); }
.nav.is-solid .lang button[aria-pressed="true"] { color: var(--salt); }
.lang__pill { position: absolute; top: .2rem; left: .2rem; width: 2.6rem; height: 2rem; border-radius: 99px; background: var(--salt); transition: transform .5s var(--ease), background-color .5s; }
.nav.is-solid .lang__pill { background: var(--pine); }
.nav__book { padding: .65rem 1.2rem; border-radius: 99px; background: var(--salt); color: var(--pine); text-decoration: none; font-size: .95rem; transition: background-color .4s; }
.nav.is-solid .nav__book { background: var(--pine); color: var(--salt); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(1.5rem, 4vw, 3rem); color: var(--white); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 14s var(--ease) both; }
@keyframes zoom { from { transform: scale(1.12); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,38,31,.35) 0%, rgba(31,38,31,0) 30%, rgba(31,38,31,.2) 55%, rgba(31,38,31,.7) 100%); }
.hero__content { position: relative; max-width: 1260px; width: 100%; margin: 0 auto 2rem; }
.hero__place { font-size: .95rem; letter-spacing: .12em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 8rem); line-height: .95; max-width: 13ch; }

.bookbar { position: relative; max-width: 1260px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: .5rem; padding: .5rem; border-radius: 1.5rem; background: rgba(243,242,238,.92); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); align-items: stretch; }
.bookbar__field { display: grid; gap: .1rem; text-align: left; padding: .6rem 1rem; border: 0; border-radius: 1rem; background: transparent; font: inherit; color: inherit; cursor: pointer; }
button.bookbar__field:hover { background: var(--white); }
.bookbar__field span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.bookbar__field b { font-weight: 400; font-size: 1.05rem; }
.bookbar .btn { border-radius: 1rem; }
.stepper { display: flex; align-items: center; gap: .75rem; }
.stepper button { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid rgba(31,38,31,.2); background: none; cursor: pointer; font-size: 1rem; }
.stepper b { font-weight: 400; min-width: 1.2rem; text-align: center; }

/* Calendar popover */
.cal { position: absolute; left: .5rem; bottom: calc(100% + .75rem); width: min(680px, calc(100vw - 2rem)); padding: 1.25rem; border-radius: 1.5rem; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); animation: calIn .4s var(--ease); }
@keyframes calIn { from { opacity: 0; transform: translateY(.75rem); } }
.cal__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.cal__head p { margin: 0; font-size: .9rem; color: var(--muted); }
.cal__head button { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgba(31,38,31,.15); background: none; cursor: pointer; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.month h4 { margin: 0 0 .5rem; font: 400 1.15rem var(--serif); text-align: center; text-transform: capitalize; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.dow { font-size: .72rem; color: var(--muted); padding-bottom: .35rem; text-transform: capitalize; }
.day { aspect-ratio: 1; border: 0; background: none; font: 400 .92rem var(--sans); color: var(--ink); cursor: pointer; border-radius: 50%; position: relative; }
.day:disabled { color: #C4C8C3; cursor: default; text-decoration: line-through; }
.day.is-range { background: var(--seaglass-2); border-radius: 0; }
.day.is-start, .day.is-end { background: var(--pine); color: var(--salt); border-radius: 50%; }
.day.is-start.has-end { border-radius: 50% 0 0 50%; }
.day.is-end { border-radius: 0 50% 50% 0; }
.day.is-weekend:not(:disabled)::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 3px; height: 3px; border-radius: 50%; background: var(--olive); transform: translateX(-50%); }
.day:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--pine); }
.cal__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(31,38,31,.1); }
.cal__foot p { margin: 0; font-size: .95rem; }

/* ---------- Intro ---------- */
.intro { padding: clamp(5rem, 10vw, 8rem) 0; }
.intro__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.intro__big { font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.2 var(--serif); margin: 0; }
.intro__facts { margin: 0; }
.intro__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(31,38,31,.15); }
.intro__facts dt { color: var(--muted); font-size: .95rem; }
.intro__facts dd { margin: 0; font: 400 1.4rem var(--serif); white-space: nowrap; }

/* ---------- Rooms ---------- */
.rooms { padding-bottom: clamp(5rem, 10vw, 8rem); }
.rooms h2 { margin-bottom: 2.5rem; }
.rooms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.room { background: var(--white); border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.room:hover { transform: translateY(-.35rem); box-shadow: 0 30px 60px -40px rgba(31,38,31,.5); }
.room img { aspect-ratio: 4 / 3.6; object-fit: cover; width: 100%; }
.room__body { padding: 1.5rem; display: grid; gap: .4rem; flex: 1; align-content: start; }
.room__body p { color: var(--muted); margin: 0; }
.room__price { margin-top: .5rem !important; color: var(--ink) !important; }
.room__price b { font: 400 1.6rem var(--serif); }
.room__pick { margin-top: .75rem; justify-self: start; padding: .7rem 1.1rem; border-radius: 99px; border: 1px solid var(--pine); background: none; font: 400 .95rem var(--sans); cursor: pointer; transition: all .4s var(--ease); }
.room__pick:hover { background: var(--pine); color: var(--salt); }
.room.is-picked { box-shadow: inset 0 0 0 2px var(--pine); }
.room.is-picked .room__pick { background: var(--pine); color: var(--salt); }

/* ---------- Experiences rail ---------- */
.exp { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--pine); color: var(--salt); }
.exp__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.exp__head p { max-width: 36ch; margin: 0; opacity: .75; }
.exp__rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; scrollbar-width: thin; scrollbar-color: var(--seaglass) transparent; }
.card { flex: 0 0 min(24rem, 78vw); scroll-snap-align: start; margin: 0; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.25rem; }
.card figcaption { display: grid; gap: .2rem; padding-top: 1rem; }
.card b { font: 400 1.5rem var(--serif); }
.card span { opacity: .75; }

/* ---------- Location ---------- */
.location { padding: clamp(5rem, 10vw, 8rem) 0; }
.location__grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.location p { color: var(--muted); max-width: 44ch; font-size: 1.1rem; margin: 1.25rem 0 2rem; }
.dist { list-style: none; padding: 0; margin: 0; max-width: 32rem; }
.dist li { display: flex; justify-content: space-between; padding: .9rem 0; border-top: 1px solid rgba(31,38,31,.15); }
.dist b { font-weight: 400; }
.clock { text-align: right; }
.clock span { display: block; color: var(--muted); font-size: .9rem; }
.clock b { font: 400 clamp(4rem, 10vw, 8rem)/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--pine); }

/* ---------- Book ---------- */
.book { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--seaglass-2); }
.book__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.book__grid > div > p { color: var(--muted); max-width: 42ch; margin: 1.25rem 0 2rem; }
.summary { padding: 1.5rem; border-radius: 1.25rem; background: var(--white); }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(31,38,31,.08); }
.summary span { color: var(--muted); }
.summary b { font-weight: 400; text-align: right; }
.summary__total { border: 0 !important; padding-top: 1rem !important; }
.summary__total b { font: 400 2rem var(--serif); color: var(--pine); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field span { font-size: .9rem; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 300 1.05rem var(--sans); padding: .9rem 1.1rem; border-radius: 1rem; border: 1px solid transparent; background: var(--white); transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine); }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.5rem; color: var(--pine); font-weight: 500; }

.footer { padding: 3rem var(--gutter); background: var(--ink); color: rgba(243,242,238,.7); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer__logo { font: 400 1.6rem var(--serif); color: var(--salt); margin: 0; }
.footer p { margin: 0; }
.credits { font-size: .85rem; opacity: .7; }

.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav { gap: .75rem; }
  .nav__book { display: none; }
  .bookbar { grid-template-columns: 1fr 1fr; }
  .bookbar .btn { grid-column: 1 / -1; }
  .cal { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; width: auto; max-height: 80vh; overflow-y: auto; }
  .cal__months { grid-template-columns: 1fr; }
  .intro__grid, .book__grid, .location__grid { grid-template-columns: 1fr; }
  .rooms__grid { grid-template-columns: 1fr; }
  .clock { text-align: left; }
}
@media (max-width: 420px) { .lang { grid-template-columns: repeat(4, 2.2rem); } .lang__pill { width: 2.2rem; } .nav__logo { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
