.object360-location-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(131, 113, 223, .28);
  border-radius: 14px;
  color: #f4f2ff;
  background: linear-gradient(145deg, rgba(20, 25, 45, .94), rgba(12, 16, 31, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.object360-location-trigger:hover,
.object360-location-trigger:focus-visible {
  border-color: rgba(143, 120, 255, .66);
  background: linear-gradient(145deg, rgba(33, 31, 68, .96), rgba(14, 18, 36, .98));
  outline: none;
}

.object360-location-trigger:active { transform: translateY(1px); }

.object360-location-trigger-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(143, 120, 255, .24);
  border-radius: 11px;
  color: #b9adff;
  background: rgba(128, 103, 255, .12);
}

.object360-location-trigger-icon .ph-icon { width: 20px; height: 20px; }

.object360-location-trigger-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.object360-location-trigger-copy small {
  color: #8f98b2;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.object360-location-trigger-copy strong {
  overflow: hidden;
  color: #f4f2ff;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object360-location-trigger-chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #8f98b2;
}

.object360-location-trigger-chevron > .icon,
.object360-location-trigger-icon > .icon { width: 100%; height: 100%; }

.object360-location-native-controls[hidden] { display: none !important; }

.object360-location-tree-dialog {
  position: fixed;
  inset: var(--object360-location-tree-top, 50%) auto auto var(--object360-location-tree-left, 50%);
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(720px, calc(100dvh - 32px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(133, 113, 236, .32);
  border-radius: 20px;
  color: #f5f3ff;
  background: #0b1020;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .045);
  transform: translate(-50%, -50%);
}

.object360-location-tree-dialog[open] { display: block; }
.object360-location-tree-dialog::backdrop { background: rgba(2, 4, 12, .74); backdrop-filter: blur(8px); }

.object360-location-tree-sheet {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 100% 0, rgba(107, 76, 231, .13), transparent 36%),
    linear-gradient(155deg, #0e1426, #090d19 72%);
}

.object360-location-tree-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid rgba(126, 137, 171, .15);
}

.object360-location-tree-header > div { min-width: 0; }
.object360-location-tree-header .eyebrow { margin: 0 0 4px; color: #9a87ff; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.object360-location-tree-header h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.15; letter-spacing: -.025em; }
.object360-location-tree-header p:last-child { margin: 6px 0 0; overflow-wrap: anywhere; color: #929bb3; font-size: 10.5px; line-height: 1.4; }
.object360-location-tree-header p:last-child.is-error { color: #ff98a4; }

.object360-location-tree-header .dialog-close {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(126, 137, 171, .2);
  border-radius: 12px;
  color: #b9c0d3;
  background: rgba(255, 255, 255, .035);
}

.object360-location-tree-header .dialog-close .ph-icon { width: 18px; height: 18px; }

.object360-location-tree-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 12px 14px 8px;
}

.object360-location-tree-search .ph-icon {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: #848da7;
  pointer-events: none;
}

.object360-location-tree-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px 10px 40px;
  border: 1px solid rgba(126, 137, 171, .2);
  border-radius: 13px;
  color: #f5f3ff;
  background: rgba(5, 8, 17, .58);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.object360-location-tree-search input:focus { border-color: rgba(143, 120, 255, .62); box-shadow: 0 0 0 3px rgba(128, 103, 255, .1); }
.object360-location-tree-search input::placeholder { color: #737d98; }

.object360-location-tree {
  min-height: 180px;
  padding: 4px 14px max(16px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(143, 120, 255, .35) transparent;
}

.object360-location-tree details { border: 0; }
.object360-location-tree summary { list-style: none; cursor: pointer; }
.object360-location-tree summary::-webkit-details-marker { display: none; }

.object360-location-tree-building {
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(126, 137, 171, .17) !important;
  border-radius: 14px;
  background: rgba(15, 20, 36, .72);
}

.object360-location-tree-building > summary,
.object360-location-tree-floor > summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.object360-location-tree-building > summary { min-height: 55px; padding: 9px 12px; }
.object360-location-tree-building[open] > summary { border-bottom: 1px solid rgba(126, 137, 171, .13); background: rgba(128, 103, 255, .055); }

.object360-location-tree-node-icon { width: 20px; height: 20px; flex: 0 0 auto; color: #a995ff; }
.object360-location-tree-building summary > span { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.object360-location-tree-building summary strong { overflow-wrap: anywhere; color: #f3f1ff; font-size: 12px; line-height: 1.3; }
.object360-location-tree-building summary small { color: #828ca7; font-size: 9.5px; }
.object360-location-tree-caret { width: 15px; height: 15px; flex: 0 0 auto; color: #7f89a3; transition: transform .18s ease; }
.object360-location-tree details[open] > summary > .object360-location-tree-caret { transform: rotate(180deg); }

.object360-location-tree-floors { padding: 6px; }
.object360-location-tree-floor { margin: 4px 0; border-radius: 11px; background: rgba(5, 8, 17, .32); }
.object360-location-tree-floor > summary { min-height: 48px; padding: 8px 10px; border-radius: 11px; }
.object360-location-tree-floor[open] > summary { color: #fff; background: rgba(255, 255, 255, .025); }
.object360-location-tree-floor .object360-location-tree-node-icon { width: 18px; height: 18px; color: #919bb8; }

.object360-location-tree-rooms { display: grid; gap: 4px; padding: 0 6px 7px 35px; }
.object360-location-tree-room {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #cbd1e2;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}

.object360-location-tree-room:hover,
.object360-location-tree-room:focus-visible { border-color: rgba(143, 120, 255, .32); color: #fff; background: rgba(128, 103, 255, .085); outline: none; }
.object360-location-tree-room.is-selected { border-color: rgba(143, 120, 255, .48); color: #fff; background: rgba(128, 103, 255, .15); }
.object360-location-tree-room-icon { width: 17px; height: 17px; color: #929db8; }
.object360-location-tree-room.is-selected .object360-location-tree-room-icon,
.object360-location-tree-check { width: 17px; height: 17px; color: #a995ff; }
.object360-location-tree-dialog.is-busy .object360-location-tree { pointer-events: none; opacity: .62; }

.object360-location-tree-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 24px;
  color: #8791aa;
  text-align: center;
}

.object360-location-tree-empty.compact { min-height: 72px; margin: 0; padding: 14px; font-size: 11px; }
.object360-location-tree-empty-icon { width: 24px; height: 24px; color: #9a87ff; }
.object360-location-tree-empty strong { color: #dfe2ed; font-size: 13px; }
.object360-location-tree-empty span { max-width: 320px; font-size: 10.5px; line-height: 1.45; }

@media (min-width: 720px) {
  .object360-location-tree-dialog {
    inset: var(--object360-location-tree-top, 16px) auto auto var(--object360-location-tree-left, 16px);
    max-height: min(680px, calc(100dvh - 32px));
    transform: none;
  }
}

@media (max-width: 719px) {
  .object360-location-tree-dialog {
    inset: auto 0 0;
    width: 100%;
    max-height: min(88dvh, 760px);
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    transform: none;
  }

  .object360-location-tree-header { padding-top: 14px; }
  .object360-location-tree-header::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(179, 185, 207, .24);
    transform: translateX(-50%);
    content: '';
  }

  .object360-location-tree-rooms { padding-left: 16px; }
}

@media (max-width: 390px) {
  .object360-location-trigger { min-height: 54px; padding: 8px 10px; }
  .object360-location-trigger-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .object360-location-trigger-copy strong { font-size: 11px; }
  .object360-location-tree-header h2 { font-size: 18px; }
  .object360-location-tree { padding-right: 10px; padding-left: 10px; }
}
