/* ==============================================================================
   PONG REAL ESTATE - IN-APP STREET VIEW & CADASTRAL PARCEL VIEWER
   Ultra-Modern Responsive Dual-View Modal (360° Street View + Cadastral Pins)
   ============================================================================== */

/* Modal Root Overlay */
.streetview-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(10, 15, 29, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  font-family: 'Kantumruy Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.streetview-modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Modal Header */
.streetview-header {
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.streetview-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.streetview-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.streetview-title-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.streetview-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.streetview-main-title {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streetview-code-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.streetview-coords-badge {
  color: #94a3b8;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

/* Mode Switcher Tabs */
.streetview-mode-tabs {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.streetview-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.streetview-mode-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.streetview-mode-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Header Right Buttons */
.streetview-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sv-api-key {
  display: none; /* Strictly restricted to Admin only (Hidden for Guest & Agency) */
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-sv-api-key:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #f59e0b;
  color: #ffffff;
}

.btn-open-external-maps {
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.btn-open-external-maps:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  color: #ffffff;
  border-color: #34d399;
}

.btn-close-streetview {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-streetview:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.05);
}

/* Modal Body */
.streetview-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  background: #090d16;
}

/* Panes */
.streetview-pano-pane,
.streetview-map-pane {
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: flex 0.25s ease, width 0.25s ease;
}

/* Split Mode */
.streetview-body.mode-split .streetview-pano-pane {
  flex: 1.15;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.streetview-body.mode-split .streetview-map-pane {
  flex: 1;
}

/* Full Street View Mode */
.streetview-body.mode-streetview .streetview-pano-pane {
  flex: 1;
  border-right: none;
}

.streetview-body.mode-streetview .streetview-map-pane {
  display: none !important;
}

/* Full Map Mode */
.streetview-body.mode-cadastral .streetview-pano-pane {
  display: none !important;
}

.streetview-body.mode-cadastral .streetview-map-pane {
  flex: 1;
}

/* Pano Container */
#streetviewPanoContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: #090d16;
}

/* Mini Map Container */
#streetviewMiniMap {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: #111827;
}

/* Floating Compass Overlay */
.streetview-floating-compass {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.streetview-floating-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-pano-action {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-pano-action:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Floating Parcel Info Overlay on Mini-Map */
.streetview-map-info-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.45);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 320px;
}

.streetview-map-info-badge .info-title {
  color: #fbbf24;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.streetview-map-info-badge .info-meta {
  color: #cbd5e1;
  font-size: 0.70rem;
}

/* Floating Controls on Mini-Map */
.streetview-map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-map-control {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-map-control:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* No Imagery Fallback Card */
.streetview-no-imagery-card {
  position: absolute;
  inset: 20px;
  margin: auto;
  max-width: 440px;
  max-height: 300px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

.streetview-no-imagery-card .alert-icon {
  font-size: 2.2rem;
  color: #f59e0b;
  margin-bottom: 12px;
}

.streetview-no-imagery-card .alert-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 6px;
}

.streetview-no-imagery-card .alert-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-switch-to-full-map {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-switch-to-full-map:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* Loading Overlay inside Pano */
.streetview-pano-loading {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 12px;
  z-index: 15;
  transition: opacity 0.3s ease;
}

.streetview-pano-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.streetview-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(245, 158, 11, 0.25);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: svSpin 0.8s linear infinite;
}

@keyframes svSpin {
  to { transform: rotate(360deg); }
}

/* Leaflet Custom Marker Icons */
.cadastral-pin-marker-wrapper {
  background: transparent;
  border: none;
}

.cadastral-pin-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cadastral-pin-badge:hover {
  transform: scale(1.25);
  background: #fbbf24;
}

/* Main Property Marker Pulse */
.prop-center-pulse-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: propPulse 1.8s infinite;
}

@keyframes propPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Camera Cone Marker on Leaflet Map */
.sv-camera-cone-wrapper {
  background: transparent;
  border: none;
  pointer-events: none;
}

.sv-camera-cone-svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.08s ease-out;
}

/* Side Length Measurement Labels on Cadastral Map */
.cadastral-edge-label-badge {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #fbbf24;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* API Key & Free Google Maps Notice Banner */
.streetview-api-notice {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  animation: svFadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes svFadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.streetview-api-notice .api-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.streetview-api-notice .api-notice-icon {
  font-size: 1.25rem;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.streetview-api-notice .api-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.streetview-api-notice .api-notice-text strong {
  color: #f8fafc;
  display: block;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.streetview-api-notice .btn-api-action-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.streetview-api-notice .btn-api-action-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.streetview-api-notice .api-notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-api-action-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.btn-api-action-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
}

.btn-api-action-secondary {
  display: none; /* Strictly restricted to Admin only (Hidden for Guest & Agency) */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-api-action-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Mobile Responsive Split Layout */
@media (max-width: 768px) {
  .streetview-header {
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .streetview-header-left {
    flex: 1 1 100%;
    margin-bottom: 6px;
  }

  .streetview-mode-tabs {
    flex: 1;
    justify-content: center;
  }

  .streetview-mode-btn {
    padding: 5px 8px;
    font-size: 0.70rem;
  }

  .btn-sv-api-key span {
    display: none;
  }

  .btn-open-external-maps span {
    display: inline-block;
    font-size: 0.70rem;
  }

  /* In mobile split mode: stack vertically */
  .streetview-body.mode-split {
    flex-direction: column;
  }

  .streetview-body.mode-split .streetview-pano-pane {
    height: auto !important;
    flex: 1.2 1 55% !important;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    min-height: 50% !important;
    max-height: 65% !important;
  }

  .streetview-body.mode-split .streetview-map-pane {
    height: auto !important;
    flex: 1 1 45% !important;
    min-height: 35% !important;
  }

  .streetview-map-info-badge {
    max-width: calc(100% - 70px);
    font-size: 0.68rem;
    padding: 4px 8px;
  }
}

/* Google Maps API Error Dialog Suppression */
.gm-err-container,
.gm-err-autocomplete,
.gm-err-content,
div[class*="gm-err"]:not(.gm-style) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==============================================================================
   LIGHT THEME OVERRIDES FOR STREET VIEW MODAL
   ============================================================================== */
body.light-theme .streetview-modal-overlay,
body.light-mode .streetview-modal-overlay,
body.is-light .streetview-modal-overlay,
body.theme-light .streetview-modal-overlay {
  background: rgba(248, 250, 252, 0.98) !important;
}

body.light-theme .streetview-header,
body.light-mode .streetview-header,
body.is-light .streetview-header,
body.theme-light .streetview-header {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-theme .streetview-main-title,
body.light-mode .streetview-main-title,
body.is-light .streetview-main-title,
body.theme-light .streetview-main-title {
  color: #0f172a;
}

body.light-theme .streetview-coords-badge,
body.light-mode .streetview-coords-badge,
body.is-light .streetview-coords-badge,
body.theme-light .streetview-coords-badge {
  color: #475569;
}

body.light-theme .streetview-mode-tabs,
body.light-mode .streetview-mode-tabs,
body.is-light .streetview-mode-tabs,
body.theme-light .streetview-mode-tabs {
  background: #e2e8f0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .streetview-mode-btn,
body.light-mode .streetview-mode-btn,
body.is-light .streetview-mode-btn,
body.theme-light .streetview-mode-btn {
  color: #475569;
}

body.light-theme .streetview-mode-btn:hover,
body.light-mode .streetview-mode-btn:hover,
body.is-light .streetview-mode-btn:hover,
body.theme-light .streetview-mode-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

body.light-theme .btn-sv-api-key,
body.light-mode .btn-sv-api-key,
body.is-light .btn-sv-api-key,
body.theme-light .btn-sv-api-key {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #b45309;
}

body.light-theme .btn-open-external-maps,
body.light-mode .btn-open-external-maps,
body.is-light .btn-open-external-maps,
body.theme-light .btn-open-external-maps {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1e293b;
}

body.light-theme .btn-open-external-maps:hover,
body.light-mode .btn-open-external-maps:hover,
body.is-light .btn-open-external-maps:hover,
body.theme-light .btn-open-external-maps:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-theme .btn-close-streetview,
body.light-mode .btn-close-streetview,
body.is-light .btn-close-streetview,
body.theme-light .btn-close-streetview {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

body.light-theme .streetview-body,
body.light-mode .streetview-body,
body.is-light .streetview-body,
body.theme-light .streetview-body {
  background: #f8fafc;
}

body.light-theme .streetview-body.mode-split .streetview-pano-pane,
body.light-mode .streetview-body.mode-split .streetview-pano-pane,
body.is-light .streetview-body.mode-split .streetview-pano-pane,
body.theme-light .streetview-body.mode-split .streetview-pano-pane {
  border-right: 2px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .streetview-floating-compass,
body.light-mode .streetview-floating-compass,
body.is-light .streetview-floating-compass,
body.theme-light .streetview-floating-compass,
body.light-theme .btn-pano-action,
body.light-mode .btn-pano-action,
body.is-light .btn-pano-action,
body.theme-light .btn-pano-action,
body.light-theme .btn-map-control,
body.light-mode .btn-map-control,
body.is-light .btn-map-control,
body.theme-light .btn-map-control {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

body.light-theme .streetview-map-info-badge,
body.light-mode .streetview-map-info-badge,
body.is-light .streetview-map-info-badge,
body.theme-light .streetview-map-info-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.light-theme .streetview-map-info-badge .info-title,
body.light-mode .streetview-map-info-badge .info-title,
body.is-light .streetview-map-info-badge .info-title,
body.theme-light .streetview-map-info-badge .info-title {
  color: #b45309;
}

body.light-theme .streetview-map-info-badge .info-meta,
body.light-mode .streetview-map-info-badge .info-meta,
body.is-light .streetview-map-info-badge .info-meta,
body.theme-light .streetview-map-info-badge .info-meta {
  color: #334155;
}

body.light-theme .streetview-pano-loading,
body.light-mode .streetview-pano-loading,
body.is-light .streetview-pano-loading,
body.theme-light .streetview-pano-loading {
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
}

body.light-theme .streetview-no-imagery-card,
body.light-mode .streetview-no-imagery-card,
body.is-light .streetview-no-imagery-card,
body.theme-light .streetview-no-imagery-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body.light-theme .streetview-no-imagery-card .alert-desc,
body.light-mode .streetview-no-imagery-card .alert-desc,
body.is-light .streetview-no-imagery-card .alert-desc,
body.theme-light .streetview-no-imagery-card .alert-desc {
  color: #475569;
}

/* Floating Current Road / Highway Badge */
.streetview-floating-road-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: svFadeIn 0.3s ease;
}

@keyframes svFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Switch to Front Road Button Pulse */
.btn-pano-switch-front {
  animation: pulseFrontRoad 2s infinite;
}

@keyframes pulseFrontRoad {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* Mini-Map Interactive Road Click Hint */
.streetview-mini-map-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e0f2fe;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .streetview-floating-road-badge {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 4px 8px;
    max-width: 190px;
  }
  .streetview-mini-map-hint {
    font-size: 0.62rem;
    padding: 3px 8px;
    bottom: 8px;
  }
}

/* ==============================================================================
   360° STREET VIEW AUGMENTED HUD TARGET PIN & BOUNDARY STONES (ពុងដី P1..Pn)
   Guaranteed 100% visible on ALL Panoramas (Google & User-Contributed Photospheres)
   ============================================================================== */

.streetview-hud-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 25 !important;
  overflow: hidden !important;
}

/* Main Property 3D Pin Beacon */
.sv-hud-pin-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.75));
  pointer-events: auto;
  cursor: pointer;
  z-index: 30;
  transition: opacity 0.15s ease;
  user-select: none;
}

.sv-hud-pin-marker:hover .sv-hud-pin-chip {
  transform: scale(1.05);
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.95);
}

.sv-hud-pin-chip {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  border: 2px solid #ffffff;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-hud-pulse-ring {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  border: 1.5px solid #ffffff;
  animation: svHudPulse 1.5s infinite;
}

.sv-hud-pin-stem {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #ef4444;
  margin-top: -2px;
}

.sv-hud-pin-anchor-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.35);
  border: 2px solid #ef4444;
  margin-top: 1px;
}

/* Corner Boundary Stone Pins (ពុងដី P1, P2, P3...) */
.sv-hud-corner-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 28;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
  user-select: none;
}

.sv-hud-corner-chip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1.5px solid #ffffff;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.75);
}

.sv-hud-corner-stem {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #f59e0b;
  margin-top: -1px;
}

/* Off-Screen Radar Indicator */
.sv-hud-offscreen-radar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.90);
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.55), 0 4px 14px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 35;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sv-hud-offscreen-radar:hover {
  background: rgba(239, 68, 68, 0.95);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.sv-hud-offscreen-radar.edge-left {
  left: 12px;
}

.sv-hud-offscreen-radar.edge-right {
  right: 12px;
}

@keyframes svHudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

@media (max-width: 768px) {
  .sv-hud-pin-chip {
    font-size: 10px;
    padding: 4px 10px;
  }
  .sv-hud-corner-chip {
    font-size: 9px;
    padding: 2px 6px;
  }
  .sv-hud-offscreen-radar {
    font-size: 10px;
    padding: 5px 10px;
  }
}




