/* THE IVORY GROVE — everything below the hero + order page + hero fixes.
   Breakpoints: 1199px and 600px */

:root {
  --font-text: "Cormorant Garamond", Garamond, Georgia, serif;
}
@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Body font (nav, buttons and small labels stay Manrope) ---------- */
body {
  font-family: var(--font-text);
  font-size: 19px;
}
body.sheet-open {
  overflow: hidden;
}

[data-state="available"] {
  --c: var(--status-available);
}
[data-state="limited"] {
  --c: var(--status-limited);
}
[data-state="booked"] {
  --c: var(--status-unavailable);
}

/* ---------- Hero fixes (sit on top of hero.css) ---------- */
.hero-live {
  display: none !important;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-text {
  font-family: var(--font-text);
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-stone-light);
}
.btn-chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-oxblood);
  color: var(--color-cream);
  transition:
    transform 0.75s var(--ease-luxury),
    background-color 0.7s var(--ease-luxury),
    color 0.7s var(--ease-luxury);
}
.btn-chip svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1199px) {
  .hero {
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
  }
  .hero-video {
    animation: none !important;
    transform: none !important;
  }
  .booking {
    position: relative;
    left: auto;
    bottom: auto;
    translate: none;
    width: min(900px, 100%);
    margin-top: 24px;
  }
  .booking__note {
    position: static;
    grid-column: 1 / -1;
    padding: 10px 0 12px;
  }
}

@media (max-width: 600px) {
  .hero {
    justify-content: flex-start;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .booking-trigger {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 15;
    display: flex !important;
    width: 100%;
    max-width: 480px;
    margin: 22px auto 0;
  }
  .booking {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    margin: 0;
    translate: 0 105%;
    visibility: hidden;
    animation: none;
  }
  .booking.is-open {
    translate: 0 0;
    visibility: visible;
  }
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity 1.2s var(--ease-luxury) var(--rd, 0s),
    transform 1.3s var(--ease-luxury) var(--rd, 0s),
    filter 1.2s var(--ease-luxury) var(--rd, 0s);
}
.js [data-reveal="zoom"] {
  transform: translateY(40px) scale(0.95);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Sections ---------- */
.sec {
  padding: clamp(72px, 12vh, 130px) var(--pad-x);
  border-top: 1px solid rgba(var(--cream-rgb), 0.08);
  background: var(--color-espresso);
}
.sec__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.sec__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(40px, 6vw, 68px);
}
.sec__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  margin: 14px 0 20px;
}
.sec__title em {
  font-style: italic;
}
.sec__lead {
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-stone-light);
}
.page-top {
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px));
  border-top: 0;
  background:
    radial-gradient(
      50% 35% at 85% 10%,
      rgba(var(--oxblood-rgb), 0.16),
      transparent 70%
    ),
    var(--color-espresso-deep);
}
.rooms {
  background:
    radial-gradient(
      60% 40% at 50% 0%,
      rgba(var(--oxblood-rgb), 0.18),
      transparent 70%
    ),
    var(--color-espresso);
}
.teaser {
  text-align: center;
  background:
    radial-gradient(
      50% 60% at 50% 100%,
      rgba(var(--oxblood-rgb), 0.2),
      transparent 70%
    ),
    var(--color-espresso-deep);
}
.teaser .sec__lead {
  max-width: 38rem;
  margin: 0 auto 34px;
}

.legend {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  padding: 10px 22px;
  list-style: none;
  border: 1px solid rgba(var(--cream-rgb), 0.12);
  border-radius: 999px;
  background: rgba(var(--cream-rgb), 0.03);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

/* ---------- Room cards ---------- */
.rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 30px);
}
.room {
  position: relative;
  display: flex;
  flex-direction: column;
}
.room__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 4.3;
  border-radius: 28px;
  background: linear-gradient(135deg, #4a3428, #1f1511);
}

.slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--img) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.12);
  transition:
    opacity 1.4s ease,
    transform 0s linear 1.4s;
}
.slide.on {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 1.4s ease,
    transform 9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.room__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--espresso-deep-rgb), 0.45) 0%,
    transparent 32%,
    transparent 55%,
    rgba(var(--espresso-deep-rgb), 0.7) 100%
  );
}

.room__tier,
.room__status {
  position: absolute;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--cream-rgb), 0.18);
  background: rgba(var(--espresso-deep-rgb), 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
}
.room__tier {
  left: 16px;
}
.room__status {
  right: 16px;
  cursor: pointer;
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--c);
  transition:
    transform 0.5s var(--ease-luxury),
    background-color 0.6s var(--ease-luxury);
}
.room__status:hover {
  transform: scale(1.05);
  background: rgba(var(--espresso-deep-rgb), 0.82);
}
.room__status:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 3px;
}
.room__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.room__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: live-ping 2s ease-out infinite;
}
.room[data-state="booked"] .room__dot::after {
  animation: none;
}
@keyframes live-ping {
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}

.room__dots {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 74px;
  z-index: 3;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.dot {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(var(--cream-rgb), 0.28);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-cream);
  transform: scaleX(0);
  transform-origin: left;
}
.dot.done::after {
  transform: scaleX(1);
}
.dot.on::after {
  animation: dotfill var(--dur, 4600ms) linear forwards;
}
@keyframes dotfill {
  to {
    transform: scaleX(1);
  }
}

.room__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  margin: -58px 14px 0;
  padding: 26px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(var(--cream-rgb), 0.12);
  background: rgba(var(--espresso-rgb), 0.74);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(var(--cream-rgb), 0.08);
}
.room__body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from var(--a),
    transparent 0 62%,
    var(--c) 84%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  transition: opacity 0.8s var(--ease-luxury);
  animation: spin 5s linear infinite;
}
.room__body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-luxury);
  background: radial-gradient(
    300px circle at var(--px, 50%) var(--py, 0%),
    rgba(var(--cream-rgb), 0.08),
    transparent 60%
  );
}
.room:hover .room__body::before,
.room:hover .room__body::after {
  opacity: 1;
}
@keyframes spin {
  to {
    --a: 360deg;
  }
}

.room__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.08;
}
.room__desc {
  position: relative;
  z-index: 1;
  margin: 10px 0 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-stone-light);
}
.room__specs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  list-style: none;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.08);
}
.room__specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-stone);
}
.room__specs svg {
  width: 16px;
  height: 16px;
}

.room__meter {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}
.room__bar {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.seg {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(var(--cream-rgb), 0.12);
  transition:
    background-color 0.6s var(--ease-luxury),
    box-shadow 0.6s var(--ease-luxury);
}
.seg.on {
  background: var(--c);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent);
}
.room__count {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c);
}

.room__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}
.room__price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.room__price strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--color-cream);
}
.room__price small {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.room__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-espresso-deep);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.7s var(--ease-luxury),
    color 0.7s var(--ease-luxury),
    transform 0.7s var(--ease-luxury);
}
.room__cta .btn-chip {
  width: 34px;
  height: 34px;
}
.room__cta:hover {
  background: var(--color-oxblood);
  color: var(--color-cream);
  transform: translateY(-2px);
}
.room__cta:hover .btn-chip {
  background: var(--color-cream);
  color: var(--color-espresso-deep);
  transform: rotate(-45deg);
}
.room__cta:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 3px;
}
.room[data-state="booked"] .room__cta {
  background: transparent;
  color: var(--color-cream);
  box-shadow: inset 0 0 0 1px rgba(var(--cream-rgb), 0.3);
}
.room[data-state="booked"] .room__cta:hover {
  background: rgba(var(--cream-rgb), 0.1);
}
.room[data-state="booked"] .slide {
  filter: saturate(0.55);
}
.rooms__hint {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--color-stone-dim);
}

/* ---------- Date buttons + calendar ---------- */
.datebtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.datebtn .is-empty {
  color: var(--color-stone);
}
.datebtn svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--color-stone);
}
.datebtn:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 4px;
  border-radius: 4px;
}

.cal-scrim {
  position: fixed;
  inset: 0;
  z-index: 2150;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s var(--ease-luxury),
    visibility 0s linear 0.6s;
}
.cal-scrim.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-luxury);
}
.cal {
  position: fixed;
  z-index: 2200;
  left: 0;
  bottom: 0;
  width: min(660px, calc(100vw - 32px));
  padding: 22px 24px 18px;
  border-radius: 22px;
  border: 1px solid rgba(var(--cream-rgb), 0.14);
  background: rgba(var(--espresso-rgb), 0.97);
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(var(--cream-rgb), 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.45s var(--ease-luxury),
    transform 0.7s var(--ease-luxury),
    visibility 0s linear 0.45s;
}
.cal.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s var(--ease-luxury),
    transform 0.7s var(--ease-luxury),
    visibility 0s;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cal__hint {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.cal__nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(var(--cream-rgb), 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--color-cream);
  cursor: pointer;
  transition:
    background-color 0.5s var(--ease-luxury),
    opacity 0.4s;
}
.cal__nav svg {
  width: 16px;
  height: 16px;
}
.cal__nav:hover:not(:disabled) {
  background: rgba(var(--cream-rgb), 0.1);
}
.cal__nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.cal__months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.cal__title {
  margin-bottom: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}
.cal__week,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__week {
  margin-bottom: 6px;
}
.cal__week span {
  text-align: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-stone-dim);
}
.cal__day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease-luxury),
    color 0.4s var(--ease-luxury),
    transform 0.4s var(--ease-luxury);
}
.cal__day::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c, transparent);
}
.cal__day:hover:not(:disabled) {
  background: rgba(var(--cream-rgb), 0.12);
  transform: scale(1.06);
}
.cal__day:disabled {
  opacity: 0.22;
  cursor: default;
}
.cal__day[data-state="booked"] {
  color: var(--status-unavailable);
  background: color-mix(in srgb, var(--status-unavailable) 12%, transparent);
}
.cal__day.is-today {
  box-shadow: inset 0 0 0 1px rgba(var(--cream-rgb), 0.35);
}
.cal__day.in-range {
  background: rgba(var(--cream-rgb), 0.13);
  border-radius: 6px;
}
.cal__day.is-start,
.cal__day.is-end {
  background: var(--color-cream);
  color: var(--color-espresso-deep);
}
.cal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.1);
}
.cal__key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.cal__key li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cal__key i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.cal__clear {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--color-cream);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Order page ---------- */
.order__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid rgba(var(--cream-rgb), 0.12);
  border-radius: 999px;
  background: rgba(var(--cream-rgb), 0.03);
}
.tab {
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-stone);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background-color 0.6s var(--ease-luxury),
    color 0.6s var(--ease-luxury);
}
.tab:hover {
  color: var(--color-cream);
}
.tab.on {
  background: var(--color-cream);
  color: var(--color-espresso-deep);
}
.tab:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 2px;
}

.menu__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 3.5vw, 52px);
}
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 18px;
  row-gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.09);
  animation: dish-in 0.9s var(--ease-luxury) calc(var(--i, 0) * 70ms) both;
}
@keyframes dish-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.dish__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.dish__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}
.dish__dots {
  flex: 1;
  min-width: 20px;
  border-bottom: 1px dotted rgba(var(--cream-rgb), 0.28);
  transform: translateY(-5px);
}
.dish__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-cream);
  white-space: nowrap;
}
.dish__desc {
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-stone-light);
}
.dish__tag {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.dish__ctl {
  align-self: end;
}

.add,
.qty button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(var(--cream-rgb), 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.5s var(--ease-luxury),
    border-color 0.5s var(--ease-luxury),
    transform 0.4s var(--ease-luxury);
}
.add:hover,
.qty button:hover {
  background: var(--color-oxblood);
  border-color: var(--color-oxblood);
  transform: scale(1.08);
}
.add:focus-visible,
.qty button:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 2px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.qty span {
  min-width: 1.2em;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.cart {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 26px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(var(--cream-rgb), 0.12);
  background: rgba(var(--cream-rgb), 0.04);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(var(--cream-rgb), 0.08);
}
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cart__head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
}
.cart__close {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--color-cream);
  cursor: pointer;
}
.cart__close svg {
  width: 16px;
  height: 16px;
}
.cart__items {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}
.cart__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.08);
}
.cart__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.cart__unit {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-stone);
}
.cart__row .qty button {
  width: 28px;
  height: 28px;
  font-size: 15px;
}
.cart__row strong {
  min-width: 74px;
  text-align: right;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
}
.cart__empty {
  padding: 18px 0 8px;
  font-size: 18px;
  font-style: italic;
  color: var(--color-stone);
}
.cart__items:not(:empty) + .cart__empty {
  display: none;
}
.cart__where {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.cart__where label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.cart__where select,
.cart__where input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(var(--cream-rgb), 0.16);
  border-radius: 12px;
  outline: 0;
  background: rgba(var(--espresso-deep-rgb), 0.5);
  color: var(--color-cream);
  color-scheme: dark;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.cart__where input::placeholder {
  color: var(--color-stone-dim);
}
.cart__where select:focus,
.cart__where input:focus {
  border-color: rgba(var(--cream-rgb), 0.4);
}
.cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.12);
}
.cart__total span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.cart__total strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
}
.cart__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 6px 6px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-oxblood);
  color: var(--color-cream);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background-color 0.7s var(--ease-luxury),
    transform 0.7s var(--ease-luxury),
    box-shadow 0.7s var(--ease-luxury);
}
.cart__submit .btn-chip {
  background: rgba(var(--espresso-deep-rgb), 0.65);
}
.cart__submit:hover {
  background: var(--color-oxblood-light);
  box-shadow: 0 10px 28px -6px rgba(var(--oxblood-rgb), 0.65);
  transform: translateY(-1px);
}
.cart__submit:hover .btn-chip {
  background: var(--color-cream);
  color: var(--color-espresso-deep);
  transform: rotate(-45deg);
}
.cart__note {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-stone-dim);
}
.cart__note.is-error {
  color: var(--status-unavailable);
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1500;
  display: none;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100% - 32px));
  padding: 14px 22px;
  translate: -50% 160%;
  border: 1px solid rgba(var(--cream-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--espresso-rgb), 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--color-cream);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: translate 0.8s var(--ease-luxury);
}
.cart-bar svg {
  width: 20px;
  height: 20px;
  color: var(--color-stone);
}
.cart-bar span {
  flex: 1;
  text-align: left;
}
.cart-bar strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(var(--espresso-deep-rgb), 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s var(--ease-luxury),
    visibility 0s linear 0.6s;
}
.cart-scrim.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-luxury);
}

/* ---------- Footer ---------- */
.foot {
  padding: clamp(56px, 9vh, 96px) var(--pad-x) 28px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.08);
  background: var(--color-espresso-deep);
}
.foot__in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.foot__logo {
  height: 58px;
  width: auto;
  margin-bottom: 18px;
}
.foot__text {
  max-width: 26rem;
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-stone-light);
}
.foot__links {
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: start;
}
.foot__links a,
.foot__wa {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-decoration: none;
  transition: color 0.5s var(--ease-luxury);
}
.foot__links a:hover,
.foot__wa:hover {
  color: var(--color-stone);
}
.foot__label {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.foot__copy {
  max-width: 1240px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.08);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-stone-dim);
}

/* ---------- Tablet + mobile (1199px and below) ---------- */
@media (max-width: 1199px) {
  .rooms__grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(320px, 56%);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    margin: 0 calc(-1 * var(--pad-x));
    padding: 6px var(--pad-x) 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rooms__grid::-webkit-scrollbar {
    display: none;
  }
  .room {
    scroll-snap-align: start;
  }

  .cal-scrim {
    background: rgba(var(--espresso-deep-rgb), 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .cal {
    left: 50%;
    top: 50%;
    bottom: auto;
    translate: -50% -50%;
    width: min(440px, calc(100vw - 32px));
  }
  .cal__months {
    grid-template-columns: 1fr;
  }

  .order__layout {
    grid-template-columns: 1fr;
  }
  .cart {
    position: fixed;
    left: 50%;
    bottom: 0;
    top: auto;
    z-index: 2000;
    width: min(560px, 100%);
    max-height: 90dvh;
    overflow-y: auto;
    translate: -50% 105%;
    visibility: hidden;
    border-radius: 24px 24px 0 0;
    background: rgba(var(--espresso-rgb), 0.98);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    transition:
      translate 0.75s var(--ease-luxury),
      visibility 0s linear 0.75s;
  }
  .cart.open {
    translate: -50% 0;
    visibility: visible;
    transition:
      translate 0.75s var(--ease-luxury),
      visibility 0s;
  }
  .cart__close {
    display: grid;
  }
  .cart-bar {
    display: flex;
  }
  .cart-bar.show {
    translate: -50% 0;
  }

  .foot__in {
    grid-template-columns: 1fr 1fr;
  }
  .foot__in > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Mobile (600px and below) ---------- */
@media (max-width: 600px) {
  .rooms__grid {
    grid-auto-columns: 86%;
  }
  .room__media {
    aspect-ratio: 4 / 4.1;
  }
  .room__body {
    margin: -54px 10px 0;
    padding: 22px 20px 20px;
  }
  .room__name {
    font-size: 29px;
  }
  .room__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .room__cta {
    justify-content: space-between;
    padding-left: 22px;
  }
  .legend {
    border-radius: 18px;
    padding: 12px 18px;
  }

  .cal {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    translate: none;
    width: auto;
    border-radius: 22px 22px 0 0;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .cal.open {
    transform: none;
  }

  .menu__list {
    grid-template-columns: 1fr;
  }
  .tabs {
    display: flex;
    width: 100%;
  }
  .tab {
    flex: 1;
    padding: 11px 6px;
    letter-spacing: 0.08em;
  }
  .dish__name {
    font-size: 24px;
  }
  .foot__in {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .room__dot::after,
  .room__body::before {
    animation: none;
  }
  .dot.on::after {
    animation: none;
    transform: scaleX(1);
  }
  .dish {
    animation: none;
  }
}
