/* The original architectural render stays available alongside the CAD model. */
.header-leading { gap: 18px; }
.building-breadcrumb { padding-left: 18px; }
.language-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 4px;
  border: 1px solid #dce5d9;
  border-radius: 7px;
  background: #f1f5ec;
}
.language-switch button { min-width: 30px; height: 23px; padding: 0 6px; border-radius: 4px; color: #879485; font-size: 9px; }
.language-switch button[aria-pressed="true"] { background: #fff; color: #2e6150; box-shadow: 0 1px 5px #294c3512; }
.language-switch > span { height: 10px; width: 1px; background: #dbe3d6; }
.reference-button {
  height: 35px;
  padding: 0 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #dce5d9;
  border-radius: 8px;
  background: #fff9;
  color: #6c826e;
  font-size: 10px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.reference-button:hover { background: #fff; color: var(--teal); }
.reference-button .icon { width: 15px; height: 15px; }
.loading-card { width: min(370px, calc(100vw - 60px)); padding-bottom: 12px; }
.loading-reference { display: block; width: 100%; height: auto; max-height: 28dvh; object-fit: cover; border: 1px solid #dce5dc; border-radius: 10px; margin: 0 0 31px; box-shadow: 0 8px 30px #37513b10; }
.loading-mark { margin-bottom: 19px; transform: scale(.77); height: 48px; }
.reference-dialog {
  padding: 0;
  width: min(1140px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  border: 1px solid #d4dfd0;
  border-radius: 13px;
  color: var(--ink);
  background: #f8faf5;
  box-shadow: 0 24px 100px #183d293d;
  overflow: auto;
}
.reference-dialog::backdrop { background: #17302380; backdrop-filter: blur(7px); }
.reference-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; }
.reference-dialog-heading .eyebrow { font-size: 8px; color: #7f967f; letter-spacing: 1.5px; }
.reference-dialog-heading h2 { margin: 5px 0 0; font-size: 17px; font-weight: 550; letter-spacing: .4px; }
.reference-dialog-heading .icon-button { flex-shrink: 0; }
.reference-figure { margin: 0; }
.reference-figure img { width: 100%; height: auto; max-height: calc(100dvh - 185px); object-fit: contain; display: block; background: #e8f1f2; }
.reference-figure figcaption { padding: 14px 22px 17px; color: #7c8d7d; font-size: 10px; line-height: 1.65; }

@media (max-width: 1200px) {
  .header-leading { gap: 12px; }
  .building-breadcrumb { padding-left: 12px; }
  .reference-button { height: 31px; padding: 0 8px; font-size: 9px; }
  .language-switch { padding: 3px; }
  .language-switch button { min-width: 27px; padding: 0 5px; font-size: 8px; }
}
@media (max-width: 900px) {
  .header-leading { gap: 12px; }
  .building-breadcrumb { padding-left: 0; margin-left: auto; }
  .reference-button { width: 31px; padding: 0; justify-content: center; }
  .reference-button > span { display: none; }
}
@media (max-width: 600px) {
  .header-leading { gap: 9px; }
  .building-breadcrumb { font-size: 8px; gap: 4px; }
  .language-switch { padding: 2px; gap: 0; }
  .language-switch button { min-width: 25px; height: 22px; padding: 0 4px; font-size: 8px; }
  .reference-button { height: 30px; width: 30px; }
  .reference-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .reference-dialog-heading { padding: 14px 16px; gap: 10px; }
  .reference-dialog-heading h2 { font-size: 14px; }
  .reference-dialog-heading .eyebrow { font-size: 7px; }
  .reference-figure img { max-height: calc(100dvh - 160px); }
  .reference-figure figcaption { padding: 12px 16px 14px; font-size: 9px; }
}
@media (max-width: 410px) {
  .header-leading { gap: 7px; }
  .building-breadcrumb button { display: none; }
  .building-breadcrumb { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-button { transition: none; }
}
