/* Apartments page. The arched doorway picks up where the arrival animation's door closes. */

/* ---------- Hero ---------- */
.stay-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 7vw, 120px);
  padding-block: clamp(120px, 16vh, 170px) clamp(80px, 10vw, 140px);
}
.back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; margin-bottom: clamp(26px, 3vw, 40px); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); font-size: .88rem; transition: color .25s, box-shadow .25s; }
.back:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.back svg { width: 13px; height: 13px; }
.stay-hero h1 { font: 400 clamp(4rem, 8.6vw, 9.2rem)/.88 var(--serif); letter-spacing: -.06em; }
.stay-hero h1 em { color: var(--signal); }
.stay-hero-copy > p { max-width: 38ch; margin-top: clamp(20px, 2.4vw, 32px); color: var(--soft); font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.6; }

.arch { justify-self: center; width: min(100%, 470px); }
.arch-frame {
  --arch: 50% 50% 0 0 / 40% 40% 0 0;
  position: relative; padding: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) 0; border-radius: var(--arch);
  background: linear-gradient(#e2dacb, #d3c9b6); box-shadow: inset 0 2px 0 rgb(255 255 255 / .6), 0 40px 60px -40px rgb(40 36 25 / .6);
}
.arch-window { position: relative; overflow: hidden; border-radius: var(--arch); aspect-ratio: 4 / 5; perspective: 1400px; background: #b8a68a; }
.arch-window img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; animation: settle 2.4s .5s var(--ease) both; }
@keyframes settle { to { scale: 1; } }
.door {
  position: absolute; inset: 0; border-radius: var(--arch); transform-origin: 100% 50%;
  background: linear-gradient(100deg, #7b846d, #6d775f); border: 2px solid #5c6851;
  animation: open-door 1.7s .45s cubic-bezier(.55, .05, .2, 1) both;
}
.door::before { content: ""; position: absolute; inset: 16% 12% 7%; border: 1px solid rgb(255 255 255 / .22); border-radius: var(--arch); }
.door::after { content: ""; position: absolute; left: 9%; top: 56%; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4dca4, #b8945a); box-shadow: 0 2px 3px rgb(0 0 0 / .3); }
@keyframes open-door { to { transform: rotateY(-82deg); } }
.threshold { height: 12px; margin-inline: -14px; border-radius: 3px; background: linear-gradient(#cfc4ae, #b9ad94); box-shadow: 0 14px 24px -14px rgb(40 36 25 / .6); }
.arch figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--soft); }
.arch figcaption b { color: var(--ink); font: italic 400 1.15rem/1.2 var(--serif); letter-spacing: -.02em; text-transform: none; }

/* ---------- Apartments ---------- */
.stays-list { position: relative; z-index: 1; padding-bottom: calc(clamp(80px, 10vw, 140px) + var(--radius)); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.section-head h2 { font: 400 clamp(2.8rem, 5vw, 5.2rem)/1 var(--serif); letter-spacing: -.055em; }
.section-head h2 span { color: var(--signal); }
.section-head .mono { color: var(--soft); }
.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.stay-card a {
  display: flex; flex-direction: column; height: 100%; padding: 10px; border-radius: 26px; background: var(--card);
  box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 24px 44px -32px rgb(40 40 25 / .5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stay-card a:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 40px 60px -36px rgb(40 40 25 / .55); }
.stay-card-photo { position: relative; overflow: hidden; border-radius: 18px; }
.stay-card-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale .9s var(--ease); }
.stay-card a:hover img { scale: 1.045; }
.stay-card-photo span { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: rgb(255 252 244 / .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stay-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 12px 6px; }
.stay-card h3 { font: 400 clamp(1.7rem, 2.3vw, 2.4rem)/1.04 var(--serif); letter-spacing: -.045em; }
.role { align-self: flex-start; margin-top: 14px; padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
.stay-card-body > p:not(.role) { margin: 14px 0 22px; color: var(--soft); line-height: 1.55; }
.stay-card-cta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.stay-card-cta i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); transition: rotate .5s var(--ease), background .3s; }
.stay-card-cta svg { width: 12px; height: 12px; }
.stay-card a:hover .stay-card-cta i { rotate: 45deg; background: var(--signal); }

/* ---------- Guestbook ---------- */
.guestbook {
  --fg: var(--cream); --on-fg: var(--night);
  position: relative; z-index: 2; margin-top: calc(var(--radius) * -1); border-radius: var(--radius) var(--radius) 0 0;
  background: var(--night); color: var(--cream);
  padding-block: clamp(90px, 11vw, 150px) calc(clamp(90px, 11vw, 150px) + var(--radius));
}
.guestbook h2 { font: 400 clamp(2.8rem, 5vw, 5.2rem)/1 var(--serif); letter-spacing: -.055em; }
.guestbook h2 span { color: #ff8b67; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
.quotes figure { position: relative; padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; background: rgb(243 238 226 / .05); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .1); }
.quote-mark { display: block; height: .55em; color: #ff8b67; font: 400 clamp(5rem, 8vw, 8rem)/1 var(--serif); }
.quotes blockquote { margin: 0; font: 400 clamp(2rem, 3.6vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.045em; }
.quotes figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: clamp(24px, 3vw, 40px); padding-top: 18px; border-top: 1px solid rgb(243 238 226 / .14); color: #a9ab9f; font-size: .92rem; }
.quotes figcaption strong { color: var(--cream); font-weight: 600; }
.quotes figcaption a { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(243 238 226 / .35); }
.quotes figcaption a:hover { color: #ff8b67; }

/* ---------- The room key band ---------- */
.key-band {
  position: relative; z-index: 3; margin-top: calc(var(--radius) * -1); border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg); color: var(--fg); padding-bottom: var(--radius);
}
.key-band-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 100px); padding-block: clamp(70px, 9vw, 120px); }
.key-band h2 { font: 400 clamp(3rem, 6vw, 6.2rem)/.92 var(--serif); letter-spacing: -.055em; }
.key-band p { max-width: 38ch; margin-top: 22px; font: 400 clamp(1.25rem, 1.7vw, 1.6rem)/1.32 var(--serif); letter-spacing: -.02em; }
.key-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; rotate: -4deg; }
.site-foot { margin-top: calc(var(--radius) * -1); }

@media (max-width: 899px) {
  .stay-hero, .key-band-inner { grid-template-columns: 1fr; }
  .arch { width: min(100%, 400px); }
  .stay-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stay-card-photo img { aspect-ratio: 5 / 4; }
  .quotes { grid-template-columns: 1fr; }
  .key-band-inner { gap: 0; }
  .key-band img { width: min(100%, 520px); justify-self: center; }
}
@media (max-width: 640px) {
  .stay-hero { padding-top: 104px; }
  .stay-hero h1 { font-size: clamp(3.6rem, 17vw, 5rem); }
  .arch { width: 84%; }
  .quotes figcaption a { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .door { display: none; }
  .arch-window img { scale: 1; }
}
