/* The model keeps the same navigation in the embedded and full-screen views. */
.model-view-nav {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.model-view-nav[hidden] { display: none !important; }
.model-nav-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 108px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid #cbd1c8;
  border-radius: 5px;
  background: rgba(251, 249, 242, .97);
  color: #22314f;
  box-shadow: 0 3px 14px rgba(26, 36, 56, .13);
  backdrop-filter: blur(9px);
  text-align: left;
  line-height: 1.2;
  pointer-events: auto;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.model-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  color: #925d3a;
  font-size: 19px;
  line-height: 1;
}
.model-nav-icon svg { width: 20px; height: 20px; }
.model-nav-tile > span:last-child { display: block; min-width: 0; }
.model-nav-tile strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.model-nav-tile small {
  display: block;
  margin-top: 3px;
  color: #596477;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-nav-tile:hover:not(:disabled) {
  background: #fff;
  border-color: #92623f;
  box-shadow: 0 4px 17px rgba(26, 36, 56, .19);
}
.model-nav-tile:focus-visible {
  outline: 3px solid #925d3a;
  outline-offset: 3px;
}
.model-nav-tile:disabled { opacity: .56; cursor: default; }
.model-nav-tile[aria-current="page"] { border-color: #8c9a87; background: #edf1e8; }
.model-nav-context {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid #d0d5cc;
  border-radius: 4px;
  background: rgba(251, 249, 242, .96);
  color: #22314f;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.model-enquire-button {
  flex: none;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid #22314f;
  border-radius: 5px;
  background: #22314f;
  color: #fff;
  box-shadow: 0 3px 14px rgba(26, 36, 56, .18);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
  transition: background .15s ease, box-shadow .15s ease;
}
.model-enquire-button[hidden] { display: none !important; }
.model-enquire-button:hover:not(:disabled) { background: #334768; }
.model-enquire-button:focus-visible { outline: 3px solid #b98459; outline-offset: 3px; }
.model-enquire-button:disabled { background: #6b737e; border-color: #6b737e; cursor: default; }
#scene-wrap[data-view="block"]:has(> .model-view-nav:not([hidden])) .scene-title { top: 88px; }
#scene-wrap[data-view="parking"] .scene-title { display: none; }
#scene-wrap[data-view="parking"] { --unit-band: 112px; }

@media (max-width: 560px) {
  .model-view-nav {
    top: 8px;
    left: 8px;
    right: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .model-nav-tile {
    min-width: 0;
    min-height: 44px;
    gap: 3px;
    padding: 6px 5px;
  }
  .model-nav-icon { width: 13px; height: 18px; font-size: 14px; }
  .model-nav-icon svg { width: 13px; height: 16px; }
  .model-nav-tile strong { font-size: 9px; }
  .model-nav-tile small { margin-top: 2px; font-size: 7px; }
  .model-nav-context { display: none; }
  .model-enquire-button { grid-column: 1 / -1; min-height: 38px; padding: 8px 12px; font-size: 12px; }
  #scene-wrap[data-view="block"]:has(> .model-view-nav:not([hidden])) .scene-title { top: 66px; }
  #scene-wrap[data-view="parking"] { --unit-band: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .model-nav-tile, .model-enquire-button { transition: none; }
}
