:root {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-light: #fbf8f1;
  --ink: #272720;
  --muted: #625b51;
  --line: #dcd0bf;
  --bronze: #8a482f;
  --bronze-dark: #6d3220;
  --green: #304b37;
  --red: #7a4137;
  --dark: #252821;
  --header-height: 88px;
  --sans: Aptos, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid #a95b35; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }

.wrap { width: min(1376px, calc(100% - 8vw)); margin-inline: auto; }
.header { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-size: .93rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.wordmark img { width: 46px; height: 46px; object-fit: cover; }
.main-nav { display: flex; align-items: center; gap: clamp(15px, 2.3vw, 36px); }
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--bronze-dark); }
.header-book { border: 1px solid #947862; padding: 10px 15px; text-decoration: none; white-space: nowrap; }
.header-book:hover { background: #eee3d3; }

.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 76px); align-items: start; padding-block: clamp(24px, 2vw, 32px) clamp(40px, 4vw, 64px); }
.opening { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--bronze-dark); font-size: .86rem; font-weight: 650; }
.opening span, .bath-dot { display: inline-block; width: .64rem; height: .64rem; border-radius: 50%; background: currentColor; flex: none; }
.opening span { background: var(--red); }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; }
.hero h1 { margin: 0; font-size: clamp(3.5rem, 5.5vw, 6rem); font-weight: 380; line-height: .96; letter-spacing: -.052em; }
.hero-lead { margin: 26px 0 25px; color: var(--muted); max-width: 34rem; font-size: clamp(1.02rem, 1.45vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button { display: inline-flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 17px; min-height: 46px; color: white; text-decoration: none; font-weight: 620; transition: background-color .18s ease; }
.primary { min-height: 52px; background: var(--bronze); }
.primary:hover { background: var(--bronze-dark); }
.plain-link { text-underline-offset: 5px; }
.plain-link:hover { color: var(--bronze-dark); }
.hero-location { margin: 27px 0 0; color: var(--muted); font-size: .90rem; }

.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-photo { display: block; aspect-ratio: 3/4; min-width: 0; position: relative; overflow: hidden; text-decoration: none; background: #d8c2a6; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transition: transform .45s ease; }
.hero-photo.red img { object-position: 48% 50%; }
.hero-photo:hover img { transform: scale(1.035); }
.hero-photo > span { position: absolute; display: flex; gap: 8px; align-items: center; justify-content: space-between; inset: auto 12px 12px; padding: 9px 12px; background: var(--bath-color); color: white; font-weight: 620; }
.green { --bath-color: var(--green); }
.red { --bath-color: var(--red); }

.section { padding-block: clamp(58px, 7.5vw, 108px); }
.baths, .contacts { background: var(--paper-light); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 48px; margin-bottom: 34px; }
.section h2 { margin: 0; font-size: clamp(2.4rem, 4.4vw, 4.5rem); line-height: 1.07; letter-spacing: -.052em; }
.section-heading > p { margin: 0; max-width: 24rem; color: var(--muted); }

.bath-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.bath-card { min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.bath-image { width: 100%; aspect-ratio: 16/8.1; max-height: 332px; object-fit: cover; object-position: center 50%; }
.bath-image.red-interior { object-position: center 46%; }
.bath-body { flex: 1; padding: clamp(20px, 3vw, 42px); display: flex; flex-direction: column; }
.bath-body h3 { margin: 0 0 13px; font-size: clamp(1.85rem,3vw,3.25rem); line-height: 1.12; color: var(--bath-color); letter-spacing: -.039em; }
.bath-body h3 .bath-dot { vertical-align: middle; margin-right: 5px; }
.bath-body > p { margin: 0 0 22px; color: var(--muted); }
.price { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.price strong { white-space: nowrap; font: 400 clamp(1.5rem, 2.7vw, 2.65rem)/1.08 var(--sans); }
.price > span { font-size: .94rem; color: var(--muted); }
.rate-details { margin: 14px 0 0; font-size: .94rem; }
.rate-details div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1px 16px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.rate-details dt { color: var(--muted); }
.rate-details dd { margin: 0; font-weight: 600; }
.card-actions { margin-top: 20px; }
@media (min-width: 681px) {
  .bath-grid { row-gap: 0; }
  .bath-card, .bath-body, .rate-details { display: grid; grid-template-rows: subgrid; }
  .bath-card { grid-row: span 9; }
  .bath-body { grid-row: span 8; }
  .rate-details { grid-row: span 3; }
}
.bath-button { background: var(--bath-color); }
.bath-button:hover { background: var(--dark); }
.bath-extra { color: var(--muted); margin: 24px 0 0; }

.gallery-heading { margin-bottom: 22px; }
.gallery-switch { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.gallery-switch button { padding: 9px 15px; min-height: 43px; border: 1px solid var(--line); background: var(--paper-light); cursor: pointer; }
.gallery-switch button .bath-dot { color: var(--bath-color); margin-right: 6px; }
.gallery-switch button[aria-pressed="true"] { color: white; background: var(--bath-color); border-color: var(--bath-color); }
.gallery-switch button[aria-pressed="true"] .bath-dot { color: white; }
.gallery-panel { margin-top: 22px; }
.gallery-panel + .gallery-panel { margin-top: 38px; }
.gallery-panel h3 { margin: 0 0 15px; font-size: clamp(1.45rem, 2.3vw, 2.15rem); color: var(--bath-color); }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.photo-tile { min-width: 0; aspect-ratio: 5/4; display: block; position: relative; overflow: hidden; background: #ded0bd; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; transition: transform .35s ease; }
.photo-tile.facade img { object-position: center 43%; }
.photo-tile:hover img { transform: scale(1.03); }
.photo-title { position: absolute; inset: auto 0 0; padding: 22px 12px 9px; display: flex; justify-content: space-between; gap: 8px; color: white; background: linear-gradient(transparent,#18170eea); font-weight: 600; }

.tour-section { background: var(--dark); color: var(--paper-light); }
.tour-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(26px,5.8vw,88px); align-items: center; }
.tour-video { margin: 0; }
.tour-video video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #131510; }
.tour-video figcaption { color: #d8cdbd; font-size: .87rem; margin-top: 8px; }
.tour-overline { color: #e0ba82; font-weight: 650; margin: 0 0 14px; }
.tour-copy > p:not(.tour-overline) { margin: 18px 0 24px; color: #e0d7c8; }
.tour-button { border: 1px solid #ddbb8e; }
.tour-button:hover { background: #534330; }

.contact-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: clamp(24px,7vw,88px); }
.contact-grid p { color: var(--muted); margin: 14px 0; }
.phone { font-size: clamp(1.28rem,2.25vw,2.2rem); text-underline-offset: 6px; white-space: nowrap; }
.address { border-left: 1px solid var(--line); padding-inline-start: clamp(20px,4vw,56px); }
.address h3 { margin: 0; font-size: 1.7rem; }
.footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 34px; color: var(--muted); font-size: .88rem; }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: white;
  background: #151512;
}
.lightbox::backdrop { background: #151512; }
.lightbox-inner { position: relative; width: 100%; height: 100%; }
.lightbox figure { width: 100%; height: 100%; margin: 0; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 16px calc(12px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  pointer-events: none;
}
.lightbox button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(20, 20, 17, .73);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: #25251f; }
.lightbox button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.close-photo { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); }
.previous-photo, .next-photo { top: 50%; transform: translateY(-50%); }
.previous-photo { left: calc(10px + env(safe-area-inset-left, 0px)); }
.next-photo { right: calc(10px + env(safe-area-inset-right, 0px)); }

@media (min-width: 901px) and (orientation: landscape) {
  .header.wrap, .hero { width: min(100rem, 92%); }
  .hero {
    --control-inset: 20px;
    grid-template-columns: minmax(25rem, 2fr) minmax(0, 3fr);
    gap: 0 clamp(24px, 3vw, 56px);
  }
  .hero-copy { display: contents; }
  .hero-intro {
    grid-area: 1 / 1;
    align-self: end;
    padding-bottom: var(--control-inset);
  }
  .hero-location { grid-area: 2 / 1; margin: 10px 0 0; }
  .hero-photos {
    grid-area: 1 / 2;
    align-self: stretch;
    min-height: clamp(29rem, min(34vw, 65vh), 37rem);
  }
  .hero-photo { aspect-ratio: auto; }
  .hero-photo img { position: absolute; inset: 0; }
  .hero-photo > span {
    inset: auto auto var(--control-inset) var(--control-inset);
    min-width: 9rem;
    min-height: 52px;
  }
  .hero-photo:focus-visible { outline-offset: -4px; z-index: 1; }
}

@media (max-width: 900px) {
  .header { flex-wrap: wrap; gap: 10px 16px; padding-block: 13px 0; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 10px; gap: 8px; font-size: .9rem; }
  .hero { gap: 22px; }
  .hero h1 { font-size: clamp(3.1rem,6vw,4rem); }
  .hero-lead { margin-top: 20px; }
  .hero-photo > span { inset: auto 6px 6px; padding: 7px; font-size: .87rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; padding-block: 22px 40px; }
  .hero h1 { font-size: clamp(3rem,10.5vw,4.5rem); }
  .opening { margin-bottom: 17px; }
  .hero-lead { margin-block: 17px 18px; }
  .hero-location { margin-top: 17px; }
  .hero-photo { aspect-ratio: 4/4.65; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 10px; }
  .bath-grid, .tour-grid, .contact-grid { grid-template-columns: 1fr; }
  .bath-image { max-height: 260px; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .photo-tile { aspect-ratio: 4/4.3; }
  .photo-title { font-size: .82rem; padding-inline: 8px; }
  .tour-copy { grid-row: 1; }
  .address { border-top: 1px solid var(--line); border-left: 0; padding: 17px 0 0; }
}
@media (max-width: 420px) {
  .header-book { font-size: .83rem; padding-inline: 9px; }
  .wordmark { letter-spacing: .09em; gap: 8px; font-size: .83rem; }
  .main-nav { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
