:root {
  --ttd-public-ink: #101010;
  --ttd-public-muted: #6c6964;
  --ttd-public-bg: #f4f2ed;
  --ttd-public-card: rgba(255, 255, 255, 0.94);
  --ttd-public-blue: #0877f9;
  --ttd-public-green: #22a955;
  --ttd-public-line: rgba(16, 16, 16, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
}

body.ttd-public-body {
  color: var(--ttd-public-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

.ttd-public-app {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  background: #111;
}

.ttd-panorama,
.ttd-viewer-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ttd-panorama {
  background: radial-gradient(circle at center, #2f2f2f, #111);
}

.ttd-viewer-shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 23%),
    linear-gradient(to top, rgba(0, 0, 0, 0.44), transparent 36%);
  transition: opacity 0.25s ease;
}

.ttd-public-app.is-started .ttd-viewer-shade {
  opacity: 0.76;
}

.ttd-public-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 10px;
  pointer-events: none;
}

.ttd-public-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.ttd-public-brand > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ttd-public-brand small,
.ttd-public-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttd-public-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.ttd-public-brand strong {
  max-width: min(62vw, 420px);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.ttd-public-mark {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(16, 16, 16, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.ttd-public-mark::before,
.ttd-public-mark::after,
.ttd-public-mark span::before {
  position: absolute;
  content: "";
}

.ttd-public-mark::before {
  left: 11px;
  top: 8px;
  width: 15px;
  height: 23px;
  border: 2px solid #fff;
  border-bottom-width: 3px;
  border-radius: 3px;
}

.ttd-public-mark::after {
  right: 7px;
  top: 19px;
  width: 13px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.ttd-public-mark span::before {
  right: 6px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.ttd-round-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.62);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.ttd-round-button:active {
  transform: scale(0.96);
}

.ttd-preview-banner {
  position: absolute;
  z-index: 21;
  top: calc(env(safe-area-inset-top) + 66px);
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(219, 126, 35, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.ttd-intro-card,
.ttd-route-card,
.ttd-arrival-card,
.ttd-info-sheet {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: var(--ttd-public-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

.ttd-intro-card {
  position: absolute;
  z-index: 30;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  left: 10px;
  max-height: calc(100svh - env(safe-area-inset-top) - 78px);
  padding: 10px 20px calc(15px + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 29px;
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.26, 1), opacity 0.22s ease;
}

.ttd-intro-card.is-leaving {
  opacity: 0;
  transform: translateY(105%);
}

.ttd-intro-handle {
  width: 37px;
  height: 5px;
  margin: 0 auto 17px;
  border-radius: 99px;
  background: rgba(16, 16, 16, 0.15);
}

.ttd-intro-kicker,
.ttd-sheet-header p,
.ttd-arrival-card p {
  margin: 0 0 7px;
  color: #8a8781;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.13em;
}

.ttd-intro-card h1 {
  margin: 0 0 7px;
  color: var(--ttd-public-ink);
  font-size: clamp(29px, 8vw, 43px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.ttd-address {
  margin: 0 0 17px;
  color: var(--ttd-public-muted);
  font-size: 13px;
  font-weight: 620;
}

.ttd-intro-copy {
  margin: 0 0 18px;
  color: #514f4b;
  font-size: 14px;
  line-height: 1.48;
}

.ttd-intro-actions {
  display: grid;
  gap: 9px;
}

.ttd-primary-action,
.ttd-secondary-action {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: var(--ttd-embed-button-radius, 16px);
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
}

.ttd-primary-action {
  border: 1px solid var(--ttd-public-blue);
  background: var(--ttd-public-blue);
  color: #fff;
  box-shadow: 0 10px 25px rgba(8, 119, 249, 0.22);
}

.ttd-primary-action span {
  font-size: 19px;
}

.ttd-secondary-action {
  border: 1px solid var(--ttd-public-line);
  background: #f5f4f1;
  color: var(--ttd-public-ink);
}

.ttd-primary-action:active,
.ttd-secondary-action:active {
  transform: scale(0.985);
}

.ttd-primary-action:disabled {
  opacity: 0.5;
}

.ttd-no-account {
  margin: 12px 0 0;
  color: #94918c;
  font-size: 10px;
  font-weight: 620;
  text-align: center;
}

.ttd-route-card {
  position: absolute;
  z-index: 25;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  left: 10px;
  padding: 15px 16px calc(13px + env(safe-area-inset-bottom));
  border-radius: 24px;
  transition: transform 0.23s ease, bottom 0.23s ease;
}

.ttd-route-card[hidden],
.ttd-arrival-card[hidden],
.ttd-info-sheet[hidden],
.ttd-sheet-backdrop[hidden] {
  display: none !important;
}

.ttd-route-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ttd-route-meta > div {
  min-width: 0;
}

#ttd-route-floor {
  display: block;
  margin-bottom: 3px;
  color: var(--ttd-public-blue);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#ttd-route-title {
  display: block;
  overflow: hidden;
  color: var(--ttd-public-ink);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ttd-route-instruction {
  margin: 5px 0 0;
  color: var(--ttd-public-muted);
  font-size: 12px;
  line-height: 1.38;
}

.ttd-progress-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: #efeeeb;
  color: #66635f;
  font-size: 10px;
  font-weight: 720;
}

.ttd-progress-track {
  height: 3px;
  margin: 13px 0 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(16, 16, 16, 0.09);
}

.ttd-progress-track span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: var(--ttd-public-blue);
  transition: width 0.3s ease;
}

.ttd-route-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.ttd-back-action,
.ttd-next-action {
  min-height: 43px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.ttd-back-action {
  background: #eeece8;
  color: var(--ttd-public-ink);
}

.ttd-next-action {
  background: var(--ttd-public-ink);
  color: #fff;
}

.ttd-back-action:disabled,
.ttd-next-action:disabled {
  opacity: 0.38;
  cursor: default;
}

.ttd-arrival-card {
  position: absolute;
  z-index: 27;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 178px);
  left: 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-color: rgba(34, 169, 85, 0.26);
  border-radius: 22px;
  background: rgba(244, 255, 247, 0.95);
  animation: ttd-arrival-in 0.35s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.ttd-arrival-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--ttd-public-green);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(34, 169, 85, 0.22);
}

.ttd-arrival-card h2 {
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--ttd-public-ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttd-arrival-card p {
  margin-bottom: 3px;
  color: #168241;
}

.ttd-arrival-card span {
  display: block;
  overflow: hidden;
  color: var(--ttd-public-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttd-arrival-card .ttd-round-button {
  width: 34px;
  height: 34px;
  border-color: var(--ttd-public-line);
  background: rgba(16, 16, 16, 0.07);
  color: var(--ttd-public-ink);
  box-shadow: none;
}

.ttd-sheet-backdrop {
  position: absolute;
  z-index: 38;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

.ttd-info-sheet {
  position: absolute;
  z-index: 40;
  right: 8px;
  bottom: calc(env(safe-area-inset-bottom) + 8px);
  left: 8px;
  max-height: min(76svh, 620px);
  padding: 10px 20px calc(21px + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 29px;
  opacity: 0;
  transform: translateY(105%);
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 0.8, 0.26, 1);
}

.ttd-info-sheet.is-open {
  opacity: 1;
  transform: translateY(0);
}

.ttd-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ttd-sheet-header h2 {
  margin: 0;
  color: var(--ttd-public-ink);
  font-size: 27px;
  font-weight: 770;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.ttd-sheet-header .ttd-round-button {
  border-color: var(--ttd-public-line);
  background: #efeeeb;
  color: var(--ttd-public-ink);
  box-shadow: none;
}

#ttd-sheet-body {
  margin: 0 0 18px;
  color: #55524e;
  font-size: 14px;
  line-height: 1.52;
  white-space: pre-line;
}

.ttd-sheet-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--ttd-public-line);
}

.ttd-sheet-row span {
  color: #918e88;
  font-size: 11px;
  font-weight: 650;
}

.ttd-sheet-row strong {
  max-width: 70%;
  color: var(--ttd-public-ink);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.ttd-noscript {
  position: absolute;
  z-index: 100;
  right: 15px;
  top: 100px;
  left: 15px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  text-align: center;
}

/* Public Pannellum hotspot styling */
.ttd-public-hotspot-shell {
  width: auto !important;
  height: auto !important;
  background-image: none !important;
}

.ttd-public-hotspot {
  position: relative;
  transform: translate(-50%, -50%);
}

.ttd-public-hotspot-button {
  display: flex;
  min-width: max-content;
  max-width: 164px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.42));
}

.ttd-public-hotspot-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: rgba(8, 119, 249, 0.96);
  color: #fff;
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  animation: ttd-hotspot-pulse 2.2s ease-in-out infinite;
}

.ttd-public-hotspot-label {
  max-width: 164px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(15, 15, 15, 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  backdrop-filter: blur(9px);
}

.ttd-public-hotspot.is-label .ttd-public-hotspot-button {
  flex-direction: row;
  gap: 5px;
  padding: 5px 7px 5px 5px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ttd-public-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  filter: none;
}

.ttd-public-hotspot.is-label .ttd-public-hotspot-icon {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: var(--ttd-public-ink);
  font-size: 14px;
  animation: none;
}

.ttd-public-hotspot.is-label .ttd-public-hotspot-label {
  max-width: 140px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--ttd-public-ink);
  font-size: 11px;
  text-align: left;
  backdrop-filter: none;
}

.ttd-public-hotspot.is-info .ttd-public-hotspot-icon {
  width: 38px;
  height: 38px;
  border-width: 2px;
  background: rgba(16, 16, 16, 0.9);
  font-size: 17px;
  animation: none;
}

.ttd-public-hotspot.is-info .ttd-public-hotspot-label {
  font-size: 9px;
}

.pnlm-container .pnlm-load-box {
  border: 0;
  border-radius: 17px;
  background: rgba(15, 15, 15, 0.72);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
}

.pnlm-container .pnlm-lbox {
  z-index: 1;
}

.pnlm-container .pnlm-about-msg,
.pnlm-container .pnlm-about-msg a {
  color: rgba(255, 255, 255, 0.8);
}

.pnlm-container .pnlm-controls-container {
  display: none;
}

@keyframes ttd-hotspot-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

@keyframes ttd-arrival-in {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 700px) {
  .ttd-intro-card,
  .ttd-route-card,
  .ttd-info-sheet {
    right: 20px;
    left: auto;
    width: min(430px, calc(100vw - 40px));
  }

  .ttd-intro-card,
  .ttd-route-card {
    bottom: calc(env(safe-area-inset-bottom) + 20px);
  }

  .ttd-arrival-card {
    right: 20px;
    bottom: calc(env(safe-area-inset-bottom) + 188px);
    left: auto;
    width: min(430px, calc(100vw - 40px));
  }

  .ttd-info-sheet {
    bottom: calc(env(safe-area-inset-bottom) + 20px);
  }

  .ttd-public-header {
    padding-inline: 22px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .ttd-intro-card {
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom) + 8px);
    left: auto;
    width: min(420px, 48vw);
    max-height: calc(100svh - env(safe-area-inset-top) - 18px);
    padding: 9px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .ttd-intro-card h1 {
    font-size: 30px;
  }

  .ttd-intro-copy {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .ttd-primary-action,
  .ttd-secondary-action {
    min-height: 42px;
  }

  .ttd-no-account {
    display: none;
  }

  .ttd-route-card {
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom) + 8px);
    left: auto;
    width: min(430px, 48vw);
  }

  .ttd-arrival-card {
    right: calc(min(430px, 48vw) + 20px);
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    left: auto;
    width: min(390px, 43vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.ttd-public-hotspot-shell {
  z-index: 6 !important;
}

/* DoorCue 0.2.0 — compact controls that remain readable on small iPhones. */
.ttd-primary-action,
.ttd-secondary-action,
.ttd-back-action,
.ttd-next-action {
  width: 100%;
  height: auto;
  min-height: 50px;
  padding: 13px 16px;
  overflow: visible;
  box-sizing: border-box;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.ttd-route-actions {
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
}

.ttd-no-account {
  letter-spacing: 0.01em;
}

@media (max-width: 360px) {
  .ttd-intro-card {
    padding-inline: 16px;
  }

  .ttd-intro-card h1 {
    font-size: 31px;
  }

  .ttd-primary-action,
  .ttd-secondary-action {
    min-height: 48px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .ttd-route-card {
    padding-inline: 13px;
  }

  .ttd-back-action,
  .ttd-next-action {
    min-height: 46px;
    padding-inline: 10px;
  }
}

/* -------------------------------------------------------------------------
 * DoorCue 0.3.0 — organization profile and draggable control cards
 * ------------------------------------------------------------------------- */

.ttd-public-logo,
.ttd-sheet-logo {
  display: grid;
  overflow: hidden;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

.ttd-public-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.ttd-sheet-logo {
  width: 48px;
  height: 48px;
  border-color: var(--ttd-public-line);
  border-radius: 15px;
  box-shadow: none;
}

.ttd-public-logo img,
.ttd-sheet-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ttd-draggable-card {
  transform: translateY(var(--ttd-card-drag, 0px));
  will-change: transform, opacity;
}

.ttd-intro-card.is-leaving {
  opacity: 0;
  transform: translateY(105%);
}

.ttd-draggable-card.is-dragging {
  transition: none !important;
}

.ttd-draggable-card.is-snapping-back {
  transition: transform .24s cubic-bezier(.22,.8,.26,1) !important;
}

.ttd-draggable-card.is-minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 70px));
}

.ttd-card-handle {
  display: flex;
  width: 100%;
  min-height: 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: -5px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9690;
  cursor: grab;
  touch-action: none;
}

.ttd-card-handle:active {
  cursor: grabbing;
}

.ttd-card-handle > span {
  display: block;
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: rgba(16,16,16,.17);
}

.ttd-card-handle small {
  font-size: 8px;
  font-weight: 680;
  letter-spacing: .02em;
}

.ttd-route-card {
  padding-top: 8px;
}

.ttd-card-dock {
  position: absolute;
  z-index: 31;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  left: 10px;
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  gap: 1px 12px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  color: var(--ttd-public-ink);
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
  opacity: 0;
  cursor: pointer;
  text-align: left;
  transform: translateY(20px);
  transition: opacity .2s ease, transform .22s cubic-bezier(.22,.8,.26,1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ttd-card-dock[hidden] {
  display: none !important;
}

.ttd-card-dock.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ttd-card-dock span {
  color: var(--ttd-public-blue);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .11em;
}

.ttd-card-dock strong {
  overflow: hidden;
  font-size: 14px;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttd-card-dock b,
.ttd-card-dock i {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #77736d;
  font-size: 12px;
  font-style: normal;
}

#ttd-intro-dock b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--ttd-public-ink);
  color: #fff;
  font-size: 17px;
}

#ttd-route-dock {
  grid-template-columns: minmax(0,1fr) auto auto;
}

#ttd-route-dock b {
  grid-column: 2;
  color: var(--ttd-public-muted);
  font-size: 10px;
}

#ttd-route-dock i {
  grid-column: 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #efeeeb;
}

.ttd-public-app.is-route-minimized .ttd-arrival-card {
  bottom: calc(env(safe-area-inset-bottom) + 86px);
}

.ttd-sheet-identity {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;
}

.ttd-sheet-header .ttd-round-button {
  flex: 0 0 auto;
}

.ttd-sheet-identity > div {
  min-width: 0;
}

.ttd-sheet-identity h2,
.ttd-sheet-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttd-location-description {
  margin: 0 0 15px;
  padding: 13px 14px;
  border-radius: 15px;
  background: #f3f2ef;
  color: #514f4b;
  font-size: 13px;
  line-height: 1.5;
}

.ttd-sheet-row a {
  color: var(--ttd-public-blue);
  text-decoration: none;
}

.ttd-sheet-row-hours strong {
  white-space: normal;
}

@media (min-width: 700px) {
  .ttd-card-dock {
    right: 20px;
    bottom: calc(env(safe-area-inset-bottom) + 20px);
    left: auto;
    width: min(430px, calc(100vw - 40px));
  }
}

@media (max-width: 420px) {
  .ttd-card-handle small {
    display: none;
  }

  .ttd-card-handle {
    min-height: 22px;
    margin-bottom: 5px;
  }

  .ttd-card-dock {
    min-height: 58px;
    padding-inline: 12px;
    border-radius: 18px;
  }

  .ttd-sheet-row {
    display: block;
  }

  .ttd-sheet-row strong {
    display: block;
    max-width: none;
    margin-top: 4px;
    text-align: left;
  }

  .ttd-sheet-logo {
    width: 43px;
    height: 43px;
  }
}

/* -------------------------------------------------------------------------
 * DoorCue 0.4.0 — dependable cues, compact information, and arrival layout
 * ------------------------------------------------------------------------- */

.ttd-public-logo.is-initial,
.ttd-sheet-logo.is-initial {
  display: grid;
  place-items: center;
  background: rgba(16, 16, 16, 0.86);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.ttd-public-logo.is-initial {
  border-color: rgba(255, 255, 255, 0.26);
  font-size: 18px;
  text-shadow: none;
  backdrop-filter: blur(14px);
}

.ttd-sheet-logo.is-initial {
  border-color: var(--ttd-public-line);
  background: var(--ttd-public-ink);
  font-size: 21px;
}

/* Pannellum positions this one-pixel anchor. DoorCue draws the visible cue
 * around it so custom labels cannot collapse into an invisible hotspot. */
.pnlm-hotspot-base.ttd-public-hotspot-shell,
.ttd-public-hotspot-shell {
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  overflow: visible !important;
  visibility: visible;
  opacity: 1 !important;
  z-index: 15 !important;
  background: none !important;
  background-image: none !important;
  pointer-events: none !important;
}

.ttd-public-hotspot-shell.ttd-public-hotspot {
  position: absolute;
}

.ttd-public-hotspot-shell .ttd-public-hotspot-button {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.ttd-public-hotspot-button.is-passive {
  cursor: default;
  pointer-events: none;
}

.ttd-public-hotspot-button.is-unlinked {
  opacity: 0.58;
  cursor: default;
  filter: grayscale(0.45) drop-shadow(0 5px 16px rgba(0, 0, 0, 0.3));
}

/* The arrival confirmation lives below the identity header instead of sharing
 * the bottom edge with the route controls. */
.ttd-arrival-card,
.ttd-public-app.is-route-minimized .ttd-arrival-card {
  right: 10px;
  top: calc(env(safe-area-inset-top) + 72px);
  bottom: auto;
  left: 10px;
  width: auto;
  max-width: 520px;
  margin-inline: auto;
}

.ttd-public-app.is-preview .ttd-arrival-card {
  top: calc(env(safe-area-inset-top) + 108px);
}

/* The information panel uses the explicit close button only. */
.ttd-info-sheet {
  padding-top: 18px;
}

.ttd-info-sheet.is-open {
  transform: translateY(0);
}

.ttd-info-sheet > .ttd-intro-handle {
  display: none !important;
}

@media (min-width: 700px) {
  .ttd-arrival-card,
  .ttd-public-app.is-route-minimized .ttd-arrival-card {
    right: 20px;
    left: auto;
    width: min(430px, calc(100vw - 40px));
    margin: 0;
  }
}

@media (max-width: 420px) {
  .ttd-arrival-card {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 11px;
    border-radius: 19px;
  }

  .ttd-arrival-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }
}

/* -------------------------------------------------------------------------
 * DoorCue 1.2.0-rc21 — reusable embedded viewer templates
 * ------------------------------------------------------------------------- */

.ttd-public-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  pointer-events: auto;
}

.ttd-public-header-actions .ttd-round-button {
  pointer-events: auto;
}

.ttd-fullscreen-button span {
  display: block;
  font-size: 19px;
  line-height: 1;
}

body.ttd-public-body.is-embed {
  overflow: hidden;
  background: #fff;
}

.ttd-embed-shell {
  position: fixed;
  inset: 0;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.ttd-public-app.is-embed {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.ttd-embed-actions {
  position: relative;
  z-index: 50;
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  width: 100%;
  padding: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.ttd-embed-actions.is-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttd-embed-action {
  display: flex;
  width: 100%;
  min-height: var(--ttd-embed-button-height, 52px);
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: var(--ttd-embed-button-radius, 16px);
  cursor: pointer;
  font: inherit;
  font-size: var(--ttd-embed-button-font-size, 14px);
  font-weight: 740;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  margin-block: var(--ttd-embed-button-margin, 0px);
}

.is-embed-button-width-auto .ttd-embed-action {
  width: auto;
  justify-self: start;
}

.is-embed-button-width-full .ttd-embed-action {
  width: 100%;
}


.ttd-embed-action-primary {
  border: 1px solid var(--ttd-public-blue);
  background: var(--ttd-public-blue);
  color: #fff !important;
  box-shadow: var(--ttd-embed-button-shadow, 0 8px 22px rgba(0, 0, 0, 0.16));
}

.is-embed-button-outline .ttd-embed-action-primary {
  background: transparent;
  color: var(--ttd-public-blue) !important;
  box-shadow: var(--ttd-embed-button-shadow, none);
}

.is-embed-button-minimal .ttd-embed-action-primary {
  border-color: transparent;
  background: transparent;
  color: var(--ttd-public-blue) !important;
  box-shadow: none;
}

.is-embed-button-minimal .ttd-embed-action-secondary {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ttd-embed-action-primary span {
  font-size: 19px;
}

.ttd-embed-action-secondary {
  border: 1px solid rgba(16, 16, 16, 0.12);
  background: #f7f6f3;
  color: var(--ttd-public-ink) !important;
}

.ttd-embed-action:active {
  transform: scale(0.99);
}

.ttd-public-app.is-embed-template-minimal .ttd-public-header {
  justify-content: flex-end;
}

.ttd-embed-shell:fullscreen,
.ttd-embed-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #fff;
}

.ttd-fullscreen-fallback:not([hidden]) {
  position: absolute;
  z-index: 100;
  top: 68px;
  right: 18px;
  max-width: min(320px, calc(100vw - 36px));
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #171717;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  font-size: 14px;
}

.ttd-fullscreen-fallback a { color: #075eb5; font-weight: 700; }

@media (max-width: 520px) {
  .ttd-embed-actions {
    gap: 0;
    padding: 0;
  }

  .ttd-embed-actions.is-split {
    grid-template-columns: 1fr;
  }

  .ttd-embed-action {
    min-height: 48px;
    border-radius: var(--ttd-embed-button-radius, 14px);
    font-size: 13px;
  }

  .ttd-public-header-actions {
    gap: 6px;
  }
}

/* Fullscreen keeps navigation available without the Explore call to action. */
.ttd-embed-actions.is-fullscreen {
  grid-template-columns: 1fr;
}

.ttd-embed-actions.is-fullscreen #ttd-embed-explore,
.ttd-embed-actions.is-fullscreen-empty {
  display: none;
}
