.tht-legacy-menu { display: none !important; }
.tht-tour-logo { box-sizing: border-box; }
.tht-tour-logo { left: 18px !important; top: max(14px, env(safe-area-inset-top)) !important; width: 148px !important; height: 80px !important; overflow: hidden; background: linear-gradient(145deg, #fff, #eef6ff); border: 1px solid #fff; border-bottom: 3px solid #1262a7; border-radius: 16px; box-shadow: 0 6px 24px #001a3430; }
.tht-menus { --navy: #0a2036; --blue: #075ba9; --button-fill: linear-gradient(155deg, #398dde 0%, #0863b7 46%, #034581 100%); --button-shadow: inset 0 1px 0 #ffffff70, 0 6px 18px #003f8240; position: absolute; inset: 0; z-index: 100; pointer-events: none; font-family: Arial, sans-serif; color: #fff; }
.tht-menus[hidden], .tht-menus [hidden] { display: none !important; }
.tht-menus * { box-sizing: border-box; }
.tht-menu-bar { position: absolute; left: max(18px, env(safe-area-inset-left)); top: max(108px, calc(env(safe-area-inset-top) + 108px)); width: 208px; display: flex; pointer-events: auto; }
.tht-menus button, .tht-menus input { font: inherit; }
.tht-menu-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 58px; padding: 10px 16px; border: 1px solid #ffffff38; border-radius: 16px; color: #fff; background: #0a2036ed; box-shadow: 0 6px 22px #0004; font-weight: 700 !important; text-align: left; cursor: pointer; backdrop-filter: blur(16px); }
.tht-dock-count { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; opacity: .8; }
.tht-menu-trigger > span { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; }
.tht-menu-trigger svg { width: 18px; height: 18px; }
.tht-dock-chevron { margin-left: auto; transform: rotate(180deg); transition: transform .2s; }
.tht-menu-trigger[aria-expanded="true"] .tht-dock-chevron { transform: rotate(0deg); }
.tht-menu-trigger[data-menu="places"] { background: linear-gradient(155deg, #398dde 0%, #0863b7 46%, #034581 100%); color: #fff; border-color: #9dceff80; box-shadow: inset 0 1px 0 #ffffff70, 0 6px 18px #003f8240; }
.tht-menu-trigger[aria-expanded="true"] { box-shadow: 0 0 0 2px #fff, 0 8px 24px #0005; }
.tht-menus svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tht-panel { position: absolute; top: max(108px, calc(env(safe-area-inset-top) + 108px)); left: max(244px, calc(env(safe-area-inset-left) + 244px)); width: 354px; max-height: min(640px, calc(100% - 158px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); display: flex; flex-direction: column; padding: 16px; background: #0a2036f5; border: 1px solid #ffffff2b; border-radius: 20px; box-shadow: 0 16px 48px #0006; pointer-events: auto; backdrop-filter: blur(20px); }
.tht-utility-rail { position: absolute; top: max(178px, calc(env(safe-area-inset-top) + 178px)); left: max(18px, env(safe-area-inset-left)); width: 208px; max-height: calc(100% - 196px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; pointer-events: auto; }
.tht-utility-rail h2 { margin: 0 0 10px 4px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 1px 5px #000; }
.tht-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tht-panel h2 { margin: 0; font-size: 17px; line-height: 1.4; }
.tht-panel-subtitle { margin: 3px 0 0; color: #a5b9cc; font-size: 12px; line-height: 1.4; }
.tht-close { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 10px; color: #c9d7e3; background: #ffffff0d; cursor: pointer; }
.tht-tools { display: grid; gap: 7px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tht-tool { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 11px; border: 1px solid #ffffff2b; border-radius: 13px; background: linear-gradient(145deg, #154a79f5, #082c50f5); box-shadow: inset 0 1px 0 #ffffff20, 0 4px 14px #00244838; color: #edf4fa; text-align: left; cursor: pointer; backdrop-filter: blur(14px); }
.tht-tool svg { color: #9dd5ff; }
.tht-tool-label { flex: 1; min-width: 0; font-size: 12px; }
.tht-tool-label strong { display: block; font-weight: 600; line-height: 1.4; }
.tht-tool-label small { display: block; margin-top: 3px; color: #b4c6d7; font-size: 10px; line-height: 1.4; }
.tht-tool-state { font-size: 11px; color: #b7c9d9; }
.tht-tool[aria-pressed="true"] { background: #122e48ed; border-color: #5db4ffb0; }
.tht-tool[aria-pressed="true"] .tht-tool-state { color: #b5e1ff; }
.tht-tool-vr { background: linear-gradient(155deg, #388bd7, #0961ad 48%, #03457f); border-color: #8cc9ff90; color: #fff; box-shadow: inset 0 1px 0 #ffffff65, 0 5px 18px #003f8245; }
.tht-tool-vr svg, .tht-tool-vr .tht-tool-state { color: #e7f5ff; }
.tht-tool-vr .tht-tool-label small { color: #c2e4ff; }
.tht-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #ffffff29; border-radius: 12px; background: #ffffff09; color: #a5b9cc; }
.tht-search input { min-width: 0; width: 100%; padding: 0; background: none; border: none; outline: none; color: #fff; font-size: 14px; }
.tht-search input::placeholder { color: #91a7ba; }
.tht-place-list { display: grid; gap: 9px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; scrollbar-color: #52677c transparent; }
.tht-place { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 1px solid #ffffff12; border-radius: 13px; background: #ffffff05; color: #fff; text-align: left; cursor: pointer; }
.tht-place img { width: 70px; height: 54px; border-radius: 9px; object-fit: cover; background: #233d54; }
.tht-place-copy { flex: 1; min-width: 0; }
.tht-place-name { display: block; font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.tht-place-note { display: block; margin-top: 4px; color: #a5b9cc; font-size: 11px; }
.tht-place[aria-current="location"] { background: #1675c936; border-color: #64b9ff; }
.tht-place[aria-current="location"] .tht-place-note { color: #b5e1ff; }
.tht-empty { margin: 14px 0; text-align: center; color: #b7c9d9; font-size: 14px; }
.tht-menus button:hover { filter: brightness(1.14); }
.tht-menus button:focus-visible, .tht-search:focus-within { outline: 2px solid #b5e1ff; outline-offset: 3px; }
@media (max-width: 680px) {
  .tht-tour-title { width: calc(100% - 212px) !important; right: 12px !important; }
  .tht-tour-title > div { font-size: 14px !important; line-height: 1.4 !important; white-space: normal !important; max-height: none !important; }
  .tht-menu-bar { left: 12px; top: max(90px, calc(env(safe-area-inset-top) + 90px)); width: 176px; }
  .tht-menu-trigger { min-height: 54px; padding: 9px 10px; font-size: 13px !important; border-radius: 14px; }
  .tht-panel { left: 12px; top: max(154px, calc(env(safe-area-inset-top) + 154px)); width: min(354px, calc(100% - 24px)); max-height: calc(100% - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 14px; z-index: 2; }
  .tht-tour-logo { left: 12px !important; top: max(10px, env(safe-area-inset-top)) !important; width: 124px !important; height: 68px !important; border-radius: 13px; }
  .tht-utility-rail { left: 12px; top: max(154px, calc(env(safe-area-inset-top) + 154px)); width: 176px; max-height: calc(100% - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .tht-tool { min-height: 52px; padding: 8px; gap: 8px; }
  .tht-tool-label { font-size: 11px; }
  .tht-tool-label small { font-size: 9px; }
  .tht-tool-state { font-size: 10px; }
  .tht-tool svg { width: 18px; height: 18px; }
}
@media (max-height: 480px) and (min-width: 681px) {
  .tht-utility-rail { max-height: calc(100% - 196px); }
}

.tht-tour-logo img { padding: 0; object-fit: contain !important; transform: scale(1.6); }
.tht-tour-logo { left: max(48px, calc(env(safe-area-inset-left) + 48px)) !important; }
@media (max-width: 680px) {
  .tht-tour-logo { left: 38px !important; }
}

/* One shared blue finish for every menu button and state. */
.tht-menu-trigger, .tht-menu-trigger[data-menu="places"], .tht-tool,
.tht-tool-vr, .tht-tool[aria-pressed="true"], .tht-collapse {
  background: var(--button-fill);
  border: 1px solid #9dceff80;
  color: #fff;
  box-shadow: var(--button-shadow);
}
.tht-tool svg, .tht-tool-vr svg, .tht-tool-state,
.tht-tool-vr .tht-tool-state, .tht-tool[aria-pressed="true"] .tht-tool-state { color: #e7f5ff; }
.tht-tool-label small, .tht-tool-vr .tht-tool-label small { color: #c2e4ff; }
.tht-tool[aria-pressed="true"] .tht-tool-state { font-weight: 700; }
.tht-panel { background: linear-gradient(155deg, #2379c7f5, #075495fa 55%, #034581fa); }
.tht-collapse { position: relative; width: 100%; min-height: 40px; margin-top: 8px; padding: 8px 12px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; pointer-events: auto; }
.tht-collapse-label { font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.tht-collapse .tht-collapse-open { display: none; }
.tht-collapsed .tht-collapse .tht-collapse-open { display: block; }
.tht-collapsed .tht-collapse .tht-collapse-close { display: none; }
.tht-collapsed .tht-menu-bar, .tht-collapsed .tht-tools { display: none; }
.tht-collapsed .tht-utility-rail { top: max(108px, calc(env(safe-area-inset-top) + 108px)); }
.tht-collapsed .tht-collapse { margin-top: 0; }
@media (max-width: 680px) {
  .tht-collapsed .tht-utility-rail { top: max(90px, calc(env(safe-area-inset-top) + 90px)); }
}
