/* Compact, language-independent image controls. */
.zoom {
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  background: rgba(56, 60, 61, .5);
  color: #fffaf2;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}
.image-button:hover .zoom,
.image-button:focus-visible .zoom {
  background: rgba(56, 60, 61, .65);
}

/* Keep the language control beside Booking on desktop and beside Menu on phones. */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-controls nav { gap: 24px; }
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.language-picker::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 45%;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-50%);
  pointer-events: none;
}
.language-picker select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 66px;
  min-height: 39px;
  margin: 0;
  padding: 8px 24px 8px 11px;
  border: 1px solid rgba(251, 244, 232, .55);
  border-radius: 0;
  background: rgba(255, 255, 255, .06);
  color: #fbf4e8;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.2;
  cursor: pointer;
}
.language-picker option {
  color: #263b31;
  background: #fffaf2;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.booking form label > span[data-i18n] { color: inherit; }
.scroll-note span[data-i18n] { font-size: inherit; }

/* Use native CJK fonts where the Latin display faces have no glyphs. */
html:lang(zh-CN) {
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
html:lang(ja) {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
}
html:lang(ko) {
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
html:lang(zh-CN) h1,
html:lang(ja) h1,
html:lang(ko) h1,
html:lang(zh-CN) h2,
html:lang(ja) h2,
html:lang(ko) h2 {
  letter-spacing: .015em;
  line-height: 1.32;
}
html:lang(zh-CN) .hero h1,
html:lang(ja) .hero h1,
html:lang(ko) .hero h1 {
  font-size: clamp(42px, 4.8vw, 76px);
}
@media (max-width: 1050px) {
  .menu-toggle {
    display: flex;
    gap: 9px;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 12px 0;
    font-size: 12px;
  }
  .header-controls nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px 6% 28px;
    background: #263b31;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 15px 20px rgba(0, 0, 0, .13);
  }
  .header-controls nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .header-controls nav a { padding: 11px 0; }
  .header-controls nav .nav-book { padding: 11px 18px; margin-top: 10px; }
}
@media (max-width: 760px) {
  .header { gap: 8px; padding: 0 4%; }
  .brand, .hanami-logo { font-size: clamp(16px, 4.5vw, 22px); letter-spacing: clamp(0.14em, 2vw, 0.24em); }
  .brand span, .hanami-logo-subtitle { font-size: 6px; letter-spacing: 1.3px; }
  .header-controls { gap: 9px; }
  .language-picker select {
    min-width: 58px;
    min-height: 35px;
    padding: 7px 19px 7px 8px;
    font-size: 9px;
  }
  .language-picker::after { right: 8px; width: 4px; height: 4px; }
  .menu-toggle { gap: 5px; font-size: 11px; }
  .zoom {
    right: 5px;
    bottom: 5px;
    max-width: calc(100% - 10px);
    padding: 3px 6px;
    font-size: clamp(7.5px, 2vw, 9px);
    white-space: nowrap;
  }
  html:lang(zh-CN) h2,
  html:lang(ja) h2,
  html:lang(ko) h2 {
    font-size: clamp(31px, 8.2vw, 40px);
  }
  html:lang(zh-CN) .hero h1,
  html:lang(ja) .hero h1,
  html:lang(ko) .hero h1 {
    font-size: clamp(38px, 10.5vw, 52px);
  }
}
