:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ink: #f4f7f8;
  --muted: #9aa8b4;
  --line: rgba(220, 231, 238, 0.16);
  --paper: #0b1116;
  --panel: #151a20;
  --panel-strong: rgba(15, 18, 22, 0.96);
  --panel-soft: rgba(21, 26, 32, 0.94);
  --accent: #5eead4;
  --accent-dark: #2dd4bf;
  --accent-contrast: #06211d;
  --danger: #fb7185;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  --map-stage-bg: #111820;
  --map-grid-line: rgba(94, 234, 212, 0.08);
  --control-bg: rgba(21, 26, 32, 0.94);
  --control-hover-border: rgba(94, 234, 212, 0.44);
  --panel-border: rgba(220, 231, 238, 0.14);
  --list-selected: rgba(20, 184, 166, 0.16);
  --list-hover: rgba(220, 231, 238, 0.07);
  --rank-bg: #25313a;
  --rank-fg: #d3dee6;
  --metric: #99f6e4;
  --booking-cta-bg: rgba(94, 234, 212, 0.1);
  --booking-cta-border: rgba(94, 234, 212, 0.42);
  --booking-cta-hover-bg: rgba(94, 234, 212, 0.18);
  --sheet-handle: #647482;
  --bottom-nav-base-height: 66px;
  --mobile-sheet-drag-region-height: 88px;
  --mobile-sheet-open-height: min(74vh, calc(100dvh - 116px));
}

body[data-theme="light"] {
  color-scheme: light;
  --ink: #172026;
  --muted: #66737d;
  --line: #d9e0e4;
  --paper: #f7f9fa;
  --panel: #ffffff;
  --panel-strong: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.92);
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-contrast: #ffffff;
  --danger: #b42318;
  --shadow: 0 16px 45px rgba(23, 32, 38, 0.14);
  --map-stage-bg: #edf3f1;
  --map-grid-line: rgba(15, 118, 110, 0.08);
  --control-bg: rgba(255, 255, 255, 0.96);
  --control-hover-border: rgba(15, 118, 110, 0.44);
  --panel-border: rgba(217, 224, 228, 0.84);
  --list-selected: #eef7f5;
  --list-hover: #f2f6f7;
  --rank-bg: #e7eef1;
  --rank-fg: #465762;
  --metric: #0f513f;
  --booking-cta-bg: rgba(15, 118, 110, 0.08);
  --booking-cta-border: rgba(15, 118, 110, 0.36);
  --booking-cta-hover-bg: rgba(15, 118, 110, 0.14);
  --sheet-handle: #a7b2bb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.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;
}

.map-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  min-height: 520px;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--map-stage-bg);
}

.map-topbar {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.map-topbar__left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.population-badge {
  display: inline-flex;
  max-width: min(48vw, 210px);
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: #151a20;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.population-badge__icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.population-badge__icon::before,
.population-badge__icon::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.population-badge__icon::before {
  top: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.population-badge__icon::after {
  bottom: 0;
  width: 13px;
  height: 7px;
  border: 2px solid currentColor;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 0;
}

.population-badge__value {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.population-badge[data-congestion="busy"] .population-badge__icon {
  color: #f87171;
}

.population-badge[data-congestion="normal"] .population-badge__icon {
  color: #fbbf24;
}

.population-badge[data-congestion="calm"] .population-badge__icon {
  color: var(--accent);
}

.population-badge[data-congestion="unavailable"] {
  color: var(--muted);
}

.population-badge[data-congestion="unavailable"] .population-badge__icon {
  color: var(--muted);
}

body[data-theme="light"] .population-badge {
  background: #ffffff;
}

.gps-badge {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: #151a20;
  color: #94a3b8;
  isolation: isolate;
  pointer-events: auto;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gps-badge::before {
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(56, 189, 248, 0.56);
  border-radius: inherit;
  opacity: 0;
  content: "";
  pointer-events: none;
  transform: scale(0.9);
}

.gps-badge:hover {
  border-color: var(--control-hover-border);
}

.gps-badge__label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.gps-badge[data-gps-status="locating"]::before,
.gps-badge[data-gps-status="active"]::before {
  animation: gps-badge-ring 1.35s ease-out infinite;
}

.gps-badge[data-gps-status="locating"] {
  border-color: rgba(56, 189, 248, 0.48);
  color: #38bdf8;
}

.gps-badge[data-gps-status="locating"] .gps-badge__label {
  animation: gps-badge-pulse 0.9s ease-in-out infinite;
}

.gps-badge[data-gps-status="active"] {
  border-color: rgba(56, 189, 248, 0.62);
  color: #38bdf8;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(56, 189, 248, 0.14);
}

.gps-badge[data-gps-status="error"] {
  border-color: rgba(251, 113, 133, 0.54);
  color: var(--danger);
}

.gps-badge[data-gps-status="unavailable"] {
  color: var(--muted);
}

body[data-theme="light"] .gps-badge {
  background: #ffffff;
}

.locale-select {
  flex: 0 0 auto;
  max-width: 112px;
  min-height: 34px;
  padding: 7px 28px 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: #151a20;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  pointer-events: auto;
  cursor: pointer;
}

.locale-select:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.58);
  outline-offset: 3px;
}

body[data-theme="light"] .locale-select {
  background: #ffffff;
}

.building-search-zoom {
  --building-search-zoom-progress: 0.6020;
  --building-search-zoom-thumb-offset: 62px;
  --building-search-zoom-thumb-travel: calc(100% - 124px);

  position: relative;
  display: grid;
  flex: 0 0 200px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
  min-width: 180px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ink);
  pointer-events: auto;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.building-search-zoom * {
  -webkit-tap-highlight-color: transparent;
}

.building-search-zoom__step {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 6px;
  background: rgba(21, 26, 32, 0.36);
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  touch-action: manipulation;
  white-space: nowrap;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.building-search-zoom__step:disabled {
  color: rgba(148, 163, 184, 0.58);
  cursor: default;
  opacity: 0.64;
}

.building-search-zoom__step:not(:disabled):active,
.building-search-zoom__step[data-repeating="true"]:not(:disabled) {
  border-color: rgba(94, 234, 212, 0.56);
  background: rgba(94, 234, 212, 0.12);
}

.building-search-zoom__step:focus,
.building-search-zoom__step:focus-visible {
  outline: 0;
}

.building-search-zoom__input {
  width: 100%;
  min-width: 0;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.building-search-zoom__input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.building-search-zoom__input::-webkit-slider-thumb {
  width: 40px;
  height: 40px;
  margin-top: -18px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  box-shadow: none;
}

.building-search-zoom__input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.building-search-zoom__input::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.building-search-zoom__input:focus,
.building-search-zoom__input:focus-visible {
  outline: 0;
}

body[data-theme="light"] .building-search-zoom {
  background: #ffffff;
}

.building-search-zoom__value {
  position: absolute;
  top: 50%;
  left: calc(
    var(--building-search-zoom-thumb-offset) +
      var(--building-search-zoom-progress, 0.6020) *
      var(--building-search-zoom-thumb-travel)
  );
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(94, 234, 212, 0.94);
  border-radius: 999px;
  background: #151a20;
  color: #ffffff;
  font-size: 10px;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow:
    0 0 13px rgba(94, 234, 212, 0.34),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

.building-search-zoom__halo {
  display: none;
}

body[data-theme="light"] .building-search-zoom__value {
  background: #ffffff;
}

.building-search {
  position: relative;
  display: grid;
  flex: 0 1 min(420px, 42vw);
  min-width: 238px;
  max-width: 460px;
  pointer-events: auto;
}

.building-search__field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 2px 2px 2px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.building-search__field > .control-icon {
  color: var(--muted);
}

.building-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0;
}

.building-search__input::placeholder {
  color: var(--muted);
  opacity: 0.86;
}

.building-search__submit {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(220, 231, 238, 0.12);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.building-search__submit:hover {
  background: rgba(94, 234, 212, 0.1);
}

.building-search__submit:disabled {
  color: var(--muted);
  cursor: progress;
}

.building-search__results {
  isolation: isolate;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: block;
  width: 100%;
  max-height: min(360px, 42vh);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background-color: var(--panel-strong);
  box-shadow: var(--shadow);
}

.building-search__results-scroll {
  position: relative;
  z-index: 1;
  display: grid;
  max-height: min(360px, 42vh);
  overflow: auto;
  padding: 6px;
  gap: 4px;
  border-radius: inherit;
}

.building-search__results > :not(.building-search__more-effect) {
  position: relative;
  z-index: 1;
}

.building-search__more-effect {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 30px;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0;
  filter: saturate(1.55) brightness(1.26);
  transform: translateZ(0);
  transition: opacity 140ms ease;
}

.building-search__results[data-more-effect="below"] .building-search__more-effect {
  opacity: 1;
}

.building-search__results[hidden] {
  display: none;
}

.building-search__result {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.building-search__recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 4px;
}

.building-search__recent-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.building-search__recent-clear,
.building-search__recent-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.building-search__recent-clear {
  min-height: 26px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.building-search__recent-clear:hover,
.building-search__recent-clear:focus-visible,
.building-search__recent-remove:hover,
.building-search__recent-remove:focus-visible {
  background: rgba(220, 231, 238, 0.08);
  color: var(--ink);
  outline: 0;
}

.building-search__recent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
  gap: 2px;
}

.building-search__result--recent {
  border-radius: 6px 4px 4px 6px;
}

.building-search__recent-remove {
  display: grid;
  width: 30px;
  min-height: 44px;
  place-items: center;
  border-radius: 4px 6px 6px 4px;
}

.building-search__recent-remove svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.building-search__result--hotel {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
}

.building-search__result:hover,
.building-search__result:focus-visible {
  outline: 0;
}

body[data-building-search-focus="active"] .map-topbar__left,
body[data-building-search-focus="active"] .building-search-zoom,
body[data-building-search-focus="active"] .map-controls,
body[data-building-search-focus="active"] .hotel-list-panel:not(.is-hidden),
body[data-building-search-focus="active"] .display-panel:not(.is-hidden),
body[data-building-search-focus="active"] .settings-panel:not(.is-hidden),
body[data-building-search-focus="active"] .bottom-nav {
  opacity: 0.1;
  transition:
    opacity 160ms ease,
    filter 160ms ease;
  filter: brightness(0.65) saturate(0.7);
}

@media (hover: hover) and (pointer: fine) {
  .building-search__result:hover,
  .building-search__result:focus-visible {
    border-color: var(--control-hover-border);
    background: rgba(220, 231, 238, 0.07);
  }
}

.building-search__result-body {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.building-search__result-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.building-search__result-icon--hotel {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid rgba(99, 232, 215, 0.72);
  border-radius: 5px;
  background: rgba(48, 215, 197, 0.12);
  box-shadow: 0 0 0 1px rgba(99, 232, 215, 0.1);
  color: var(--accent);
}

.building-search__result-icon--recent {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid rgba(148, 163, 184, 0.64);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
}

.building-search__result-icon--hotel svg,
.building-search__result-icon--recent svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.building-search__result-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.building-search__result-address,
.building-search__message {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.building-search__match {
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.24);
}

.building-search__result-address .building-search__match {
  color: #8ff7e9;
  font-weight: 850;
}

.building-search__message {
  padding: 9px 10px;
}

@keyframes gps-badge-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes gps-badge-ring {
  0% {
    opacity: 0.64;
    transform: scale(0.9);
  }

  72% {
    opacity: 0.12;
    transform: scale(1.26);
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: filter 160ms ease;
}

body[data-building-search-focus="active"] .map-canvas {
  filter: brightness(0.1) saturate(0.55);
}

.map-canvas,
.hotel-map,
.map-canvas .maplibregl-map,
.map-canvas .maplibregl-canvas {
  width: 100%;
  height: 100%;
}

.hotel-map {
  position: relative;
  overflow: hidden;
  background: var(--map-stage-bg);
}

body:not([data-map-ready="true"]) .hotel-map {
  visibility: hidden;
}

.map-canvas .maplibregl-canvas {
  display: block;
  cursor: grab;
  touch-action: none;
}

.map-canvas .maplibregl-canvas:active {
  cursor: grabbing;
}

.coordinate-popup .maplibregl-popup-content {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.96);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.36);
}

.coordinate-popup .maplibregl-popup-tip {
  border-top-color: rgba(7, 17, 22, 0.96);
  border-bottom-color: rgba(7, 17, 22, 0.96);
}

.coordinate-popup .maplibregl-popup-close-button {
  top: 5px;
  right: 7px;
  color: var(--muted);
  font-size: 18px;
}

.coordinate-popup__content {
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 12px;
}

.coordinate-popup__title {
  padding-right: 24px;
  color: #fde68a;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.coordinate-popup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.coordinate-popup__row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.coordinate-popup__code {
  display: block;
  padding: 7px 8px;
  border: 1px solid rgba(220, 231, 238, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #99f6e4;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.coordinate-popup__copy {
  height: 32px;
  border: 1px solid rgba(94, 234, 212, 0.38);
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.13);
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.maplibregl-control-container {
  display: none;
}

.map-controls {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--control-hover-border);
  color: var(--accent-dark);
}

.selected-location-address {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: calc(var(--bottom-nav-base-height) + 10px + env(safe-area-inset-bottom, 0px));
  left: 18px;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 8px;
  background: rgba(11, 17, 22, 0.86);
  color: #ccfbf1;
  box-shadow: var(--shadow);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.selected-location-address[hidden] {
  display: none;
}

.selected-location-address__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.icon-button svg,
.control-icon {
  width: 20px;
  height: 20px;
}

.control-icon {
  position: relative;
  display: block;
  color: currentColor;
}

.control-icon::before,
.control-icon::after {
  position: absolute;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.control-icon--zoom-in::before,
.control-icon--zoom-out::before {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}

.control-icon--zoom-in::after {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}

.control-icon--reset {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.control-icon--reset::before {
  width: 2px;
  height: 22px;
  top: -3px;
  left: 7px;
}

.control-icon--reset::after {
  width: 22px;
  height: 2px;
  top: 7px;
  left: -3px;
}

.control-icon--search {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.control-icon--search::before {
  width: 8px;
  height: 2px;
  top: 12px;
  left: 12px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.control-icon--search::after {
  display: none;
}

.hotel-list-panel,
.display-panel,
.settings-panel {
  position: absolute;
  isolation: isolate;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-base-height) + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: var(--mobile-sheet-drag-region-height) minmax(0, 1fr);
  height: var(--mobile-sheet-open-height);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    visibility 0s linear 0s;
  will-change: transform;
}

.sheet-drag-shader {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sheet-drag-shader[hidden] {
  display: none;
}

.hotel-list-panel > .sheet-drag-shader,
.display-panel > .sheet-drag-shader,
.settings-panel > .sheet-drag-shader {
  bottom: auto;
  height: var(--mobile-sheet-drag-region-height);
  border-radius: 22px 22px 0 0;
}

.booking-dialog > .sheet-drag-shader {
  bottom: auto;
  height: 96px;
  border-radius: 22px 22px 0 0;
}

.mobile-sheet-drag-region,
.hotel-list,
.display-panel__list,
.settings-panel__list {
  position: relative;
  z-index: 1;
}

.hotel-list-panel.is-hidden,
.display-panel.is-hidden,
.settings-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 160ms ease,
    visibility 0s linear 220ms;
}

.hotel-list-panel.is-closing,
.display-panel.is-closing,
.settings-panel.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 160ms ease,
    visibility 0s linear 220ms;
}

.hotel-list-panel.is-switch-hidden,
.display-panel.is-switch-hidden,
.settings-panel.is-switch-hidden {
  transition: none !important;
}

.hotel-list-panel.is-switching-out,
.display-panel.is-switching-out,
.settings-panel.is-switching-out {
  z-index: 5;
  pointer-events: none !important;
}

.hotel-list-panel.is-switching-in,
.display-panel.is-switching-in,
.settings-panel.is-switching-in {
  z-index: 6;
}

.hotel-list-panel.is-dragging,
.display-panel.is-dragging,
.settings-panel.is-dragging,
.booking-dialog.is-dragging {
  transition: none;
}

.mobile-sheet-drag-region {
  display: grid;
  grid-template-rows: 26px minmax(0, 1fr);
  min-height: var(--mobile-sheet-drag-region-height);
  border-bottom: 1px solid var(--panel-border);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hotel-list-panel__handle,
.display-panel__handle,
.settings-panel__handle {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 96px;
  height: 26px;
  margin-top: 0;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.hotel-list-panel__handle::before,
.display-panel__handle::before,
.settings-panel__handle::before {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--sheet-handle);
  content: "";
}

.hotel-list-panel.is-dragging .hotel-list-panel__handle,
.display-panel.is-dragging .display-panel__handle,
.settings-panel.is-dragging .settings-panel__handle {
  cursor: grabbing;
}

.hotel-list-panel.is-dragging .mobile-sheet-drag-region,
.display-panel.is-dragging .mobile-sheet-drag-region,
.settings-panel.is-dragging .mobile-sheet-drag-region {
  cursor: grabbing;
}

.hotel-list-panel__header,
.display-panel__header,
.settings-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 8px 22px 14px;
}

.display-panel__header,
.settings-panel__header {
  justify-content: flex-start;
}

.hotel-list-panel__header h2,
.display-panel__header h2,
.settings-panel__header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: 0;
}

.hotel-list-sort {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(220, 231, 238, 0.05);
}

.hotel-list-sort__button {
  position: relative;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  flex: 1 1 auto;
  box-sizing: border-box;
  height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  clip-path: inset(0 round 999px);
  color: var(--muted);
  contain: paint;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
}

.hotel-list-sort__button::before,
.hotel-list-sort__button::after {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  clip-path: inset(0 round 999px);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.hotel-list-sort__button::before {
  z-index: 0;
  background: transparent;
}

.hotel-list-sort__button::after {
  display: none;
}

.hotel-list-sort__button.is-active {
  background: rgba(10, 18, 24, 0.78);
  border-color: #2dd4bf;
  color: #f8fffd;
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.22),
    0 0 10px rgba(45, 212, 191, 0.18);
  text-shadow: none;
}

.hotel-list-sort__button.is-active::before,
.hotel-list-sort__button.is-active::after {
  opacity: 1;
}

.hotel-list-sort__button.is-active::before {
  animation: none;
}

.hotel-list-sort__button.is-active::after {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hotel-list-sort__button.is-active::before,
  .hotel-list-sort__button.is-active::after {
    animation: none;
  }
}

.display-panel__list,
.settings-panel__list {
  display: grid;
  align-content: start;
  gap: 0;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding: 6px 12px 16px;
}

.display-toggle,
.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border-bottom: 1px solid rgba(220, 231, 238, 0.08);
  color: var(--ink);
}

.display-toggle__text,
.settings-row__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.display-toggle__label,
.settings-row__label {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.display-toggle__description,
.settings-row__description {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.settings-panel .locale-select {
  width: min(168px, 44vw);
  max-width: none;
  min-height: 38px;
  border-radius: 8px;
  background: rgba(11, 17, 22, 0.64);
}

.display-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.display-toggle__switch {
  position: relative;
  width: 46px;
  height: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
}

.display-toggle__switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transition: transform 160ms ease;
}

.display-toggle__input:checked + .display-toggle__switch {
  border-color: rgba(94, 234, 212, 0.5);
  background: var(--accent);
}

.display-toggle__input:checked + .display-toggle__switch::after {
  background: var(--accent-contrast);
  transform: translateX(18px);
}

.display-toggle:focus-within .display-toggle__switch {
  outline: 2px solid rgba(94, 234, 212, 0.45);
  outline-offset: 2px;
}

.hotel-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px 12px 16px;
}

.hotel-list__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.hotel-list__item.is-selected {
  background: var(--list-selected);
}

.hotel-list__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
  .hotel-list__item:not(.is-selected):hover {
    background: var(--list-hover);
  }
}

.hotel-list__rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--rank-bg);
  color: var(--rank-fg);
  font-size: 11px;
  font-weight: 780;
}

.hotel-list__item.is-selected .hotel-list__rank {
  background: var(--accent);
  color: var(--accent-contrast);
}

.hotel-list__body {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.hotel-list__title,
.hotel-list__summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-list__title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hotel-list__name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-list__summary {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hotel-list__stars {
  flex: 0 0 auto;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.hotel-list__stars.is-missing {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.hotel-list__status {
  flex: 0 0 auto;
  max-width: 72px;
  overflow: hidden;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-list__badge {
  display: inline-flex;
  min-width: 0;
  max-width: 84px;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(220, 231, 238, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-list__badge--room {
  color: var(--ink);
}

.hotel-list__badge--area {
  color: var(--metric);
}

.hotel-list__actions {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.hotel-list__booking-link {
  appearance: none;
  display: inline-flex;
  min-width: 56px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--booking-cta-border);
  border-radius: 8px;
  background: var(--booking-cta-bg);
  color: var(--accent);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.hotel-list__booking-link:hover,
.hotel-list__booking-link:focus-visible {
  background: var(--booking-cta-hover-bg);
  outline: none;
}

.hotel-list__booking-link:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hotel-list__booking-link[data-booking-status="error"] {
  border-color: var(--danger);
  color: var(--danger);
}

.booking-dialog-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: end;
  padding-top: 24px;
  background: rgba(0, 0, 0, 0.36);
  transition: background 180ms ease;
}

.booking-dialog {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 460px);
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--panel-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: booking-dialog-slide-up 220ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.booking-dialog > :not(.sheet-drag-shader) {
  position: relative;
  z-index: 1;
}

.booking-dialog-backdrop.is-closing {
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
}

.booking-dialog-backdrop.is-closing .booking-dialog {
  transform: translateY(calc(100% + 24px));
}

.app-back-toast {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  max-width: min(320px, calc(100vw - 48px));
  padding: 12px 16px;
  border: 1px solid rgba(95, 232, 210, 0.34);
  border-radius: 999px;
  background: rgba(16, 20, 25, 0.94);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-back-toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

.booking-dialog__handle {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 96px;
  height: 26px;
  margin-top: 4px;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.booking-dialog__handle::before {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--sheet-handle);
  content: "";
}

.booking-dialog.is-dragging .booking-dialog__handle {
  cursor: grabbing;
}

.booking-dialog__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 22px 4px;
}

.booking-dialog__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: 0;
}

.booking-dialog__hotel {
  margin: 0;
  padding: 0 22px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.booking-dialog__form {
  display: grid;
  gap: 14px;
  padding: 0 22px calc(18px + env(safe-area-inset-bottom, 0px));
}

.booking-dialog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-dialog__field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
}

.booking-dialog__input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.booking-dialog__input:focus {
  border-color: var(--accent);
  outline: none;
}

.booking-dialog__note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.booking-dialog__error {
  min-height: 16px;
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.booking-dialog__actions {
  display: grid;
}

.booking-dialog__submit {
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  cursor: pointer;
  font-size: 15px;
  font-weight: 840;
}

.bottom-nav {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--bottom-nav-base-height) + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  padding: 5px 18px calc(5px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--panel-border);
  background: var(--panel-strong);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.bottom-nav__button {
  display: grid;
  width: 72px;
  min-width: 0;
  height: 48px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.bottom-nav__button.is-active {
  background: transparent;
  color: var(--accent);
}

.bottom-nav__label {
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.nav-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  content: "";
  border-color: currentColor;
}

.nav-icon--map {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--map::before {
  width: 4px;
  height: 4px;
  right: 3px;
  bottom: 3px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.nav-icon--grade::before,
.nav-icon--grade::after,
.nav-icon--area::before,
.nav-icon--area::after {
  left: 2px;
  right: 2px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.nav-icon--grade::before {
  top: 4px;
  box-shadow:
    0 5px 0 currentColor,
    0 10px 0 currentColor;
}

.nav-icon--grade::after {
  display: none;
}

.nav-icon--area {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon--area::before {
  top: 5px;
}

.nav-icon--area::after {
  top: 10px;
}

.nav-icon--hotels {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--hotels::before,
.nav-icon--hotels::after {
  left: 3px;
  right: 3px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.nav-icon--hotels::before {
  top: 5px;
  box-shadow: 0 5px 0 currentColor;
}

.nav-icon--hotels::after {
  top: 15px;
}

.nav-icon--display {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.nav-icon--display::before,
.nav-icon--display::after {
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.nav-icon--display::before {
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  box-shadow: 8px 8px 0 currentColor;
}

.nav-icon--display::after {
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
}

.nav-icon--settings {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.nav-icon--settings::before {
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.nav-icon--settings::after {
  top: -2px;
  left: 7px;
  width: 2px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  transform: rotate(45deg);
}

body[data-page-variant="mobile"] {
  --bottom-nav-base-height: 50px;
  --mobile-sheet-open-height: min(76vh, calc(100dvh - 104px));
  overflow: hidden;
}

body[data-page-variant="mobile"] .map-app {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  min-height: 520px;
}

body[data-page-variant="mobile"] .map-topbar {
  top: 10px;
  left: 12px;
  right: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

body[data-page-variant="mobile"] .map-topbar__left {
  order: 1;
  flex: 1 1 0;
  max-width: 100%;
}

body[data-page-variant="mobile"] .population-badge {
  max-width: calc(100vw - 154px);
  min-height: 32px;
  padding: 6px 10px;
}

body[data-page-variant="mobile"] .gps-badge {
  min-width: 48px;
  min-height: 32px;
  padding: 6px 11px;
}

body[data-page-variant="mobile"] .map-topbar .locale-select {
  max-width: 78px;
  min-height: 32px;
  padding: 6px 22px 6px 10px;
  font-size: 11px;
}

body[data-page-variant="mobile"] .population-badge__value {
  font-size: 12px;
}

body[data-page-variant="mobile"] .building-search-zoom {
  --building-search-zoom-thumb-offset: 78px;
  --building-search-zoom-thumb-travel: calc(100% - 156px);

  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: calc(var(--bottom-nav-base-height) + 18px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  width: min(278px, calc(100vw - 134px));
  min-width: 0;
  min-height: 58px;
  gap: 6px;
  padding: 5px 6px;
  transform: translateX(-50%);
  order: initial;
  flex: none;
}

body[data-page-variant="mobile"] .building-search-zoom__step {
  z-index: 3;
  width: 40px;
  min-width: 40px;
  height: 40px;
  font-size: 18px;
}

body[data-page-variant="mobile"] .building-search-zoom__input {
  height: 52px;
  pointer-events: none;
}

body[data-page-variant="mobile"] .building-search-zoom__input::-webkit-slider-runnable-track {
  height: 6px;
}

body[data-page-variant="mobile"] .building-search-zoom__input::-webkit-slider-thumb {
  width: 52px;
  height: 52px;
  margin-top: -23px;
}

body[data-page-variant="mobile"] .building-search-zoom__input::-moz-range-track {
  height: 6px;
}

body[data-page-variant="mobile"] .building-search-zoom__input::-moz-range-thumb {
  width: 52px;
  height: 52px;
}

body[data-page-variant="mobile"] .building-search-zoom__value {
  z-index: 4;
  width: 52px;
  height: 52px;
  font-size: 12px;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

body[data-page-variant="mobile"] .building-search-zoom__value[data-dragging="true"] {
  cursor: grabbing;
  box-shadow:
    0 0 22px rgba(94, 234, 212, 0.62),
    0 0 42px rgba(56, 189, 248, 0.26),
    0 14px 26px rgba(0, 0, 0, 0.3);
}

body[data-page-variant="mobile"] .building-search-zoom__halo {
  position: absolute;
  top: 50%;
  left: calc(
    var(--building-search-zoom-thumb-offset) +
      var(--building-search-zoom-progress, 0.6020) *
      var(--building-search-zoom-thumb-travel)
  );
  z-index: 1;
  display: block;
  width: 118px;
  height: 118px;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

body[data-page-variant="mobile"] .building-search-zoom__halo[hidden] {
  display: none;
}

body[data-page-variant="mobile"] .building-search {
  order: 3;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
}

body[data-page-variant="mobile"] .building-search__field {
  min-height: 36px;
}

body[data-page-variant="mobile"] .building-search__input {
  font-size: 12px;
}

body[data-page-variant="mobile"] .building-search__results {
  max-height: min(48dvh, 360px);
}

body[data-page-variant="mobile"] .building-search__results-scroll {
  max-height: min(48dvh, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body[data-page-variant="mobile"] .building-search__results-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-page-variant="mobile"] .map-controls {
  left: 12px;
  bottom: calc(var(--bottom-nav-base-height) + 18px + env(safe-area-inset-bottom, 0px));
}

body[data-page-variant="mobile"] .selected-location-address {
  right: 12px;
  bottom: calc(var(--bottom-nav-base-height) + 8px + env(safe-area-inset-bottom, 0px));
  left: 68px;
  min-height: 42px;
  padding: 7px 10px;
}

body[data-page-variant="mobile"] .hotel-list-panel {
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-base-height) + env(safe-area-inset-bottom, 0px));
  height: var(--mobile-sheet-open-height);
}

body[data-page-variant="mobile"] .display-panel,
body[data-page-variant="mobile"] .settings-panel {
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-base-height) + env(safe-area-inset-bottom, 0px));
  height: var(--mobile-sheet-open-height);
}

body[data-page-variant="mobile"] .hotel-list-panel:not(.is-hidden),
body[data-page-variant="mobile"] .display-panel:not(.is-hidden),
body[data-page-variant="mobile"] .settings-panel:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body[data-page-variant="mobile"] .hotel-list-panel.is-hidden,
body[data-page-variant="mobile"] .display-panel.is-hidden,
body[data-page-variant="mobile"] .settings-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}

body[data-page-variant="mobile"] .hotel-list-panel.is-closing,
body[data-page-variant="mobile"] .display-panel.is-closing,
body[data-page-variant="mobile"] .settings-panel.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}

body[data-page-variant="mobile"] .hotel-list-panel.is-switch-hidden,
body[data-page-variant="mobile"] .display-panel.is-switch-hidden,
body[data-page-variant="mobile"] .settings-panel.is-switch-hidden {
  transition: none !important;
}

body[data-page-variant="mobile"] .settings-panel .locale-select {
  width: min(168px, 44vw);
  min-height: 38px;
  padding: 7px 28px 7px 12px;
  font-size: 12px;
}

body[data-page-variant="mobile"] .hotel-list__item {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
}

body[data-page-variant="mobile"] .hotel-list__badge {
  max-width: 74px;
  padding: 0 6px;
}

body[data-page-variant="mobile"] .hotel-list__booking-link {
  min-width: 54px;
  padding: 0 7px;
}

body[data-page-variant="mobile"] .bottom-nav {
  padding: 3px 16px calc(3px + env(safe-area-inset-bottom, 0px));
}

body[data-page-variant="mobile"] .bottom-nav__button {
  width: 64px;
  height: 44px;
}

body[data-page-variant="pc"] .booking-dialog-backdrop {
  align-items: center;
}

body[data-page-variant="pc"] .booking-dialog {
  border-bottom: 1px solid var(--panel-border);
  border-radius: 16px;
}

@keyframes booking-dialog-slide-up {
  from {
    transform: translateY(28px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotel-list-panel,
  .display-panel,
  .settings-panel,
  .booking-dialog-backdrop,
  .booking-dialog,
  .app-back-toast {
    animation: none;
    transition: none;
  }
}
