/* ==========================================================================
   Vinhomes Olympic - Interactive 3D Spatial Masterplan
   Design System: Obsidian Etheric Glass & Exact Masterplan Aesthetics
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette */
  --bg-dark: #f2f3f0;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  --bg-surface: rgba(0, 0, 0, 0.04);
  --bg-surface-active: rgba(0, 0, 0, 0.08);

  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-bright: rgba(0, 0, 0, 0.15);
  --border-accent: rgba(255, 85, 0, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-brand: #ff5500;

  /* Zones signature hues */
  --zone-a: #f08a24;
  --zone-b: #2f7cf6;
  --zone-c: #10b3a3;
  --zone-d: #a259ff;
  --brand-orange: #ff5500;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.1) inset;
  --shadow-glow: 0 0 24px rgba(255, 85, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --blur-glass: blur(16px);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header Bar
   -------------------------------------------------------------------------- */
.app-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.app-header > * {
  pointer-events: auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.brand-badge:hover {
  border-color: var(--border-glass-bright);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff6a1a, #d93900);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);
}

.brand-meta h1 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-title-row {
  display: flex;
  align-items: center;
  position: relative;
  gap: 4px;
}

.project-dropdown-select {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding-right: 18px;
  -webkit-appearance: none;
  appearance: none;
}

.project-dropdown-select option {
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  padding: 6px;
}

.dropdown-arrow {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: var(--text-secondary);
}

.logo-icon.hsg-mode {
  background: linear-gradient(135deg, #10b981, #065f46) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

.logo-icon.lep-mode {
  background: linear-gradient(135deg, #d4af37, #85581a) !important;
  box-shadow: 0 4px 14px rgba(196, 154, 82, 0.45) !important;
}

.brand-meta .tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 85, 0, 0.14);
  color: var(--brand-orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-meta p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Header Center: Quick Search */
.search-wrapper {
  flex: 0 1 360px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-glow);
}

.search-box svg {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: none;
}

.search-results.active {
  display: block;
}

.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg-surface);
  cursor: pointer;
  transition: var(--transition);
}

.search-item:hover {
  background: var(--bg-surface-active);
}

.search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.search-item-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-btn {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.glass-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-1px);
}

.glass-btn.primary {
  background: linear-gradient(135deg, #ff6a1a, #e64500);
  border-color: rgba(255, 120, 40, 0.5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}

.glass-btn.primary:hover {
  background: linear-gradient(135deg, #ff7a2f, #f24e00);
}

/* --------------------------------------------------------------------------
   Zone Ribbon Bar (Floating Navigation)
   -------------------------------------------------------------------------- */
.zone-nav-bar {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
}

.zone-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.zone-chip:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.zone-chip.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--border-glass-bright);
}

.zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.zone-chip.zone-all .zone-dot { background: #ff5500; color: #ff5500; }
.zone-chip.zone-a .zone-dot { background: var(--zone-a); color: var(--zone-a); }
.zone-chip.zone-b .zone-dot { background: var(--zone-b); color: var(--zone-b); }
.zone-chip.zone-c .zone-dot { background: var(--zone-c); color: var(--zone-c); }
.zone-chip.zone-d .zone-dot { background: var(--zone-d); color: var(--zone-d); }

/* --------------------------------------------------------------------------
   Floating HUD Camera Controls
   -------------------------------------------------------------------------- */
.hud-camera-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-group {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hud-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.hud-btn:last-child {
  border-bottom: none;
}

.hud-btn:hover {
  background: var(--bg-surface-active);
  color: var(--brand-orange);
}

.hud-btn.active {
  background: rgba(255, 85, 0, 0.12);
  color: var(--brand-orange);
}

.hud-btn .tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-sm);
}

.hud-btn:hover .tooltip {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Left Floating Drawer: Legend & Layers
   -------------------------------------------------------------------------- */
.side-panel {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 310px;
  max-height: calc(100vh - 120px);
  z-index: 20;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.side-panel.collapsed {
  max-height: 48px;
}

.panel-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  user-select: none;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.panel-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

/* Layer Switchers */
.layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.switch {
  position: relative;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--brand-orange);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Legend Grid */
.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid transparent;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.legend-item:hover {
  background: var(--bg-surface-active);
  border-color: var(--border-glass);
}

.legend-item.dimmed {
  opacity: 0.3;
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Nearby Projects Floating Pill Markers (Like in original Image)
   -------------------------------------------------------------------------- */
.map-project-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  padding: 3px 9px 3px 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}

.map-project-pin:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border-color: var(--brand-orange);
}

.map-project-pin .pin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff5500;
}

.map-project-pin .pin-arrow {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Detail Inspector Card (Popup on Click)
   -------------------------------------------------------------------------- */
.inspector-card {
  position: absolute;
  top: 130px;
  right: 24px;
  width: 330px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 18px;
  z-index: 25;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.inspector-card.active {
  display: block;
}

.inspector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.inspector-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 85, 0, 0.12);
  color: var(--brand-orange);
  margin-bottom: 4px;
  display: inline-block;
}

.inspector-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.inspector-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.stat-box .label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.stat-box .val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.inspector-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Notification Toast
   -------------------------------------------------------------------------- */
.toast-msg {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border: 1px solid var(--brand-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .app-header { flex-wrap: wrap; }
  .search-wrapper { order: 3; flex: 1 1 100%; }
  .zone-nav-bar { top: 126px; max-width: 95vw; overflow-x: auto; }
  .side-panel { display: none; }
  .inspector-card { right: 12px; left: 12px; width: auto; }
}

/* UI Hidden (Clean View Mode) */
body.ui-hidden .app-header,
body.ui-hidden .zone-nav-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-16px);
  transition: all 0.25s ease-in-out;
}

body.ui-hidden .side-panel {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-30px);
  transition: all 0.25s ease-in-out;
}

body.ui-hidden .hud-camera-controls {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(30px);
  transition: all 0.25s ease-in-out;
}

body.ui-hidden .inspector-card {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px);
  transition: all 0.25s ease-in-out;
}

#btnShowUI {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: fadeInPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ui-hidden #btnShowUI {
  display: inline-flex !important;
}

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

/* ==========================================================================
   Hanoi Seasons Garden Specific Styles
   ========================================================================== */
.hsg-inventory-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.hsg-summary-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  color: #065f46;
  margin-bottom: 12px;
}

.hsg-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

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

.hsg-tower-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.hsg-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.hsg-tab-btn .tab-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.hsg-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.hsg-tab-btn.active .tab-count {
  color: #10b981;
  font-weight: 600;
}

.hsg-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.hsg-filter-chip {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.hsg-filter-chip:hover {
  background: #ffffff;
  border-color: var(--border-glass-bright);
}

.hsg-filter-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.hsg-floor-container {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
}

.hsg-floor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.hsg-floor-head .hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}

.hsg-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.hsg-floor-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.hsg-floor-chip:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.hsg-floor-chip.active {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 0 0 1.5px #f59e0b;
}

.hsg-floor-chip .fl-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hsg-floor-chip .fl-cnt {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1px;
}

.hsg-floor-chip.active .fl-cnt {
  color: #d97706;
}

/* 3D Floating Tower Badges on Map */
.hsg-roof-marker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 215, 0, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.3);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: var(--transition);
  white-space: nowrap;
}

.hsg-roof-marker:hover {
  transform: translate(-50%, -105%) scale(1.05);
  background: #000000;
  border-color: #fbbf24;
}

.hsg-roof-marker .roof-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
}

.hsg-poi-marker {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: #065f46;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: var(--transition);
  white-space: nowrap;
}

.hsg-poi-marker:hover {
  transform: translate(-50%, -105%) scale(1.05);
  border-color: #10b981;
}

.hsg-unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  border: 1px solid var(--border-glass);
}

.hsg-unit-row .u-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hsg-unit-row .u-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.hsg-unit-row .u-price {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #16a34a;
}

/* ==========================================================================
   LUMIÈRE Essence Peak Specific Styles
   ========================================================================== */
.lep-inventory-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.lep-summary-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 154, 82, 0.12);
  border: 1px solid rgba(196, 154, 82, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  color: #78350f;
  margin-bottom: 12px;
}

.lep-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c49a52;
  box-shadow: 0 0 8px #c49a52;
  animation: pulseDotGold 2s infinite;
}

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

.lep-tower-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.lep-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.lep-tab-btn .tab-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.lep-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.lep-tab-btn.active .tab-count {
  color: #c49a52;
  font-weight: 600;
}

.lep-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.lep-filter-chip {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.lep-filter-chip:hover {
  background: #ffffff;
  border-color: var(--border-glass-bright);
}

.lep-filter-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.lep-floor-container {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
}

.lep-floor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.lep-floor-head .hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}

.lep-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.lep-floor-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.lep-floor-chip:hover {
  border-color: #c49a52;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(196, 154, 82, 0.25);
}

.lep-floor-chip.active {
  background: #fefce8;
  border-color: #c49a52;
  box-shadow: 0 0 0 1.5px #c49a52;
}

.lep-floor-chip .fl-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.lep-floor-chip .fl-cnt {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1px;
}

.lep-floor-chip.active .fl-cnt {
  color: #b45309;
}

/* 3D Floating Tower Badges on Map for LEP */
.lep-roof-marker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(196, 154, 82, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(196, 154, 82, 0.35);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: var(--transition);
  white-space: nowrap;
}

.lep-roof-marker:hover {
  transform: translate(-50%, -105%) scale(1.05);
  background: #000000;
  border-color: #eab308;
}

.lep-roof-marker .roof-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c49a52;
}

.lep-poi-marker {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.96);
  color: #78350f;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(196, 154, 82, 0.45);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: var(--transition);
  white-space: nowrap;
}

.lep-poi-marker:hover {
  transform: translate(-50%, -105%) scale(1.05);
  border-color: #c49a52;
}

.lep-unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  border: 1px solid var(--border-glass);
}

.lep-unit-row .u-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.lep-unit-row .u-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.lep-unit-row .u-price {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #c49a52;
}



