/* =========================================================
   AQAR LINK - VR PRO TOUR EXPERIENCE
   360 Panorama + Hotspots + Interior Design + Measurements
   ========================================================= */

.vr-pro-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  min-height: calc(100vh - 110px);
}

.vr-viewer-shell {
  position: relative;
  min-height: 720px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line, #e7eef8);
  box-shadow: var(--shadow, 0 26px 80px rgba(16,24,40,.14));
  background: #071d5b;
}

#vrViewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vr-top-glass {
  position: absolute;
  z-index: 8;
  left: 16px;
  top: 16px;
  width: min(520px, calc(100% - 32px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(16,24,40,.18);
}

.vr-top-glass small {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue, #075BFF);
  font-size: 11px;
  font-weight: 1000;
}

.vr-top-glass h2 {
  margin: 8px 0 5px;
  color: #101828;
  font-size: 22px;
  letter-spacing: -.6px;
}

.vr-top-glass p {
  margin: 0;
  color: #667085;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.55;
}

.vr-bottom-bar {
  position: absolute;
  z-index: 8;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(16,24,40,.18);
}

.vr-room-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.vr-room-tabs button,
.vr-action-btn {
  border: 1px solid #dbe7f5;
  background: #fff;
  color: #344054;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.vr-room-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue, #075BFF), var(--blue2, #092E8F));
}

.vr-action-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vr-action-btn.orange {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange, #FF7A00), var(--orange2, #FFB000));
}

.vr-action-btn.blue {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue, #075BFF), var(--blue2, #092E8F));
}

.vr-design-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: rgba(255,255,255,.01);
  transition: .25s ease;
}

.vr-light-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at 52% 20%, rgba(255,255,255,.20), transparent 42%);
  transition: .25s ease;
}

.vr-measure-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  display: none;
}

.vr-measure-layer.show {
  display: block;
}

.vr-measure {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(16,24,40,.12);
  color: #101828;
  font-size: 12px;
  font-weight: 1000;
  padding: 8px 11px;
  box-shadow: 0 14px 34px rgba(16,24,40,.18);
}

.vr-measure.width {
  left: 50%;
  bottom: 112px;
  transform: translateX(-50%);
}

.vr-measure.height {
  right: 34px;
  top: 45%;
  transform: rotate(90deg);
}

.vr-measure.area {
  left: 34px;
  top: 45%;
}

.vr-furniture-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.vr-furniture {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 1000;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 18px 45px rgba(16,24,40,.24);
  backdrop-filter: blur(8px);
}

.vr-furniture.show {
  display: flex;
  animation: vrIn .22s ease both;
}

@keyframes vrIn {
  from { opacity: 0; transform: translateY(16px) scale(.92); }
  to { opacity: 1; transform: none; }
}

.vr-sofa {
  left: 19%;
  bottom: 19%;
  width: 240px;
  height: 84px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(7,91,255,.88), rgba(9,46,143,.88));
}

.vr-table {
  left: 47%;
  bottom: 20%;
  width: 120px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,122,0,.92), rgba(255,176,0,.92));
}

.vr-bed {
  right: 13%;
  bottom: 17%;
  width: 210px;
  height: 110px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(16,24,40,.86), rgba(7,91,255,.72));
}

.vr-plant {
  right: 11%;
  top: 28%;
  width: 76px;
  height: 112px;
  border-radius: 44px 44px 18px 18px;
  background: linear-gradient(135deg, #12B76A, #027A48);
}

.vr-pro-panel {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e7eef8);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--soft, 0 16px 40px rgba(16,24,40,.08));
  display: grid;
  gap: 14px;
  align-content: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.vr-pro-panel h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.7px;
}

.vr-pro-panel p {
  margin: 6px 0 0;
  color: var(--muted, #667085);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.vr-panel-block {
  border: 1px solid var(--line, #e7eef8);
  background: #f8fbff;
  border-radius: 20px;
  padding: 12px;
}

html[data-theme="dark"] .vr-panel-block {
  background: #111E33;
}

.vr-panel-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.vr-color-row,
.vr-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vr-color {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(16,24,40,.16);
}

.vr-tool-row button {
  border: 1px solid #dbe7f5;
  background: #fff;
  color: #344054;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 1000;
}

.vr-tool-row button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue, #075BFF), var(--blue2, #092E8F));
}

.vr-floor-plan {
  position: relative;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,91,255,.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7,91,255,.09) 1px, transparent 1px),
    #fff;
  background-size: 26px 26px;
  border: 1px solid #dbe7f5;
}

.vr-floor-room {
  position: absolute;
  border: 2px solid rgba(7,91,255,.38);
  background: rgba(7,91,255,.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 1000;
  color: #075BFF;
  cursor: pointer;
}

.vr-floor-room.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange, #FF7A00), var(--orange2, #FFB000));
  border-color: transparent;
}

.vr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vr-stats div {
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}

.vr-stats b {
  display: block;
  color: var(--blue, #075BFF);
  font-size: 18px;
}

.vr-stats span {
  display: block;
  color: var(--muted, #667085);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.vr-url-input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.vr-hotspot-card {
  background: white;
  color: #101828;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 12px 30px rgba(16,24,40,.22);
}

.vr-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 1000;
  background:
    radial-gradient(circle at top right, rgba(255,122,0,.35), transparent 32%),
    linear-gradient(135deg, #071d5b, #075bff);
}

.vr-loader.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .vr-pro-page {
    grid-template-columns: 1fr;
  }

  .vr-pro-panel {
    max-height: none;
  }

  .vr-viewer-shell {
    min-height: 640px;
  }
}

@media (max-width: 800px) {
  .vr-viewer-shell {
    min-height: 560px;
    border-radius: 22px;
  }

  .vr-top-glass {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    border-radius: 18px;
  }

  .vr-bottom-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .vr-sofa {
    width: 170px;
  }

  .vr-bed {
    width: 160px;
  }
}

/* Real-estate only demo mode: prevents strange non-property panoramas */
.vr-realestate-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: vrPhotoMove 16s ease-in-out infinite alternate;
}

@keyframes vrPhotoMove {
  0% { transform: scale(1.02) translateX(0); }
  50% { transform: scale(1.08) translateX(-1.5%); }
  100% { transform: scale(1.05) translateX(1.5%); }
}

.vr-photo-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,122,0,.18), transparent 30%),
    linear-gradient(180deg, rgba(7,29,91,.10), rgba(7,29,91,.34));
}

.vr-photo-hotspots {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.vr-photo-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.92);
  color: #101828;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 0 18px 45px rgba(16,24,40,.22);
  backdrop-filter: blur(14px);
}

.vr-photo-hotspot.is-scene {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue, #075BFF), var(--blue2, #092E8F));
}

.vr-photo-hotspot.is-info {
  background: linear-gradient(135deg, #ffffff, #fff2e6);
  color: var(--orange, #FF7A00);
}

.vr-photo-hotspot::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  animation: hotspotPulse 1.8s ease-in-out infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(.88); opacity: .75; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Real-estate only demo mode: prevents strange non-property panoramas */
.vr-realestate-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: vrPhotoMove 16s ease-in-out infinite alternate;
}

@keyframes vrPhotoMove {
  0% { transform: scale(1.02) translateX(0); }
  50% { transform: scale(1.08) translateX(-1.5%); }
  100% { transform: scale(1.05) translateX(1.5%); }
}

.vr-photo-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,122,0,.18), transparent 30%),
    linear-gradient(180deg, rgba(7,29,91,.10), rgba(7,29,91,.34));
}

.vr-photo-hotspots {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.vr-photo-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.92);
  color: #101828;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 0 18px 45px rgba(16,24,40,.22);
  backdrop-filter: blur(14px);
}

.vr-photo-hotspot.is-scene {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue, #075BFF), var(--blue2, #092E8F));
}

.vr-photo-hotspot.is-info {
  background: linear-gradient(135deg, #ffffff, #fff2e6);
  color: var(--orange, #FF7A00);
}

.vr-photo-hotspot::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  animation: hotspotPulse 1.8s ease-in-out infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(.88); opacity: .75; }
  100% { transform: scale(1.25); opacity: 0; }
}
