:root {
  --ink: #263b35;
  --ink-deep: #1c2d28;
  --ivory: #f7f5ef;
  --ivory-soft: rgba(247, 245, 239, .78);
  --glass: rgba(28, 45, 40, .72);
  --glass-strong: rgba(28, 45, 40, .9);
  --line: rgba(247, 245, 239, .22);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: max(16px, env(safe-area-inset-left));
}

* { box-sizing: border-box; }
/* author display rules (e.g. .hm-btn { display: inline-flex }) would otherwise override the hidden attribute */
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--ink-deep); color: var(--ivory); font-family: var(--sans); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
#pano { position: fixed; inset: 0; width: 100%; height: 100%; background: var(--ink-deep); }

button, .hm-btn { font: inherit; color: inherit; }

/* top bar */
.hm-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 18px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 28px;
  background: linear-gradient(to bottom, rgba(20, 32, 28, .78), rgba(20, 32, 28, 0));
  pointer-events: none;
}
.hm-bar > * { pointer-events: auto; }
.hm-brand img { display: block; width: 132px; height: auto; }
.hm-where { min-width: 0; flex: 1; }
.hm-group { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-soft); }
.hm-title {
  margin: 2px 0 0; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hm-actions { display: flex; gap: 8px; }
.hm-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; letter-spacing: .02em; text-decoration: none; cursor: pointer;
}
.hm-btn:hover, .hm-btn:focus-visible { background: var(--glass-strong); border-color: rgba(247, 245, 239, .5); }
.hm-btn[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.hm-btn svg, .hm-rooms-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }

/* room list */
.hm-rooms-toggle {
  position: fixed; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; letter-spacing: .04em; cursor: pointer;
}
.hm-rooms-toggle:hover { background: var(--glass-strong); }
.hm-rooms {
  position: fixed; z-index: 6; top: 0; bottom: 0; right: 0; width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: rgba(24, 38, 34, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-left: 1px solid var(--line); box-shadow: -20px 0 40px rgba(0, 0, 0, .25);
}
.hm-rooms[hidden] { display: none; }
.hm-rooms-head { display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 20px 10px; }
.hm-rooms-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.hm-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.hm-rooms-body { overflow-y: auto; padding: 0 20px max(24px, env(safe-area-inset-bottom)); }
.hm-rooms-body h3 { margin: 18px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-soft); }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-room {
  display: block; padding: 0; border: 1px solid transparent; border-radius: 6px; overflow: hidden;
  background: rgba(247, 245, 239, .06); text-align: left; cursor: pointer;
}
.hm-room img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hm-room span { display: block; padding: 7px 9px 9px; font-size: 13px; line-height: 1.3; }
.hm-room:hover { border-color: rgba(247, 245, 239, .45); }
.hm-room[aria-current="true"] { border-color: var(--ivory); }

/* hotspots */
.hm-hs { width: 0; height: 0; cursor: pointer; }
.hm-hs .hm-hs-ring {
  position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(247, 245, 239, .95); background: rgba(28, 45, 40, .45);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .3); display: grid; place-items: center;
  transition: transform .18s ease, background .18s ease;
}
.hm-hs .hm-hs-ring svg { width: 22px; height: 22px; fill: none; stroke: var(--ivory); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-hs .hm-hs-label {
  position: absolute; left: 50%; top: 34px; transform: translateX(-50%);
  padding: 5px 11px; border-radius: 999px; background: var(--glass-strong); color: var(--ivory);
  font-family: var(--sans); font-size: 13px; white-space: nowrap; pointer-events: none;
  opacity: .92; transition: opacity .18s ease;
}
.hm-hs:hover .hm-hs-ring { transform: scale(1.08); background: rgba(247, 245, 239, .25); }
.hm-hs:hover .hm-hs-label { opacity: 1; }

/* hint */
.hm-hint {
  position: fixed; z-index: 4; left: 50%; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 60px); transform: translateX(-50%);
  margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--glass); font-size: 13px; color: var(--ivory-soft);
  transition: opacity .6s ease; white-space: nowrap; pointer-events: none;
}
.hm-hint.is-gone { opacity: 0; }
.hm-noscript { position: fixed; inset: auto 16px 16px; z-index: 9; padding: 12px; background: var(--ivory); color: var(--ink); }
.hm-noscript a { color: inherit; }

/* Pannellum chrome we do not use */
.pnlm-about-msg, .pnlm-panorama-info, .pnlm-controls-container, .pnlm-compass { display: none !important; }
.pnlm-load-box { background: var(--glass-strong); border-radius: 10px; font-family: var(--sans); }
.pnlm-lbox { border-color: var(--ivory); }
.pnlm-lbar { border-color: var(--ivory); }
.pnlm-lbar-fill { background: var(--ivory); }

/* embedded in the website: no back link, smaller chrome */
.is-embedded .hm-back { display: none; }

@media (max-width: 760px) {
  .hm-bar { gap: 12px; padding-bottom: 22px; }
  .hm-brand img { width: 92px; }
  .hm-title { font-size: 22px; }
  .hm-btn { width: 40px; padding: 0; justify-content: center; }
  .hm-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hm-hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
  .hm-hs .hm-hs-label { font-size: 12px; }
}
@media (max-width: 420px) {
  .hm-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
