/* Pura Villa Beach House — guest guide */
:root {
  --sand: #faf6ef;
  --sand-2: #f2eadc;
  --card: #ffffff;
  --ink: #1d2a2f;
  --ink-2: #4d5b60;
  --line: #e6dccb;
  --sea: #0e7377;
  --sea-2: #0a5a5d;
  --sea-tint: #e3f1f0;
  --coral: #d9694a;
  --coral-tint: #fbe9e3;
  --sun: #f2b84b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 42, 47, .06), 0 6px 20px rgba(29, 42, 47, .06);
  --max: 980px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-2); }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin: .3em 0; }

/* ---------- language switching ---------- */
html[data-lang="es"] .en,
html[data-lang="en"] .es { display: none !important; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 48px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem;
  white-space: nowrap;
}
.brand svg { flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500;
  padding: 7px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--sand-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sea-tint); color: var(--sea-2); }
.lang {
  flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 2px; background: var(--card);
}
.lang button {
  border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-2); padding: 5px 9px; border-radius: 999px; cursor: pointer;
}
html[data-lang="es"] .lang [data-set="es"],
html[data-lang="en"] .lang [data-set="en"] { background: var(--sea); color: #fff; }

@media (max-width: 760px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -6px; padding-bottom: 2px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 58vh; display: flex; align-items: flex-end;
  background: #0a3b3d center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(5,30,32,.72) 100%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 36px; width: 100%; }
.hero p { font-size: 1.1rem; max-width: 36em; opacity: .95; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }

/* ---------- components ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
a.tile {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.tile:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 2px 4px rgba(29,42,47,.06), 0 12px 28px rgba(29,42,47,.1); }
.tile .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sea-tint); color: var(--sea-2); margin-bottom: 6px;
}
.tile strong { font-size: 1.08rem; }
.tile span.sub { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 640px) {
  a.tile {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 0;
    align-items: center; padding: 14px 16px;
  }
  .tile .ico { grid-row: span 2; margin: 0; }
  .grid { gap: 10px; }
}

.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 22px 0 6px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fact b { display: block; font-size: 1.25rem; font-family: "Fraunces", Georgia, serif; }
.fact small { color: var(--ink-2); font-size: .85rem; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li {
  counter-increment: s; position: relative; padding: 2px 0 14px 48px; margin: 0;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sea); color: #fff; font-weight: 700; font-size: .95rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line);
}

.note {
  border-radius: 14px; padding: 14px 16px; margin: 0 0 1em;
  background: var(--sea-tint); border: 1px solid #c4e2df;
}
.note.warn { background: var(--coral-tint); border-color: #f2c9bc; }
.note strong:first-child { display: block; margin-bottom: 2px; }
.note p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--sand-2); color: var(--ink-2); vertical-align: middle;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--sea); color: #fff; border: 0; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--sea-2); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--sand-2); color: var(--ink); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #c4573a; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 1em; }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--sand-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.92); padding: 3px 9px; border-radius: 999px; color: var(--ink);
}
.gallery .g-wide { grid-column: span 4; grid-row: span 2; }
.gallery .g-wide img { aspect-ratio: auto; }
.gallery .g-sm { grid-column: span 2; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-wide { grid-column: span 2; grid-row: auto; }
  .gallery .g-wide img { aspect-ratio: 4/3; }
  .gallery .g-sm { grid-column: span 1; }
  .gallery .g-sm:last-child:nth-child(even) { grid-column: span 2; }
}

.place-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.place h3 { margin: 0 0 4px; font-size: 1.08rem; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.place .meta { font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.place p { font-size: .96rem; margin-bottom: 8px; }
.place a.map { font-size: .9rem; font-weight: 600; text-decoration: none; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.toc a {
  text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.toc a:hover { background: var(--sand-2); }

.big-code {
  font: 700 clamp(1.3rem, 5vw, 1.7rem)/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--sand-2); border-radius: 12px; padding: 12px 14px; word-break: break-all;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.copy {
  flex: none; font: 600 .85rem system-ui, sans-serif; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink);
}
.qr { width: 220px; max-width: 70vw; background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }

p.sub { font-size: .88rem; color: var(--ink-2); margin: 4px 0 0; }
.tel { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
table.simple { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.simple td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple td:first-child { color: var(--ink-2); width: 42%; padding-right: 10px; }

footer.site {
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: .92rem;
  background: var(--sand-2);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--ink); }

@media print {
  .topbar, footer.site, .btns, .copy { display: none !important; }
  body { background: #fff; }
}
