:root {
  --ivory: #fdf9f2;
  --sand: #f0e6d4;
  --rust: #cc3300;
  --taupe: #605253;
  --line: #dbceba;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Raleway, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--taupe); font: 1rem/1.6 var(--sans); font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.75rem); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
[hidden] { display: none !important; }

.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(24px, calc((100% - 1200px) / 2));
  background: var(--sand); border-bottom: 1px solid var(--line);
}
.masthead img { display: block; width: clamp(150px, 34vw, 248px); height: auto; }
.nav-book { flex: none; min-height: 44px; display: inline-grid; place-items: center; padding-inline: 12px; font-size: .82rem; font-weight: 700; text-underline-offset: 5px; }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(450px, 67svh, 690px); padding: 56px 24px; background: #342921; color: var(--ivory); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#201a17a0,#201a177d 35%,#201a17d4); }
.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero .brand { font-size: .72rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.25rem, 9vw, 8.25rem); margin-top: 10px; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 em { color: var(--sand); font-size: .8em; }
.hero p { max-width: 32ch; margin: 15px 0 23px; text-wrap: balance; }
.hero .btn { color: var(--taupe); background: var(--ivory); }
.hero .btn:not(:disabled):hover, .hero .btn:not(:disabled):active { color: var(--taupe); background: var(--sand); }
.hero .btn:focus-visible { outline-color: var(--ivory); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 46px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--rust);
  color: var(--ivory);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:not(:disabled):hover { background: #a92a00; box-shadow: 0 2px 7px #60525326; }
.btn:not(:disabled):active { background: #942500; box-shadow: none; }
.btn:disabled { background: #e9dfd2; color: #605253; border-color: var(--line); cursor: default; }
.hero .btn::after, .choose::after { content: ""; width: .42em; height: .42em; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.dates {
  position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  max-width: 780px; width: calc(100% - 48px); margin: -34px auto 0;
  padding: 16px 0; text-align: center; background: var(--ivory);
  border: 1px solid var(--line); box-shadow: 0 10px 30px #2d211015;
}
.dates > div { padding: 0 12px; }
.dates > div + div { border-left: 1px solid var(--line); }
.dates dt { color: var(--rust); font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dates dd { margin: 3px 0 0; font: 600 clamp(1.2rem, 3vw, 1.9rem)/1.1 var(--serif); }
.dates small { display: block; margin-top: 5px; font: .79rem/1.3 var(--sans); }
.wrap { max-width: 1200px; margin: auto; padding: clamp(43px, 7vw, 92px) 24px 55px; }
.intro { text-align: center; margin-bottom: 32px; }
.intro::after { content: ""; display: block; width: 36px; height: 1px; background: var(--rust); margin: 15px auto 0; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.room, .summary { background: var(--ivory); border: 1px solid var(--line); }
.room { display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; box-shadow: 0 8px 26px #3927150c; }
.gallery { position: relative; aspect-ratio: 5/4; background: var(--sand); overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; cursor: pointer; color: #fff; background: transparent; text-shadow: 0 1px 3px #211918, 0 1px 7px #211918; font: 23px/1 system-ui, sans-serif; }
.gallery-arrow:hover { color: var(--sand); }
.gallery-arrow:focus-visible { outline-color: #fff; outline-offset: -5px; }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.room-copy, .summary { padding: clamp(18px, 2.5vw, 26px); }
.room-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.room h3 { font-size: 2.15rem; }
.room p { margin: 9px 0; }
.room-copy small { margin-top: auto; padding-top: 8px; font-weight: 700; }
.choose {
  margin-top: 8px;
  color: var(--taupe);
  background: transparent;
  border-color: var(--line);
}
.choose:not(:disabled):hover, .room.selected .choose {
  color: var(--taupe);
  background: var(--sand);
  border-color: #b09d88;
  box-shadow: none;
}
.room-copy .btn { width: 100%; }
.summary { max-width: 680px; margin: 28px auto 0; background: var(--sand); }
.summary h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.booking-options { display: flex; gap: 12px; flex-wrap: wrap; }
.booking-options select { max-width: 100%; }
select, input { width: 100%; padding: 9px; border: 1px solid var(--taupe); background: var(--ivory); color: var(--taupe); font: inherit; }
.summary label { display: block; margin-top: 12px; font-weight: 700; }
.summary .btn { width: 100%; margin-top: 15px; }
.totals { margin: 12px 0; border-block: 1px solid var(--line); padding: 8px 0; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals strong { font-size: 1.1rem; }
.terms { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.terms h2 { font-size: 1.55rem; }
.terms p { max-width: 75ch; font-size: .875rem; }
.tile-band { height: 27px; background: var(--ivory) url(azulejos.webp) center / 420px auto repeat-x; }
footer { background: var(--taupe); color: var(--ivory); text-align: center; padding: 30px 20px 25px; }
footer img { display: block; width: 145px; height: auto; margin: 0 auto 14px; }
footer p { font-size: .85rem; margin: 0; }
@media (max-width: 850px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 585px) {
  .masthead { padding: 7px 16px; }
  .nav-book { padding-inline: 4px; }
  .hero { min-height: clamp(360px, 57svh, 500px); padding: 32px 16px 49px; }
  .hero-photo { object-position: 56% center; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.05rem); }
  .hero p { margin: 13px 0 17px; font-size: .94rem; }
  .rooms { grid-template-columns: 1fr; gap: 16px; }
  .wrap { padding: 42px 16px; }
  .dates { width: calc(100% - 32px); margin-top: -25px; padding: 12px 0; }
  .dates > div { padding-inline: 4px; }
  .dates small { font-size: .7rem; }
  .dates dd { font-size: 1.18rem; }
  .intro { margin-bottom: 23px; }
  .booking-options { display: grid; grid-template-columns: minmax(0,1fr); }
  select, input { min-height: 44px; font-size: 16px; }
  #add-room { width: 100%; }

}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.capacity-label { display: block; margin-top: 12px; font-weight: 700; }


.suite-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); background: var(--ivory); color: var(--taupe); }
.suite-dialog::backdrop { background: #302629b8; }
.suite-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 20px; background: var(--sand); }
.suite-dialog-heading h2 { font-size: clamp(1.85rem, 5vw, 2.6rem); }
.dialog-close { width: 42px; height: 42px; flex: 0 0 42px; border: 0; background: transparent; color: var(--taupe); font: 1.65rem/1 system-ui, sans-serif; cursor: pointer; }
.suite-dialog .gallery { aspect-ratio: 16/10; max-height: 44vh; }
.suite-dialog .gallery img { object-fit: contain; }
.suite-dialog-copy { padding: 0 20px 20px; }

.summary .add-room { width: auto; margin-top: 0; }
#requested-rooms { margin-top: 20px; }
#requested-rooms h3 { font-size: 1.65rem; }
#requested-rooms p { font-size: .9rem; }
#room-list { list-style: none; margin: 8px 0; padding: 0; }
#room-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.remove-room { border: 0; background: transparent; color: var(--rust); padding: 7px 2px; font: inherit; cursor: pointer; text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.booking-cart {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 410px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ivory);
  border: 0;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 220ms ease-out, display 220ms allow-discrete, overlay 220ms allow-discrete;
}
.booking-cart[open] { transform: translateX(0); }
@starting-style { .booking-cart[open] { transform: translateX(100%); } }
.booking-cart::backdrop { background: #30262925; }
.cart-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.booking-cart h2 { font-size: 2.25rem; }
.booking-cart p { font-size: .9rem; }
.booking-cart #room-list strong, .booking-cart #room-list small { display: block; }
.booking-cart #room-list { margin-top: 0; }
body:has(.booking-cart[open]) { overflow: hidden; }
.cart-shortcut {
  position: fixed;
  z-index: 2;
  right: clamp(12px, 3vw, 32px);
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ivory);
  color: var(--taupe);
  box-shadow: 0 3px 14px #30262916;
  transition: background-color 160ms ease, border-color 160ms ease;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
}
.cart-shortcut:hover { background: var(--sand); border-color: #b09d88; }
.cart-shortcut strong { padding-left: 11px; border-left: 1px solid var(--line); }
footer { padding-bottom: 68px; }
@media (prefers-reduced-motion: reduce) { .booking-cart, .btn, .cart-shortcut { transition: none; } }

.quick-add { margin-top: 15px; }

.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 14px; margin: 8px 0; font-size: .875rem; }

@media (max-width: 585px) {
  .booking-cart { padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .suite-dialog { max-height: calc(100dvh - 24px); }
  .cart-shortcut { max-width: calc(100vw - 24px); }
}
