@import url("/static/css/fonts.css");
/* Les Souris — guest site
   Whitewash and painted trim of Puerto de Mogán: Atlantic blue for actions,
   bougainvillea magenta only for the dates a guest picks, volcanic brown for text. */

:root {
  --ink: #2a2420;          /* volcanic basalt */
  --ink-2: #625952;
  --line: #e3ddd6;
  --paper: #ffffff;
  --whitewash: #f7f8f6;
  --mist: #e6eff3;         /* Atlantic haze, calendar band */
  --atlantic: #0b4f7c;
  --atlantic-ink: #073a5c;
  --bougain: #b0175c;
  --bougain-soft: #f6dce8;
  --ochre: #ead9ad;        /* hillside walls */
  --booked: #e9e5e1;
  --ok: #2f6b45;
  --err: #a1261c;

  --sans: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;

  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5625rem;
  --step-3: 1.95rem; --step-4: clamp(2.2rem, 4.6vw, 3.5rem);
  --r-photo: 14px; --r-ctl: 10px;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
}

*, *::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; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 var(--step-0)/1.5 var(--sans); color: var(--ink); background: var(--paper);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--atlantic); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--atlantic-ink); }
h1, h2, h3 { font-family: var(--sans); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--atlantic); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-2); font-size: var(--step--1); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

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

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; cursor: pointer;
  font: 600 var(--step-0)/1 var(--sans); color: #fff; background: var(--atlantic); text-decoration: none;
  padding: .9em 1.4em; border-radius: 999px; transition: background .15s; }
.btn:hover { background: var(--atlantic-ink); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--small { padding: .6em 1.1em; font-size: var(--step--1); }
.btn--big { padding: 1.05em 1.8em; font-size: var(--step-1); }
.btn--full { width: 100%; }
.btn--ghost { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: transparent;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.iconbtn:hover { background: var(--ink); color: #fff; }
.iconbtn[disabled] { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--atlantic); text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px); }
.topbar__inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 28px; }
.wordmark { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.sections { display: flex; gap: 22px; font-size: var(--step--1); }
.sections a { color: var(--ink-2); text-decoration: none; }
.sections a:hover { color: var(--ink); text-decoration: underline; }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-size: var(--step--1); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: var(--whitewash); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; min-width: 150px; box-shadow: 0 10px 30px rgba(42,36,32,.12); }
.langs a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { background: var(--mist); }
@media (max-width: 960px) { .sections { display: none; } }

/* ---------- gallery ---------- */
.gallery { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter); display: grid; gap: 8px; position: relative;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; }
.gallery__item { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--booked); border-radius: 4px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.025); }
.gallery__item:first-child { grid-row: span 2; border-radius: var(--r-photo) 4px 4px var(--r-photo); }
.gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 470px; }
.gallery--n1 .gallery__item:first-child { border-radius: var(--r-photo); }
.gallery--n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 470px; }
.gallery--n2 .gallery__item:first-child { grid-row: auto; }
.gallery--n3 { grid-template-columns: 2fr 1fr; }
.gallery--n4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery--n4 .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery--n5 .gallery__item:nth-child(3), .gallery--n3 .gallery__item:nth-child(2) { border-top-right-radius: var(--r-photo); }
.gallery--n5 .gallery__item:nth-child(5), .gallery--n3 .gallery__item:nth-child(3), .gallery--n4 .gallery__item:nth-child(4) { border-bottom-right-radius: var(--r-photo); }
.gallery--n4 .gallery__item:nth-child(3), .gallery--n2 .gallery__item:nth-child(2) { border-top-right-radius: var(--r-photo); }
.gallery--n2 .gallery__item:nth-child(2) { border-bottom-right-radius: var(--r-photo); }
.gallery__all { position: absolute; right: calc(var(--gutter) + 16px); bottom: 16px; padding: .6em 1em; font-size: var(--step--1); }
@media (max-width: 760px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; padding: 0; margin-top: 0; }
  .gallery__item, .gallery__item:first-child { flex: 0 0 88%; height: 300px; scroll-snap-align: center; border-radius: 0 !important; }
  .gallery__all { right: 12px; bottom: 12px; }
}

.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #14110f; color: #fff; }
.lightbox::backdrop { background: #14110f; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.lightbox__close { background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 16px; font: 600 var(--step--1) var(--sans); cursor: pointer; }
.lightbox__stage { margin: 0; display: grid; place-items: center; padding: 0 72px 24px; min-height: 0; }
.lightbox__stage img { max-height: calc(100vh - 120px); width: auto; object-fit: contain; border-radius: 6px; }
.lightbox__stage figcaption { margin-top: 10px; color: #d8d2cc; font-size: var(--step--1); text-align: center; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav--prev { left: 12px; } .lightbox__nav--next { right: 12px; }
@media (max-width: 600px) { .lightbox__stage { padding: 0 8px 70px; } .lightbox__nav { top: auto; bottom: 14px; transform: none; } }

/* ---------- main layout ---------- */
.layout { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 24px; display: grid;
  grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); padding-top: 28px; } }

.intro { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.intro__place { color: var(--atlantic); font-weight: 600; margin-bottom: .4em; }
.intro h1 { max-width: 16ch; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 12px; border-radius: 999px; background: var(--whitewash); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); font-weight: 500; }
.intro__tagline { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; margin: 22px 0 0; max-width: 52ch; }

.block { padding: 36px 0; border-bottom: 1px solid var(--line); }
.content > .block:last-child { border-bottom: 0; }
.block--wide { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter); border: 0; }
.prose { font-family: var(--serif); line-height: 1.7; max-width: 66ch; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .35em; }
.beds { color: var(--ink-2); }

.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 32px; }
.amenities h3 { font-size: var(--step-0); margin-bottom: .6em; }
.amenities ul { list-style: none; margin: 0; padding: 0; }
.amenities li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .98rem; }

.times { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; }

/* ---------- booking card ---------- */
.bookcard { position: sticky; top: 84px; }
.bookcard__form { border-radius: 18px; background: #fff; padding: 24px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(11,79,124,.28); }
.bookcard__from { font-size: var(--step-1); font-weight: 650; margin-bottom: 18px; }
.dates, .guests { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #cfc7bf; border-radius: var(--r-ctl); overflow: hidden; }
.guests { margin-top: 10px; }
.dates label, .guests label { display: block; padding: 8px 12px; font-size: .75rem; font-weight: 600; }
.dates label + label, .guests label + label { border-left: 1px solid #cfc7bf; }
.dates span, .guests span { display: block; color: var(--ink-2); }
.guests small { font-weight: 400; }
.dates input, .guests select { width: 100%; min-width: 0; border: 0; padding: 2px 0; font: 500 var(--step-0) var(--sans); color: var(--ink); background: transparent; }
.dates input:focus, .guests select:focus { outline: none; }
.dates label:focus-within, .guests label:focus-within { box-shadow: inset 0 0 0 2px var(--atlantic); }
.quote { margin: 18px 0; min-height: 3em; }
.quote__hint { color: var(--ink-2); margin: 0; }
.quote__err { color: var(--err); margin: 0; font-weight: 500; }
.bookcard__note { font-size: var(--step--1); color: var(--ink-2); margin: 14px 0 0; text-align: center; }
@media (max-width: 960px) { .bookcard { position: static; } }

.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lines th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 5px 0; }
.lines td { text-align: right; padding: 5px 0; }
.lines__total th, .lines__total td { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--step-1); }
.lines__pre th, .lines__pre td { font-size: var(--step--1); }

/* ---------- price calendar: the signature band ---------- */
.prices { background: var(--mist); margin-top: 40px; }
.prices__inner { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter); }
.prices__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.prices__head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.prices__controls { display: flex; gap: 8px; flex: none; }
.prices__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; flex-wrap: wrap; gap: 12px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; font-size: var(--step--1); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.sw--free { background: #fff; box-shadow: inset 0 0 0 1px #c6d4dc; }
.sw--booked { background: repeating-linear-gradient(-45deg, var(--booked) 0 4px, #d9d3cd 4px 6px); }
.sw--sel { background: var(--bougain); }

.cal { display: grid; grid-template-columns: repeat(var(--months, 2), minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); min-height: 380px; }
.cal__loading { color: var(--ink-2); }
.month h3 { font-size: var(--step-1); font-weight: 650; margin: 0 0 12px; text-transform: none; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month__dow { font-size: .75rem; color: var(--ink-2); text-align: center; padding-bottom: 4px; }
.day { position: relative; aspect-ratio: 1 / .92; border: 0; border-radius: 8px; background: #fff; padding: 6px 6px 5px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; font-family: var(--sans);
  color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px #d3e0e7; transition: background .12s, color .12s; }
.day__n { font-size: .78rem; font-weight: 500; }
.day__p { font-size: clamp(.72rem, 1.25vw, .95rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.day__m { position: absolute; top: 6px; right: 6px; font-size: .62rem; color: var(--ink-2); }
.day:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--atlantic); }
.day[disabled] { cursor: default; background: repeating-linear-gradient(-45deg, var(--booked) 0 5px, #ddd7d1 5px 7px); box-shadow: none; }
.day[disabled] .day__p, .day[disabled] .day__m { visibility: hidden; }
.day[disabled] .day__n { color: #8c827a; }
.day--past, .day--past[disabled] { background: transparent; box-shadow: none; opacity: .4; }
.day--out { visibility: hidden; }
.day--checkout:not(.day--range) { background: #fff; }
.day--checkout[disabled] { cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1px #d3e0e7; }
.day--checkout[disabled] .day__n { color: var(--ink); }
.day--range { background: var(--bougain-soft); box-shadow: none; }
.day--start, .day--end { background: var(--bougain); color: #fff; box-shadow: none; }
.day--start .day__m, .day--end .day__m { color: #fbe6ef; }
.day--end .day__p { visibility: hidden; }
.day--muted:not(.day--range):not(.day--start) { opacity: .45; }
@media (max-width: 760px) { .cal { --months: 1 !important; } .prices__head { flex-direction: column; align-items: start; }
  .day { padding: 4px; border-radius: 6px; } .day__m { display: none; } }

/* ---------- location ---------- */
.loc__place { color: var(--ink-2); margin-top: -.3em; }
.loc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.map { height: 440px; border-radius: var(--r-photo); overflow: hidden; background: var(--mist); z-index: 0; }
.leaflet-container { font-family: var(--sans); }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--bougain); transform: rotate(-45deg); box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0,0,0,.3); }
@media (max-width: 860px) { .loc { grid-template-columns: 1fr; } .map { height: 320px; } }

/* ---------- reviews ---------- */
.reviews__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.reviews__head h2 { margin: 0; }
.reviews__score { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--ink-2); }
.score { font-size: var(--step-3); font-weight: 750; color: var(--ink); }
.reviews { columns: 3 300px; column-gap: 40px; }
.review { break-inside: avoid; margin: 0 0 36px; }
.review blockquote { margin: 0 0 12px; font-family: var(--serif); line-height: 1.65; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { font-size: var(--step--1); color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.review strong { color: var(--ink); }
.stars { color: var(--bougain); letter-spacing: 1px; }
.stars__off { color: #d9d2cb; }

/* ---------- mobile bar ---------- */
.mobilebar { display: none; }
@media (max-width: 960px) {
  .mobilebar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobilebar__price { margin: 0; font-weight: 600; font-size: var(--step--1); }
  .mobilebar__price strong { font-size: var(--step-0); }
  body:has(.mobilebar) .footer { padding-bottom: 96px; }
}

/* ---------- checkout ---------- */
.checkout { max-width: 1080px; margin: 0 auto; padding: 40px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout__summary { order: -1; } }
.back { text-decoration: none; font-weight: 500; }
.checkout h1 { font-size: var(--step-3); margin-top: .4em; }
.checkout__summary { border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 20px; position: sticky; top: 84px; }
@media (max-width: 900px) { .checkout__summary { position: static; } }
.checkout__img { border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 16px; }
.checkout__summary h2 { font-size: var(--step-1); }
.stay { margin: 0 0 16px; }
.stay div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.stay dt { color: var(--ink-2); }
.stay dd { margin: 0; text-align: right; font-weight: 500; }
.stay small { display: block; color: var(--ink-2); font-weight: 400; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: 400 var(--step-0) var(--sans); color: var(--ink); padding: 12px 14px;
  border: 1px solid #c9c1b9; border-radius: var(--r-ctl); background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--atlantic); box-shadow: 0 0 0 3px rgba(11,79,124,.18); }
.field textarea { resize: vertical; }
.field__err { display: block; font-style: normal; color: var(--err); font-size: var(--step--1); margin-top: 4px; }
.field__err:empty, .check .field__err:empty { display: none; }
.is-invalid input, .is-invalid textarea { border-color: var(--err); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 8px 0 20px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--atlantic); }
.check .field__err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.howpay { background: var(--mist); border-radius: var(--r-ctl); padding: 14px 16px; font-size: var(--step--1); }
.alert { background: #fbeceb; color: var(--err); border-radius: var(--r-ctl); padding: 12px 14px; font-weight: 500; }

/* ---------- confirmation ---------- */
.conf h1 { font-size: var(--step-4); max-width: 14ch; }
.conf--confirmed h1 { color: var(--ok); }
.conf__lead { font-family: var(--serif); font-size: var(--step-1); max-width: 46ch; }
.conf__ref { display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--r-ctl); background: var(--whitewash); box-shadow: inset 0 0 0 1px var(--line); }
.conf__ref span { font-size: var(--step--1); color: var(--ink-2); }
.conf__ref strong { font-size: var(--step-2); letter-spacing: .04em; }
.pay { margin: 32px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.pay h2 { font-size: var(--step-2); }
.bank { margin: 16px 0; max-width: 520px; }
.bank div { display: grid; grid-template-columns: 160px 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
.bank dt { color: var(--ink-2); } .bank dd { margin: 0; font-weight: 600; }

/* ---------- misc pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.card { color: var(--ink); text-decoration: none; }
.card img { border-radius: var(--r-photo); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 12px; }
.card h2 { font-size: var(--step-1); margin: 0 0 4px; }
.card p { margin: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #e9e3dd; margin-top: 40px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter); display: grid; gap: 6px; }
.footer__name { font-weight: 750; font-size: var(--step-1); color: #fff; }
.footer a { color: #fff; }
.footer p { margin: 0; }
.footer__links { margin-top: 14px !important; font-size: var(--step--1); }

.stay-free { font-weight: 600; color: var(--ok); margin: 4px 0 0; }
