/* Layout: marble-and-granite lobby. Rooms sit on a checkerboard of photo and text squares, echoing the lobby floor. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --marble: #131417;
    --marble-deep: #1B1D22;
    --granite: #0C0D0F;
    --granite-soft: #1D2026;
    --brass: #CDA85F;
    --curtain: #4F74D8;
    --on-curtain: #0C0D0F;
    --fg: #ECEDEF;
    --fg-muted: #A8ADB6;
    --line: #2C3037;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --marble: #131417;
  --marble-deep: #1B1D22;
  --granite: #0C0D0F;
  --granite-soft: #1D2026;
  --brass: #CDA85F;
  --curtain: #4F74D8;
  --on-curtain: #0C0D0F;
  --fg: #ECEDEF;
  --fg-muted: #A8ADB6;
  --line: #2C3037;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--marble);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

body::before {
  height: env(safe-area-inset-top, 0px);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brass-on-dark);
  outline-offset: 3px;
}

.inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  max-width: 62ch;
}

/* header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);
  padding-inline: var(--gutter) var(--gutter-r);
  color: var(--on-dark);
}

.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.mark {
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  color: var(--on-dark);
}

.mark span {
  color: var(--brass-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  padding-block: 0.5rem;
}

.nav a:hover {
  color: var(--on-dark);
}

.nav a.btn {
  color: var(--on-curtain);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  background: var(--curtain);
  color: var(--on-curtain);
  padding: 0.75rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-align: center;
}

.btn.ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(240,241,242,0.55);
}

.btn.ghost:hover {
  background: rgba(240,241,242,0.1);
  filter: none;
}

/* hero */
.hero picture, .hero .shot {
  position: absolute;
  inset: 0;
}

.hero .shot img {
  animation: settle 2.4s ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero p {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--on-dark);
  max-width: 46ch;
}

.hero .actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

.floor {
  height: 1.75rem;
  margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);
  background: repeating-conic-gradient(var(--granite) 0 25%, var(--marble-deep) 0 50%) 0 0 / 1.75rem 1.75rem;
}

/* sections */
.rooms-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.beds {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass);
}

/* amenities (index.html) */
/* location + contact */
.split {
  align-items: stretch;
}

.split > * {
  min-width: 0;
}

.place {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.addr {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.5;
}

.place .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.contact {
  background: var(--granite);
  color: var(--on-dark);
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.contact h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.contact p {
  color: var(--on-dark-muted);
}

.phone {
  color: inherit;
  text-decoration: none;
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.contact .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

footer {
  background: var(--granite);
  color: var(--on-dark-muted);
  margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);
  padding-inline: var(--gutter) var(--gutter-r);
}

footer .inner {
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 899px) {
  .rooms-head {
    margin-bottom: 1.25rem;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(12,13,15,0.55) 0%, rgba(12,13,15,0.86) 100%);
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 16px;
  }
  .nav a:not(.btn) {
    font-size: 0.85rem;
  }
  .top .inner {
    min-height: 3.5rem;
    gap: 0.5rem 1rem;
    padding-block: 0.4rem;
  }
  .mark {
    font-size: 1.25rem;
  }
  .nav a.btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
  .search {
    padding: 0.9rem;
  }
  .search input, .search select {
    padding-inline: 0.5rem;
    min-width: 0;
  }
}

/* --- booking search (feeds RMS URL modifiers) --- */
.search label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.search input, .search select {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .search input, :root:not([data-theme="light"]) .search select {
    background: var(--marble-deep);
  }
}

.hero .below {
  display: flex;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.hero .below a {
  padding-block: 0.5rem;
}

/* room perks */
.perks {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perks li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
}

/* rooms gallery */
.room:nth-child(even) .gal {
  order: 2;
}

.room.dark {
  background: var(--granite);
  color: var(--on-dark);
}

.room.light {
  background: var(--marble-deep);
}

.room.dark p, .room.dark .units {
  color: var(--on-dark-muted);
}

.room.dark .beds {
  color: var(--brass-on-dark);
}

.room .beds {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass);
}

.room .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.room h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.gal {
  position: relative;
  min-width: 0;
  background: var(--granite-soft);
}

.gal .main {
  touch-action: pan-y;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--marble-deep);
  cursor: zoom-in;
  overflow: hidden;
}

.gal .main img {
  transition: opacity .25s;
}

.gal .nav {
  position: absolute;
  top: calc((100% - var(--thumbh, 4.5rem)) / 2);
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(12,13,15,.62);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 .2rem;
}

.gal .nav:hover {
  background: rgba(12,13,15,.85);
}

.gal .prev {
  left: 10px;
}

.gal .next {
  right: 10px;
}

.thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  background: var(--granite);
  scrollbar-width: thin;
}

.th {
  flex: 0 0 auto;
  width: 5.5rem;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  opacity: .6;
  overflow: hidden;
}

.th.on {
  opacity: 1;
  border-color: var(--brass-on-dark);
}

.th:hover {
  opacity: 1;
}

.lb {
  touch-action: pan-y;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8,9,11,.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lb.open {
  display: flex;
}

.lb-stage {
  width: 80vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.lb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(80vh - 3rem);
  object-fit: contain;
}

.lb button {
  position: absolute;
  background: rgba(240,241,242,.14);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.7rem;
  cursor: pointer;
}

.lb .cap {
  text-align: center;
  color: #ECEDEF;
  font-size: .9rem;
  line-height: 1.4;
  min-height: 2.6em;
  max-width: 80vw;
  padding: .5rem 1rem;
  border-radius: 8px;
  background: rgba(12,13,15,.9);
}

@media (max-width: 899px) {
  .room {
    grid-template-columns: 1fr;
  }
  .room:nth-child(even) .gal {
    order: 0;
  }
  .th {
    width: 4.5rem;
  }
}

/* facilities groups */
.facs {
  margin-top: 2.25rem;
  display: grid;
}

.finfo p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 1rem;
}

.photos.n1 {
  grid-template-columns: 1fr;
}

.photos.n2 {
  grid-template-columns: 1fr 1fr;
}

.photos.n3 {
  grid-template-columns: repeat(3, 1fr);
}

.photos figure {
  margin: 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.photos.n1 figure {
  aspect-ratio: 16 / 9;
}

@media (max-width: 899px) {
  .facilities .inner {
    max-width: 40rem;
    margin-inline: auto;
  }
  .facs {
    max-width: 40rem;
    margin-inline: auto;
  }
  .fac {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .photos {
    width: 100%;
  }
  .photos.n3 {
    grid-template-columns: 1fr 1fr;
  }
  .photos.n3 figure:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero .shot img {
    animation: none;
  }
}

/* ---- merged from booking.css ---- */
/* Styles for stay.html, book.html and success.html. Shared base styles are in styles.css. */
.band.narrow {
  padding-top: clamp(2rem, 6vw, 3.5rem);
}

.band.narrow h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.msg {
  margin-top: 12px;
  color: var(--fg-muted);
  min-height: 1.5em;
}

.card {
  background: var(--marble-deep);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 2px;
}

.card h1 {
  margin-bottom: 14px;
}

.card p {
  margin-top: 8px;
}

.card .btn {
  display: inline-block;
}

.notice[hidden] {
  display: none;
}

/* compact search on the results page */
.search.small {
  margin-top: 18px;
  max-width: 100%;
}

.search.small button {
  min-width: 8rem;
  align-self: end;
}

/* results */
.avail-list {
  margin-top: 22px;
  display: grid;
}

.avail .beds {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass);
  margin-top: 4px;
}

.avail .perks {
  margin-top: 10px;
}

.avail-buy {
  justify-items: end;
}

.avail-buy .price {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.avail-buy .was-price {
  color: var(--fg-muted);
  font-size: 0.95rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.avail-buy .btn {
  margin-top: 6px;
}

.avail-buy .unavail {
  color: var(--fg-muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .avail {
    grid-template-columns: 1fr;
  }
  .avail-buy {
    text-align: left;
    justify-items: start;
    min-width: 0;
  }
}

/* booking page */
.summary h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.summary .meta {
  color: var(--fg-muted);
  margin-top: 4px;
}

.summary .total-line {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-top: 14px;
}

.summary .err {
  color: #9b1c1c;
  font-weight: 600;
  margin-top: 12px;
}

@media (max-width: 899px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  color: var(--fg);
  background: var(--marble);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.check input {
  margin-top: 4px;
}

#bookform .btn.full {
  width: 100%;
  margin-top: 18px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

#bookform .btn.full:disabled {
  opacity: 0.6;
  cursor: wait;
}

.err {
  color: #9b1c1c;
  font-weight: 600;
  margin-top: 12px;
  min-height: 1.2em;
}

.fine {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 10px;
}

/* modern refresh: softer shapes, fewer hard edges, more air (applies across the site) */
:root {
  --marble: #F0F1F2;
  --marble-deep: #E2E4E7;
  --granite: #17191D;
  --granite-soft: #22252B;
  --brass: #8C6A2E;
  --brass-on-dark: #CDA85F;
  --curtain: #1B3D94;
  --on-curtain: #FFFFFF;
  --fg: #17191D;
  --fg-muted: #4D525B;
  --line: #CBCED3;
  --on-dark: #F0F1F2;
  --on-dark-muted: #B6BAC2;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(1rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1rem, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --soft-shadow: 0 10px 30px rgba(20, 22, 26, .08);
}

.btn, .btn.ghost, .btn.full {
  border-radius: var(--radius-pill);
  padding: .8rem 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s ease, filter .2s ease;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.room, .avail, .card, .contact {
  border-radius: var(--radius-lg);
}

.gal, .gal .main, .thumbs, .photos figure, .hero .shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.room {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: stretch;
  margin-block: 14px;
  box-shadow: var(--soft-shadow);
}

.room:nth-child(odd) {
  border-radius: var(--radius-lg);
}

.avail, .card, .price-box, .summary-box {
  border: 0;
  box-shadow: var(--soft-shadow);
}

.search {
  margin-top: 30px;
  background: var(--marble);
  color: var(--fg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.9rem;
  align-items: end;
  max-width: 860px;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--soft-shadow);
}

.hero .search {
  max-width: min(1100px, 100%);
  margin-top: 22px;
}

.search input, .search select, .field input, .field textarea, .field select {
  border-radius: var(--radius-md);
  border-color: transparent;
  background: var(--marble-deep);
}

.search button {
  min-height: 3rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
}

.notice {
  margin-top: 14px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-size: 0.95rem;
  border-left: 0;
  border-radius: var(--radius-md);
  background: var(--marble-deep);
}

.facilities {
  background: var(--marble-deep);
  padding-inline: var(--gutter) var(--gutter-r);
  border-radius: var(--radius-lg);
  margin-inline: 8px;
}

.band {
  padding-block: clamp(3rem, 9vw, 7rem);
}

h1, h2 {
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 10px;
  color: var(--fg-muted);
}

.avail {
  background: var(--marble-deep);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 2px;
}

.avail h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.field label, .search label {
  letter-spacing: .02em;
}

.top .nav a {
  border-radius: var(--radius-pill);
  padding: .45rem .8rem;
}

.top .nav a:hover {
  background: rgba(240, 241, 242, .08);
}

@media (max-width: 640px) {
  .avail, .card {
    padding: 1.1rem;
  }
  .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
  .g-track {
    transition: none;
  }
}

/* room page and gallery (gallery.js, room.html) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--curtain);
  color: var(--on-curtain);
  padding: 10px 14px;
  border-radius: 4px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.room-page {
  display: grid;
  gap: 24px;
}

.room-gallery {
  min-width: 0;
}

.gallery {
  position: relative;
}

.g-track {
  display: flex;
  height: 100%;
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}

.g-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
}

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

.g-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .7;
}

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

.g-thumb.is-current, .g-thumb:focus-visible {
  opacity: 1;
  border-color: var(--brass);
}

.room-info {
  display: grid;
  gap: 14px;
}

.room-head .group {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brass);
  margin: 0;
}

.room-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.room-head .beds, .room-head .guests {
  margin: 2px 0;
  color: var(--fg-muted);
}

.price-box {
  padding: 16px;
  border-radius: 16px;
  background: var(--marble-deep);
  display: grid;
  gap: 8px;
}

.price-box[hidden] {
  display: none;
}

.price-total {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0;
}

.price-note {
  margin: 0;
  font-size: .92rem;
  color: var(--fg-muted);
}

.btn-book {
  justify-self: start;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

/* Homepage hero: photo as background, video fades in over it when it can play. Text sits bottom-left. */
.hero {
  position: relative;
  margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);
  background: var(--granite);
  color: var(--on-dark);
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
}

.hero .inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 12vw, 9.5rem) clamp(2.75rem, 9vw, 7rem);
  padding-inline: var(--gutter) var(--gutter-r);
  width: 100%;
  text-align: left;
}

.hero .shot img, .hero .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero .hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero.is-live .hero-video {
  opacity: 1;
}

.hero h1 {
  hyphens: auto;
}

/* Header search bar (bar.js), on every page */
.hbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: end;
  padding: 0 0 10px;
  position: relative;
}

.hbar .hb {
  flex: 1 1 0;
}

.hbar .hb-room {
  flex: 1.5 1 0;
}

.hbar .hb-promo {
  flex: 1.2 1 0;
}

.hbar .hb-go {
  flex: 0 0 auto;
}

.hbar .hb {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: .9;
}

.hbar input, .hbar select {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: .35rem .5rem;
  font: inherit;
  font-size: .9rem;
  text-transform: none;
  letter-spacing: 0;
  color: #f0f1f2;
  background: rgba(240, 241, 242, .08);
  border: 1px solid rgba(240, 241, 242, .22);
  border-radius: 8px;
}

.hbar .hb-go {
  min-height: 2.5rem;
  width: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.hbar .hb-go svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hbar .hb-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  font-size: .85rem;
  color: #f0c36b;
}

.hbar .hb-msg:empty {
  display: none;
}

@media (max-width: 640px) {
  .hbar {
    gap: 4px;
  }
  .hbar .hb > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .hbar input, .hbar select {
    font-size: .8rem;
    padding-inline: .4rem;
  }
}

/* Room page: gallery full width on top; details on the left, price box on the right (desktop). */
.room-page > .msg:empty {
  display: none;
}

.g-viewport {
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  overflow: hidden;
  background: var(--marble-deep);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.g-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  justify-content: safe center;
}

.room-info > .price-box {
  border: 1px solid var(--line);
  box-shadow: none;
}

@media (min-width: 900px) {
  .room-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .g-viewport {
    aspect-ratio: 16 / 8;
    max-height: 560px;
  }
  .room-info {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px 48px;
    align-items: start;
  }
  .room-info > .price-box {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: 96px;
    padding: 24px;
  }
  .room-head h1 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
  }
  .unit-desc {
    font-size: .98rem;
  }
}

/* date picker (datepicker.js) */
.dp-pop {
  position: absolute;
  z-index: 60;
  background: var(--marble);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 12px;
  max-width: calc(100vw - 16px); /* as wide as the search bar (the script sets the width) */
}

.dp-pop[hidden] {
  display: none;
}

.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dp-titles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.dp-title {
  font-family: var(--display);
  font-size: 1.1rem;
}

.dp-nav {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  border-radius: 4px;
  cursor: pointer;
}

.dp-grids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.dp-grid {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
}

.dp-grid th {
  font-size: .8rem;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 4px 0;
}

.dp-grid td {
  padding: 0;
  text-align: center;
}

.dp-day {
  width: 100%;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.dp-day:hover:not(:disabled) {
  background: var(--marble-deep);
}

.dp-day:disabled {
  color: var(--fg-muted);
  opacity: .4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.dp-day.is-in-range {
  background: var(--marble-deep);
  border-radius: 0;
}

.dp-day.is-range-start,
.dp-day.is-range-end {
  font-weight: 600;
}

.dp-day.is-today {
  outline: 1px solid var(--curtain);
}

.dp-day.is-selected {
  background: var(--curtain);
  color: var(--on-curtain);
  font-weight: 600;
}

.dp-day:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.dp-hint {
  margin: 10px 0 0;
  font-size: .85rem;
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .dp-grids {
    grid-template-columns: 1fr;
  }
  .dp-day {
    min-height: 44px;
  }
}

.dp-input {
  font-size: 1.05rem;
}

/* Prices in the calendar: the day number, then the lowest nightly price (before taxes and fees). */
.dp-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}

.dp-day .dp-price {
  font-size: .66rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.dp-day.is-selected .dp-price {
  color: inherit;
}

.dp-day:disabled .dp-price {
  display: none;
}

/* Calendar pills: the rate that applies (from the stay length), guests and room type. */
.dp-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dp-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--marble-deep);
  color: var(--fg);
  font-size: .85rem;
  padding: 6px 14px;
  line-height: 1.2;
}

.dp-pill-rate {
  font-weight: 600;
}

.dp-pill-rate.is-nightly { background: var(--curtain); color: var(--on-curtain); border-color: transparent; }
.dp-pill-rate.is-weekly { background: #2f5d7c; color: #fff; border-color: transparent; }
.dp-pill-rate.is-monthly { background: #6b4a8c; color: #fff; border-color: transparent; }

.dp-pill .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* !important: the site's dark-theme rule for every select has a higher specificity. */
.dp-pop .dp-pill select {
  border: 0;
  background: transparent;
  background-image: none !important;
  appearance: auto;
  width: auto;
  height: auto;
  min-height: 0;
  font: inherit;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
  padding: 0 4px;
  max-width: 220px;
}

.dp-pill select option {
  color: var(--fg);
  background: var(--marble);
}

.dp-pill-select {
  padding: 2px 10px;
}

/* The third part of the calendar: the stay, its price, the rate bands and the code prices. */
.dp-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.dp-panel-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: .92rem;
}

.dp-panel-dates {
  font-weight: 600;
}

.dp-big {
  font-size: 1.1rem;
  font-weight: 700;
}

.dp-roomname {
  color: var(--fg-muted);
}

.dp-warn {
  color: #b5482f;
  font-weight: 600;
}

.dp-muted {
  color: var(--fg-muted);
  font-size: .85rem;
}

.dp-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dp-band {
  border-radius: 6px;
  border: 1px dashed var(--line);
  padding: 4px 10px;
  font-size: .8rem;
  color: var(--fg-muted);
}

.dp-band small {
  opacity: .8;
}

.dp-band.is-active {
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
}

.dp-band.is-nightly.is-active { background: var(--curtain); color: var(--on-curtain); }
.dp-band.is-weekly.is-active { background: #2f5d7c; }
.dp-band.is-monthly.is-active { background: #6b4a8c; }

.dp-codes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.dp-chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .82rem;
  font-weight: 600;
}

.dp-chip-promo { background: #e3f2ea; color: #1d5c3d; }
.dp-chip-member { background: #f6ecd2; color: #6b4a12; }

.dp-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.dp-search {
  border: 0;
  border-radius: 999px;
  background: var(--curtain);
  color: var(--on-curtain);
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
}

.dp-day .dp-num {
  display: block;
}

.dp-day .dp-price {
  display: block;
}

/* Stay panel: the room, each night, the fee lines and the total. */
.dp-room {
  font-weight: 600;
  margin-bottom: 6px;
}

.dp-nights {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  max-height: 96px;
  overflow-y: auto;
}

.dp-night {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .78rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.dp-night b {
  color: var(--fg);
  font-weight: 600;
}

.dp-lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  margin: 0;
  font-size: .88rem;
}

.dp-lines dt {
  color: var(--fg-muted);
}

.dp-lines dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dp-lines .dp-total {
  color: var(--fg);
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 4px;
  margin-top: 2px;
}

.dp-code-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.dp-code-input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  background: var(--marble-deep);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  text-transform: uppercase;
}

/* The bar's summary line: nights, lowest price and room, shown under the bar. */
.hbar .hb-summary {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  font-size: .85rem;
  color: inherit;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbar .hb-summary:empty {
  display: none;
}

/* Minimum stay: a day with a rule shows its reason on hover or keyboard focus, as a small dark label. */
.dp-day.has-tip {
  position: relative;
}

.dp-day.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #1f2328;
  color: #fff;
  font-size: .78rem;
  line-height: 1.3;
  padding: 6px 9px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 70;
}

.dp-day.has-tip:hover::after,
.dp-day.has-tip:focus-visible::after {
  opacity: 1;
}

.dp-grid td:first-child .dp-day.has-tip::after,
.dp-grid td:nth-child(2) .dp-day.has-tip::after {
  left: 0;
  transform: none;
}

.dp-grid td:last-child .dp-day.has-tip::after {
  left: auto;
  right: 0;
  transform: none;
}

.dp-day.has-tip:disabled {
  text-decoration: none;
  opacity: .55;
}

.unit-desc {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: .92rem;
  color: var(--fg-muted);
}

.arrival li {
  margin: 6px 0;
}

/* confirmation summary (success.html) */
.summary-box {
  border-radius: var(--radius-md);
  margin: 18px 0;
  padding: 16px;
  background: var(--marble);
  border-left: 4px solid var(--brass);
}

.summary-box[hidden] {
  display: none;
}

.res-number {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.res-number strong {
  font-family: var(--display);
  font-size: 1.5rem;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 12px;
}

.facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

/* homepage unit cards */
.unit-grid {
  margin-top: 28px;
}

.unit-card {
  overflow: hidden;
}

.unit-photo {
  display: block;
  aspect-ratio: 4 / 3;
}

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

.unit-card:hover .unit-photo img {
  transform: scale(1.03);
}

.unit-info {
  justify-items: start;
}

.unit-group {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brass);
}

.unit-info h3 {
  margin: 0;
}

/* Member and agent code field on the booking page */
.code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.code-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.code-row .btn {
  flex: 0 0 auto;
}

/* Longer-stay banners on the results page */
.offers {
  margin: 0 0 18px;
}

/* header: one row on wide screens; below 641px the links open from a menu button */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--on-dark);
}

@media (min-width: 900px) {
  .top .inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 899px) {
  .top .inner {
    flex-wrap: nowrap;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .top .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--granite);
    padding: .25rem var(--gutter-r) .9rem var(--gutter);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .top.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .top nav.nav a {
    padding: .75rem 0;
    font-size: 1rem;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(240,241,242,.08);
  }
}

/* Call and WhatsApp buttons (one element, used wherever the number is shown) */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.contact-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.contact-actions svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.contact-actions .btn.btn-call {
  background: var(--curtain);
  color: var(--on-curtain);
}

.contact-actions .btn.btn-wa {
  background: #25D366;
  color: #0C0D0F;
}

.contact-actions .btn.btn-wa:hover, .contact-actions .btn.btn-call:hover {
  filter: brightness(1.06);
}

.contact-actions.compact {
  margin-top: 0;
  flex-wrap: nowrap;
  gap: 6px;
}

.contact-actions.compact .btn {
  padding: .5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  justify-content: center;
}

.contact-actions.compact .lbl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-actions.compact svg {
  width: 1.15rem;
  height: 1.15rem;
}

.top .contact-actions.compact {
  margin-left: auto;
}

/* burger: lines turn into an X when the menu is open */
.menu-toggle span {
  transition: transform .25s ease, opacity .2s ease;
}

.top.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.top.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span {
    transition: none;
  }
}

/* header: logo and links stay on one line */
.mark, .top .nav a {
  white-space: nowrap;
}

.top .nav {
  flex-wrap: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .top .nav {
    transition: none;
  }
}

/* Dropdowns (select): one style across the site */
select, .hbar select, .search select, .field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  border-radius: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%2317191D%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px 8px;
}

.hbar select, .top select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23F0F1F2%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  padding-right: 2.1rem;
  border-radius: 10px;
}

.field select {
  color: var(--fg);
  background-color: var(--marble-deep);
  border: 1px solid transparent;
  padding: .65rem 2.5rem .65rem .75rem;
  font: inherit;
  font-size: 1rem;
}

.field select:focus, .search select:focus, .hbar select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select:not(.hbar select):not(.top select) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23ECEDEF%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  }
}

:root[data-theme="dark"] select:not(.hbar select):not(.top select) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23ECEDEF%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
}

select option {
  background: var(--marble);
  color: var(--fg);
}

.hbar select option {
  background: #17191D;
  color: #F0F1F2;
}

/* sun / moon colour switch in the header */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 241, 242, .08);
  color: #F0F1F2;
  cursor: pointer;
  flex: 0 0 auto;
}

.theme-toggle:hover {
  background: rgba(240, 241, 242, .16);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle .i-sun {
  display: none;
}

.theme-toggle .i-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .i-moon {
    display: none;
  }
}

/* phones and tablets: colour switch sits just left of the burger, which stays at the far right */
@media (max-width: 899px) {
  .theme-toggle {
    margin-left: auto;
  }
  .menu-toggle {
    margin-left: .5rem;
  }
}

/* loading: placeholder cards and a spinner while availability loads */
.avail.is-loading {
  pointer-events: none;
}

.sk-line {
  height: 14px;
  margin: 12px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--marble-deep) 0%, var(--line) 50%, var(--marble-deep) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.sk-title {
  height: 22px;
  width: 45%;
  margin-top: 0;
}

.sk-w60 {
  width: 60%;
}

.sk-w90 {
  width: 90%;
}

.sk-w40 {
  width: 40%;
}

.msg.loading::before {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-right: .5em;
  vertical-align: -.1em;
  border: 2px solid var(--line);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sk-line, .msg.loading::before {
    animation: none;
  }
}

/* colour switch fades instead of jumping */
.theme-fade, .theme-fade * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important;
}

/* results cards: columns are set in the layout system at the end of this file */
.avail h3 a {
  color: inherit;
  text-decoration: none;
}

.avail h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* each room type is its own contained block */
.avail-list {
  gap: 22px;
}

.avail {
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
  overflow-wrap: anywhere;
}

.avail > * {
  min-width: 0;
}

/* results cards: short sleeping and bathroom facts with icons */
.sleep-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .95rem;
  color: var(--fg);
}

.sleep-fact {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.sf-icon {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--fg);
}

.sf-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* booking form fields: visible border and a background that stands apart from the card */
.field input, .field textarea, .field select {
  border: 1px solid #9CA1AA;
  background-color: var(--marble);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field input, :root:not([data-theme="light"]) .field textarea, :root:not([data-theme="light"]) .field select {
    border-color: #4A4F58;
  }
}

:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .field select {
  border-color: #4A4F58;
}

.field select {
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px 8px;
}

/* header order: logo, links, colour switch (far right on desktop); on phones the switch sits left of the burger */
.top .inner > .mark {
  order: 1;
}

.top .inner > .nav {
  order: 2;
}

.top .inner > .theme-toggle {
  order: 3;
}

.top .inner > .menu-toggle {
  order: 4;
}

.top .inner > .theme-toggle {
  margin-left: auto;
}

.top .inner {
  max-width: none;
}

/* result card price column: one tidy stack, right-aligned, button full width */
.avail-buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  text-align: right;
}

.avail-buy .total {
  font-size: 1.15rem;
  font-weight: 600;
  text-align: right;
}

.avail-buy .btn {
  width: 100%;
  margin: 0;
  text-align: center;
}

.avail-buy .left {
  margin: 0;
  font-size: .85rem;
  text-align: right;
  color: var(--fg-muted);
}

.avail-buy .unavail {
  margin: 0;
  text-align: right;
}

/* contact buttons: hide the text (icon stays) when the panel is too narrow for it */
.contact {
  container-type: inline-size;
}

@container (max-width: 379px) { .contact .contact-actions .btn span { display: none; } }

/* map frame on the homepage; amenity photos open the viewer */
.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: var(--marble-deep);
}

.fac .photos img {
  cursor: zoom-in;
}

/* the one gallery (gallery.js): compact mode for result cards */
.gallery.compact .g-viewport {
  aspect-ratio: 4 / 3;
  position: relative;
  border-radius: var(--radius-md);
}

.gallery.compact .g-slide img {
  height: 100%;
}

.gallery.compact .g-count {
  position: absolute;
  left: .6rem;
  bottom: .5rem;
  z-index: 2;
  font-size: .75rem;
  color: #fff;
  background: rgba(12, 13, 15, .6);
  padding: .15rem .55rem;
  border-radius: 999px;
}

.gallery .g-note {
  margin: .6rem 0 0;
  font-size: .85rem;
  font-style: italic;
  color: var(--fg-muted);
}

.avail-gal {
  align-self: start;
}

.unit-card {
  background: var(--marble-deep);
}

.map-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 8px;
}

.map-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1rem;
  font-size: .95rem;
}

.map-btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.contact-actions .btn span {
  white-space: nowrap;
}

/* hidden means hidden (the buttons and boxes below set their own display) */
[hidden] {
  display: none !important;
}

/* price boxes: one left edge for the text and the button */
.price-box {
  text-align: left;
  justify-items: start;
}

.price-box .btn-book {
  justify-self: start;
}

/* location and contact: contact panel as tall as its content; buttons full width and centred */
.contact {
  align-self: start;
}

/* location: the map fills the left column so both columns end at the same height (desktop) */
@media (max-width: 719px) {
  .place .map {
    aspect-ratio: auto;
    height: 160px;
  }
}

@media all {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .place {
    display: flex;
    flex-direction: column;
  }
  .place .map {
    flex: 1 1 auto;
    aspect-ratio: auto;
    height: auto;
    min-height: 160px;
  }
  .contact {
    align-self: stretch;
  }
  .contact .contact-actions {
    margin-top: 10px;
  }
}

.contact .contact-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.contact .contact-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

@media (min-width: 720px) and (max-width: 899px) {
  .contact .contact-actions .btn {
    padding-inline: .6rem;
    font-size: .92rem;
  }
}

/* gallery note: full width so it fits on one line where it can */
.gallery .g-note {
  max-width: none;
}

/* hero text: modern, left-aligned on one edge, balanced line breaks */
.hero .inner {
  display: grid;
  justify-items: start;
  gap: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero .hero-lede {
  margin-top: 20px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: var(--on-dark);
  opacity: .88;
  max-width: 46ch;
  text-wrap: pretty;
}

.hero .below {
  margin-top: 28px;
}

.hero .below a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  background: rgba(240, 241, 242, .12);
  border: 1px solid rgba(240, 241, 242, .35);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.hero .below a:hover {
  background: rgba(240, 241, 242, .22);
}

/* location: heading and one address line; the map fills the space */
.place h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.place .addr {
  font-size: 1.1rem;
}

.hero h1 {
  max-width: none;
}

/* homepage unit cards: icon row and button sit at the bottom so cards in a row line up */
.unit-card {
  display: flex;
  flex-direction: column;
}

.unit-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.unit-info .sleep-facts {
  margin-top: auto;
}

.unit-info .btn {
  margin-top: 14px;
  align-self: flex-start;
}

/* swipe and drag gallery */
.g-viewport.dragging {
  cursor: grabbing;
}

.g-viewport.dragging .g-track {
  transition: none;
}

.g-viewport img {
  -webkit-user-drag: none;
}

.lb-stage {
  touch-action: pan-y;
  cursor: grab;
}

.lb-stage.dragging {
  cursor: grabbing;
}

/* gallery edges: on hover, a small white translucent overlay slides in at the side; click moves one photo.
   Touch screens get no side overlays (swipe instead). */
.g-viewport {
  position: relative;
}

.g-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  z-index: 2;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.g-edge-prev {
  left: 0;
  justify-content: flex-start;
}

.g-edge-next {
  right: 0;
  justify-content: flex-end;
}

.g-edge::after {
  content: "";
  width: 1.9rem;
  height: 1.9rem;
  margin: 0 .5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .45);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48%;
  opacity: 0;
  transition: opacity .25s ease, transform .3s ease;
}

.g-edge-prev::after {
  transform: translateX(-10px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 6l-6 6 6 6' fill='none' stroke='%2317191D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.g-edge-next::after {
  transform: translateX(10px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%2317191D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.g-edge:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: none), (pointer: coarse) {
  .g-edge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-edge::after {
    transition: none;
  }
}

/* swipe dots under every gallery: each dot is a button with a larger tap area; the current photo's dot is larger and darker */
.g-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
}

.g-dot {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}

.g-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--fg-muted);
  opacity: .35;
  transition: opacity .25s ease, transform .25s ease;
}

.g-dot.is-current::before {
  opacity: 1;
  background: var(--fg);
  transform: scale(1.25);
}

.g-dot:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

/* full-screen viewer: thumbnail strip under the caption (no visible scrollbar) */
.lb .lb-thumbs {
  display: flex;
  gap: 6px;
  max-width: 80vw;
  overflow-x: auto;
  padding: 4px;
  justify-content: safe center;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lb .lb-thumbs::-webkit-scrollbar {
  display: none;
}

.lb .lb-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  font-size: 0;
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s ease;
}

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

.lb .lb-thumb.is-current, .lb .lb-thumb:hover {
  opacity: 1;
}

.lb .lb-thumb.is-current {
  border-color: #fff;
}

.lb .lb-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* full-screen viewer: the photo follows a swipe and slides on; a tiny bar shows that swiping works */
.lb .lb-photo {
  display: flex;
  justify-content: center;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  transition: transform .3s ease;
}

.lb .lb-photo.dragging {
  cursor: grabbing;
}

.lb .lb-photo img {
  -webkit-user-drag: none;
}

.lb .lb-photo.anim-next {
  animation: lbSlideFromRight .35s ease;
}

.lb .lb-photo.anim-prev {
  animation: lbSlideFromLeft .35s ease;
}

@keyframes lbSlideFromRight { from { transform: translateX(44px); opacity: .25; } to { transform: none; opacity: 1; } }

@keyframes lbSlideFromLeft { from { transform: translateX(-44px); opacity: .25; } to { transform: none; opacity: 1; } }

.lb .swipe-bar {
  position: relative;
  width: 44px;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}

.lb .swipe-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .85);
  transition: left .35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .lb .lb-photo, .lb .lb-photo.anim-next, .lb .lb-photo.anim-prev {
    animation: none;
    transition: none;
  }
}

/* full-screen viewer: close button in the top-right corner */
.lb .x {
  position: absolute;
  top: .6rem;
  right: .8rem;
}

/* booking summary: notes under the total */
.summary-notes {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 1rem;
  color: var(--fg-muted);
}

.summary-notes li {
  margin-bottom: 4px;
}

/* booking summary lines wrap evenly, with no single word left alone on a line */
.summary .meta {
  text-wrap: balance;
}

/* gap between the stay details and the amounts in the booking summary */
.summary .details-end {
  margin-bottom: 16px;
}

/* booking summary: one text size for details, amounts and notes */
.summary .meta, .summary .total-line, .summary-notes {
  font-size: 1rem;
}

/* printing: keep the header and footer; hide the buttons and the location block */
@media print {
  .no-print {
    display: none !important;
  }
}

/* success page: headings and the print button are centred */
.success-card h1, .success-card h2 {
  text-align: center;
}

.success-card .print-row {
  text-align: center;
  margin: 14px 0 6px;
}

/* centre the print button in the success card, whatever the card layout */
.success-card .print-row {
  display: flex;
  justify-content: center;
  width: 100%;
  align-self: stretch;
}

/* download or print button: the primary colour, with an icon, in both light and dark mode */
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--curtain);
  color: var(--on-curtain);
  border: 0;
}

.btn-print svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.btn-print:hover {
  filter: brightness(1.08);
}

.btn-print:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/* success page: centred confirmation card and a tighter gap above the location */
.success-card {
  margin-inline: auto;
  max-width: 46rem;
  text-align: center;
}

.success-card .lede, .success-card .res-number {
  text-align: center;
}

.success-card .facts div {
  text-align: center;
}

.success-card .summary-box p {
  text-align: center;
}

.success-card .arrival {
  text-align: left;
}

/* success page: a close gap between the confirmation card and the location block */
.success-top {
  padding-bottom: 1rem;
}

.success-location {
  padding-top: .5rem;
}

.success-location .place h2 {
  margin-top: 0;
}

/* success page: full-width section, one centred column so every block lines up */
.success-top {
  background: var(--marble-deep);
}

.success-top .success-card {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.success-card .summary-box, .success-card #member {
  width: 100%;
  box-sizing: border-box;
}

.success-card #arrival {
  text-align: center;
}

/* success page: wider column for the details and member box */
.success-card ul.arrival {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

/* success page: the membership box text is centred */
.success-card #member, .success-card #member p {
  text-align: center;
}

/* success page: the status line is centred on the page */
.success-card #status {
  text-align: center;
  max-width: none;
  margin-inline: auto;
  width: 100%;
}

/* success page: sizing that cannot push the column past the screen edge */
.success-top .inner {
  width: 100%;
  box-sizing: border-box;
}

.success-top .success-card {
  width: 100%;
  max-width: 58rem;
  min-width: 0;
  box-sizing: border-box;
  margin-inline: auto;
}

.success-card .summary-box, .success-card #member, .success-card #status {
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* success page: every line of the card is centred on the same axis */
.success-card p, .success-card .print-row {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* site background: soft glows and a faint grid, behind everything (light and dark) */
:root {
  --glow-1: rgba(140, 106, 46, .13);
  --glow-2: rgba(27, 61, 148, .09);
  --grid: rgba(23, 25, 29, .055);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glow-1: rgba(205, 168, 95, .11);
    --glow-2: rgba(79, 116, 216, .13);
    --grid: rgba(255, 255, 255, .04);
  }
}

:root[data-theme="dark"] {
  --glow-1: rgba(205, 168, 95, .11);
  --glow-2: rgba(79, 116, 216, .13);
  --grid: rgba(255, 255, 255, .04);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vmax 45vmax at 6% 4%, var(--glow-1), transparent 70%),
    radial-gradient(50vmax 45vmax at 98% 38%, var(--glow-2), transparent 70%),
    radial-gradient(60vmax 50vmax at 30% 102%, var(--glow-1), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

/* success page: tighter vertical spacing between sections */
main > section.success-top {
  padding-block: 1.5rem .75rem;
}

main > section.success-location {
  padding-block: .5rem 1rem;
}

main > section:last-of-type {
  padding-block: .75rem 2rem;
}

/* success page: the location block keeps the same side spacing as the rest of the page */
.success-location .split {
  padding-inline: var(--gutter) var(--gutter-r);
  box-sizing: border-box;
}

/* search bar: labels stay on one line so every field lines up */
.hbar .hb > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* search bar message: fades out by itself */
.hbar .hb-msg.fade {
  animation: barMsgFade 4s ease forwards;
}

@keyframes barMsgFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* messages that fade out by themselves */
.msg-fade {
  animation: barMsgFade 4s ease forwards;
}

/* confirmation page: the logo has its own dark background so it reads in light mode */
.success-card > .mark {
  display: inline-block;
  background: var(--granite);
  color: var(--on-dark);
  padding: .45rem 1.1rem;
  border-radius: 999px;
}

.success-card > .mark span {
  color: var(--brass-on-dark);
}

/* ---- 2026 visual refresh (preview): layered over the rules above; layout and booking code unchanged ---- */
:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --brass-tint: rgba(140, 106, 46, .12);
  --card-shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 12px 32px -12px rgba(20, 22, 26, .18);
  --card-shadow-hover: 0 2px 4px rgba(20, 22, 26, .08), 0 26px 50px -18px rgba(20, 22, 26, .3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brass-tint: rgba(205, 168, 95, .14);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 26px 50px -18px rgba(0, 0, 0, .85);
  }
}

:root[data-theme="dark"] {
  --brass-tint: rgba(205, 168, 95, .14);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 26px 50px -18px rgba(0, 0, 0, .85);
}

/* header: frosted glass, a hairline under it */
.top {
  background: rgba(23, 25, 29, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: inset 0 -1px 0 rgba(240, 241, 242, .08);
}

.mark {
  font-size: 1.5rem;
}

@media (min-width: 900px) {
  .top .nav a {
    position: relative;
    padding: .5rem .15rem;
  }
  .top .nav a::after {
    content: "";
    position: absolute;
    left: .15rem;
    right: .15rem;
    bottom: .2rem;
    height: 1px;
    background: var(--brass-on-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-out);
  }
  .top .nav a:hover {
    background: none;
  }
  .top .nav a:hover::after {
    transform: scaleX(1);
  }
}

/* eyebrow labels above section and hero headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  max-width: none;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow {
  color: var(--brass-on-dark);
}

@media (max-width: 640px) {
  .eyebrow {
    font-size: .68rem;
    letter-spacing: .1em;
    gap: .5rem;
  }
  .eyebrow::before {
    width: 18px;
    flex: 0 0 auto;
  }
}

/* hero: a deeper, bottom-weighted shade so the words sit on calm dark ground */
.hero::after {
  background: linear-gradient(180deg, rgba(12, 13, 15, .25) 0%, rgba(12, 13, 15, .1) 30%, rgba(12, 13, 15, .82) 100%), linear-gradient(90deg, rgba(12, 13, 15, .72) 0%, rgba(12, 13, 15, .18) 70%);
}

.hero h1 {
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.hero .hero-lede {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.hero .below a {
  transition: background .25s ease, transform .25s var(--ease-out);
}

.hero .below a:hover {
  transform: translateY(-1px);
}

/* section headings and lede */
.band h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}

.lede {
  font-size: 1.1rem;
  max-width: 60ch;
}

/* buttons: a soft lift on hover, with depth */
.btn {
  box-shadow: 0 8px 22px -10px rgba(27, 61, 148, .7);
}

.btn.ghost {
  box-shadow: none;
}

.btn:active {
  transform: scale(.98);
}

/* apartment cards */
.unit-card {
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.unit-photo {
  overflow: hidden;
}

.unit-photo img {
  transition: transform .8s var(--ease-out);
}

.unit-info {
  padding: 20px 22px 24px;
  gap: 8px;
}

.unit-info h3 {
  font-size: 1.5rem;
}

.unit-group {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brass-tint);
  font-size: .72rem;
  letter-spacing: .12em;
}

.unit-info .apt-check {
  align-self: stretch;
  text-align: center;
  margin-top: 14px;
}

/* amenities: rows divided by a hairline, photos with a slow zoom on hover */
.facs {
  gap: 0;
}

.fac {
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.fac + .fac {
  border-top: 1px solid var(--line);
}

.finfo h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.photos figure {
  border-radius: 16px;
}

.photos figure img {
  transition: transform .8s var(--ease-out);
}

.photos figure:hover img {
  transform: scale(1.04);
}

/* footer */
footer {
  font-size: .9rem;
}

footer a {
  color: var(--on-dark);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* cards rise into view as they scroll in (browsers that support scroll-linked animation) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .unit-card {
      animation: rise .9s var(--ease-out) backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .unit-card, .unit-photo img, .photos figure img {
    transition: none;
  }
}

/* ---- Layout system (native CSS grid) ----
   Breakpoints follow Bootstrap's: sm 576px, md 768px, lg 992px, xl 1200px.
   Every layout that needs columns is set here, in one place. Gaps: --gap and --gap-lg. */
:root {
  --gap: clamp(1rem, 2.4vw, 1.5rem);
  --gap-lg: clamp(1.5rem, 4vw, 3.5rem);
}

/* apartments (home): 1 column, 2 from sm, 3 from lg */
.unit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 576px) {
  .unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .unit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* amenities: text beside photos from lg, stacked below */
.fac {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 992px) {
  .fac {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: var(--gap-lg);
  }
}

.photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.photos.n2, .photos.n3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photos.n3 figure:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .photos.n3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .photos.n3 figure:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}

/* location and contact: side by side from md */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-lg);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* results (stay.html): photo, details, price. Stacked on phones; price row below from md; three columns from lg */
.avail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.avail-gal {
  width: 100%;
  min-width: 0;
}

.avail-buy {
  min-width: 0;
}

@media (max-width: 767px) {
  .avail-buy, .avail-buy .total, .avail-buy .left, .avail-buy .unavail {
    text-align: left;
    justify-items: start;
  }
}

@media (min-width: 768px) {
  .avail {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  }
  .avail-buy {
    grid-column: 1 / -1;
    max-width: 22rem;
    justify-self: end;
  }
}

@media (min-width: 992px) {
  .avail {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(14rem, 16rem);
  }
  .avail-buy {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

/* booking page: details and summary side by side from lg */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

@media (min-width: 992px) {
  .book-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

/* header search bar on phones: two columns. Room type and the button take a full row. */
@media (max-width: 639px) {
  .hbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .hbar .hb-room, .hbar .hb-go {
    grid-column: 1 / -1;
  }
  .hbar .hb-go {
    width: 100%;
    border-radius: 999px;
  }
}

/* offer banners on results (weekly and monthly rates): a callout with a tag icon.
   Weekly is blue, monthly is brass, so the two stand apart. */
.offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.offer-banner {
  position: relative;
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 15px 20px 15px 62px;
  border: 0;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(135deg, #1B3D94 0%, #2F5BCB 100%);
  box-shadow: 0 14px 30px -16px rgba(27, 61, 148, .75);
  overflow: hidden;
}

.offer-banner::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  background: #F0C36B;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.offer-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: offerShine 4.5s ease-in-out infinite;
}

@keyframes offerShine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.offer-banner:nth-child(2) {
  background: linear-gradient(135deg, #8C6A2E 0%, #B8893F 100%);
  box-shadow: 0 14px 30px -16px rgba(140, 106, 46, .8);
}

.offer-banner:nth-child(2)::before {
  background: #17191D;
}

@media (prefers-reduced-motion: reduce) {
  .offer-banner::after {
    animation: none;
  }
}

/* Close button, top right of the calendar. */
.dp-top .dp-close {
  margin-left: auto;
  align-self: flex-start;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--marble-deep);
  color: var(--fg);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.dp-top .dp-close:hover {
  background: var(--line);
}

/* The nightly rate line in the stay panel, and the standard rate struck through before it. */
.dp-rate {
  margin: 4px 0 8px;
  font-size: .95rem;
}

.dp-was {
  color: var(--fg-muted);
  opacity: .8;
  margin-right: 2px;
}

.dp-chip s.dp-was {
  opacity: .7;
}
