/* Hillside Montessori — campus guide skin
   Montessori × nature × architecture × editorial wayfinding.
   The panorama stays the hero. Green is used sparingly. */

:root {
  --hm-forest: #1e4636;
  --hm-forest-deep: #143028;
  --hm-botanical: #6d8a62;
  --hm-sage: #b7c4ae;
  --hm-cream: #f6f1e6;
  --hm-cream-92: rgba(246, 241, 230, 0.92);
  --hm-mist: rgba(246, 241, 230, 0.8);
  --hm-paper: #ebe3d4;
  --hm-sand: #e3d5c0;
  --hm-ink: #2a2622;
  --hm-earth: #5e4e3e;
  --hm-muted: #7a7066;
  --hm-line: rgba(30, 70, 54, 0.16);
  --hm-line-strong: rgba(30, 70, 54, 0.38);
  --hm-white: #fffdf9;
  --hm-shadow: 0 12px 32px rgba(42, 38, 34, 0.1);
  --hm-serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --hm-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --hm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hm-fast: 220ms;
  --hm-slow: 380ms;
}

html, body {
  background: #143028;
}

body {
  font-family: var(--hm-sans);
  color: var(--hm-ink);
}

::selection {
  background: rgba(30, 70, 54, 0.18);
  color: var(--hm-ink);
}

/* ---------- Loading ---------- */

#preloadContainer.hm-preload {
  z-index: 40;
  background: #f3eee4 !important;
  display: grid;
  place-items: center;
}

.hm-loader {
  width: min(420px, calc(100% - 48px));
  text-align: center;
  color: var(--hm-ink);
}

.hm-loader-logo {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.hm-loader-place,
.hm-loader-note {
  margin: 0;
  font-family: var(--hm-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hm-forest);
}

.hm-loader-title {
  margin: 10px 0 0;
  font-family: var(--hm-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--hm-ink);
}

.hm-loader-track {
  width: 148px;
  height: 1px;
  margin: 28px auto 16px;
  background: rgba(30, 70, 54, 0.18);
  overflow: hidden;
}

.hm-loader-track span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--hm-forest);
  animation: hm-load 1.6s var(--hm-ease) infinite;
}

.hm-loader-note {
  color: var(--hm-muted);
  letter-spacing: 0.16em;
}

@keyframes hm-load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ---------- Skin shell ---------- */

.hm-skin {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 480ms var(--hm-ease);
  font-family: var(--hm-sans);
  color: var(--hm-ink);
}

.hm-skin.is-ready {
  opacity: 1;
}

.hm-skin button,
.hm-skin a {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hm-skin :focus {
  outline: none;
}

.hm-skin :focus-visible {
  outline: 1.5px solid var(--hm-forest);
  outline-offset: 3px;
}

.hm-top,
.hm-dock,
.hm-mobile,
.hm-scrim,
.hm-panel,
.hm-veil {
  position: absolute;
}

/* ---------- Top navigation ---------- */

.hm-top {
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hm-brand,
.hm-navcluster,
.hm-card,
.hm-move,
.hm-tools,
.hm-mobile-card,
.hm-mobile-bar,
.hm-panel,
.hm-scrim.is-on {
  pointer-events: auto;
}

.hm-brand {
  display: flex;
  align-items: center;
  padding: 10px 16px 10px 14px;
  background: var(--hm-mist);
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  box-shadow: var(--hm-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform var(--hm-fast) var(--hm-ease), background var(--hm-fast) var(--hm-ease);
}

.hm-brand:hover {
  background: var(--hm-cream-92);
  transform: translateY(-1px);
}

.hm-brand img {
  display: block;
  height: 38px;
  width: auto;
}

.hm-navcluster {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 5px 5px 8px;
  background: var(--hm-mist);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  box-shadow: var(--hm-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hm-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hm-links button,
.hm-menu-btn,
.hm-section-tab,
.hm-place,
.hm-textlink,
.hm-view,
.hm-close {
  border: 0;
  background: transparent;
}

.hm-links button {
  position: relative;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-earth);
  border-radius: 999px;
  transition: color var(--hm-fast) var(--hm-ease), background var(--hm-fast) var(--hm-ease);
}

.hm-links button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: var(--hm-forest);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--hm-slow) var(--hm-ease);
}

.hm-links button:hover,
.hm-links button.is-active {
  color: var(--hm-forest);
}

.hm-links button:hover::after,
.hm-links button.is-active::after {
  transform: scaleX(1);
}

.hm-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hm-forest);
  transition: background var(--hm-fast) var(--hm-ease), border-color var(--hm-fast) var(--hm-ease);
}

.hm-menu-btn:hover,
.hm-menu-btn.is-active {
  background: rgba(30, 70, 54, 0.06);
  border-color: var(--hm-line);
}

.hm-menu-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ---------- Location card and dock ---------- */

.hm-dock {
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr auto;
  align-items: end;
  gap: 22px;
}

.hm-card {
  position: relative;
  padding: 16px 18px 14px;
  background: var(--hm-mist);
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  box-shadow: var(--hm-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.hm-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 48px;
  color: var(--hm-botanical);
  opacity: 0.45;
  pointer-events: none;
}

.hm-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hm-forest);
}

.hm-card h2,
.hm-panel h2,
.hm-veil strong {
  font-family: var(--hm-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--hm-ink);
}

.hm-card h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.02;
}

.hm-meta {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hm-earth);
}

.hm-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hm-view {
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--hm-line) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--hm-earth);
  transition: background var(--hm-fast) var(--hm-ease), color var(--hm-fast) var(--hm-ease), border-color var(--hm-fast) var(--hm-ease);
}

.hm-view:hover,
.hm-view.is-active {
  color: var(--hm-forest);
  border-color: var(--hm-line-strong) !important;
  background: rgba(30, 70, 54, 0.05);
}

.hm-continue {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--hm-line);
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hm-forest);
  transition: color var(--hm-fast) var(--hm-ease);
}

.hm-continue svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform var(--hm-slow) var(--hm-ease);
}

.hm-continue:hover {
  color: var(--hm-forest-deep);
}

.hm-continue:hover svg {
  transform: translateX(3px);
}

.hm-move {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}

.hm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--hm-forest);
}

.hm-step > span:first-child {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-cream);
  text-shadow: 0 1px 8px rgba(20, 48, 40, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--hm-fast) var(--hm-ease), transform var(--hm-fast) var(--hm-ease);
}

.hm-step:hover > span:first-child,
.hm-step:focus-visible > span:first-child {
  opacity: 1;
  transform: none;
}

.hm-tools {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.hm-circle,
.hm-mapbtn {
  display: grid;
  place-items: center;
  background: var(--hm-mist);
  border: 1px solid var(--hm-forest);
  color: var(--hm-forest);
  box-shadow: var(--hm-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--hm-fast) var(--hm-ease), background var(--hm-fast) var(--hm-ease), border-color var(--hm-fast) var(--hm-ease);
}

.hm-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
}

.hm-circle svg,
.hm-mapbtn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hm-circle:hover,
.hm-mapbtn:hover,
.hm-circle.is-active,
.hm-mapbtn.is-active {
  transform: scale(1.05);
  background: var(--hm-cream);
  border-color: var(--hm-forest-deep);
}

.hm-mapbtn {
  width: 64px;
  height: 48px;
  border-radius: 14px;
  padding: 0;
}

.hm-mapbtn img {
  width: 46px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ---------- Hotspot language ---------- */

.hm-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}

.hm-marker i,
.hm-spot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 13px auto;
  border-radius: 50%;
  background: var(--hm-forest);
  box-shadow: 0 0 0 4px rgba(246, 241, 230, 0.92), 0 0 0 5px rgba(30, 70, 54, 0.55);
  transition: transform var(--hm-slow) var(--hm-ease);
}

.hm-marker::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(30, 70, 54, 0.35);
  border-radius: 50%;
  transition: transform var(--hm-slow) var(--hm-ease), opacity var(--hm-slow) var(--hm-ease);
}

.hm-marker:hover,
.hm-marker:focus-visible {
  z-index: 3;
}

.hm-marker:hover i,
.hm-marker:focus-visible i,
.hm-marker.is-here i {
  transform: scale(1.2);
}

.hm-marker:hover::before,
.hm-marker:focus-visible::before {
  transform: scale(1.28);
  opacity: 0.9;
}

.hm-marker.is-here::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--hm-forest);
  border-radius: 50%;
  animation: hm-pulse 2.8s var(--hm-ease) infinite;
}

@keyframes hm-pulse {
  0% { transform: scale(0.9); opacity: 0.45; }
  80% { transform: scale(1.55); opacity: 0; }
  100% { opacity: 0; }
}

.hm-marker[data-tip]::after,
.hm-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--hm-cream-92);
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
  color: var(--hm-forest-deep);
  font-family: var(--hm-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hm-fast) var(--hm-ease), transform var(--hm-fast) var(--hm-ease);
}

.hm-marker[data-tip]:hover::after,
.hm-marker[data-tip]:focus-visible::after,
.hm-tip[data-tip]:hover::after,
.hm-tip[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hm-step.hm-tip {
  position: relative;
}

/* Soften the built-in panorama markers toward the botanical palette. */
#viewer img.hm-spot-img {
  filter: sepia(0.45) hue-rotate(46deg) saturate(0.65) brightness(0.96);
}

/* ---------- Panels ---------- */

.hm-scrim {
  inset: 0;
  z-index: 5;
  background: rgba(32, 28, 24, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--hm-slow) var(--hm-ease), visibility var(--hm-slow);
}

.hm-skin.has-panel .hm-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hm-panel {
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: var(--hm-cream-92);
  border: 1px solid var(--hm-line);
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(42, 38, 34, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--hm-slow) var(--hm-ease), transform var(--hm-slow) var(--hm-ease), visibility var(--hm-slow);
  overflow: auto;
}

.hm-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hm-menu {
  top: 86px;
  right: 22px;
  bottom: 28px;
  width: min(400px, calc(100vw - 44px));
}

.hm-info {
  top: 86px;
  left: 22px;
  bottom: 28px;
  width: min(440px, calc(100vw - 44px));
}

.hm-map {
  width: min(780px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 48px));
}

@media (min-width: 821px) {
  .hm-map {
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 12px));
  }

  .hm-map.is-open {
    transform: translate(-50%, -50%);
  }
}

.hm-panel-head,
.hm-panel-body,
.hm-panel-foot {
  padding-left: 26px;
  padding-right: 26px;
}

.hm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.hm-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hm-forest);
}

.hm-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 0.98;
}

.hm-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hm-earth);
}

.hm-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hm-line) !important;
  color: var(--hm-forest);
  transition: background var(--hm-fast) var(--hm-ease), transform var(--hm-fast) var(--hm-ease);
}

.hm-close:hover {
  background: rgba(30, 70, 54, 0.06);
  transform: scale(1.04);
}

.hm-close svg {
  width: 14px;
  height: 14px;
}

.hm-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 26px 0;
  color: var(--hm-botanical);
}

.hm-rule span {
  flex: 1;
  height: 1px;
  background: var(--hm-line);
}

.hm-rule svg {
  width: 18px;
  height: 12px;
  flex: none;
}

.hm-panel-body {
  padding-top: 16px;
  padding-bottom: 8px;
}

.hm-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}

.hm-section-tab {
  padding: 7px 2px;
  border-radius: 999px;
  border: 1px solid transparent !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--hm-muted);
  transition: color var(--hm-fast) var(--hm-ease), border-color var(--hm-fast) var(--hm-ease), background var(--hm-fast) var(--hm-ease);
}

.hm-section-tab:hover,
.hm-section-tab.is-active {
  color: var(--hm-forest);
  border-color: var(--hm-line) !important;
  background: rgba(30, 70, 54, 0.04);
}

.hm-group {
  margin: 14px 0 0;
}

.hm-group h3 {
  margin: 0 0 4px;
  font-family: var(--hm-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-muted);
}

.hm-place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid var(--hm-line);
  text-align: left;
  transition: color var(--hm-fast) var(--hm-ease);
}

.hm-place strong {
  display: block;
  font-family: var(--hm-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hm-place em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--hm-muted);
}

.hm-place svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--hm-forest);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--hm-fast) var(--hm-ease), transform var(--hm-fast) var(--hm-ease);
}

.hm-place:hover,
.hm-place.is-active {
  color: var(--hm-forest-deep);
}

.hm-place:hover svg,
.hm-place.is-active svg {
  opacity: 1;
  transform: none;
}

.hm-place.is-active strong {
  color: var(--hm-forest);
}

.hm-prose {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--hm-ink);
}

.hm-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 20px 0 0;
}

.hm-facts div:last-child {
  grid-column: 1 / -1;
}

.hm-facts dt {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-forest);
}

.hm-facts dd {
  margin: 0;
  font-family: var(--hm-serif);
  font-size: 18px;
  line-height: 1.25;
}

.hm-plan-wrap {
  position: relative;
  margin-top: 6px;
  aspect-ratio: 1251 / 694;
  max-height: 52vh;
  border-radius: 16px;
  background: #c4b5a0;
  border: 1px solid var(--hm-line);
  overflow: hidden;
}

.hm-plan-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-plan-wrap .hm-marker i {
  box-shadow: 0 0 0 3px #f6f1e6, 0 0 0 4.5px rgba(30, 70, 54, 0.9), 0 1px 3px rgba(20, 16, 12, 0.45);
}

.hm-here-label {
  margin: 14px 0 2px;
  font-size: 13px;
  color: var(--hm-earth);
}

.hm-here-label b {
  font-family: var(--hm-serif);
  font-weight: 500;
  color: var(--hm-ink);
  font-size: 16px;
}

.hm-panel-foot {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hm-muted);
}

.hm-panel-foot a {
  color: var(--hm-forest);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 70, 54, 0.3);
}

.hm-panel-foot a:hover {
  border-bottom-color: var(--hm-forest);
}

.hm-hill {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 14px;
  color: var(--hm-botanical);
  opacity: 0.7;
}

.hm-skin.has-panel .hm-dock,
.hm-skin.has-panel .hm-mobile {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Transition ---------- */

.hm-veil {
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: rgba(246, 241, 230, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms var(--hm-ease), visibility 360ms;
  text-align: center;
  pointer-events: none;
}

.hm-skin.is-veiling .hm-veil {
  opacity: 1;
  visibility: visible;
}

.hm-veil span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hm-forest);
}

.hm-veil strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  transform: translateY(6px);
  transition: transform 400ms var(--hm-ease);
}

.hm-skin.is-veiling .hm-veil strong {
  transform: none;
}

/* ---------- Mobile ---------- */

.hm-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .hm-links button {
    padding: 10px 10px;
    letter-spacing: 0.12em;
  }

  .hm-card h2 {
    font-size: 26px;
  }
}

@media (max-width: 820px) {
  .hm-links,
  .hm-menu-btn,
  .hm-dock {
    display: none;
  }

  .hm-top {
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
  }

  .hm-brand {
    padding: 8px 12px;
  }

  .hm-brand img {
    height: 28px;
  }

  .hm-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 4;
  }

  .hm-mobile-card {
    align-self: flex-start;
    max-width: min(280px, 78vw);
    padding: 10px 12px 11px;
    background: var(--hm-mist);
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    box-shadow: var(--hm-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hm-mobile-card h2 {
    margin: 3px 0 0;
    font-family: var(--hm-serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  .hm-mobile-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 6px;
    background: var(--hm-mist);
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    box-shadow: var(--hm-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hm-mobile-bar button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--hm-forest);
    display: grid;
    place-items: center;
    transition: background var(--hm-fast) var(--hm-ease);
  }

  .hm-mobile-bar button:hover,
  .hm-mobile-bar button.is-active {
    background: rgba(30, 70, 54, 0.08);
  }

  .hm-mobile-bar svg {
    width: 20px;
    height: 20px;
  }

  .hm-menu,
  .hm-info,
  .hm-map {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(78vh, 680px);
    transform: translateY(14px);
  }

  .hm-map.is-open,
  .hm-menu.is-open,
  .hm-info.is-open {
    transform: none;
  }

  .hm-panel-head,
  .hm-panel-body,
  .hm-panel-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hm-facts {
    grid-template-columns: 1fr;
  }

  .hm-facts div:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-skin *,
  .hm-skin *::before,
  .hm-skin *::after,
  .hm-loader-track span,
  .hm-marker.is-here::after {
    animation: none !important;
    transition: none !important;
  }
}
