/* ============================================================
   La Maison 24 · Parque Golf — link in bio
   ============================================================ */

:root {
  --sand:        #fdf8f0;
  --ink:         #1c1a17;
  --ink-soft:    #5d574e;
  --card:        rgba(255, 255, 255, 0.82);
  --card-solid:  #ffffff;
  --border:      rgba(28, 26, 23, 0.08);
  --accent:      #1d8f7a;
  --accent-deep: #146253;
  --shadow-sm:   0 1px 2px rgba(28, 26, 23, .06), 0 4px 14px rgba(28, 26, 23, .06);
  --shadow-md:   0 2px 4px rgba(28, 26, 23, .06), 0 12px 32px rgba(28, 26, 23, .10);
  --radius:      18px;
  --ease:        cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* [hidden] must beat the layout `display` values set below (.gate is a grid,
   otherwise hiding it with the attribute silently does nothing). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Ambient background: soft Gran Canaria gradient ------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 12% -8%,  #b9d98e 0%, transparent 62%),
    radial-gradient(900px 640px at 100% 8%,   #f7d59b 0%, transparent 60%),
    radial-gradient(1000px 800px at 82% 100%, #f0a98b 0%, transparent 58%),
    radial-gradient(800px 600px at 0% 92%,    #8fcfc0 0%, transparent 55%),
    var(--sand);
}

/* Slow drifting light, disabled for reduced-motion users. */
.bg::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent 70%);
  animation: drift 22s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-8%, -4%, 0) scale(1); }
  to   { transform: translate3d(10%,  6%, 0) scale(1.18); }
}

/* --- Layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 20px 56px;
}

/* --- Header ----------------------------------------------------------- */

.header { text-align: center; }

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md);
}

.handle {
  margin-top: 16px;
  font-size: clamp(1.6rem, 6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.bio {
  margin: 10px auto 0;
  max-width: 42ch;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--border);
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.social:hover,
.social:focus-visible { transform: translateY(-2px) scale(1.06); background: #fff; }

.social svg { width: 21px; height: 21px; }

/* --- Link buttons ----------------------------------------------------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 30px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  min-height: 68px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--card-solid);
}

.link:active { transform: translateY(-1px) scale(.99); }

.link__thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #ece7df;
}

.link__label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: center;
  /* Offset the thumbnail so the label stays optically centred in the row. */
  margin-right: 46px;
}

/* Primary CTA — direct booking earns no platform commission. */
.link--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 4px rgba(20, 98, 83, .18), 0 12px 28px rgba(20, 98, 83, .26);
}

.link--primary:hover,
.link--primary:focus-visible {
  background: linear-gradient(135deg, #21a58c 0%, var(--accent) 100%);
  box-shadow: 0 4px 8px rgba(20, 98, 83, .22), 0 18px 40px rgba(20, 98, 83, .32);
}

.link--primary .link__thumb { border: 2px solid rgba(255, 255, 255, .35); }

.link__tag {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}

/* --- Guest guide feature card ----------------------------------------- */

.guide {
  display: block;
  margin-top: 13px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.guide:hover,
.guide:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.guide__media {
  position: relative;
  aspect-ratio: 16 / 9;
}

.guide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The guide thumbnail is a light photo, so the scrim has to be strong enough
   to keep the white title legible over it. */
.guide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .88) 100%);
}

.guide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide__title {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.guide__sub {
  margin-top: 2px;
  font-size: .8rem;
  opacity: .85;
}

.guide__lock {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}

.guide__lock svg { width: 17px; height: 17px; }

/* --- Photo strip ------------------------------------------------------ */

.section-title {
  margin: 34px 0 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo {
  aspect-ratio: 1;
  border-radius: 13px;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #ece7df;
  box-shadow: var(--shadow-sm);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.photo:hover img,
.photo:focus-visible img { transform: scale(1.08); }

/* The 5th photo spans the remaining two columns for a balanced 3+2 grid. */
.photo:nth-child(4) { grid-column: span 1; }
.photo:nth-child(5) { grid-column: span 2; aspect-ratio: 2.06 / 1; }

/* --- Lightbox --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: rgba(20, 18, 15, .88);
  backdrop-filter: blur(8px);
  animation: fade .2s var(--ease);
}

.lightbox::backdrop { background: rgba(20, 18, 15, .88); backdrop-filter: blur(8px); }

.lightbox img {
  max-width: min(94vw, 900px);
  max-height: 86dvh;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Footer ----------------------------------------------------------- */

.footer {
  margin-top: 40px;
  text-align: center;
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* --- Entrance animation ----------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .6s var(--ease) forwards;
}

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
