/* Local Montserrat Font Declarations (Offline & PWA Support) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat Regular'), local('Montserrat-Regular'),
       url('../fonts/montserrat/montserrat-v31-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Montserrat Medium'), local('Montserrat-Medium'),
       url('../fonts/montserrat/montserrat-v31-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
       url('../fonts/montserrat/montserrat-v31-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
       url('../fonts/montserrat/montserrat-v31-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-maroon-primary: #800000;
  --color-maroon-dark: #5C0000;
  --color-maroon-hover: #990000;
  --color-gold-accent: #D4AF37;
  --color-gold-light: #FBF4DE;
  --color-neutral-50: #F8F7F6;
  --color-neutral-100: #EFECE9;
  --color-neutral-200: #E4E1DE;
  --color-neutral-300: #CBC7C2;
  --color-neutral-600: #6B6864;
  --color-neutral-800: #36322F;
  --color-neutral-900: #231F1C;
  --color-white: #FFFFFF;
  --glass-light: rgba(255, 255, 255, 0.94);
  --glass-panel: rgba(26, 20, 22, 0.85);
  --scrim: rgba(26, 20, 22, 0.65);
  --text-dark: #F5EFEA;
  --text-light: #231F1C;
  --header-height: 52px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-neutral-50);
  color: var(--color-neutral-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TOP LOADING PROGRESS BAR & TRANSITION SCRIM
   ========================================================================== */

#topProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-maroon-primary);
  z-index: 99999;
  opacity: 0;
  width: 0%;
  transition: width 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.8);
}

#transitionFade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--scrim);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

/* ==========================================================================
   PWU SIGNATURE RED BOX BADGE & COMPONENTS
   ========================================================================== */

.pwu-red-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.25);
  white-space: nowrap;
  line-height: 1.2;
}

/* ==========================================================================
   REUSABLE PWU BUTTONS & CARDS
   ========================================================================== */

.btn-primary {
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-maroon-dark);
  border-color: var(--color-gold-accent);
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.25);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-maroon-primary);
  border: 1px solid var(--color-neutral-200);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s ease-in-out;
}

.btn-secondary:hover {
  background-color: #FFF5F5;
  border-color: var(--color-maroon-primary);
  color: var(--color-maroon-primary);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.card-white {
  background-color: #FFFFFF;
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(26, 20, 22, 0.25);
}

/* ==========================================================================
   MICRO-ANIMATIONS & ENTRANCE EFFECTS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerGlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sealFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(128, 0, 0, 0.3);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.45), 0 0 42px rgba(212, 175, 55, 0.3);
  }
}

@keyframes ctaPulseGlow {
  0%, 100% {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

@keyframes controlsSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseMaroon {
  0% {
    box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.85);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(128, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(128, 0, 0, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-header-glide {
  animation: headerGlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-modal-pop {
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   PANORAMA VIEWPORT CONTAINER
   ========================================================================== */

#panorama {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background-color: #000000;
}

/* ==========================================================================
   LANDING PAGE (index.html) STYLES
   ========================================================================== */

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(26, 20, 22, 0.25);
  animation: headerGlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 2px;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.86) 0%, rgba(35, 0, 0, 0.94) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 24px;
}

.hero-content {
  max-width: 540px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-seal-container {
  display: flex;
  justify-content: center;
}

.hero-seal-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(128, 0, 0, 0.3);
  flex-shrink: 0;
  animation: sealFloat 4.5s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-seal-badge:hover {
  transform: scale(1.06) rotate(2deg);
}

.hero-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-eyebrow-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #FCA5A5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
}

.hero-title-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.hero-subtitle-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: #FEE2E2;
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.hero-cta-group {
  width: 100%;
  max-width: 280px;
  padding-top: 4px;
}

.hero-cta-btn {
  width: 100%;
  padding: 14px 28px;
  background-color: #FFFFFF;
  color: var(--color-maroon-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: ctaPulseGlow 3.5s ease-in-out infinite;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.hero-cta-btn:hover {
  background-color: #FFF5F5;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.hero-cta-btn:hover svg {
  transform: translateX(4px);
}

.hero-cta-btn:active {
  transform: translateY(0) scale(0.97);
}

/* PWA Direct Install Popup Card */
.pwa-install-popup-backdrop {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 10000;
  pointer-events: none;
  padding: 0 16px;
}

.pwa-install-popup-card {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E4E1DE;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(128, 0, 0, 0.12);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-popup-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: #F8F7F6;
  padding: 4px;
  border: 1px solid #E4E1DE;
  flex-shrink: 0;
}

.pwa-popup-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pwa-popup-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #800000;
  letter-spacing: -0.01em;
}

.pwa-popup-subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #6B6864;
  font-weight: 500;
}

.pwa-popup-actions {
  display: flex;
  gap: 10px;
}

.pwa-popup-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

.pwa-popup-btn-primary {
  background: #800000;
  color: #FFFFFF;
}

.pwa-popup-btn-primary:hover {
  background: #A00000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.35);
}

.pwa-popup-btn-primary:active {
  transform: translateY(0);
}

.pwa-popup-btn-secondary {
  background: #F8F7F6;
  color: #6B6864;
  border: 1px solid #E4E1DE;
}

.pwa-popup-btn-secondary:hover {
  background: #EFECE9;
  color: #231F1C;
}

.pwa-popup-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .pwa-install-popup-backdrop {
    bottom: 16px;
    padding: 0 12px;
  }
  .pwa-install-popup-card {
    padding: 16px;
  }
}

/* Landing Controls Bottom Row */
.controls-row {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 20;
  pointer-events: none;
  animation: controlsSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.dropdown-wrapper, .controls-panel {
  pointer-events: auto;
}

.controls-panel {
  background: var(--glass-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.controls-panel:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.controls-link {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.controls-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.controls-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-btn {
  background: var(--glass-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.dropdown-btn:hover {
  background-color: rgba(35, 31, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.dropdown-btn .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.dropdown-btn.active .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: var(--glass-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dropdown-menu.show {
  display: flex;
  animation: dropdownSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  transform: translateX(3px);
}

.dropdown-item:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Landing Controls Bottom Row */
@media (max-width: 640px) {
  .controls-row {
    bottom: 16px;
    padding: 0 10px;
    gap: 8px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .dropdown-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
    min-height: 38px;
    box-sizing: border-box;
  }

  .dropdown-btn .chevron {
    width: 12px;
    height: 12px;
  }

  .controls-panel {
    padding: 3px;
    gap: 2px;
    min-height: 38px;
    box-sizing: border-box;
  }

  .controls-link {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
    min-height: 32px;
  }

  .controls-link svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 440px) {
  .btn-text-prefix {
    display: none;
  }

  .controls-row {
    padding: 0 8px;
    gap: 6px;
  }

  .dropdown-btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .controls-link {
    padding: 6px 8px;
    font-size: 11.5px;
    gap: 5px;
  }

  .status-indicator {
    gap: 5px;
  }
}

@media (max-width: 360px) {
  .controls-row {
    padding: 0 4px;
    gap: 4px;
  }

  .dropdown-btn {
    padding: 7px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .controls-link {
    padding: 5px 6px;
    font-size: 11px;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seal-badge,
  .hero-cta-btn,
  .controls-row,
  .dropdown-menu.show,
  .dropdown-item:hover,
  .animate-fade-in-up {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

/* Modal Backdrops & Cards */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 20, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(128, 0, 0, 0.1);
  border: 1px solid var(--color-neutral-200);
}

.modal-header-hero {
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  padding: 24px 28px 20px 28px;
  position: relative;
}

.modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pwu-red-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-hero-title {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.modal-hero-subtitle {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: #FEE2E2;
  line-height: 1.5;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 24px 28px;
  max-height: 62vh;
  overflow-y: auto;
}

.faq-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(128, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(128, 0, 0, 0.06);
}

.faq-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.faq-number-badge {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(128, 0, 0, 0.25);
}

.faq-question {
  font-size: 13.5px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-neutral-900);
  line-height: 1.35;
}

.faq-answer {
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-neutral-600);
  line-height: 1.6;
  margin: 0 0 0 32px;
}

/* ==========================================================================
   VIEWER (view.html) STYLES — TOPBAR HUD & FLOATING CONTROLS
   ========================================================================== */

/* Topbar HUD */
.topbar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  body.campus-panel-open .topbar,
  body:has(#campusPanel.expanded) .topbar {
    right: calc(min(380px, 45vw) + 20px);
  }
}
.topbar > * {
  pointer-events: auto;
}
.topbar svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.glass {
  background: var(--glass-panel, rgba(26, 20, 22, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.home-chip {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: #FFFFFF;
  transition: background 0.2s ease, transform 0.15s ease;
}
.home-chip:hover {
  background: rgba(128, 0, 0, 0.9);
}
.home-chip:focus-visible,
.icon-chip:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}
.location-chip {
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  max-width: calc(100vw - 160px);
}
.location-chip .loc-icon {
  width: 16px;
  height: 16px;
  color: #FFFFFF;
  flex-shrink: 0;
}
.location-chip .txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.location-chip .name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-chip .floor {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spacer {
  flex: 1;
}
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--glass-panel, rgba(26, 20, 22, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transition: all 0.2s ease;
}
.icon-chip:hover {
  background: rgba(128, 0, 0, 0.9);
}
.icon-chip.active {
  background: var(--color-maroon-primary);
  border-color: var(--color-maroon-dark);
}
.icon-chip:disabled,
.icon-chip.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon-chip:disabled:hover,
.icon-chip.disabled:hover {
  background: var(--glass-panel, rgba(26, 20, 22, 0.85));
}

/* ==========================================================================
   UNIFIED CAMPUS PANEL / BOTTOM SHEET
   ========================================================================== */

/* Unified Campus Panel — Desktop Drawer (Default >= 768px) */
.campus-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 380px;
  max-width: min(380px, 45vw);
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--color-neutral-200);
  border-radius: 16px 0 0 16px;
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.campus-panel.expanded {
  transform: translateX(0);
}

/* First-visit swipe hint overlay (view.php): centered, non-interactive, and
   only shown until the user first drags the camera. Pure CSS animation —
   no image asset, no emoji. */
.swipe-hint {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.swipe-hint.dismissed {
  opacity: 0;
}
.swipe-hint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  background: rgba(35, 31, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.swipe-hint-icon {
  width: 40px;
  height: 40px;
  color: #FFFFFF;
  animation: swipeHintHand 1.8s ease-in-out infinite;
}
.swipe-hint-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}
.swipe-hint-arrows {
  display: flex;
  gap: 18px;
  color: #FCA5A5;
}
.swipe-hint-arrows svg {
  width: 18px;
  height: 18px;
  animation: swipeHintNudge 1.8s ease-in-out infinite;
}
.swipe-hint-arrows svg:last-child {
  animation-delay: 0.15s;
}
@keyframes swipeHintHand {
  0%, 100% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
}
@keyframes swipeHintNudge {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-hint-icon,
  .swipe-hint-arrows svg {
    animation: none;
  }
}

/* Protruding Desktop Edge Tab (Docked when drawer is collapsed) */
.panel-edge-tab {
  position: absolute;
  right: 100%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-neutral-200);
  border-right: none;
  border-radius: 24px 0 0 24px;
  box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.25s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  z-index: 45;
  color: var(--color-neutral-900);
  font-family: inherit;
}
.panel-edge-tab:hover {
  background: #FFFFFF;
  box-shadow: -8px 8px 24px rgba(0, 0, 0, 0.2);
}
.panel-edge-tab:hover .edge-tab-icon {
  background: var(--color-maroon-hover);
}
.campus-panel.expanded .panel-edge-tab {
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
}
.panel-edge-tab .edge-tab-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--color-maroon-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.panel-edge-tab .edge-tab-icon svg {
  width: 15px;
  height: 15px;
  stroke: #FFFFFF;
}
.panel-edge-tab .edge-tab-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.panel-edge-tab .edge-tab-pill {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.panel-header {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-neutral-200);
  user-select: none;
}
.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.panel-header .picon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-maroon-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel-header .picon svg,
.panel-header .picon .icon {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
  flex-shrink: 0;
  display: block;
}
.panel-header .ptext {
  flex: 1;
  min-width: 0;
}
.panel-header .ptext .t1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-neutral-900);
}
.panel-header .ptext .t2 {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-neutral-600);
}
.panel-header:focus {
  outline: none;
}
.panel-header:focus-visible {
  outline: 2px solid var(--color-maroon-primary);
  outline-offset: -2px;
}
.panel-header .pclose-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-neutral-100, #F3F1EE);
  border: 1px solid var(--color-neutral-200, #E4E1DE);
  color: var(--color-neutral-600, #6B6864);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
}
.panel-header .pclose-btn:hover {
  background: var(--color-neutral-200, #E4E1DE);
  color: var(--color-maroon-primary, #800000);
  border-color: var(--color-neutral-300, #D0CCC7);
}
.panel-header .pclose-btn:focus-visible {
  outline: 2px solid var(--color-maroon-primary);
  outline-offset: 2px;
}
.panel-header .pclose-btn svg,
.panel-header .pclose-btn .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  display: block;
}

/* Campus Map Offline Tour Download Controls */
.panel-download-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 8px;
}

.panel-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #FFFFFF;
  border: 1px solid var(--color-neutral-200, #E4E1DE);
  border-radius: 8px;
  color: var(--color-maroon-primary, #800000);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.panel-download-btn:hover {
  background: var(--color-neutral-100, #F8F7F6);
  border-color: var(--color-maroon-primary, #800000);
}

.panel-download-btn:focus-visible {
  outline: 2px solid var(--color-maroon-primary, #800000);
  outline-offset: 2px;
}

.panel-download-btn svg,
.panel-download-btn .icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: block;
}

.panel-download-btn.downloaded {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #166534;
}

.panel-download-btn.downloaded:hover {
  background: #DCFCE7;
  border-color: #4ADE80;
}

.panel-download-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--color-neutral-100, #F8F7F6);
  border: 1px solid var(--color-neutral-200, #E4E1DE);
  border-radius: 8px;
}

.panel-download-progress.hidden {
  display: none !important;
}

.progress-bar-track {
  width: 72px;
  height: 6px;
  background: var(--color-neutral-200, #E4E1DE);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-maroon-primary, #800000);
  border-radius: 9999px;
  transition: width 0.15s ease;
}

.progress-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-neutral-900, #231F1C);
  min-width: 28px;
  text-align: right;
}

.download-cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--color-neutral-200, #E4E1DE);
  background: #FFFFFF;
  color: var(--color-neutral-600, #6B6864);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.download-cancel-btn:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.download-cancel-btn svg {
  width: 10px;
  height: 10px;
  display: block;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 24px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d0ccc7 transparent;
}
.panel-body::-webkit-scrollbar {
  width: 6px;
}
.panel-body::-webkit-scrollbar-track {
  background: transparent;
}
.panel-body::-webkit-scrollbar-thumb {
  background: #d0ccc7;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.panel-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-maroon-primary);
}
.map-section {
  margin-bottom: 0;
}

/* Floor Plan Blueprint Card & Zoom Controls */
.eyebrow,
.list-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-maroon-primary, #800000);
  margin: 0 0 6px 2px;
}

.map-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #EEE3CF;
  border: 1px solid var(--color-neutral-200);
  margin-bottom: 0;
}

/* In-Progress Fallback Card for Unmapped Floors */
.map-in-progress {
  width: 100%;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEE3CF;
  box-sizing: border-box;
}
.in-progress-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px dashed #C4A480;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.in-progress-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: #B8860B;
  display: flex;
  align-items: center;
  justify-content: center;
}
.in-progress-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  display: block;
}
.in-progress-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-neutral-900, #231F1C);
}
.in-progress-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  color: var(--color-neutral-600, #6B6864);
  line-height: 1.45;
}

/* Middle: Floor Rail + Pathway Toggle */
.map-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
  width: 100%;
}
.floor-pill-rail {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.floor-pill-rail::-webkit-scrollbar {
  display: none;
}
.floor-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--color-neutral-50, #F8F7F6);
  color: var(--color-neutral-600, #6B6864);
  border: 1px solid var(--color-neutral-200, #E4E1DE);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.3;
}
.floor-pill:hover {
  background: var(--color-neutral-100, #F3F1EE);
  color: var(--color-neutral-900, #231F1C);
  border-color: var(--color-neutral-300, #D0CCC7);
}
.floor-pill.active {
  background: var(--color-maroon-primary, #800000);
  color: #FFFFFF;
  border-color: var(--color-maroon-primary, #800000);
  box-shadow: 0 1px 4px rgba(128, 0, 0, 0.25);
}
.floor-pill:focus-visible {
  outline: 2px solid var(--color-maroon-primary);
  outline-offset: 2px;
}

/* Map Card Overlay: Pathway Layer Toggle Chip (Bottom-Left) */
.map-path-chip,
.path-toggle-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-neutral-700, #4A4643);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.map-path-chip:hover,
.path-toggle-pill:hover {
  background: #FFFFFF;
  color: var(--color-neutral-900, #231F1C);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}
.map-path-chip.active,
.path-toggle-pill.active {
  background: var(--color-maroon-primary, #800000);
  color: #FFFFFF;
  border-color: var(--color-maroon-primary, #800000);
  box-shadow: 0 2px 8px rgba(128, 0, 0, 0.35);
}
.map-path-chip:focus-visible,
.path-toggle-pill:focus-visible {
  outline: 2px solid var(--color-maroon-primary);
  outline-offset: 2px;
}
.map-path-chip .path-chip-icon,
.map-path-chip .path-icon,
.path-toggle-pill .path-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
  display: block;
}
.map-path-chip .path-chip-label,
.map-path-chip .path-label,
.path-toggle-pill .path-label {
  font-size: 11px;
}

/* Bottom: Location Directory List */
.list-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-empty-state {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--color-neutral-600);
  text-align: center;
  padding: 24px 12px;
  font-style: italic;
  background: var(--color-neutral-50);
  border: 1px dashed var(--color-neutral-200);
  border-radius: 8px;
}

.map-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 4px;
  box-sizing: border-box;
}

.map-canvas {
  width: 100%;
  position: relative;
  transform-origin: center center;
  transition: transform 0.2s ease-out;
}

.map-canvas img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

#mapNodesContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#mapNodesContainer .pin-dot {
  pointer-events: auto;
}

.pin-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  background: #FFFFFF;
  border: 2.5px solid var(--color-maroon-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.pin-dot:hover,
.pin-dot.hovered {
  transform: translate(-50%, -50%) scale(1.4);
  border-color: var(--color-maroon-hover);
  background: var(--color-gold-accent, #B8860B);
  z-index: 15;
}

.pin-dot.selected {
  background: var(--color-maroon-primary);
}

.pin-dot:focus-visible {
  outline: 2px solid var(--color-maroon-primary);
  outline-offset: 2px;
}

/* Enlarged invisible tap target around each pin dot */
.pin-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
}

@media (pointer: coarse) {
  .pin-dot {
    width: 15px;
    height: 15px;
  }
}

.map-zoom {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 20;
}

.map-zoom button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-neutral-200);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-900);
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-zoom button:hover {
  background: #FFFFFF;
  border-color: var(--color-maroon-primary);
  color: var(--color-maroon-primary);
}

.map-zoom button:disabled,
.map-zoom button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--color-neutral-200);
  color: var(--color-neutral-600);
}

.map-zoom button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: block;
}

.loc-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.loc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}
.loc-row:hover,
.loc-row.hovered {
  background: var(--color-neutral-50);
}
.loc-row.active {
  background: var(--color-neutral-50);
}
.loc-row .icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--color-neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-900);
  transition: all 0.15s ease;
}
.loc-row .icon svg {
  width: 15px;
  height: 15px;
}
.loc-row.active .icon {
  background: var(--color-maroon-primary);
  color: #FFFFFF;
  border-color: var(--color-maroon-primary);
}
.loc-row .label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-neutral-900);
  flex: 1;
}
.loc-row .arrow {
  color: var(--color-neutral-600);
  display: flex;
}
.no-loc-results {
  font-size: 12.5px;
  color: var(--color-neutral-600);
  padding: 16px 8px;
  text-align: center;
  font-style: italic;
}

/* ==========================================================================
   MINIMAP HUD PANEL (LIGHT INSTITUTIONAL CARD - LEGACY SUPPORT)
   ========================================================================== */

.minimap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 270px;
  background: #FFFFFF;
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  z-index: 999;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(128, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimap-header {
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.minimap-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.minimap-icon {
  width: 14px;
  height: 14px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.minimap-header span {
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.minimap-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.minimap-floor-switch {
  display: flex;
  gap: 6px;
  padding: 8px 8px 2px 8px;
}

.floor-switch-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--color-neutral-600);
  background-color: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.floor-switch-btn:hover {
  border-color: var(--color-maroon-primary);
  color: var(--color-maroon-primary);
}

.floor-switch-btn.active {
  background-color: var(--color-maroon-primary);
  border-color: var(--color-maroon-dark);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.3);
}

.floor-switch-key {
  font-weight: 700;
}

.floor-switch-label {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.85;
}

.minimap-header button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.minimap-header button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.map-wrapper {
  position: relative;
  width: calc(100% - 16px);
  margin: 8px 8px 4px 8px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

#mapDot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-maroon-primary);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
  animation: pulseMaroon 2s infinite;
  transition: left 0.3s ease, top 0.3s ease;
}

.you-are-here-badge {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-maroon-primary, #800000);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  animation: youAreHereFloat 2.4s ease-in-out infinite;
}

.you-are-here-badge .badge-caret {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-maroon-primary, #800000);
}

#mapDot.flip-below .you-are-here-badge {
  bottom: auto;
  top: calc(100% + 7px);
  animation-name: youAreHereFloatBelow;
}

#mapDot.flip-below .badge-caret {
  top: auto;
  bottom: 100%;
  border-top: none;
  border-bottom: 5px solid var(--color-maroon-primary, #800000);
}

#mapDot.pin-edge-left .you-are-here-badge {
  left: 0;
  transform: translateX(0);
  animation-name: youAreHereFloatEdge;
}
#mapDot.pin-edge-left .badge-caret {
  left: 2px;
  transform: none;
}
#mapDot.pin-edge-right .you-are-here-badge {
  left: auto;
  right: 0;
  transform: translateX(0);
  animation-name: youAreHereFloatEdge;
}
#mapDot.pin-edge-right .badge-caret {
  left: auto;
  right: 2px;
  transform: none;
}
#mapDot.flip-below.pin-edge-left .you-are-here-badge,
#mapDot.flip-below.pin-edge-right .you-are-here-badge {
  animation-name: youAreHereFloatEdgeBelow;
}

/* Edge variants of the float: the centered keyframes override the edge
   translateX(0) while running, which made edge badges drift sideways and
   their carets miss the dot (also recentered from 8px to 2px above). */
@keyframes youAreHereFloatEdge {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0) translateY(-3px);
  }
}

@keyframes youAreHereFloatEdgeBelow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0) translateY(3px);
  }
}

@keyframes youAreHereFloat {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -3px);
  }
}

@keyframes youAreHereFloatBelow {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 3px);
  }
}

.map-pin-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #FFFFFF;
  border: 2px solid var(--color-maroon-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.map-pin-node:hover {
  transform: translate(-50%, -50%) scale(1.4);
  background-color: var(--color-gold-accent);
  border-color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  z-index: 15;
}

/* Enlarged invisible tap target around each pin (visual stays 10px) */
.map-pin-node::after {
  content: "";
  position: absolute;
  inset: -9px;
}

@media (pointer: coarse) {
  .map-pin-node {
    width: 14px;
    height: 14px;
  }
  #mapDot {
    width: 14px;
    height: 14px;
  }
}

.minimap-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 188px;
  overflow-y: auto;
  padding: 6px 8px 8px 8px;
}

.minimap-nav::-webkit-scrollbar {
  width: 4px;
}

.minimap-nav::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
  border-radius: 2px;
}

.minimap-nav::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: 2px;
}

.nav-section-title {
  font-size: 9.5px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-maroon-primary);
  padding: 6px 4px 2px 4px;
}

.nav-btn {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 3px;
  background-color: var(--color-neutral-50);
  color: var(--color-neutral-900);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  background-color: #FFF5F5;
  border-color: var(--color-maroon-primary);
  color: var(--color-maroon-primary);
}

.nav-btn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-neutral-600);
  display: inline-block;
  flex-shrink: 0;
}

.nav-btn.active {
  background-color: var(--color-maroon-primary);
  color: #FFFFFF;
  font-weight: 700;
  border-color: var(--color-maroon-dark);
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.3);
}

.nav-btn.active .nav-btn-dot {
  background-color: #FFFFFF;
  box-shadow: 0 0 4px #FFFFFF;
}

.nav-btn-starred {
  border-color: #E3C566;
  background-color: #FFFBEB;
}

.nav-btn-starred:hover {
  border-color: var(--color-maroon-primary);
}

.nav-star-icon {
  width: 11px;
  height: 11px;
  color: #B8860B;
  flex-shrink: 0;
}

.nav-btn.active .nav-star-icon {
  color: #FFFFFF;
}

.minimap.collapsed {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-maroon-primary);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.minimap.collapsed .map-wrapper,
.minimap.collapsed .minimap-nav,
.minimap.collapsed .minimap-floor-switch,
.minimap.collapsed .minimap-header .minimap-title-group {
  display: none;
}

.minimap.collapsed .minimap-header {
  width: 100%;
  height: 100%;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

.minimap.collapsed .minimap-controls-group {
  gap: 0;
}

/* ==========================================================================
   PANNELLUM OVERRIDES & ACCESSIBILITY
   ========================================================================== */

.arrow-hotspot {
  width: 44px;
  height: 44px;
  background-color: var(--color-maroon-primary);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(128, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-hotspot:hover {
  background-color: var(--color-maroon-dark);
  /* No scale — Pannellum fixed hit-areas cause flicker when the visual shifts */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(212, 175, 55, 0.55);
}

.info-hotspot,
.pnlm-hotspot.pnlm-info {
  width: 36px !important;
  height: 36px !important;
  background-color: var(--color-maroon-primary, #800000) !important;
  border: 2.5px solid rgba(255,255,255,0.9) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(212, 175, 55, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background-image: none !important;
  background-position: unset !important;
}

.info-hotspot::after,
.info-hotspot-btn::after {
  content: "i";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  color: #fff;
  pointer-events: none;
}

.info-hotspot:hover,
.info-hotspot-btn:hover,
.pnlm-hotspot.pnlm-info:hover {
  background-color: var(--color-maroon-dark, #5C0000) !important;
  /* No transform: scale() — Pannellum uses fixed pixel hit-areas; scaling the visual
     shifts it off its registered center point, causing the cursor to immediately leave
     the element → hover-exit → scale back → cursor re-enters → infinite flicker loop. */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(212, 175, 55, 0.65) !important;
}

/* ==========================================================================
   INFO HOTSPOT CARD PANEL
   ========================================================================== */

.info-card {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(360px, calc(100vw - 32px));
  background: rgba(28, 10, 10, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.info-card.hidden {
  display: none;
}

.info-card.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.info-card-inner {
  padding: 24px 24px 20px;
  position: relative;
  text-align: center;
}

.info-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.info-card-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.info-card-close svg {
  width: 14px;
  height: 14px;
}

.info-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-maroon-primary, #800000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.info-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.info-card-hours {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.info-card-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}

div.pnlm-tooltip span {
  background-color: var(--color-maroon-primary) !important;
  color: #FFFFFF !important;
  border-radius: 3px !important;
  padding: 6px 12px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  line-height: 1.4 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   PANNELLUM LOADING STATE (BOUNCING LOGO ONLY - NO LOAD BOX)
   ========================================================================== */

.pnlm-load-box {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  width: 80px !important;
  height: 80px !important;
  margin: -40px 0 0 -40px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  text-align: center !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.pnlm-load-box::before {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  margin: 4px auto;
  background-image: url('../images/optimized/assets/pwu_logo.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
  animation: pwuLogoBounce 1.4s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

.pnlm-load-box p,
.pnlm-lbox,
.pnlm-lbar,
.pnlm-lmsg {
  display: none !important;
}

.pnlm-loading {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto !important;
  background: url('../images/optimized/assets/pwu_logo.webp') no-repeat center center !important;
  background-size: contain !important;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65)) !important;
  animation: pwuLogoBounce 1.4s infinite cubic-bezier(0.28, 0.84, 0.42, 1) !important;
  position: relative !important;
  border: none !important;
}

@keyframes pwuLogoBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-12px) scale(1.06);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Split-view tabs, floor rail, and reopen FAB live only on the mobile
   sheet; hidden on desktop. */
.view-tabs {
  display: none;
}
.map-row {
  display: contents;
}
.floor-rail {
  display: none;
}
.map-fab {
  display: none;
}

/* Branded keyboard focus for the sheet controls. Maroon ring on light
   surfaces; white ring + maroon halo on maroon fills. */
.view-tab:focus-visible,
.floor-rail-btn:focus-visible {
  outline: 2px solid var(--color-maroon-primary);
  outline-offset: 2px;
}
.floor-rail-btn.active:focus-visible,
.map-fab:focus-visible {
  outline: 2px solid #FFFFFF;
  box-shadow: 0 0 0 4px var(--color-maroon-primary);
}

/* Mobile Bottom Sheet (< 768px) */
@media (max-width: 767px) {
  .topbar {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 8px;
  }
  .topbar .spacer {
    display: none;
  }
  .location-chip {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    border-radius: 22px;
    padding: 0 14px;
    gap: 8px;
  }
  .location-chip .name {
    font-size: 12.5px;
  }
  .location-chip .floor {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .home-chip, .icon-chip {
    border-radius: 50%;
  }
  .panel-edge-tab {
    display: none !important;
  }

  /* Fullscreen panel takeover */
  .campus-panel {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
    background: #F8F7F6;
    transform: translateY(102%) !important;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 9999;
  }
  .campus-panel.expanded {
    height: 100dvh;
    transform: translateY(0) !important;
  }

  /* Panel Header: Institutional Maroon Gradient */
  .panel-header {
    height: 56px;
    background: linear-gradient(135deg, #800000 0%, #5C0000 100%);
    color: #FFFFFF;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    user-select: none;
    cursor: default;
  }
  .panel-header .header-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .panel-header .picon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .panel-header .picon svg,
  .panel-header .picon .icon {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF;
  }
  .panel-header .ptext .t1,
  .panel-header .t1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF !important;
    letter-spacing: 0.02em;
  }
  .panel-header .pclose-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.15s ease;
    padding: 0;
  }
  .panel-header .pclose-btn:active {
    background: rgba(255, 255, 255, 0.3);
  }
  .panel-download-wrap {
    margin-right: 6px;
  }
  .panel-download-btn {
    padding: 5px 10px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
  }
  .panel-download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
  }
  .panel-download-btn.downloaded {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(74, 222, 128, 0.4);
    color: #86EFAC;
  }
  .panel-download-progress {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    gap: 6px;
  }
  .progress-bar-track {
    width: 54px;
    background: rgba(255, 255, 255, 0.25);
  }
  .progress-bar-fill {
    background: #FFFFFF;
  }
  .progress-label {
    color: #FFFFFF;
    font-size: 10px;
  }
  .download-cancel-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
  }
  .download-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
    color: #FFFFFF;
  }

  /* Split Panel Body */
  .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 14px 14px;
    gap: 10px;
    background: #F8F7F6;
  }

  /* Top Section: Blueprint (~36vh) */
  .map-section {
    height: 36vh;
    min-height: 170px;
    max-height: 270px;
    flex-shrink: 0;
  }
  .map-card {
    height: 100%;
    background: #EEE3CF;
    border: 1px solid #E4E1DE;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }
  .map-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
  }
  .map-canvas {
    display: inline-flex;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    margin: 0 auto;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
  }
  .map-canvas img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }

  /* In-Progress Card for Floors 3, 4, 5 */
  .map-in-progress {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
  }
  .in-progress-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed #C4A480;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }
  .in-progress-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: #B8860B;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .in-progress-icon svg {
    width: 20px;
    height: 20px;
  }
  .in-progress-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #231F1C;
  }
  .in-progress-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6B6864;
    line-height: 1.4;
  }

  /* Map Zoom Controls */
  .map-zoom {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 20;
  }
  .map-zoom button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #E4E1DE;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #231F1C;
    cursor: pointer;
  }

  /* Middle Controls Bar: Floor Rail + Toggle */
  .map-controls-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .floor-pill-rail {
    flex: 1;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
  }
  .floor-pill-rail::-webkit-scrollbar {
    display: none;
  }
  .floor-pill {
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #E4E1DE;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #6B6864;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }
  .floor-pill.active {
    background: #800000;
    border-color: #800000;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(128, 0, 0, 0.25);
  }
  /* Floating Map Card Pathway Layer Chip */
  .map-path-chip,
  .path-toggle-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 9999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.94);
    color: #4A4643;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
  }
  .map-path-chip:active,
  .path-toggle-pill:active {
    transform: scale(0.96);
  }
  .map-path-chip.active,
  .path-toggle-pill.active {
    background: #800000;
    color: #FFFFFF;
    border-color: #800000;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.35);
  }
  .map-path-chip .path-chip-icon,
  .map-path-chip .path-icon,
  .path-toggle-pill .path-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
  }
  .map-path-chip .path-chip-label,
  .map-path-chip .path-label,
  .path-toggle-pill .path-label {
    font-size: 11px;
  }

  /* Bottom: List Section */
  .list-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .list-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #800000;
    margin-bottom: 6px;
    flex-shrink: 0;
  }
  .loc-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .list-empty-state {
    padding: 24px 12px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6B6864;
    font-style: italic;
  }

  /* Floating reopen button */
  .map-fab {
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-maroon-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0;
  }
  .map-fab svg {
    width: 26px;
    height: 26px;
  }
  .map-fab:hover {
    background: var(--color-maroon-hover);
  }
  body:not(.campus-panel-open) .map-fab {
    display: flex;
  }
  .loc-row {
    min-height: 44px;
    padding: 10px 8px;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E4E1DE;
    border-radius: 8px;
  }
  .loc-row .icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 640px) {
  .minimap {
    bottom: 14px;
    right: 14px;
    width: clamp(175px, 46vw, 210px);
    max-width: 210px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(128, 0, 0, 0.06);
  }
  .minimap-header {
    padding: 7px 10px;
  }
  .minimap-header span {
    font-size: 10px;
  }
  .minimap-floor-switch {
    padding: 6px 6px 2px 6px;
    gap: 5px;
  }
  .floor-switch-btn {
    min-height: 44px;
    font-size: 12px;
  }
  .floor-switch-label {
    font-size: 10.5px;
  }
  .map-wrapper {
    width: calc(100% - 12px);
    margin: 6px 6px 3px 6px;
  }
  .minimap-nav {
    max-height: 140px;
    gap: 4px;
    padding: 4px 6px 6px 6px;
  }
  .nav-section-title {
    font-size: 8.5px;
    padding: 4px 2px 2px 2px;
  }
  .nav-btn {
    padding: 6px;
    min-height: 40px;
    font-size: 11px;
    gap: 6px;
  }
  .nav-btn-dot {
    width: 4px;
    height: 4px;
  }
  .minimap.collapsed {
    width: 40px;
    height: 40px;
    bottom: 14px;
    right: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-maroon-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  .hero-seal-badge {
    width: 76px;
    height: 76px;
  }
  .hero-title-text {
    font-size: 26px;
  }
  .hero-subtitle-text {
    font-size: 12.5px;
  }
  .hero-cta-btn {
    padding: 12px 24px;
    font-size: 13.5px;
  }
}

@media (max-width: 380px) {
  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .location-chip {
    padding: 0 10px;
    gap: 6px;
    max-width: none;
    min-width: 0;
  }
  .location-chip .name {
    font-size: 11.5px;
  }
  .location-chip .floor {
    font-size: 9.5px;
  }
  .minimap {
    width: clamp(155px, 44vw, 185px);
    max-width: 185px;
    bottom: 10px;
    right: 10px;
  }
  .minimap.collapsed {
    width: 38px;
    height: 38px;
    bottom: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   MOBILE PWA FIXES — standalone blur fallback, safe-area, zoom controls
   ========================================================================== */

/* iOS standalone: backdrop-filter renders as gray wash — use solid bg */
@media all and (display-mode: standalone) {
  .glass,
  .home-chip.glass,
  .location-chip.glass,
  .icon-chip.glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(26, 20, 22, 0.96);
  }
  .swipe-hint-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(35, 31, 28, 0.94);
  }
}

/* Notch / Dynamic Island safe-area for PWA top bar */
@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    top: calc(14px + env(safe-area-inset-top));
  }
  #topProgressBar {
    padding-top: env(safe-area-inset-top);
  }
}

/* Hide Pannellum +/- zoom controls on mobile (pinch still zooms) */
@media (max-width: 767px) {
  .pnlm-zoom-controls {
    display: none !important;
  }
}

/* Boot splash fallback when inline <style> is cached out */
#pwaBootSplash {
  font-family: 'Montserrat', -apple-system, sans-serif;
}

/* ==========================================================================
   AddToHomeScreen PWU Brand Identity Overrides
   ========================================================================== */
.adhs-container {
  font-family: 'Montserrat', sans-serif !important;
}

.adhs-container .adhs-modal {
  background-color: #F8F7F6 !important;
  border: 1px solid #E4E1DE !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28) !important;
  color: #231F1C !important;
  font-family: 'Montserrat', sans-serif !important;
}

.adhs-container .adhs-modal .adhs-install-app,
.adhs-container .adhs-modal .adhs-title {
  color: #800000 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.adhs-container .adhs-modal .adhs-app-name {
  color: #5C0000 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-circle {
  background-color: #800000 !important;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-number {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

.adhs-container .adhs-modal .adhs-button-install {
  background-color: #800000 !important;
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: background-color 0.2s ease !important;
}

.adhs-container .adhs-modal .adhs-button-install:hover {
  background-color: #A00000 !important;
}

.adhs-container .adhs-modal .adhs-button-cancel {
  background-color: #F0EEEB !important;
  color: #6B6864 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  border: 1px solid #E4E1DE !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   BUG REPORT AND SUGGESTIONS MODAL
   ========================================================================== */

.bug-modal-scrim {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
}

.bug-modal-scrim.hidden {
  display: none !important;
}

.bug-modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E4E1DE;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 512px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  font-family: 'Montserrat', sans-serif;
  color: #231F1C;
  position: relative;
  animation: bugModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bugModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bug-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E4E1DE;
  background-color: #F8F7F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bug-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bug-modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #FEF2F2;
  color: #800000;
  border: 1px solid #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bug-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #231F1C;
  margin: 0;
  line-height: 1.25;
}

.bug-modal-subtitle {
  font-size: 11px;
  color: #6B6864;
  margin: 2px 0 0;
  line-height: 1.2;
}

.bug-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #6B6864;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bug-modal-close:hover {
  background-color: #EFECE9;
  color: #231F1C;
}

.bug-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bug-modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.bug-modal-alert.hidden {
  display: none !important;
}

.bug-modal-alert.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.bug-modal-alert.alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.bug-type-group {
  display: flex;
  border-radius: 12px;
  background-color: #F8F7F6;
  padding: 4px;
  border: 1px solid #E4E1DE;
  gap: 4px;
}

.bug-type-pill {
  flex: 1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #6B6864;
  text-align: center;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.bug-type-pill:hover:not(.active) {
  background-color: #EFECE9;
  color: #231F1C;
}

.bug-type-pill.active {
  background-color: #800000;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bug-context-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6B6864;
}

.bug-context-label {
  font-weight: 600;
  color: #6B6864;
}

.bug-context-pill {
  font-weight: 600;
  color: #800000;
  background-color: #FEF2F2;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #FEE2E2;
  font-size: 11px;
}

.bug-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bug-label {
  font-size: 11px;
  font-weight: 600;
  color: #36322F;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.required-star {
  color: #DC2626;
}

.bug-input,
.bug-select,
.bug-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E4E1DE;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  color: #231F1C;
  background-color: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bug-input:focus,
.bug-select:focus,
.bug-textarea:focus {
  outline: none;
  border-color: #800000;
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.12);
}

.bug-textarea {
  resize: vertical;
  min-height: 72px;
}

.bug-fields-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .bug-fields-split {
    grid-template-columns: 1fr;
  }
}

.bug-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.bug-btn-cancel {
  padding: 8px 16px;
  border: 1px solid #E4E1DE;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #6B6864;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bug-btn-cancel:hover {
  background-color: #F8F7F6;
  color: #231F1C;
}

.bug-btn-submit {
  padding: 8px 20px;
  border: 1px solid #800000;
  border-radius: 8px;
  background-color: #800000;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.2);
}

.bug-btn-submit:hover:not(:disabled) {
  background-color: #A00000;
  border-color: #A00000;
}

.bug-btn-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.bug-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Offline Status Indicator Pill
   ========================================================================== */
.offline-status-pill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(35, 31, 28, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 225, 222, 0.3);
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.offline-status-pill.hidden {
  display: none !important;
}

.offline-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #F87171;
  box-shadow: 0 0 6px #F87171;
  flex-shrink: 0;
}

.offline-status-dot.online {
  background-color: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
}

@media (max-width: 767px) {
  .offline-status-pill {
    top: calc(env(safe-area-inset-top, 0px) + 58px);
    padding: 5px 12px;
    font-size: 10px;
  }
}

/* ==========================================================================
   Offline Tour Bulk Download Confirmation Modal
   ========================================================================== */
.offline-modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
}

.offline-modal-backdrop.hidden,
#offlineProgressView.hidden,
#offlinePromptView.hidden,
.offline-modal-card .hidden {
  display: none !important;
}

.offline-modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E4E1DE;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  font-family: 'Montserrat', sans-serif;
  color: #231F1C;
  position: relative;
  animation: offlineModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes offlineModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.offline-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E4E1DE;
  background-color: #F8F7F6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.offline-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #FEF2F2;
  color: #800000;
  border: 1px solid #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offline-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #231F1C;
  margin: 0;
  line-height: 1.25;
}

.offline-modal-subtitle {
  font-size: 11px;
  color: #6B6864;
  margin: 2px 0 0;
  line-height: 1.2;
  font-weight: 500;
}

.offline-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #6B6864;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.offline-modal-close:hover {
  background-color: #EFECE9;
  color: #231F1C;
}

.offline-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offline-modal-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #4A4643;
  margin: 0;
}

.offline-modal-meta {
  background: #F8F7F6;
  border: 1px solid #E4E1DE;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.meta-label {
  color: #6B6864;
  font-weight: 500;
}

.meta-val {
  color: #231F1C;
  font-weight: 700;
}

.offline-modal-actions {
  padding: 14px 20px 18px;
  border-top: 1px solid #E4E1DE;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #FAFAF9;
}

.offline-btn-secondary {
  padding: 9px 18px;
  border: 1px solid #E4E1DE;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #6B6864;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.offline-btn-secondary:hover {
  background-color: #F8F7F6;
  color: #231F1C;
  border-color: #D0CCC7;
}

.offline-btn-primary {
  padding: 9px 18px;
  border: 1px solid #800000;
  border-radius: 8px;
  background-color: #800000;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.2);
}

.offline-btn-primary:hover {
  background-color: #A00000;
  border-color: #A00000;
}

.offline-btn-primary:active {
  transform: scale(0.98);
}

/* Offline Modal Progress / Loading Screen */
.offline-modal-progress-track {
  width: 100%;
  height: 10px;
  background-color: #E4E1DE;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.offline-modal-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #800000 0%, #A00000 100%);
  border-radius: 9999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.offline-modal-progress-fill.complete {
  background: #16A34A;
}

.offline-modal-progress-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #231F1C;
  margin-top: -6px;
}

.offline-progress-count {
  color: #6B6864;
  font-size: 12px;
  font-weight: 500;
}

.offline-progress-pct {
  color: #800000;
  font-weight: 700;
  font-size: 14px;
}

.offline-modal-tip {
  font-size: 12px;
  color: #6B6864;
  background: #F8F7F6;
  border: 1px solid #E4E1DE;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 0;
}



