.disabled-link { opacity: .6; cursor: default; }
.viewer-card { position: relative; height: calc(100vh - 204px); min-height: 520px; overflow: hidden; background: #0b1030; border: 0; }
.stage { position: absolute; inset: 0; }
.viewer-card:fullscreen { height: 100vh; }
.ov { position: absolute; z-index: 5; }
.ov-tl { top: 14px; left: 14px; backdrop-filter: blur(8px); }
.ov-tl .btn:not(.active) { background: rgba(20,26,60,.7); color: #cfd6ff; border-color: transparent; }
.ov-tr { top: 14px; right: 66px; width: 156px; min-width: 0; }  /* à esquerda da bússola, sem sobrepor */
.ov-tr select { background-color: rgba(20,26,60,.8); color: #fff; border-color: rgba(255,255,255,.18); }
.ov-r { right: 14px; top: 62px; display: flex; flex-direction: column; gap: 8px; }
.ov-r .btn { background: rgba(20,26,60,.78); color: #fff; backdrop-filter: blur(8px); }
.ov-r .btn.active { background: var(--bs-primary); }
.ov-bl { left: 14px; bottom: 14px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; background: rgba(20,26,60,.8); padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(8px); }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.cut { right: 14px; bottom: 14px; width: 190px; padding: 8px 12px; color: #fff; background: rgba(20,26,60,.8); border-radius: 10px; backdrop-filter: blur(8px); }
.cut .form-range { margin: 2px 0 0; }
.ov-hint { left: 50%; bottom: 62px; transform: translateX(-50%); color: rgba(255,255,255,.55); pointer-events: none; text-align: center; width: 70%; }
.tip { position: absolute; z-index: 9; pointer-events: none; background: rgba(8,12,34,.94); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 12px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); }
.tip b { font-size: 13px; }
.st { font-weight: 600; }
.st-disponivel { color: #34d27b; } .st-reservada { color: #ffc94a; } .st-vendida { color: #ff5b63; } .st-bloqueada { color: #9aa3b3; }
.mirror { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 3px; font-size: 11px; }
.mirror .hd { color: var(--bs-secondary-color); text-align: center; align-self: center; }
.mirror button { border: 0; border-radius: 4px; padding: 4px 0; color: #fff; font-weight: 600; font-size: 10.5px; cursor: pointer; }
.mirror button.disponivel { background: linear-gradient(180deg,#14c95a,#5fe39a); color:#04361a; } .mirror button.reservada { background: linear-gradient(180deg,#f5a90a,#ffd66e); color: #3b2a00; } .mirror button.vendida { background: linear-gradient(180deg,#f0283e,#ff808a); color:#fff; } .mirror button.bloqueada { background: linear-gradient(180deg,#5d6a88,#9aa6bf); color:#fff; }
.mirror button.sel { outline: 2px solid var(--bs-body-color); outline-offset: 1px; }
.mirror button.dim { opacity: .22; }
.mirror .empty { background: var(--bs-gray-100); border-radius: 4px; }
.kpi { background: var(--bs-gray-100); border-radius: 10px; padding: 8px 4px; }
.kpi .v { font-weight: 700; font-size: 15px; } .kpi .l { font-size: 10.5px; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .03em; }
.plan-img { cursor: zoom-in; }
.login-body { background: linear-gradient(135deg, #0b1030, #2a2f63); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 420px; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; max-height: 560px; overflow: auto; padding: 2px; }
.gal-item { border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 8px; background: var(--bs-body-bg); }
.gal-item.sel { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.gal-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; display: block; background: #eee; margin-bottom: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 600; color: var(--bs-secondary-color); padding: 4px 0; }
.cal-d { min-height: 86px; border: 1px solid var(--bs-border-color); border-radius: 6px; padding: 4px; cursor: pointer; overflow: hidden; background: var(--bs-body-bg); }
.cal-d:hover { border-color: var(--bs-primary); }
.cal-d.hoje .cal-n { background: var(--bs-primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cal-d.passado { opacity: .6; } .cal-d.sel { box-shadow: 0 0 0 2px var(--bs-primary); }
.cal-n { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.cal-ev { font-size: 10.5px; padding: 1px 4px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.cal-ev.confirmada, .cal-dot.confirmada { background: #4f6df5; } .cal-ev.pendente, .cal-dot.pendente { background: #f5a524; } .cal-ev.concluida, .cal-dot.concluida { background: #8a93a3; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.sino-pulso { animation: sinoPulso .5s ease 3; } @keyframes sinoPulso { 50% { transform: scale(1.5); } }
#sinoN { font-size: 10px; padding: 3px 5px; line-height: 1; min-width: 16px; top: 3px !important; right: 1px !important; }

/* abas (nav-pills) dentro de card: respiro entre as abas e o conteúdo/busca */
.card-header.pb-0 + .card-body { padding-top: 1.25rem; }
.card-header > .nav-pills { padding-bottom: .25rem; }

/* Espelho 3D: em telas largas o 3D fica fixo e só a coluna da direita rola */
@media (min-width: 1400px) {
  .espelho-row { height: calc(100vh - 204px); min-height: 520px; flex-wrap: nowrap; }
  .espelho-row .viewer-card { height: 100%; }
  .espelho-side { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; scrollbar-width: thin; }
}

/* fotos de rosto */
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.foto-box { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--bs-gray-200, #e9ecef); display: flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--bs-border-color); }
.foto-box img { width: 100%; height: 100%; object-fit: cover; }
.foto-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.cam-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1/1; margin: 0 auto; background: #0b1030; border-radius: 12px; overflow: hidden; }
.cam-wrap video, .cam-wrap canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-wrap video { transform: scaleX(-1); }
.cam-guia { position: absolute; inset: 12% 22%; border: 2px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }

/* galeria de imagens do Book (modal) */
.gal-stage { position: relative; background: #05081c; border-radius: 10px; height: min(68vh, 640px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gal-stage > img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.gal-nav:hover { background: rgba(255,255,255,.3); } .gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs button { flex: none; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #05081c; opacity: .6; }
.gal-thumbs button.on { border-color: var(--bs-primary); opacity: 1; } .gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.img-zoom { cursor: zoom-in; position: relative; display: block; }
.img-zoom .zoom-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(11,16,48,.78); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.modal-content.bg-dark .nav-pills .nav-link { text-transform: none; color: #cfd6ff; }
.modal-content.bg-dark .nav-pills .nav-link.active { color: #fff; }
.modal-content.bg-dark .nav-pills .badge { background: rgba(255,255,255,.18) !important; color: #fff !important; }

/* camadas / sol / vista */
.ov-sol { top: 58px; left: 14px; width: 210px; background: rgba(14,18,48,.78); backdrop-filter: blur(8px); border-radius: 10px; padding: 10px; color: #fff; }
.ov-sol .sol-lbl, .sol-lbl { font-size: 11px; color: #b9c2ee; }
.ov-sol select { background-color: rgba(20,26,60,.9); color: #fff; border-color: rgba(255,255,255,.18); }
.ov-sol .form-check-input { cursor: pointer; } .ov-sol .btn-label-secondary { background: rgba(255,255,255,.14); color: #fff; }
.ov-compass { right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(14,18,48,.78); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
#compassNeedle { position: absolute; inset: 0; transition: transform .08s linear; } #compassNeedle span { position: absolute; left: 50%; top: 1px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #ff6b6b; }
#compassNeedle::after { content: ''; position: absolute; left: 50%; top: 14px; width: 2px; height: 12px; margin-left: -1px; background: linear-gradient(#ff6b6b 50%, #fff 50%); border-radius: 2px; }
.ov-vista { left: 50%; top: 14px; transform: translateX(-50%); background: rgba(14,18,48,.85); color: #fff; padding: 6px 8px 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); font-size: 13px; white-space: nowrap; z-index: 6; }
.leg-escala { height: 10px; border-radius: 5px; min-width: 150px; }
.viewer-card.em-vista .ov-sol .sol-lbl[for=camadaSel], .viewer-card.em-vista #modeTabs, .viewer-card.em-vista .ov-r button:not(#btnDay):not(#btnFull) { opacity: .5; }
@media (max-width: 767px) { .ov-sol { width: 168px; top: 52px; } .ov-compass { display: none; } .ov-tr { right: 14px; } }
.ov-sol .form-check-label { color: #fff; cursor: pointer; } .ov-sol .form-check-input:not(:checked) { background-color: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }

/* operação ao vivo */
.op-pop { position: absolute; z-index: 8; width: 270px; max-height: 70%; overflow: auto; background: rgba(14,18,48,.94); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px 12px; backdrop-filter: blur(8px); font-size: 12.5px; }
.op-pop h6 { color: #fff; margin: 0 0 6px; font-size: 13px; } .op-pop .op-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #cfd6ff; font-size: 18px; line-height: 1; }
.op-pop .op-area { border-top: 1px solid rgba(255,255,255,.12); padding: 6px 0; } .op-pop a { color: #9db7ff; }

/* realidade aumentada (overlay DOM dentro da sessão WebXR) */
.ar-overlay { position: fixed; inset: 0; z-index: 30; pointer-events: none; color: #fff; }
.ar-overlay[hidden] { display: none; }
.ar-dica { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(14,18,48,.82); padding: 8px 14px; border-radius: 999px; font-size: 13px; max-width: 90vw; text-align: center; }
.ar-bar { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: rgba(14,18,48,.82); border-radius: 16px; padding: 10px 14px; pointer-events: auto; }
.ar-bar label { font-size: 12px; display: flex; align-items: center; gap: 6px; } .ar-bar input[type=range] { width: 110px; }
.ar-bar button { border: 0; border-radius: 999px; background: #ff5b63; color: #fff; padding: 7px 14px; font-weight: 600; }

/* câmeras */
.cam-video { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.cam-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #cfd6ff; background: rgba(5,8,28,.82); font-size: 14px; }
.cam-status[hidden] { display: none; } .cam-status.erro { color: #ffb3b8; }
.cam-live { position: absolute; left: 12px; top: 12px; }

/* planta 3D: editor */
.pl-ed { position: relative; line-height: 0; user-select: none; background: #fff; }
.pl-ed img { width: 100%; display: block; opacity: .85; } .pl-ed svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.pl-ed .w { stroke: rgba(239,68,68,.75); stroke-linecap: butt; cursor: pointer; } .pl-ed .w.sel { stroke: #2563eb; }
.pl-ed .h { fill: #fff; stroke: #2563eb; stroke-width: 2; cursor: move; } .pl-ed .o-porta { fill: #f59e0b; stroke: #fff; } .pl-ed .o-janela { fill: #06b6d4; stroke: #fff; } .pl-ed .o.sel { stroke: #2563eb; stroke-width: 3; }
.pl3-stage { position: relative; background: #e9ecf1; border-radius: 10px; overflow: hidden; height: min(72vh, 680px); } .pl3-stage canvas { display: block; width: 100%; height: 100%; }
.pl3-hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; background: rgba(14,18,48,.75); color: #fff; padding: 4px 10px; border-radius: 999px; }

.pl-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.pl-thumbs button { flex: none; width: 130px; padding: 0; border: 3px solid transparent; border-radius: 8px; background: #fff; text-align: left; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pl-thumbs button.on { border-color: var(--bs-primary); } .pl-thumbs img { width: 100%; height: 84px; object-fit: contain; background: #f3f4f6; display: block; }
.pl-thumbs small { display: block; padding: 3px 6px; font-size: 11px; line-height: 1.2; }

/* ícone: câmera de segurança tipo Bullet (corpo cilíndrico, lente e suporte de parede) */
.tabler-bullet-cam { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24'%20height='24'%3E%3Cg%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%3E%3Cpath%20d='M3%207.5A2.5%202.5%200%200%201%205.5%205h10A2.5%202.5%200%200%201%2018%207.5v1A2.5%202.5%200%200%201%2015.5%2011h-10A2.5%202.5%200%200%201%203%208.5z'/%3E%3Cpath%20d='M18%206.5l2.5-1.5v6L18%209.5'/%3E%3Cpath%20d='M8%2011v4.5H4.5M4.5%2012.5v7'/%3E%3C/g%3E%3C/svg%3E"); }

/* busca global (navbar) */
.busca-wrap { position: relative; width: 340px; max-width: 100%; min-width: 0; flex: 0 1 340px; }
.busca-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #fff; border-radius: 10px; padding: 0 12px; height: 40px; }
.busca-box:focus-within { border-color: #fff; }
.busca-box i { font-size: 20px; color: var(--bs-secondary-color); }
.busca-box input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 14px; color: var(--bs-body-color); }
.busca-box kbd { background: var(--bs-gray-100, #f1f1f4); color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); border-radius: 5px; padding: 0 6px; font-size: 11px; }
.busca-painel { position: absolute; left: 0; width: 560px; max-width: calc(100vw - 32px); top: 46px; z-index: 1085; background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: 12px; box-shadow: 0 10px 34px rgba(34,41,47,.22); max-height: min(70vh, 640px); overflow-y: auto; padding: 8px 8px 10px; }
.busca-grupo { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-heading-color, #444); padding: 10px 10px 4px; }
.busca-item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; color: inherit; text-decoration: none; cursor: pointer; }
.busca-item:hover, .busca-item.ativo { background: var(--bs-gray-100, #f3f3f6); color: inherit; }
.busca-item .ic { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 20px; overflow: hidden; }
.busca-item .ic img { width: 100%; height: 100%; object-fit: cover; }
.busca-item .tx { min-width: 0; flex: 1; } .busca-item .tt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .busca-item .sb { font-size: 12px; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busca-vazio { padding: 18px 12px; text-align: center; color: var(--bs-secondary-color); font-size: 13px; }
@media (max-width: 575px) { .busca-wrap { flex: 1 1 auto; width: auto; } .busca-box input { font-size: 13px; } }

.btn.btn-icon.troca-condo { width: 34px !important; height: 34px !important; border-radius: 9px; } .btn.troca-condo i.icon-base { font-size: 21px !important; width: 21px !important; height: 21px !important; }

/* sugestões com foto (campos de pessoa) */
.sug-painel { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 1060; background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: 10px; box-shadow: 0 8px 26px rgba(34,41,47,.2); max-height: 300px; overflow-y: auto; padding: 4px; }
.sug-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; } .sug-item.ativo, .sug-item:hover { background: var(--bs-gray-100, #f3f3f6); }
.sug-item .tx { min-width: 0; flex: 1; } .sug-item .tt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sug-item .sb { font-size: 12px; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-vazio { padding: 12px; text-align: center; font-size: 13px; color: var(--bs-secondary-color); }
.sug-item .foto-sm { width: 40px; height: 40px; }

/* lista de visitantes do modal Nova visita */
.vis-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; } /* 2 por linha: menos rolagem com muitos visitantes */
@media (max-width: 575px) { .vis-lista { grid-template-columns: 1fr; } }
.vis-chip { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--bs-border-color); border-radius: 10px; background: var(--bs-body-bg, #fff); }
.vis-chip .tx { flex: 1; min-width: 0; } .vis-chip .tt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vis-chip .sb { font-size: 12px; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-chip .foto-sm { width: 40px; height: 40px; } .vis-chip.bloq { border-color: var(--bs-danger); background: rgba(255,76,81,.06); }
.grp-fotos { display: flex; } .grp-fotos .foto-sm { width: 32px; height: 32px; border: 2px solid #fff; margin-left: -8px; } .grp-fotos .foto-sm:first-child { margin-left: 0; }

.lbl-linha { display: flex; align-items: flex-end; justify-content: space-between; min-height: 31px; margin-bottom: .35rem; }
