/* SEO-2 Model C semantic layer: visible progressive enhancement without Viewer ownership. */
.seo-route-panel {
  position: fixed;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  z-index: 17;
  width: min(360px, calc(100vw - 36px));
  max-height: min(72vh, 560px);
  overflow: auto;
  transform: translateY(-50%);
  color: #f4f6fb;
  background: rgba(8, 12, 18, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.seo-route-panel:not([open]) {
  width: auto;
  max-width: min(210px, calc(100vw - 36px));
  overflow: visible;
}

.seo-route-panel > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  color: #f7f4ed;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.seo-route-panel > summary::-webkit-details-marker { display: none; }

.seo-route-panel > summary::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(232, 192, 109, .52);
  border-radius: 999px;
  color: #e8c06d;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.seo-route-panel > summary:focus-visible,
.seo-route-panel a:focus-visible {
  outline: 2px solid #8fd9ff;
  outline-offset: 3px;
}

.seo-route-panel__body {
  padding: 0 14px 14px;
}

.seo-route-panel__eyebrow {
  margin: 4px 0 8px;
  color: #e8c06d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-route-panel h2,
.seo-route-panel h3,
.seo-route-panel p {
  margin-top: 0;
}

.seo-route-panel h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

.seo-route-panel__description {
  margin-bottom: 12px;
  color: rgba(244, 246, 251, .84);
  font-size: 13px;
  line-height: 1.55;
}

.seo-route-panel__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.seo-route-panel__nav a,
.seo-route-panel__room a {
  color: #f4f6fb;
  text-decoration-color: rgba(143, 217, 255, .56);
  text-underline-offset: 3px;
}

.seo-route-panel__nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.seo-route-panel__nav a:hover,
.seo-route-panel__nav a[aria-current="page"] {
  border-color: rgba(232, 192, 109, .42);
  background: rgba(232, 192, 109, .10);
}

.seo-route-panel__rooms {
  display: grid;
  gap: 9px;
}

.seo-route-panel__room {
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.seo-route-panel__room h3 {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.seo-route-panel__room p {
  margin-bottom: 0;
  color: rgba(244, 246, 251, .72);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .seo-route-panel {
    right: max(10px, env(safe-area-inset-right));
    width: min(320px, calc(100vw - 20px));
    max-height: min(66vh, 460px);
  }

  .seo-route-panel:not([open]) {
    max-width: min(176px, calc(100vw - 20px));
  }

  .seo-route-panel > summary {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .seo-route-panel h2 { font-size: 18px; }
}

@media (max-height: 540px) {
  .seo-route-panel {
    max-height: calc(100vh - 24px);
  }
}

/* A16 visual-usability recovery: valid-room semantics live inside the existing
   Hành trình disclosure instead of occupying a persistent fixed viewport slot. */
.viewer-journey-menu.viewer-journey-menu--with-room-info {
  width: min(360px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
}

.seo-route-panel.seo-route-panel--journey {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  width: 100%;
  max-width: none;
  max-height: min(52vh, 420px);
  margin-top: 6px;
  overflow: auto;
  border-radius: 12px;
  box-shadow: none;
  background: rgba(12, 17, 25, .76);
}

.seo-route-panel.seo-route-panel--journey:not([open]) {
  width: 100%;
  max-width: none;
  overflow: visible;
}

.seo-route-panel.seo-route-panel--journey > summary {
  min-height: 38px;
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .viewer-journey-menu.viewer-journey-menu--with-room-info {
    width: min(320px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .seo-route-panel.seo-route-panel--journey {
    max-height: min(48vh, 360px);
  }
}

@media (max-height: 540px) {
  .seo-route-panel.seo-route-panel--journey {
    max-height: min(64vh, 300px);
  }
}

