/* BAIRUI WOOD — a quiet, editorial frame. */
.site-header {
  --header-height: 96px;
  --header-surface: #f4f1ea;
  --header-ink: #322a24;
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0;
  border-bottom: 1px solid #322a241c;
  color: var(--header-ink);
  background: var(--header-surface);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.site-header--home { position: fixed; width: 100%; }
html:not(.is-scrolled) .site-header--home:not(.is-scrolled):not(:has(details[open])) {
  color: var(--header-ink);
  background: transparent;
  border-color: #322a2426;
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: clamp(24px, 3vw, 48px); }
.header-wordmark { display: flex; flex-direction: column; flex: 0 0 auto; align-items: flex-start; gap: 8px; color: inherit; white-space: nowrap; }
.header-wordmark:hover { color: inherit; text-decoration: none; }
.header-brand-name { font: 400 1.6rem/1 Georgia, 'Times New Roman', serif; letter-spacing: .075em; }
.header-brand-caption { font: 400 .45rem/1.3 var(--font-sans, sans-serif); letter-spacing: .32em; }
.header-primary, .header-actions { display: flex; align-items: center; }
.header-primary { gap: clamp(20px, 2.3vw, 36px); }
.header-actions { gap: 4px; }
.header-menu > summary { display: flex; cursor: pointer; list-style: none; }
.header-menu > summary::-webkit-details-marker { display: none; }
.header-menu > summary::marker { content: ''; }
.header-nav-link, .header-icon-button, .header-basket {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: inherit;
  font: 400 .73rem/1.4 var(--font-sans, sans-serif);
  letter-spacing: .035em;
  white-space: nowrap;
}
.header-nav-link { padding-block: 10px; }
.header-nav-link:hover { color: inherit; text-decoration: none; }
.header-nav-link::after { content: ''; position: absolute; inset: auto 0 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.header-nav-link:is(:hover, :focus-visible, .is-current, [aria-current])::after,
.header-primary [open] > .header-nav-link::after { transform: scaleX(1); }
.header-nav-link svg, .header-language summary svg:last-child { width: 10px; height: 10px; }
.header-menu[open] > summary > svg:last-child { transform: rotate(180deg); }
.header-mobile[open] > summary > svg:last-child { transform: none; }
.header-icon-button, .header-basket { justify-content: center; min-width: 44px; padding: 0 9px; border: 0; border-radius: 0; color: inherit; background: transparent; cursor: pointer; transition: opacity .25s ease; }
.header-icon-button:hover, .header-basket:hover { color: inherit; opacity: .65; }
.header-basket { gap: 8px; margin-inline-start: 5px; }
.header-basket-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#inquiry-count { display: grid; place-items: center; min-width: 15px; height: 20px; font: 400 .65rem/1 var(--font-sans, sans-serif); font-variant-numeric: tabular-nums; }
.header-language summary { gap: 8px; font-size: .64rem; }
.header-language summary > svg:first-child { display: none; }
/* Disclosure menus remain usable without JavaScript. */
.header-mega, .header-mobile-panel { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height)); overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid #322a2430; color: var(--header-ink); background: var(--header-surface); }
.header-mega-inner { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 110px); align-items: center; max-width: 1120px; padding-block: 42px 48px; }
.header-kicker { margin: 0 0 20px; color: #81766b; font: 400 .62rem/1.5 var(--font-sans, sans-serif); letter-spacing: .15em; text-transform: uppercase; }
.room-link, .header-all-link, .header-popover a, .mobile-nav-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.room-link { min-height: 55px; padding: 10px 0; border-bottom: 1px solid #322a2426; font: 400 1.4rem/1.35 var(--font-display, Georgia, serif); }
.room-link:is(:hover, :focus-visible, [aria-current]) { color: #8b6a4d; text-decoration: none; }
.room-link svg, .header-all-link svg { width: 18px; flex-shrink: 0; transition: transform .25s ease; }
.room-link:hover svg, .header-all-link:hover svg { transform: translateX(4px); }
.header-all-link { min-height: 44px; margin-top: 20px; font-size: .75rem; }
.room-preview { position: relative; display: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 0 26px; margin: 0; padding: 22px; color: var(--header-ink); background: #ebe5db; }
.room-preview--default { display: grid; }
.room-preview img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.room-preview-text { display: grid; gap: 12px; }
.room-preview-text strong { font: 400 1.9rem/1.2 var(--font-display, Georgia, serif); }
.room-preview-text span { color: #776a5e; font-size: .78rem; line-height: 1.8; }
.room-preview figcaption { position: static; grid-column: 1 / -1; padding: 15px 0 0; margin-top: 16px; border-top: 1px solid #322a2426; color: #776a5e; background: transparent; font-size: .65rem; }
.header-mega-inner:has(.room-link:is(:hover, :focus-visible)) .room-preview { display: none; }
.header-mega-inner:has([data-room="beds"]:hover) [data-preview="beds"],
.header-mega-inner:has([data-room="storage"]:hover) [data-preview="storage"],
.header-mega-inner:has([data-room="dining"]:hover) [data-preview="dining"],
.header-mega-inner:has([data-room="living"]:hover) [data-preview="living"],
.header-mega-inner:not(:has(.room-link:hover)):has([data-room="beds"]:focus-visible) [data-preview="beds"],
.header-mega-inner:not(:has(.room-link:hover)):has([data-room="storage"]:focus-visible) [data-preview="storage"],
.header-mega-inner:not(:has(.room-link:hover)):has([data-room="dining"]:focus-visible) [data-preview="dining"],
.header-mega-inner:not(:has(.room-link:hover)):has([data-room="living"]:focus-visible) [data-preview="living"] { display: grid; }
.header-guide-menu, .header-about-menu, .header-language { position: relative; }
.header-popover { position: absolute; inset: calc(100% + 12px) 0 auto auto; z-index: 1; width: max-content; min-width: 210px; max-width: calc(100vw - 40px); padding: 14px 20px; border: 1px solid #322a2426; border-radius: 0; color: var(--header-ink); background: var(--header-surface); }
.header-popover a { min-height: 47px; padding: 10px 0; font-size: .76rem; white-space: normal; }
.header-popover a:hover { color: #8b6a4d; text-decoration: none; }
.header-popover a[aria-current] { color: #8b6a4d; }
.header-popover a + a { border-top: 1px solid #322a2417; }
.header-popover a svg { width: 16px; flex: 0 0 auto; }
.header-mobile { display: none; }
.header-mobile-panel > .wrap { padding-block: 18px 32px; }
.mobile-nav-title { min-height: 65px; border-bottom: 1px solid #322a2426; font: 400 1.6rem/1.35 var(--font-display, Georgia, serif); }
.mobile-nav-title:is([aria-current], .is-current) { color: #8b6a4d; }
.mobile-room-list, .mobile-about-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding-block: 7px 18px; }
.mobile-room-list .room-link, .mobile-about-links a { min-height: 44px; padding: 8px 0; font: 400 .77rem/1.6 var(--font-sans, sans-serif); }
.mobile-room-list svg, .mobile-about-links svg { width: 15px; flex: 0 0 auto; }
.mobile-about-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #322a2426; }
.mobile-locale { margin-top: 20px; }
.mobile-locale .header-kicker { margin-bottom: 8px; }
.mobile-locale > div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mobile-locale a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 8px; font-size: .75rem; }
.mobile-locale a[aria-current] { color: #8b6a4d; }
.mobile-locale svg { width: 14px; }
.site-header :focus-visible { outline-color: currentColor; outline-width: 1px; }
@media (max-width: 1200px) {
  .site-header { --header-height: 76px; }
  .header-primary, .header-language { display: none; }
  .header-mobile { display: block; }
  .header-basket { margin-inline-start: 0; }
}
@media (max-width: 480px) {
  .site-header { --header-height: 70px; }
  .header-row { gap: 8px; }
  .header-brand-name { font-size: 1.13rem; letter-spacing: .065em; }
  .header-brand-caption { font-size: .35rem; letter-spacing: .22em; }
  .header-wordmark { gap: 6px; }
  .header-actions { gap: 0; }
  .header-basket { gap: 3px; padding-inline: 4px; }
  .header-actions > .header-icon-button { padding-inline: 5px; }
  .mobile-nav-title { font-size: 1.35rem; }
}
@media (max-width: 360px) {
  .header-brand-name { font-size: .95rem; }
  .header-brand-caption { font-size: .3rem; }
  .header-icon-button, .header-basket { min-width: 40px; }
  .mobile-room-list, .mobile-about-links { column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-nav-link::after, .header-icon-button, .header-basket, .room-link svg, .header-all-link svg { transition: none; }
}
