/* ═══════════════════════════════════════════════════════════════
   Stay packages — builds on stays-base.css (tokens, nav, buttons, sections)
   ═══════════════════════════════════════════════════════════════ */
.page-stays { background: var(--cream); color: var(--olive-d); }

/* ── Hero ───────────────────────────────────────── */
.stays-hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff8ec;
  background: var(--forest);
}
.stays-hero__bg { position: absolute; inset: 0; }
.stays-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s var(--ease-out), transform 8s linear;
}
.stays-hero__bg img.is-on { opacity: 1; transform: scale(1.02); }
.stays-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 22, 16, 0.92) 0%, rgba(15, 22, 16, 0.55) 40%, rgba(40, 30, 60, 0.25) 75%, rgba(91, 90, 143, 0.35) 100%),
    radial-gradient(70% 60% at 80% 100%, rgba(255, 193, 160, 0.35), transparent 70%);
}
.stays-hero__inner { position: relative; padding-top: 140px; padding-bottom: clamp(40px, 7vh, 72px); width: 100%; }
.stays-hero .eyebrow { color: rgba(255, 248, 236, 0.8); }
.stays-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--butter);
}
.stays-hero__lead { max-width: 46ch; margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; }
.stays-hero__facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stays-hero__facts li {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(23, 35, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stays-hero__facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--butter); }
.stays-hero__facts span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 248, 236, 0.78); }

/* ── Sticky filter bar ──────────────────────────── */
.filters {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 242, 216, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 64, 11, 0.12);
}
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters__label { margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.filters button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(59, 64, 11, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--olive-d);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { border-color: var(--olive); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--butter); }
.filters__count { margin-left: auto; font-family: var(--display); font-size: 15px; }

/* ── Stay cards ─────────────────────────────────── */
.stays { display: grid; gap: clamp(56px, 8vw, 110px); padding: clamp(56px, 8vw, 110px) 0; }
.stays__empty { padding: 0 0 100px; text-align: center; font-size: 18px; }
.stays__empty .btn { margin-top: 14px; }
.stay {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.stay.is-hidden, .compare tr.is-hidden { display: none; }
.stay:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.stay:nth-child(even) .stay__gallery { order: 2; }
.stay::before {
  content: var(--n);
  position: absolute;
  top: -0.55em;
  right: 0;
  font-family: var(--display);
  font-size: clamp(90px, 12vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 64, 11, 0.16);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.5s var(--ease-out);
}
/* brighten the big outline number while the card is hovered */
.stay:hover::before { -webkit-text-stroke-color: rgba(59, 64, 11, 0.34); }
.stay:nth-child(even)::before { right: auto; left: 0; }
.stay__gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: var(--forest);
  box-shadow: 0 40px 80px rgba(40, 46, 10, 0.18);
  touch-action: pan-y;
  user-select: none;
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
/* Home-style hover lift */
.stay__gallery:hover { transform: translateY(-8px); box-shadow: 0 54px 100px rgba(40, 46, 10, 0.28); }
.stay__frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s var(--ease-out), transform 1.6s var(--ease-out);
  pointer-events: none;
}
.stay__frames img.is-on { opacity: 1; transform: scale(1); }
.stay__gallery:hover .stay__frames img.is-on { transform: scale(1.03); }
.stay__nav, .stay__zoom {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 251, 239, 0.92);
  color: var(--forest);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.stay__nav { top: 50%; margin-top: -22px; }
.stay__nav--prev { left: 16px; }
.stay__nav--next { right: 16px; }
.stay__zoom { top: 16px; right: 16px; }
.stay__gallery:hover .stay__nav, .stay__gallery:hover .stay__zoom, .stay__gallery:focus-within .stay__nav, .stay__gallery:focus-within .stay__zoom { opacity: 1; }
.stay__nav:hover, .stay__zoom:hover { transform: scale(1.08); }
.stay__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; }
.stay__dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); transition: width 0.4s var(--ease-out), background 0.3s; }
.stay__dots i.is-on { width: 22px; background: var(--butter); }
.stay__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 35, 26, 0.7);
  backdrop-filter: blur(8px);
  color: var(--butter);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stay__info { position: relative; }
.stay__kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.stay__kicker span { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(59, 64, 11, 0.25); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.stay__kicker .pass { border-color: transparent; background: var(--olive); color: #f7f7e4; }
.stay h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.04; text-transform: uppercase; }
.stay__tagline { margin: 14px 0 0; max-width: 40ch; font-size: 17px; line-height: 1.55; }
.stay__specs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.stay__specs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(59, 64, 11, 0.14); font-size: 15px; }
.stay__specs svg { flex: none; width: 24px; height: 24px; color: var(--olive); }
.stay__extra { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 14px; line-height: 1.5; }
.stay__extra b { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.stay__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ── Compare ────────────────────────────────────── */
.compare-wrap { margin-top: clamp(32px, 4vw, 56px); overflow-x: auto; border-radius: 24px; border: 1px solid rgba(245, 242, 216, 0.12); }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid rgba(245, 242, 216, 0.1); }
.compare td { white-space: nowrap; }
.compare thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); background: rgba(245, 242, 216, 0.04); }
.compare tbody th a { font-family: var(--display); font-weight: 400; font-size: 16px; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.compare tbody th a:hover { color: var(--butter); }
.compare tbody th small { display: block; margin-top: 4px; font-size: 12px; color: rgba(245, 242, 216, 0.55); }
.compare tbody tr { transition: background 0.3s; }
.compare tbody tr:hover { background: rgba(245, 242, 216, 0.05); }
.compare .yes { color: var(--butter); }
.compare .no { opacity: 0.4; }

/* ── Included + reserve ─────────────────────────── */
.included { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.included li { padding: 24px; border-radius: 20px; background: var(--paper); border-top: 6px solid var(--olive); }
.included b { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; text-transform: uppercase; }
.included span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.reserve {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: var(--forest);
  color: var(--cream);
}
.reserve h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); text-transform: uppercase; color: var(--butter); }
.reserve p { margin: 10px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.55; color: rgba(245, 242, 216, 0.8); }
.reserve .btn--solid { background: var(--butter); color: var(--forest); }
.reserve .btn--line-dark { border-color: rgba(245, 242, 216, 0.4); color: var(--cream); }

/* ── Lightbox with arrows ───────────────────────── */
.lightbox img { max-width: min(1400px, 90vw); max-height: 82vh; object-fit: contain; }
.lightbox .lightbox__prev, .lightbox .lightbox__next { top: 50%; right: auto; margin-top: -24px; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lightbox .lightbox__prev { left: 22px; }
.lightbox .lightbox__next { left: auto; right: 22px; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 14px; color: rgba(245, 242, 216, 0.75); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1080px) {
  .included { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .stay, .stay:nth-child(even) { grid-template-columns: 1fr; }
  .stay:nth-child(even) .stay__gallery { order: 0; }
  .stay::before, .stay:nth-child(even)::before { top: auto; bottom: 100%; right: 0; left: auto; font-size: 80px; transform: translateY(40%); }
  .stay__nav, .stay__zoom { opacity: 1; width: 38px; height: 38px; }
  .stay__specs { grid-template-columns: 1fr 1fr; }
  .stay__specs li { font-size: 14px; }
  .filters__row { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .filters__group { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .filters button { flex: none; height: 34px; padding: 0 13px; font-size: 13px; }
  .filters__count { display: none; }
  .reserve { grid-template-columns: 1fr; }
  .stays-hero__facts li { padding: 10px 14px; }
  .stays-hero__facts b { font-size: 16px; }
}
@media (max-width: 560px) {
  .included { grid-template-columns: 1fr; }
  .stay__specs { grid-template-columns: 1fr; }
  .stay__ctas .btn { width: 100%; justify-content: center; }
}
