/* ==========================================================================
   Orivo — guest pages (stays, property, checkout, booking, account)
   Loaded last. Restyles the guest markup to match the landing page:
   light serif display type, hairline rules, quiet surfaces, slow easing.
   ========================================================================== */
@view-transition { navigation: auto }
::view-transition-old(root) { animation: g-leave .35s var(--ease-io) both }
::view-transition-new(root) { animation: g-enter .7s var(--ease) both }
@keyframes g-leave { to { opacity: 0; transform: translateY(-8px) } }
@keyframes g-enter { from { opacity: 0; transform: translateY(14px) } }

.discovery {
  --gutter: clamp(20px, 4.6vw, 72px);
  --field-line: var(--field-border);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2324231f' stroke-width='1.3'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
  background: var(--paper);
}
.discovery main { position: static; z-index: auto; background: none; box-shadow: none; border-radius: 0; padding-block: clamp(20px, 3vw, 44px) clamp(64px, 8vw, 112px) }
.discovery :focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px }

/* ---------- Header: ivory bar that becomes a charcoal capsule ---------- */
.d-header { position: sticky; top: 0; z-index: 60; height: 84px; background: none; border: 0; pointer-events: none }
.d-header .d-nav {
  pointer-events: auto;
  min-height: 84px;
  width: min(100% - var(--gutter) * 2, var(--content-max));
  padding-inline: 0;
  border-radius: var(--radius-xl);
  transition: width .9s var(--ease), min-height .8s var(--ease), padding .8s var(--ease), margin .8s var(--ease), background-color .6s var(--ease), color .5s var(--ease), box-shadow .6s var(--ease);
}
.d-header.is-scrolled .d-nav {
  width: min(100% - 32px, 1240px);
  min-height: 64px;
  margin-top: 12px;
  padding: 8px 8px 8px 28px;
  background: rgba(30, 29, 26, .72);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(247, 244, 238, .1), 0 18px 44px rgba(23, 23, 20, .22), 0 2px 8px rgba(23, 23, 20, .12);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .d-header.is-scrolled .d-nav { background: var(--ink) }
}
.d-word svg { width: 96px; transition: width .8s var(--ease) }
.d-header.is-scrolled .d-word svg { width: 80px }
.c-word { font: 500 17px/1 var(--sans); letter-spacing: .34em; margin-right: -.34em; transition: font-size .8s var(--ease) }
.d-header.is-scrolled .c-word { font-size: 15px }
.d-nav nav { gap: 2px }
.d-nav nav a { position: relative; min-height: 44px; padding: 0 16px; border-radius: 99px; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .8; transition: opacity .3s, background-color .4s var(--ease), color .4s var(--ease) }
.d-nav nav a:hover { opacity: 1; text-decoration: none }
.d-nav nav a::after { display: none; content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease) }
.d-nav nav a:hover::after, .d-nav nav a[aria-current]::after { transform: scaleX(1); transform-origin: left }
.d-nav nav a[aria-current] { opacity: 1 }
.d-nav-saved { gap: 8px }
.d-nav-saved .icon { width: 14px; height: 14px }
#d-saved-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid currentColor; border-radius: 99px; font-size: 10px; letter-spacing: 0 }
#d-saved-count.is-bump { animation: g-bump .5s var(--ease) }
@keyframes g-bump { 40% { transform: scale(1.35) } }

/* ---------- Type ---------- */
.g-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
.g-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6 }
.d-heading { margin-bottom: clamp(28px, 4vw, 52px) }
.d-heading h1 { font: 300 clamp(48px, 7.4vw, 112px)/.92 var(--serif); letter-spacing: -.035em; text-wrap: balance }
.d-heading h1 em { font-style: italic }
.d-heading p:not(.g-eyebrow) { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 15px }
.d-heading p.g-eyebrow { margin-top: 0 }
.d-text { font-size: 13px; position: relative }
.d-text:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px }
.d-back { margin-bottom: 18px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s, gap .5s var(--ease) }
.d-back:hover { color: var(--ink); text-decoration: none; gap: 12px }

/* ---------- Fields: one quiet style everywhere ---------- */
.discovery label:not(.d-check):not(.c-check) { gap: 8px; font: 500 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted) }
.discovery label .c-optional { letter-spacing: .06em; text-transform: none; color: var(--muted) }
.discovery input:not([type=checkbox]):not([type=radio]), .discovery select, .checkout textarea {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-md);
  background-color: var(--white);
  font: 400 15px/1.3 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  transition: border-color .3s, box-shadow .4s var(--ease), background-color .3s;
}
.discovery input:not([type=checkbox]):hover, .discovery select:hover, .checkout textarea:hover { border-color: rgba(36, 35, 31, .38) }
.discovery input:not([type=checkbox]):focus, .discovery select:focus, .checkout textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(36, 35, 31, .07) }
.discovery input[readonly] { background-color: var(--sand); color: var(--muted) }
/* Dropdowns: our own chevron, well clear of the border. */
.discovery select { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 18px center; background-size: 12px; text-overflow: ellipsis }
.discovery input[type=date]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; margin-right: 2px; transition: opacity .3s }
.discovery input[type=date]:hover::-webkit-calendar-picker-indicator { opacity: .9 }
.discovery input[type=number] { -moz-appearance: textfield }
.discovery input::-webkit-outer-spin-button, .discovery input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.discovery input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none }

/* Custom checkbox */
.d-check input, .c-check input {
  appearance: none; -webkit-appearance: none;
  display: grid; place-items: center;
  width: 18px; height: 18px; margin: 0;
  border: 1px solid var(--field-border); border-radius: 5px;
  background: var(--white);
  transition: background-color .3s var(--ease), border-color .3s;
  cursor: pointer;
}
.d-check input::after, .c-check input::after { content: ""; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .35s var(--ease) }
.d-check input:checked, .c-check input:checked { background: var(--ink); border-color: var(--ink) }
.d-check input:checked::after, .c-check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1) }
.d-check:hover input, .c-check:hover input { border-color: var(--ink) }
.d-check { font-size: 14px; color: var(--ink) }
.c-check input { margin-top: 2px }

/* Buttons */
.discovery .button { min-height: 52px; padding-inline: 26px; border-radius: var(--radius-md) }
.discovery .button .icon:has(use[href="#d-arrow"]) { transition: transform .6s var(--ease) }
.discovery .button:hover .icon:has(use[href="#d-arrow"]) { transform: translateX(4px) }
.discovery .button:hover .icon:has(use[href="#d-search"]) { transform: scale(1.08) }
.discovery .button:disabled { opacity: .4 }
.d-outline {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--field-line); border-radius: 99px;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.d-outline::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease) }
.d-outline:hover { background: none; border-color: var(--ink); color: var(--white) }
.d-outline:hover::before { transform: none }
.d-outline .icon { width: 16px; height: 16px }
.d-outline[aria-disabled=true] { pointer-events: none }

/* ---------- Search bar ---------- */
.d-trip {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 0;
  align-items: stretch;
  padding: 8px;
  margin-bottom: clamp(36px, 5vw, 64px);
  background: var(--white);
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px rgba(36, 35, 31, .06), 0 24px 60px rgba(36, 35, 31, .08);
}
.d-trip > label { position: relative; padding: 12px 22px 10px; border-radius: var(--radius-md); transition: background-color .3s }
.d-trip > label + label::before, .d-trip > datalist + label::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--stone); transition: opacity .3s }
.d-trip > label:hover, .d-trip > label:focus-within { background: var(--sand) }
.d-trip > label:hover::before, .d-trip > label:focus-within::before,
.d-trip > label:hover + label::before, .d-trip > label:focus-within + label::before { opacity: 0 }
.discovery .d-trip input:not([type=checkbox]):not([type=radio]), .discovery .d-trip select { min-height: 30px; padding: 0; border: 0; background-color: transparent; font-size: 15px; font-weight: 500; box-shadow: none !important }
.discovery .d-trip select { padding-right: 32px; background-position: right 4px center }
.d-trip button[type=submit] { min-height: 64px; margin-left: 6px; padding-inline: 30px }
.d-trip .d-error { padding: 8px 22px 4px }

/* ---------- Results ---------- */
.d-results-layout { grid-template-columns: 252px minmax(0, 1fr); gap: clamp(28px, 4.4vw, 72px) }
.d-filters { position: sticky; top: 96px; max-height: calc(100dvh - 116px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 0; border: 0; border-radius: 0; background: none }
.d-filters::-webkit-scrollbar { display: none }
.d-filters > summary { min-height: 48px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase }
.d-filters > summary::after { content: ""; width: 10px; height: 10px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .5s var(--ease) }
.d-filters[open] > summary::after { content: ""; transform: rotate(45deg) }
.d-filters fieldset { margin-top: 0; padding: 22px 0 20px; border-top: 0; border-bottom: 1px solid var(--rule) }
.d-filters legend, .d-filter-amenities h2 { float: left; width: 100%; margin-bottom: 14px; padding: 0; font: 500 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted) }
.d-filters legend + * { clear: both }
.d-price-fields { gap: 10px }
.d-filters .d-check { min-height: 36px }
.d-rooms { gap: 12px }
.d-filter-amenities { margin-top: 22px }
.d-filter-amenities details { border-bottom: 1px solid var(--rule) }
.d-filter-amenities details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 14px; transition: padding .4s var(--ease) }
.d-filter-amenities details summary::-webkit-details-marker { display: none }
.d-filter-amenities details summary::after { content: ""; width: 12px; height: 12px; background: var(--chev) center / 12px no-repeat; opacity: .6; transition: transform .5s var(--ease) }
.d-filter-amenities details[open] summary::after { transform: rotate(180deg) }
.d-filter-amenities details summary:hover { padding-left: 4px }
.d-filter-actions { margin-top: 22px; gap: 6px }
.d-filter-actions .button { width: 100% }

.d-results-bar { align-items: end; min-height: 0; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule) }
.d-results-bar #d-count { font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--serif); letter-spacing: -.01em }
.d-results-bar #d-applied { margin-top: 6px; font-size: 12px; letter-spacing: .04em }
.d-results-bar label { min-width: 210px }

.d-card-grid { gap: clamp(40px, 4vw, 64px) clamp(18px, 2vw, 28px) }
.d-stay-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-xl); background: var(--stone); isolation: isolate }
.d-stay-media > a { overflow: hidden }
.d-stay-media img { transform: scale(1.02); transition: transform 1.4s var(--ease), opacity .9s var(--ease), filter .9s var(--ease) }
.d-stay:hover .d-stay-media img { transform: scale(1.07) }
.d-stay-media > a::after {
  content: "View stay";
  position: absolute; left: 50%; bottom: 18px;
  padding: 10px 18px; border-radius: 99px;
  background: rgba(247, 244, 238, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 10px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.d-stay:hover .d-stay-media > a::after, .d-stay-media > a:focus-visible::after { opacity: 1; transform: translate(-50%, 0) }
.d-stay-media > a:focus-visible { outline-offset: -4px; outline-color: var(--white) }
.d-save { top: 14px; right: 14px; width: 42px; height: 42px; background: rgba(247, 244, 238, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .5s var(--ease), background-color .3s }
.d-save:hover { transform: scale(1.08); background: var(--white) }
.d-save .icon { width: 18px; height: 18px; transition: transform .5s var(--ease) }
.discovery [data-save][aria-pressed=true] .icon { animation: g-heart .6s var(--ease) }
@keyframes g-heart { 30% { transform: scale(1.35) } 60% { transform: scale(.92) } }
.d-card-body { padding-top: 18px }
.d-card-meta { gap: 6px 12px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase }
.d-verified, .d-unverified { font-size: 10.5px; letter-spacing: .12em; font-weight: 500 }
.d-verified .icon { width: 12px; height: 12px; stroke-width: 2 }
.d-card-body h2 { margin-block: 8px 6px; font: 400 clamp(24px, 2vw, 30px)/1.08 var(--serif); letter-spacing: -.015em }
.d-card-body h2 a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .7s var(--ease) }
.d-card-body h2 a:hover, .d-stay:hover .d-card-body h2 a { text-decoration: none; background-size: 100% 1px }
.d-card-spec { font-size: 13px }
.d-rate { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px }
.d-total { margin-top: 2px; font-size: 12.5px }
.d-compare { min-height: 36px; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.d-compare::before { content: ""; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 3px; transition: background-color .3s, box-shadow .3s }
.d-compare[aria-pressed=true] { color: var(--ink); text-decoration: none }
.d-compare[aria-pressed=true]::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper) }
.d-compare:hover { color: var(--ink); text-decoration: none }
.d-note { margin-top: 28px; font-size: 12px; letter-spacing: .02em }
.d-empty { padding: clamp(40px, 6vw, 80px) 0; text-align: center; border-block: 1px solid var(--rule) }
.d-empty h2 { font: 300 clamp(32px, 4vw, 52px)/1 var(--serif); letter-spacing: -.02em }
.d-empty p { max-width: 44ch; margin-inline: auto }
.d-empty .d-text { margin-inline: 10px }
.d-card-grid[aria-busy=true] .d-empty p::after { content: ""; display: block; width: 120px; height: 1px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, var(--ink), transparent) 0 0 / 50% 100% no-repeat; animation: g-load 1.2s linear infinite }
@keyframes g-load { from { background-position: -100% 0 } to { background-position: 200% 0 } }

/* ---------- Property ---------- */
.d-property-heading { align-items: end; margin-top: 0; padding-bottom: clamp(24px, 3vw, 36px) }
.d-property-heading h1 { font-size: clamp(52px, 7.6vw, 120px) }
.d-property-heading p:not(.g-eyebrow) { margin-top: 16px; gap: 12px; font-size: 13px; letter-spacing: .04em }
.d-property-actions { gap: 10px }
.d-property-actions .d-compare { margin: 0 0 0 6px }
.d-gallery-track { gap: 10px; height: clamp(340px, 46vw, 640px); border-radius: var(--radius-xl) }
.d-gallery-track button { position: relative; border-radius: 4px; overflow: hidden; cursor: zoom-in }
.d-gallery-track button:first-child { border-radius: var(--radius-xl) 4px 4px var(--radius-xl) }
.d-gallery-track button:nth-child(2) { border-top-right-radius: var(--radius-xl) }
.d-gallery-track button:last-child:not(:first-child) { border-bottom-right-radius: var(--radius-xl) }
.d-gallery-track button img { transition: transform 1.4s var(--ease), opacity .9s var(--ease) }
.d-gallery-track button:hover img { transform: scale(1.05) }
.d-gallery-track button::after { content: ""; position: absolute; inset: 0; background: rgba(23, 23, 20, 0); transition: background-color .6s var(--ease) }
.d-gallery-track button:hover::after { background: rgba(23, 23, 20, .08) }
.d-gallery-caption { margin-top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase }
.d-property-layout { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); margin-top: clamp(48px, 6vw, 88px) }
.d-detail-section { display: grid; grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: 8px clamp(20px, 3vw, 48px); padding-block: 36px 40px; border-top: 1px solid var(--rule) }
.d-detail-section:first-child { padding-top: 0; border-top: 0 }
.d-detail-section:first-child h2 { grid-column: 1 / -1; margin-bottom: 18px; font: 300 clamp(34px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -.02em; text-transform: none; color: var(--ink) }
.d-detail-section:first-child > :not(h2) { grid-column: 1 / -1 }
.d-detail-section h2 { margin: 4px 0 0; font: 500 10.5px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted) }
.d-detail-section > :not(h2) { grid-column: 2 }
.d-detail-section p { font-size: 15px; line-height: 1.75 }
.d-detail-section p + p { margin-top: 12px }
.d-detail-section .d-property-spec { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin-bottom: 26px; font-size: 0 }
.d-spec-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--ink) }
.d-amenity-grid { gap: 26px 32px }
.d-amenity-grid h3 { margin-bottom: 8px; font: 500 13px/1.4 var(--sans); color: var(--ink) }
.d-amenity-grid li, .d-rules li { font-size: 14px; color: var(--muted); line-height: 1.9 }
.d-rules li::before, .d-amenity-grid li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px 3px 0; border-radius: 50%; background: var(--grey) }
.d-detail-section .d-outline { justify-self: start; margin-top: 26px }
.d-map { height: 300px; margin-block: 22px 8px; border: 0; border-radius: var(--radius-xl); filter: grayscale(1) contrast(.95) sepia(.12); transition: filter .8s var(--ease) }
.d-map:hover { filter: none }
.d-reserve {
  top: 100px;
  padding: clamp(22px, 2.4vw, 34px);
  border: 0;
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 0 1px rgba(36, 35, 31, .06), 0 30px 70px rgba(36, 35, 31, .1);
}
.d-reserve-rate { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); font-size: 13px }
.d-reserve-rate strong { font: 400 clamp(32px, 3vw, 42px)/1 var(--serif); letter-spacing: -.02em }
.d-reserve-form { gap: 14px }
.d-reserve-dates { gap: 10px }
.d-price-breakdown { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px }
.d-price-breakdown > div { padding-block: 5px }
.d-price-total { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--rule); font-size: 15px }
.d-reserve-form .button { width: 100% }
.d-similar { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink) }
.d-similar > h2 { margin-bottom: clamp(28px, 4vw, 48px); font: 300 clamp(40px, 5vw, 72px)/1 var(--serif); letter-spacing: -.03em }
.d-mobile-reserve p { font-size: 13px; color: var(--muted) }
.d-mobile-reserve strong { font: 400 24px/1 var(--serif); color: var(--ink) }

/* ---------- Compare tray: floating capsule ---------- */
.compare-tray { inset: auto 16px 16px; border: 0; background: none; padding: 0; pointer-events: none; animation: g-rise .8s var(--ease) both }
.compare-tray .wrap { pointer-events: auto; width: min(100%, 860px); min-height: 68px; padding: 10px 10px 10px 26px; border-radius: var(--radius-xl); background: var(--ink); color: var(--paper); box-shadow: 0 24px 60px rgba(23, 23, 20, .3) }
.compare-tray strong { font: 400 20px/1.1 var(--serif) }
.compare-tray small { color: rgba(247, 244, 238, .6); font-size: 12px }
.compare-tray .d-text { color: var(--paper); font-size: 11px; letter-spacing: .14em; text-transform: uppercase }
.compare-tray .button-dark { background: var(--paper); color: var(--ink) }
.compare-tray .button-dark::before { background: var(--white) }
@keyframes g-rise { from { opacity: 0; transform: translateY(30px) } }
.has-compare { padding-bottom: 104px }

/* ---------- Dialogs ---------- */
.d-modal { border: 0; border-radius: var(--radius-2xl); box-shadow: 0 40px 100px rgba(0, 0, 0, .3); overflow: hidden auto }
.d-modal[open] { animation: g-pop .6s var(--ease) both }
.d-modal::backdrop { background: rgba(23, 23, 20, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: g-fade .5s var(--ease) both }
@keyframes g-pop { from { opacity: 0; transform: translateY(24px) scale(.98) } }
@keyframes g-fade { from { opacity: 0 } }
.d-modal-head { padding: 18px 18px 18px 28px; border-bottom: 1px solid var(--rule) }
.d-modal-head h2 { font: 400 28px/1.1 var(--serif); letter-spacing: -.01em }
.d-modal-content { padding: 26px 28px 30px }
.d-modal-content p { color: var(--muted) }
.d-lightbox { width: min(1100px, calc(100% - 24px)); background: var(--deep); color: var(--paper) }
.d-lightbox .d-modal-head { background: var(--deep); border-color: var(--rule-light) }
.d-lightbox .d-outline { color: var(--paper); border-color: var(--rule-light) }
.d-lightbox .d-outline::before { background: var(--paper) }
.d-lightbox .d-outline:hover { color: var(--ink) }
.d-lightbox-photo img { height: min(66dvh, 680px); background: none; border-radius: var(--radius-md); animation: g-fade .6s var(--ease) }
.d-photo-controls span { font: 400 18px/1 var(--serif); color: rgba(247, 244, 238, .7) }
.d-table-scroll th { font: 500 13px/1.4 var(--sans) }
.d-table-scroll thead th { font: 400 22px/1.15 var(--serif); vertical-align: bottom }
.d-table-scroll tbody th { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) }
.d-table-scroll img { height: 140px; border-radius: var(--radius-md) }

/* ---------- Footer ---------- */
.d-footer { margin-top: 0; border: 0; background: var(--deep); color: rgba(247, 244, 238, .6); font-size: 12px; letter-spacing: .04em }
.d-footer .wrap { min-height: 120px }
.d-footer .d-word { color: var(--paper) }
.d-footer a { transition: color .3s }
.d-footer a:not(.d-word):hover { color: var(--paper) }
.checkout .d-footer span { color: rgba(247, 244, 238, .6) }

/* ---------- Checkout ---------- */
.c-heading { margin-block: 6px clamp(32px, 4vw, 56px) }
.c-layout { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: clamp(28px, 5vw, 88px) }
.c-main { counter-reset: step; gap: 16px }
#c-guest-form { gap: 16px }
.c-panel { padding: clamp(24px, 3vw, 40px); border: 0; border-radius: var(--radius-2xl); background: var(--white); box-shadow: 0 0 0 1px rgba(36, 35, 31, .06), 0 12px 40px rgba(36, 35, 31, .04) }
.c-panel h2 { margin-bottom: 18px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -.015em }
.c-main .c-panel > h2 { display: flex; align-items: baseline; gap: 16px }
.c-main .c-panel > h2::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 500 11px/1 var(--sans); letter-spacing: .16em; color: var(--muted); transform: translateY(-4px) }
.c-panel h3 { margin: 26px 0 12px; font: 500 10.5px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted) }
.c-panel p { font-size: 14.5px }
.c-fields { gap: 18px 16px }
.c-muted, .c-trip { font-size: 12.5px; line-height: 1.6 }
.c-id { padding: 14px 18px; border-left: 2px solid var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sand); font-size: 13px }
.checkout label.c-check { align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.5 }
.c-terms { gap: 4px 20px }
.c-terms .d-text { text-decoration: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.c-terms .d-text:hover { color: var(--ink) }
#c-pay-title ~ .button, .c-panel form > .button { margin-top: 8px }
#c-guest-form .button[type=submit] { width: 100%; min-height: 58px }
.c-summary { top: 100px; padding: 0; overflow: hidden }
.c-summary > h2 { padding: 26px clamp(24px, 2.6vw, 34px) 0; margin-bottom: 14px }
.c-summary > :not(h2) { padding-inline: clamp(24px, 2.6vw, 34px) }
.c-summary > #c-price { padding-bottom: clamp(24px, 2.6vw, 34px) }
.c-summary .c-property, .c-status .c-property { grid-template-columns: 1fr; gap: 16px }
.c-summary .c-property img, .c-status .c-property img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius-lg) }
.c-property h2 { margin: 0 0 4px; font: 400 26px/1.1 var(--serif) }
.c-property p { font-size: 11px; letter-spacing: .16em; text-transform: uppercase }
.c-trip { padding: 12px 0; border-block: 1px solid var(--rule); font-size: 13px; color: var(--ink) }
.c-promo { border-block: 1px solid var(--rule); margin-top: 18px }
.c-promo summary, .c-tax summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 13px }
.c-promo summary::-webkit-details-marker, .c-tax summary::-webkit-details-marker { display: none }
.c-promo summary::after, .c-tax summary::after { content: ""; width: 12px; height: 12px; background: var(--chev) center / 12px no-repeat; opacity: .6; transition: transform .5s var(--ease) }
.c-promo[open] summary::after, .c-tax[open] summary::after { transform: rotate(180deg) }
.c-promo form { padding-bottom: 12px }
.c-promo .d-outline { min-height: 52px; border-radius: var(--radius-md) }
.c-breakdown { gap: 10px; font-size: 13.5px }
.c-breakdown dt { color: var(--muted) }
.c-breakdown dd { color: var(--ink) }
.c-total { align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink) }
.c-total strong:first-child { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase }
.c-total strong:last-child { font: 400 34px/1 var(--serif); letter-spacing: -.02em }
.c-mobile-summary strong { font: 400 22px/1.1 var(--serif) }
.c-status { width: min(100%, 720px) }
.c-status .c-breakdown { margin-top: 18px }
.c-account-actions { gap: 10px 18px; margin-top: 20px }
.a-detail { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--rule) }

/* ---------- Account ---------- */
.a-layout { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 88px) }
.a-nav { position: sticky; top: 100px; align-self: start; gap: 0; border-top: 1px solid var(--ink) }
.a-nav a, .a-nav button { position: relative; justify-content: space-between; min-height: 52px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 14px; transition: padding .5s var(--ease), color .3s }
.a-nav a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .5s var(--ease) }
.a-nav a:hover, .a-nav [aria-current] { background: none; padding-left: 8px }
.a-nav [aria-current] { font-weight: 500 }
.a-nav [aria-current]::after { transform: scale(1) }
.a-nav button { border: 0; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase }
.a-section-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--rule) }
.a-section-head h2 { font: 300 clamp(34px, 3.6vw, 50px)/1 var(--serif); letter-spacing: -.02em }
.a-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase }
.a-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.a-booking { display: grid; gap: 4px }
.a-booking .c-property { grid-template-columns: 160px minmax(0, 1fr) }
.a-booking .c-property img { width: 160px; height: 110px; border-radius: var(--radius-md) }
.a-saved { grid-template-columns: 200px minmax(0, 1fr) }
.a-saved-photo { overflow: hidden; border-radius: var(--radius-md) }
.a-saved-photo img { border-radius: 0; transition: transform 1.2s var(--ease) }
.a-saved:hover .a-saved-photo img { transform: scale(1.06) }
.a-saved h3 { margin: 0 0 6px; font: 400 26px/1.1 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--ink) }
.a-profile legend { margin-bottom: 10px; font: 500 10.5px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted) }
.a-choices { gap: 4px 22px }
.a-profile fieldset + fieldset { margin-top: 10px }

/* ---------- Reveal motion ---------- */
.g-js .g-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--gd, 0s), transform 1.2s var(--ease) var(--gd, 0s) }
.g-js .g-reveal.is-in { opacity: 1; transform: none }
.g-js .d-stay-media.g-reveal, .g-js .d-gallery.g-reveal { transform: none; clip-path: inset(10% 6% 0 6% round var(--radius-xl)); transition: clip-path 1.4s var(--ease) var(--gd, 0s), opacity .8s var(--ease) var(--gd, 0s) }
.g-js .d-stay-media.g-reveal.is-in, .g-js .d-gallery.g-reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius-xl)) }
.g-js .d-heading h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em }
.g-js .d-heading h1 .wi { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease) calc(var(--i) * .06s + .05s) }
.g-js .d-heading.is-in h1 .wi { transform: none }
img.g-img { opacity: 0 }
img.g-img.is-loaded { opacity: 1 }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .d-trip { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .d-trip > label:first-child { grid-column: 1 / -1 }
  .d-trip > label:first-child + datalist + label::before { display: none }
  .d-trip button[type=submit] { grid-column: 1 / -1; margin: 8px 0 0 }
}
@media (max-width: 850px) {
  .d-header { height: 72px }
  .d-header .d-nav { min-height: 72px }
  .d-filters { position: static; max-height: none; overflow: visible }
  .d-filters > summary { min-height: 52px; padding: 0 18px; border: 1px solid var(--field-border); border-radius: 99px }
  .d-filters[open] > summary { margin-bottom: 8px }
  .d-detail-section { grid-template-columns: 1fr }
  .d-detail-section > :not(h2) { grid-column: 1 }
  .d-detail-section h2 { margin-bottom: 8px }
  .c-summary { top: auto }
  .a-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 18px; border-top: 0 }
  .a-nav a, .a-nav button { min-height: 44px; border-bottom: 0 }
  .a-nav a::after { display: none }
  .a-nav [aria-current] { padding-left: 0; text-decoration: underline; text-underline-offset: 6px }
}
@media (max-width: 580px) {
  .discovery { --gutter: 18px }
  .d-header { height: 64px }
  .d-header .d-nav { min-height: 64px }
  .d-header.is-scrolled .d-nav { width: calc(100% - 20px); min-height: 54px; margin-top: 8px; padding-inline: 18px 14px }
  .d-nav nav { gap: 14px }
  .d-nav nav a { font-size: 10.5px; letter-spacing: .1em }
  .d-word svg { width: 78px }
  .d-heading h1 { font-size: clamp(44px, 13vw, 64px) }
  .d-trip { grid-template-columns: 1fr 1fr; padding: 6px }
  .d-trip > label { padding: 10px 14px 8px }
  .d-trip > label:nth-of-type(4) { grid-column: 1 / -1 }
  .d-trip > label:nth-of-type(4)::before { display: none }
  .d-results-bar { flex-direction: column; align-items: stretch }
  .d-results-bar label { min-width: 0 }
  .d-stay-media { aspect-ratio: 4 / 4.4 }
  .d-gallery-track { height: auto; border-radius: 0 }
  .d-gallery-track button, .d-gallery-track button:first-child { border-radius: var(--radius-xl) }
  .d-property-actions .d-outline { padding-inline: 12px }
  .d-mobile-reserve { inset: auto 10px 10px; padding: 10px 10px 10px 20px; border: 0; border-radius: var(--radius-xl); background: var(--ink); color: var(--paper); box-shadow: 0 20px 50px rgba(23, 23, 20, .3) }
  .d-mobile-reserve p { color: rgba(247, 244, 238, .6) }
  .d-mobile-reserve strong { color: var(--paper) }
  .d-mobile-reserve .button-dark { background: var(--paper); color: var(--ink) }
  .d-mobile-reserve .button-dark::before { background: var(--white) }
  .discovery:has(.d-mobile-reserve) { padding-bottom: 88px }
  .compare-tray { inset: auto 10px 10px }
  .compare-tray .wrap { padding-left: 16px }
  .compare-tray strong { font-size: 17px }
  .d-modal-head { padding-left: 20px }
  .d-modal-content { padding: 20px }
  .a-booking .c-property { grid-template-columns: 1fr }
  .a-booking .c-property img { width: 100%; height: auto; aspect-ratio: 16 / 10 }
  .a-saved { grid-template-columns: 1fr }
}
@media (max-width: 850px) {
  .c-mobile-summary { inset: auto 10px 10px; padding: 10px 10px 10px 20px; border: 0; border-radius: var(--radius-xl); background: var(--ink); color: var(--paper); box-shadow: 0 20px 50px rgba(23, 23, 20, .3) }
  .c-mobile-summary .d-outline { color: var(--paper); border-color: var(--rule-light) }
  .c-mobile-summary .d-outline::before { background: var(--paper) }
  .c-mobile-summary .d-outline:hover { color: var(--ink) }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none }
  .discovery *, .discovery *::before, .discovery *::after { transition-duration: .01ms !important; animation-duration: .01ms !important }
  .g-js .g-reveal, .g-js .d-heading h1 .wi { opacity: 1; transform: none; clip-path: none }
}

/* Late fixes */
.discovery label:has(> .c-optional) { position: relative }
.discovery label > .c-optional { position: absolute; top: 0; right: 0; font-size: 11px; line-height: 1.4 }
#checkout-main > .d-text:first-child { margin-bottom: 18px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s }
#checkout-main > .d-text:first-child:hover { color: var(--ink); text-decoration: none }
@media (max-width: 850px) {
  .d-results-layout, .d-property-layout, .c-layout, .a-layout { grid-template-columns: minmax(0, 1fr) }
  .d-property-heading { align-items: flex-start }
  .d-reserve { position: static }
  .c-summary { position: static }
}
.d-nav nav a { white-space: nowrap }
@media (max-width: 440px) {
  .d-nav nav { gap: 12px }
  .d-nav nav a { font-size: 10px; letter-spacing: .07em }
  .d-header.is-scrolled .d-nav { padding-inline: 16px 12px }
  .d-header.is-scrolled .d-word svg { width: 68px }
  .d-nav-saved .icon { display: none }
}
#account-auth { gap: 18px } #account-auth .button { justify-self: stretch; margin-top: 6px }

/* Pill navigation (see landing header): soft chips, solid final action. */
.d-nav nav a:hover, .d-nav nav a[aria-current] { opacity: 1; background: rgba(36, 35, 31, .07) }
.d-header.is-scrolled .d-nav nav a:hover, .d-header.is-scrolled .d-nav nav a[aria-current] { background: rgba(247, 244, 238, .12) }
.d-nav nav > a:last-child:not([hidden]), .d-nav nav:has(> a:last-child[hidden]) > a:nth-last-child(2) { margin-left: 8px; padding: 0 22px; opacity: 1; background: var(--ink); color: var(--paper) }
.d-nav nav > a:last-child:not([hidden]):hover, .d-nav nav:has(> a:last-child[hidden]) > a:nth-last-child(2):hover { background: var(--deep) }
.d-header.is-scrolled .d-nav nav > a:last-child:not([hidden]), .d-header.is-scrolled .d-nav nav:has(> a:last-child[hidden]) > a:nth-last-child(2) { background: var(--paper); color: var(--ink) }
.d-header.is-scrolled .d-nav nav > a:last-child:not([hidden]):hover, .d-header.is-scrolled .d-nav nav:has(> a:last-child[hidden]) > a:nth-last-child(2):hover { background: var(--white) }
@media (max-width: 580px) {
  .d-header.is-scrolled .d-nav { padding: 6px 6px 6px 18px; min-height: 56px }
  .d-nav nav a { min-height: 40px; padding: 0 10px }
  .d-nav nav > a:last-child:not([hidden]), .d-nav nav:has(> a:last-child[hidden]) > a:nth-last-child(2) { margin-left: 4px; padding: 0 14px }
}
@media (max-width: 440px) {
  .d-header.is-scrolled .d-nav { padding: 6px 6px 6px 14px }
  .d-nav nav { gap: 0 }
  .d-nav nav a { padding: 0 8px }
  .d-nav nav > a:last-child:not([hidden]), .d-nav nav:has(> a:last-child[hidden]) > a:nth-last-child(2) { padding: 0 12px }
}
.d-header { display: flow-root }
.d-gallery-caption { justify-content: flex-end }

/* Solid surfaces, no frosted glass. */
.d-header.is-scrolled .d-nav { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px rgba(247, 244, 238, .08), 0 14px 36px rgba(23, 23, 20, .2) }
.d-stay-media > a::after { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none }
.d-save { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 3px rgba(23, 23, 20, .18) }
.d-modal::backdrop { background: rgba(23, 23, 20, .62); -webkit-backdrop-filter: none; backdrop-filter: none }
/* Outlines on dark surfaces need 3:1 too. */
.d-lightbox .d-outline, .c-mobile-summary .d-outline, .compare-tray .d-outline { border-color: rgba(247, 244, 238, .6) }

/* Touch targets: footer links get at least 44px of height. */
.d-footer a:not(.d-word) { display: inline-flex; align-items: center; min-height: 44px }
