/* ══════════════════════════════════════════════════
   VR360 TOUR FRAME  ·  Royal Sapphire × Gold
   Palette:
     --navy-deep   : #060e1f
     --navy-mid    : #0d1f45
     --gold        : #F2C14E
     --gold-dim    : #C8922A
     --gold-pale   : #fde9a2
     --white       : #f5f7ff
     --muted       : rgba(200,210,240,0.55)
══════════════════════════════════════════════════ */

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --H-top: 46px;
  --H-bot: 56px;
  --navy-deep: #060e1f;
  --navy-mid: #0d1f45;
  --navy-hi: #1a3570;
  --gold: #f2c14e;
  --gold-dim: #c8922a;
  --gold-pale: #fde9a2;
  --white: #f5f7ff;
  --muted: rgba(200, 210, 240, 0.55);
  --bar-bg: linear-gradient(105deg, var(--navy-deep) 0%, var(--navy-mid) 50%, #112048 100%);
  --shimmer: linear-gradient(90deg, transparent 0%, rgba(242, 193, 78, 0.18) 20%, rgba(242, 193, 78, 0.8) 50%, rgba(242, 193, 78, 0.18) 80%, transparent 100%);
  --radius-pill: 999px;
  --radius-btn: 10px;
  --t: 0.22s ease;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Outfit", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.vr-header {
  padding: 0 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--H-top);
  background: var(--bar-bg);
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* flex-direction: column; */
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(242, 193, 78, 0.12);
}

/* Animated gold shimmer at bottom of header */
.header-shimmer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: shimmer-slide 4s linear infinite;
}

@keyframes shimmer-slide {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 300% 0;
  }
}

/* Inner: logo left, buttons right */
.header-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
}

/* ── LEFT: Logo image ── */
.header-left {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-box {
  height: 34px;
  display: flex;
  align-items: center;
  /* background: #fff; */
  border-radius: 6px;
  padding: 3px 7px;
  overflow: hidden;
  /* box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.4); */
  transition:
    box-shadow var(--t),
    transform var(--t);
}
.logo-box:hover {
  /* box-shadow:
    0 0 0 2px rgba(242, 193, 78, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.5); */
  transform: scale(1.1);
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── CENTER: removed – no title in header ── */

/* ── RIGHT: Action pills ── */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.hdr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(242, 193, 78, 0.07);
  color: rgba(245, 247, 255, 0.8);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t),
    transform var(--t);
}
.hdr-pill i {
  font-size: 11px;
  color: var(--gold);
}
.hdr-pill:hover {
  background: rgba(242, 193, 78, 0.18);
  border-color: rgba(242, 193, 78, 0.6);
  color: var(--white);
  transform: translateY(-1px);
}
.hdr-pill:active {
  transform: scale(0.96);
}

.hdr-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 193, 78, 0.2);
  border-radius: 50%;
  background: rgba(242, 193, 78, 0.06);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t);
}
.hdr-icon:hover {
  background: rgba(242, 193, 78, 0.16);
  border-color: rgba(242, 193, 78, 0.5);
  color: var(--gold);
}

/* ══════════════════════════════════════════════════
   MAIN VR VIEWER
══════════════════════════════════════════════════ */
.vr-main {
  position: fixed;
  top: var(--H-top);
  left: 0;
  right: 0;
  bottom: var(--H-bot);
  background: #050c1a;
  overflow: hidden;
}

#vr-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Loading overlay ── */
.vr-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(ellipse at center, #0d1f45 0%, #060e1f 100%);
  z-index: 10;
  transition: opacity 0.6s;
}
.vr-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(242, 193, 78, 0.15);
  border-top-color: var(--gold);
  border-right-color: rgba(242, 193, 78, 0.5);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   BOTTOM TOOLBAR
══════════════════════════════════════════════════ */
.vr-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--H-bot);
  background: var(--bar-bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.65);
}

/* Animated gold shimmer at top of toolbar */
.toolbar-shimmer {
  width: 100%;
  height: 2px;
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: shimmer-slide 4s linear infinite;
  animation-delay: 2s;
}

.toolbar-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

/* ── Left: Geo badge ── */
.geo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.geo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(242, 193, 78, 0.2),
      0 0 8px rgba(242, 193, 78, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(242, 193, 78, 0.08),
      0 0 18px rgba(242, 193, 78, 0.6);
  }
}

.geo-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.geo-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1;
}
.geo-sub {
  font-size: 13px;
  font-weight: 300;
  color: #ccc;
  letter-spacing: 0.5px;
}

/* ── Center: Scene label ── */
.scene-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid rgba(242, 193, 78, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(242, 193, 78, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
  justify-content: center;
}
.scene-label i {
  color: var(--gold);
  font-size: 11px;
}

/* ── Right: Toolbar buttons ── */
.toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.tb-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(242, 193, 78, 0.35), transparent);
  margin: 0 2px;
}

.tb-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* border-radius: var(--radius-btn); */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 255, 0.75);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t),
    transform var(--t),
    box-shadow var(--t);
}
.tb-btn:hover {
  background: rgba(242, 193, 78, 0.14);
  border-color: rgba(242, 193, 78, 0.45);
  color: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(242, 193, 78, 0.12);
}
.tb-btn:active {
  transform: translateY(0) scale(0.93);
}
.tb-btn.active {
  background: rgba(242, 193, 78, 0.15);
  border-color: var(--gold-dim);
  color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(242, 193, 78, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Gold emphasis button (fullscreen) */
.tb-btn.emphasis {
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.22), rgba(200, 146, 42, 0.15));
  border-color: rgba(242, 193, 78, 0.45);
  color: var(--gold);
}
.tb-btn.emphasis:hover {
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.38), rgba(200, 146, 42, 0.28));
  border-color: var(--gold);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(242, 193, 78, 0.2);
}

/* Tooltip */
.tb-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 14, 31, 0.95);
  border: 1px solid rgba(242, 193, 78, 0.3);
  color: var(--gold-pale);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.tb-btn:hover::after {
  opacity: 1;
}

/* Autoplay spin */
@keyframes spin-anim {
  to {
    transform: rotate(360deg);
  }
}
.tb-btn.spinning i {
  animation: spin-anim 1.6s linear infinite;
}

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.vr-toast {
  position: fixed;
  bottom: calc(var(--H-bot) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(6, 14, 31, 0.96);
  border: 1px solid rgba(242, 193, 78, 0.35);
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 500;
  transition:
    opacity 0.3s,
    transform 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.vr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --H-top: 46px;
    --H-bot: 52px;
  }
  .place-title {
    font-size: 15px;
  }
  .title-eyebrow {
    display: none;
  }
  .hdr-pill span {
    display: none;
  }
  .hdr-pill {
    padding: 5px 9px;
  }
  .scene-label {
    display: none;
  }
  .geo-sub {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   FLAG BUTTON + DROPDOWN (header)
══════════════════════════════════════════════════ */

/* Wrapper – anchor point for dropdown */
.lang-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Base button – no border here, set per language below */
.hdr-flag-btn {
  width: 44px;
  height: 30px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* ── Việt Nam: đỏ đậm #DA251D ── */
.hdr-flag-btn[data-lang="vi"] {
  border-color: rgba(218, 37, 29, 0.75);
  background: rgba(218, 37, 29, 0.06);
}
.hdr-flag-btn[data-lang="vi"]:hover {
  border-color: rgb(218, 37, 29);
  background: rgba(218, 37, 29, 0.13);
  box-shadow:
    0 0 14px rgba(218, 37, 29, 0.55),
    0 0 4px rgba(218, 37, 29, 0.35),
    inset 0 0 6px rgba(218, 37, 29, 0.1);
}
.hdr-flag-btn[data-lang="vi"]:active {
  border-color: #da251d;
  box-shadow: 0 0 8px rgba(218, 37, 29, 0.45);
}

/* ── English (UK/US): xanh hoàng gia #0033A0 ── */
.hdr-flag-btn[data-lang="en"] {
  border-color: rgba(0, 51, 160, 0.85);
  background: rgba(0, 51, 160, 0.07);
}
.hdr-flag-btn[data-lang="en"]:hover {
  border-color: rgb(0, 68, 204);
  background: rgba(0, 51, 160, 0.14);
  box-shadow:
    0 0 14px rgba(0, 51, 160, 0.6),
    0 0 4px rgba(0, 51, 160, 0.4),
    inset 0 0 6px rgba(0, 51, 160, 0.12);
}
.hdr-flag-btn[data-lang="en"]:active {
  border-color: #0044cc;
  box-shadow: 0 0 8px rgba(0, 51, 160, 0.5);
}

/* Flag image */
.flag-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  transition:
    opacity 0.18s ease,
    filter 0.2s ease;
}
.hdr-flag-btn:hover .flag-icon {
  filter: brightness(1.07) saturate(1.08);
}
.flag-icon.switching {
  opacity: 0;
}

/* ── Dropdown Panel ── */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 158px;
  background: linear-gradient(150deg, #0e2248 0%, #070f20 100%);
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 10px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(242, 193, 78, 0.05);
  overflow: hidden;
  z-index: 300;
  /* Hidden by default */
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Option rows */
.lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: none;
  background: transparent;
  color: rgba(245, 247, 255, 0.8);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--t),
    color var(--t);
}
.lang-opt:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lang-opt:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--white);
}
.lang-opt.active {
  background: rgba(242, 193, 78, 0.09);
  color: var(--gold-pale);
}

/* Rectangular flag in dropdown */
.lang-opt-flag {
  width: 32px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: block;
}

/* Checkmark – right side, only active */
.lang-opt-check {
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.lang-opt.active .lang-opt-check {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════════════════
   MAP MODAL (Royal Sapphire & Gold)
══════════════════════════════════════════════════ */
.vr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vr-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.vr-modal-card {
  width: 92%;
  max-width: 800px;
  background: linear-gradient(150deg, #0e2248 0%, #070f20 100%);
  border: 1px solid rgba(242, 193, 78, 0.32);
  border-radius: 16px;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(242, 193, 78, 0.04);
  overflow: hidden;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vr-modal-overlay.open .vr-modal-card {
  transform: translateY(0) scale(1);
}

.vr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.14);
}

.vr-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.vr-modal-title i {
  color: var(--gold);
  font-size: 15px;
}

.vr-modal-close {
  background: rgba(242, 193, 78, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);

  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 13px;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t),
    transform 0.25s ease;
}
.vr-modal-close:hover {
  /* background: rgba(242, 193, 78, 0.15);
  border-color: var(--gold);
  color: var(--gold); */
  transform: rotate(90deg);
}
.vr-modal-close i {
  display: block;
  line-height: 1;
}

.vr-modal-body {
  padding: 18px 20px;
}

.map-iframe-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.16);
  background: #050b16;
}
.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vr-modal-footer {
  padding: 0 20px 20px;
}

.vr-btn-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #060e1f;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(242, 193, 78, 0.25);
  cursor: pointer;
  transition:
    transform var(--t),
    box-shadow var(--t),
    filter var(--t);
}
.vr-btn-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
  filter: brightness(1.06);
}
.vr-btn-directions:active {
  transform: translateY(0);
}
.vr-btn-directions i {
  font-size: 13px;
}

/* ══════════════════════════════════════════════════
   SCENES GRID DROPDOWN (Floorplan)
══════════════════════════════════════════════════ */
.floorplan-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.floorplan-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  right: -57px;
  width: 440px;
  background: linear-gradient(150deg, #0e2248 0%, #070f20 100%);
  border: 1px solid rgba(242, 193, 78, 0.32);
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(242, 193, 78, 0.04);
  overflow: hidden;
  z-index: 300;

  /* Hidden by default with smooth slide up transition */
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transform-origin: bottom right;
  transition:
    opacity 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.floorplan-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floorplan-dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.15);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.floorplan-dropdown-header i {
  color: var(--gold);
  font-size: 13px;
}
.floorplan-close {
  margin-left: auto;
}

.floorplan-dropdown-body {
  padding: 14px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 8px; /* space for scrollbar */
}

/* Custom Scrollbar for floorplan dropdown body */
.floorplan-dropdown-body::-webkit-scrollbar {
  width: 5px;
}
.floorplan-dropdown-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-pill);
}
.floorplan-dropdown-body::-webkit-scrollbar-thumb {
  background: rgba(242, 193, 78, 0.25);
  border-radius: var(--radius-pill);
}
.floorplan-dropdown-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.scenes-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.scene-grid-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: #060e1f;
  transition:
    border-color var(--t),
    box-shadow var(--t),
    transform var(--t);
}
.scene-grid-item:hover {
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(242, 193, 78, 0.08);
  transform: translateY(-1.5px);
}
.scene-grid-item.active {
  border-color: var(--gold);
  box-shadow:
    0 0 12px rgba(242, 193, 78, 0.3),
    inset 0 0 0 1px var(--gold);
}

.scene-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.scene-grid-item:hover img {
  transform: scale(1.06);
}

.scene-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 9, 20, 0.85) 0%, rgba(4, 9, 20, 0.3) 60%, rgba(4, 9, 20, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  transition: background 0.3s ease;
}
.scene-grid-item:hover .scene-grid-overlay {
  background: linear-gradient(to top, rgba(4, 9, 20, 0.9) 0%, rgba(4, 9, 20, 0.4) 60%, rgba(4, 9, 20, 0.5) 100%);
}

.scene-grid-title {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2px;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.85);
  transition: color var(--t);
}
.scene-grid-item:hover .scene-grid-title {
  color: var(--gold-pale);
}
.scene-grid-item.active .scene-grid-title {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 600px) {
  .floorplan-dropdown {
    width: 320px;
  }
}
@media (max-width: 480px) {
  .floorplan-dropdown {
    position: fixed;
    bottom: var(--H-bot);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 380px;
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom center;
  }
  .scenes-grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .scene-grid-title {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════════════
   INTERACTIVE MAPBOX LAYOUT
══════════════════════════════════════════════════ */
#map-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #050c1a;
  opacity: 1;
  transition: opacity 0.3s ease;
}
#map-container.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}
#map {
  width: 100%;
  height: 100%;
}

/* Mapbox Custom circular Avatar Marker */
.mapbox-custom-marker {
  width: 3.5rem; /* w-14 (56px) */
  height: 3.5rem; /* h-14 (56px) */
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.22),
    0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mapbox-custom-marker:hover {
  border-color: #d32f2f;
  transform: scale(1.1);
}
.mapbox-custom-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

/* White design popup from screenshot */
.mapboxgl-popup-content {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  padding: 14px !important;
  border-radius: 16px !important;
  width: 340px !important;
  font-family: "Outfit", "Segoe UI", Arial, sans-serif !important;
}
.mapboxgl-popup-tip {
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}
.mapboxgl-popup-close-button {
  color: #757575 !important;
  font-size: 16px !important;
  padding: 10px !important;
  z-index: 20 !important;
  outline: none !important;
  border: none !important;
  background: transparent !important;
  transition: color 0.2s ease;
}
.mapboxgl-popup-close-button:hover {
  color: #212121 !important;
  background: transparent !important;
}

/* Custom Popup Content Layout */
.bds-popup-info {
  display: block;
}

.bds-pi-image-container {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}
.bds-pi-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bds-pi-image-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.bds-pi-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 2px 2px;
}

.bds-pi-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #c62828; /* Red title */
  text-align: center;
  line-height: 1.4;
  margin-bottom: 2px;
}

.bds-pi-address {
  font-size: 12.5px;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.bds-pi-icon-location {
  color: #f2a104; /* Yellow location pin */
  font-size: 13px;
}

.bds-pi-tags {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}
.bds-pi-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faf3e8; /* Warm light beige tag background */
  color: #855e29; /* Brown text color */
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(133, 94, 41, 0.1);
}
.bds-pi-tag img {
  width: 12px;
  height: 12px;
}

.bds-pi-divider {
  height: 1px;
  background: #e6e6e6;
  margin: 4px 0;
}

.bds-pi-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bds-pi-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.bds-pi-info-icon {
  color: #555555;
  background: #f4f4f4; /* Light grey circle background */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.bds-pi-info-label {
  font-size: 10.5px;
  color: #777777;
  font-weight: 500;
}
.bds-pi-info-value {
  font-size: 11.5px;
  color: #212121;
  font-weight: 600;
}

.bds-pi-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.bds-pi-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  background: #ffffff;
  color: #444444;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.bds-pi-btn:hover {
  background: #f8f8f8;
  border-color: #a6a6a6;
  color: #111111;
}
.bds-pi-btn i {
  color: #666666;
  font-size: 11px;
}
.hitbox {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ══════════════════════════════════════════════════
   INFO MODAL STYLING (Royal Sapphire & Gold)
══════════════════════════════════════════════════ */
.info-modal-body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Custom Scrollbar for Info Modal */
.info-modal-body::-webkit-scrollbar {
  width: 6px;
}
.info-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}
.info-modal-body::-webkit-scrollbar-thumb {
  background: rgba(242, 193, 78, 0.25);
  border-radius: 3px;
  transition: background 0.25s ease;
}
.info-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 193, 78, 0.55);
}

.info-content-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .info-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    gap: 12px;
    margin-bottom: 14px;
  }

  .info-meta-item:last-child {
    margin-bottom: 0;
  }

  .info-meta-item i {
    color: var(--gold);
    font-size: 14px;
    margin-top: 3px;
    width: 16px;
    text-align: center;
  }

  .info-meta-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .info-meta-value {
    color: var(--white);
    font-size: 13.5px;
    font-weight: 500;
  }
}

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVENESS FOR TOOLBAR
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .toolbar-inner {
    padding: 0 8px;
    gap: 5px;
  }
  .geo-badge {
    gap: 6px;
    max-width: 35%; /* Allow title area to not push buttons out */
  }
  .geo-info {
    min-width: 0; /* Critical for text-overflow ellipsis to work in Flexbox */
  }
  .geo-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .geo-sub {
    display: none; /* Hide subtitle on small screens */
  }
  .toolbar-right {
    gap: 4px;
  }
  .tb-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .tb-divider {
    height: 18px;
    margin: 0 1px;
  }

  /* Mapbox Popup on Mobile */
  .mapboxgl-popup-content {
    width: 290px !important;
    padding: 10px !important;
  }
  .bds-pi-image-container {
    height: 100px;
  }
  .bds-pi-content {
    gap: 8px;
    padding: 8px 0 0;
  }
  .bds-pi-title {
    font-size: 13px;
  }
  .bds-pi-address {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(242, 193, 78, 0.2);
    padding-bottom: 12px;
  }
  .vr-offcanvas-title i {
    color: var(--gold);
    font-size: 15px;
  }
  .vr-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
  }
  .vr-offcanvas-body::-webkit-scrollbar {
    width: 4px;
  }
  .vr-offcanvas-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }
  .vr-offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(242, 193, 78, 0.35);
    border-radius: 4px;
  }

  .modal-offcanvas-custom {
    max-width: 200px !important;
  }

  .uk-offcanvas-close {
    top: 15px !important;
  }
}

.pb-10 {
  padding-bottom: 10px;
}

.text-white {
  color: #fff;
}

.text-white .info-description-title {
  color: var(--gold);
}

.relative {
    position: relative;
}

.hitbox {
    position: absolute;
    inset: 0;
}
p#info-modal-desc { display: none }
