/* =============================================================
   Villa Selya — public site
   Editorial, warm, cinematic. Mobile-first but designed 1440.
   ============================================================= */

/* -- base -- */
.vs {
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.vs *, .vs *::before, .vs *::after { box-sizing: border-box; }
.vs h1, .vs h2, .vs h3, .vs h4 {
  font-family: var(--display);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.vs ::selection { background: var(--olive); color: var(--oxblood); }

.vs-wrap {
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
}
.vs-wrap--narrow {
  width: min(100% - 2 * var(--gutter), 1040px);
  margin-inline: auto;
}

/* -- top bar -- */
.vs-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 1.3rem 0;
  color: var(--bone);
}
.vs-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.vs-nav__brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.vs-nav__brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex: 0 0 38px;
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.25);
}
.vs-nav__brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-nav__links {
  display: flex; gap: 2rem; align-items: center;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}
.vs a, .vs a:link, .vs a:visited { color: inherit; text-decoration: none; }
.vs-nav a, .vs-nav a:link, .vs-nav a:visited { color: var(--bone); text-decoration: none; }
.vs-nav__link { position: relative; padding: 0.3rem 0; opacity: 0.85; transition: opacity .2s; }
.vs-nav__link:hover { opacity: 1; }
.vs-nav__link::after {
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background: currentColor; transition: width .25s ease;
}
.vs-nav__link:hover::after { width: 100%; }

.vs-nav__right { display: flex; align-items: center; gap: 1.4rem; }
.vs-nav__lang {
  display: inline-flex; gap: 0.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.vs-nav__lang button {
  padding: 0.25rem 0.45rem;
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.55;
  font: inherit;
}
.vs-nav__lang button.is-active { opacity: 1; font-weight: 600; }

.vs-nav__cta {
  padding: 0.65rem 1.3rem;
  background: var(--olive);
  color: var(--oxblood);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.vs-nav__cta:hover { background: var(--olive-soft); transform: translateY(-1px); }

@media (max-width: 820px) {
  .vs-nav__links { display: none; }
}

/* -- hero -- */
.vs-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.vs-hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.vs-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: slowZoom 24s ease-out forwards;
}
@keyframes slowZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.vs-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(31, 13, 10, 0.55) 0%,
      rgba(31, 13, 10, 0.10) 30%,
      rgba(31, 13, 10, 0.25) 65%,
      rgba(31, 13, 10, 0.92) 100%);
}
.vs-hero__sun {
  position: absolute;
  top: 10%; right: -8%;
  width: 42vw; max-width: 700px;
  opacity: 0.22;
  z-index: -1;
  animation: driftSun 60s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes driftSun {
  from { transform: rotate(-6deg) translateY(0); }
  to   { transform: rotate(4deg)  translateY(-1rem); }
}

.vs-hero__content {
  padding-block: 10rem 5rem;
  display: grid; gap: 2.2rem;
}
.vs-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.vs-hero__eyebrow::before {
  content: ""; width: 2.5rem; height: 1px; background: var(--olive-soft);
}
.vs-hero__title {
  font-size: clamp(3.2rem, 10.5vw, 10rem);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  max-width: 14ch;
}
.vs-hero__title .em-olive {
  color: var(--olive-soft);
}
.vs-hero__lede {
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.88);
}
.vs-hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 239, 230, 0.22);
  max-width: 52rem;
}
.vs-hero__meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.vs-hero__meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}
.vs-hero__meta-value {
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
  font-variation-settings: "opsz" 48;
  color: var(--bone);
}
.vs-hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(244,239,230,0.55);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.vs-hero__scroll::after {
  content: ""; width: 1px; height: 2.8rem;
  background: linear-gradient(180deg, rgba(244,239,230,0.55), transparent);
  animation: pulseLine 2.4s ease-in-out infinite;
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* -- booking bar (overlapping hero) -- */
.vs-bookbar {
  position: relative; z-index: 5;
  margin-top: -3.2rem; margin-bottom: 5rem;
}
.vs-bookbar__inner {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 1.2rem 1.4rem 1.2rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr auto;
  gap: 0.5rem;
  align-items: center;
  box-shadow:
    0 30px 60px -20px rgba(45, 20, 16, 0.28),
    0 0 0 1px rgba(45, 20, 16, 0.06);
}
.vs-bookbar__field {
  padding: 0.5rem 1.2rem;
  border-right: 1px solid rgba(31,26,22,0.12);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.vs-bookbar__field:first-child { padding-left: 0; }
.vs-bookbar__field:nth-child(3) { border-right: none; }
.vs-bookbar__label {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--smoke);
}
.vs-bookbar__value {
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  font-variation-settings: "opsz" 48;
  background: none; border: none; outline: none; color: var(--ink); padding: 0;
  width: 100%;
}
.vs-bookbar__submit {
  padding: 1rem 1.6rem;
  background: var(--oxblood); color: var(--olive-soft);
  border-radius: 999px;
  border: none; cursor: pointer;
  font-family: var(--body); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: background .2s, transform .2s;
}
.vs-bookbar__submit:hover { background: var(--burgundy-soft); transform: translateY(-1px); }
.vs-bookbar__submit svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .vs-bookbar__inner { grid-template-columns: 1fr 1fr; }
  .vs-bookbar__field:nth-child(3) { border-right: 1px solid rgba(31,26,22,0.12); }
  .vs-bookbar__submit { grid-column: 1 / -1; justify-content: center; }
}

/* -- section base -- */
.vs-sec { padding-block: var(--section-pad); }
.vs-sec__eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 1.4rem;
}
.vs-sec__eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: var(--olive-deep);
}

/* -- intro (large editorial type) -- */
.vs-intro {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bone);
}
.vs-intro__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.vs-intro__title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 350;
  max-width: 18ch;
}
.vs-intro__body {
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  line-height: 1.62;
  color: var(--charcoal);
  max-width: 42rem;
  display: grid; gap: 1.1rem;
}
.vs-intro__body p:first-child::first-letter {
  font-family: var(--display);
  font-size: 4em;
  font-weight: 300;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--oxblood);
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
}

@media (max-width: 900px) {
  .vs-intro__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* -- "Spaces" image strip -- */
.vs-spaces {
  background: var(--burgundy);
  color: var(--bone);
  padding-block: clamp(5rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.vs-spaces__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 3rem; margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.vs-spaces__head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  color: var(--bone);
}
.vs-spaces__head p {
  max-width: 28rem;
  color: rgba(244, 239, 230, 0.72);
  font-size: 1rem;
}
.vs-spaces__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.vs-space {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.vs-space img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.vs-space:hover img { transform: scale(1.04); }
.vs-space::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(31,13,10,0.78) 100%);
}
.vs-space__label {
  position: absolute; left: 1.3rem; bottom: 1.1rem; right: 1.3rem;
  z-index: 2;
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
}
.vs-space__label h3 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.vs-space__label h3 em {
  font-variation-settings: "opsz" 72, "WONK" 1;
  color: var(--olive-soft);
}
.vs-space__label small {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-soft);
  white-space: nowrap;
}

/* 12-col layout: 4 tiles, asymmetric */
.vs-space--lg { grid-column: span 7; height: 480px; }
.vs-space--md { grid-column: span 5; height: 480px; }
.vs-space--sm { grid-column: span 4; height: 360px; }

@media (max-width: 900px) {
  .vs-space--lg, .vs-space--md, .vs-space--sm { grid-column: span 12; height: 320px; }
}

/* -- stats / at-a-glance -- */
.vs-glance {
  background: var(--paper);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  border-block: 1px solid rgba(31,26,22,0.06);
}
.vs-glance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.vs-glance__item {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(31,26,22,0.12);
}
.vs-glance__item:last-child { border-right: none; }
.vs-glance__num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--oxblood);
}
.vs-glance__num em {
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--olive-deep);
}
.vs-glance__label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 0.4rem;
}
@media (max-width: 800px) {
  .vs-glance__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .vs-glance__item:nth-child(2) { border-right: none; }
}

/* -- gallery w/ tag filter -- */
.vs-gallery {
  padding-block: var(--section-pad);
  background: var(--bone);
}
.vs-gallery__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 3rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.vs-gallery__head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
}
.vs-gallery__tags {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.vs-tag {
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(31,26,22,0.18);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.vs-tag:hover { border-color: var(--oxblood); }
.vs-tag.is-active {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--olive-soft);
}
.vs-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.8rem;
  grid-auto-rows: 180px;
}
.vs-gallery__tile {
  overflow: hidden;
  border-radius: var(--r-s);
  position: relative;
}
.vs-gallery__tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.vs-gallery__tile:hover img { transform: scale(1.03); }

/* -- amenities -- */
.vs-amen {
  padding-block: var(--section-pad);
  background: var(--cream);
}
.vs-amen__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.vs-amen__title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 350;
}
.vs-amen__list {
  columns: 2;
  column-gap: 3rem;
  list-style: none;
}
.vs-amen__list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(31,26,22,0.1);
  display: flex; align-items: center; gap: 0.9rem;
  break-inside: avoid;
  font-size: 1rem;
  color: var(--charcoal);
}
.vs-amen__list li::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive-deep);
  flex: 0 0 6px;
}
@media (max-width: 900px) {
  .vs-amen__grid { grid-template-columns: 1fr; gap: 2rem; }
  .vs-amen__list { columns: 1; }
}

/* -- location w/ dark moody block -- */
.vs-loc {
  padding-block: var(--section-pad);
  background: var(--oxblood);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.vs-loc__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.vs-loc__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 350;
  color: var(--bone);
}
.vs-loc__body {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: rgba(244,239,230,0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}
.vs-loc__places {
  margin-top: 2rem;
  display: grid; gap: 0.6rem;
}
.vs-loc__place {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(244,239,230,0.12);
}
.vs-loc__place strong {
  font-family: var(--display);
  font-weight: 350;
  font-size: 1.15rem;
  color: var(--bone);
}
.vs-loc__place small {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.vs-loc__map {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--burgundy-soft);
}
.vs-loc__map img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.65;
  filter: saturate(0.9);
}
.vs-loc__pin {
  position: absolute; top: 38%; left: 55%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--olive-soft);
  box-shadow: 0 0 0 8px rgba(158,156,92,0.28), 0 0 0 20px rgba(158,156,92,0.15);
  animation: pulsePin 2.6s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.vs-loc__pin img {
  width: 38px; height: 38px; object-fit: contain;
  filter: none;
  opacity: 1;
}
@keyframes pulsePin {
  0%, 100% { box-shadow: 0 0 0 8px rgba(158,156,92,0.28), 0 0 0 20px rgba(158,156,92,0.10); }
  50% { box-shadow: 0 0 0 14px rgba(158,156,92,0.22), 0 0 0 30px rgba(158,156,92,0.06); }
}
@media (max-width: 900px) {
  .vs-loc__grid { grid-template-columns: 1fr; }
}

/* -- reserve CTA -- */
.vs-reserve {
  padding-block: var(--section-pad);
  background: var(--bone);
  text-align: center;
}
.vs-reserve__title {
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-weight: 300;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.vs-reserve__sub {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  color: var(--smoke);
  font-size: 1.05rem;
}
.vs-reserve__cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  background: var(--oxblood);
  color: var(--olive-soft);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 500; font-size: 1rem;
  border: none; cursor: pointer;
  transition: background .25s, transform .25s;
}
.vs-reserve__cta:hover { background: var(--burgundy-soft); transform: translateY(-2px); }

/* -- footer -- */
.vs-foot {
  background: var(--burgundy-deep);
  color: var(--bone);
  padding: 4.5rem 0 2.5rem;
}
.vs-foot__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244,239,230,0.1);
}
.vs-foot__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.vs-foot__brand-mark { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.vs-foot__brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.vs-foot__brand-name { font-family: var(--display); font-size: 1.25rem; color: var(--olive-soft); }
.vs-foot__tagline { color: rgba(244,239,230,0.55); font-size: 0.95rem; max-width: 22rem; }
.vs-foot h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin-bottom: 1rem;
}
.vs-foot ul { list-style: none; display: grid; gap: 0.5rem; }
.vs-foot li a {
  color: rgba(244,239,230,0.75);
  font-size: 0.92rem;
  transition: color .2s;
}
.vs-foot li a:hover { color: var(--bone); }
.vs-foot__bot {
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem;
  color: rgba(244,239,230,0.4);
  letter-spacing: 0.05em;
}

@media (max-width: 800px) {
  .vs-foot__top { grid-template-columns: 1fr 1fr; }
}
