/* ========================================================
   KUTAISI AQUA RESORT & WELLNESS SPA
   Luxury Marine & Architectural Design System
   Interactive Blueprint Zone Inspector & Pan-Zoom Engine
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+GO:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Marine & Architectural Palette */
  --bg-deep: #050a14;
  --bg-surface: #0b1324;
  --bg-card: #101c33;
  --bg-card-hover: #162645;
  --bg-glass: rgba(11, 19, 36, 0.94);

  /* Luxury Blue & Cyan Accents (Zero Brown/Tan) */
  --azure-primary: #0284c7;
  --azure-vibrant: #0ea5e9;
  --azure-light: #38bdf8;
  --azure-ice: #e0f2fe;
  --azure-glow: rgba(14, 165, 233, 0.4);

  --indigo-primary: #3b82f6;
  --indigo-dark: #1d4ed8;
  --indigo-glow: rgba(59, 130, 246, 0.25);

  --mint-accent: #10b981;
  --mint-glow: rgba(16, 185, 129, 0.4);
  --amber-accent: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.4);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-headline: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Crisp Borders */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(56, 189, 248, 0.22);
  --border-active: rgba(14, 165, 233, 0.8);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 24px rgba(14, 165, 233, 0.3);

  --font-main: 'Fira GO', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 65% 45% at 15% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--azure-vibrant);
}

/* Print Only Cover & Header - Hidden on screen */
.print-memorandum-header {
  display: none;
}

/* ========================================================
   HEADER & BESPOKE NAVIGATION
   ======================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--azure-vibrant), var(--indigo-primary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-glow);
}

.brand-info h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-pure);
}

.brand-info span {
  font-size: 0.7rem;
  color: var(--azure-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

/* Navigation Pills */
nav.nav-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(5, 10, 20, 0.6);
  padding: 0.3rem 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
}

.nav-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-pill-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: var(--transition-fast);
}

.nav-pill-btn:hover {
  color: var(--text-headline);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill-btn.active {
  background: linear-gradient(135deg, var(--azure-primary), var(--indigo-primary));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--azure-glow);
}

.nav-pill-btn.active svg {
  stroke: #ffffff;
}

/* Header Utilities */
.header-utilities {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 1.15rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(37, 99, 235, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-pill);
  color: #38bdf8;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.2);
  white-space: nowrap;
}

.btn-pdf-download .pdf-icon {
  stroke: #38bdf8;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn-pdf-download:hover {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-pdf-download:hover .pdf-icon {
  stroke: #ffffff;
  transform: translateY(1px);
}

.btn-pdf-download:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.util-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.util-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.util-btn:hover {
  color: var(--azure-light);
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

/* ========================================================
   MAIN VIEWPORT & CONTAINERS
   ======================================================== */
main.viewport-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.25rem 2rem 4rem;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
  animation: sectionReveal 0.28s ease;
}

@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-meta-head {
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-hairline);
}

.section-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azure-light);
  margin-bottom: 0.35rem;
}

.section-tagline svg {
  width: 14px;
  height: 14px;
  stroke: var(--azure-light);
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.section-subtext {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
  max-width: 760px;
}

/* ========================================================
   TAB 1: SLIDE DECK (COMPACT & CINEMATIC)
   ======================================================== */
.deck-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deck-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.deck-progress-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  max-width: 420px;
}

.slide-num-indicator {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--azure-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.deck-track-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.deck-track-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--indigo-primary), var(--azure-vibrant));
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.deck-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.deck-arrow-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-headline);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.deck-arrow-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.deck-arrow-btn:hover:not(:disabled) {
  background: var(--azure-primary);
  color: #ffffff;
  border-color: var(--azure-primary);
}

.deck-arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.presentation-stage-frame {
  position: relative;
  width: 100%;
  height: 490px;
  background: #020611;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}

.deck-slide-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.99);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #060d1b;
}

.deck-slide-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-pane-editorial {
  padding: 2.25rem 2.5rem 2.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(6, 13, 27, 0.98) 75%, rgba(6, 13, 27, 0.9) 100%);
  position: relative;
  z-index: 2;
}

.slide-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--azure-light);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  width: fit-content;
}

.slide-category-pill svg {
  width: 13px;
  height: 13px;
  stroke: var(--azure-light);
  stroke-width: 2;
  fill: none;
}

.slide-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-pure);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.slide-lead-description {
  font-size: 0.92rem;
  color: var(--azure-ice);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--azure-vibrant);
  padding-left: 0.85rem;
}

.slide-feature-stack {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.slide-feature-stack li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.feature-icon-bullet {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon-bullet svg {
  width: 12px;
  height: 12px;
  stroke: var(--azure-light);
  stroke-width: 2.2;
  fill: none;
}

.slide-feature-stack li strong {
  color: var(--text-pure);
  font-weight: 700;
}

.slide-pane-visual {
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.slide-pane-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-pane-visual:hover img {
  transform: scale(1.04);
}

.visual-zoom-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(6, 13, 27, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--azure-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  z-index: 5;
  opacity: 0.85;
}

.visual-zoom-badge svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.slide-pane-visual:hover .visual-zoom-badge {
  opacity: 1;
  background: var(--azure-primary);
  color: #ffffff;
  border-color: var(--azure-primary);
  transform: scale(1.05);
}

.media-caption-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(6, 13, 27, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.media-caption-tag svg {
  width: 13px;
  height: 13px;
  stroke: var(--azure-vibrant);
  stroke-width: 2;
  fill: none;
}

.deck-thumbs-scroll-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.deck-thumb-node {
  flex: 0 0 110px;
  height: 62px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.deck-thumb-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.deck-thumb-node .thumb-index {
  position: absolute;
  bottom: 3px;
  left: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.8);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-pure);
}

.deck-thumb-node:hover img {
  opacity: 0.85;
}

.deck-thumb-node.active {
  border-color: var(--azure-vibrant);
  box-shadow: 0 0 12px var(--azure-glow);
}

.deck-thumb-node.active img {
  opacity: 1;
}

/* ========================================================
   TAB 2: MASTER PLANS & INTERACTIVE ZONE INSPECTOR
   ======================================================== */
.plans-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.blueprint-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.blueprint-pill-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.blueprint-pill-btn:hover {
  color: var(--text-pure);
  background: var(--bg-card-hover);
}

.blueprint-pill-btn.active {
  background: linear-gradient(135deg, var(--azure-primary), var(--indigo-primary));
  color: #ffffff;
  border-color: var(--azure-primary);
  box-shadow: 0 4px 16px var(--azure-glow);
}

.blueprint-pill-btn.active svg {
  stroke: #ffffff;
}

/* Master Inspector Card */
.blueprint-master-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* Interactive Blueprint Pan-Zoom Canvas */
.blueprint-zoom-viewport {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 590px;
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.08);
}

.blueprint-zoom-viewport:active {
  cursor: grabbing;
}

.blueprint-zoom-viewport.dark-bg {
  background: var(--bg-card, #101c33);
}

.blueprint-interactive-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.blueprint-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
}

.blueprint-image-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 580px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.blueprint-hotspots-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Vector Constant-Size Pinpoint Badges */
.zone-hotspot-pin {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: opacity 0.2s ease;
  user-select: none;
}

.pin-pulse-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.4);
  animation: pinPulse 2s infinite ease-out;
  pointer-events: none;
}

.pin-core-badge {
  position: relative;
  background: #0284c7;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  border: 1.5px solid #ffffff;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.zone-hotspot-pin:hover .pin-core-badge {
  background: #0ea5e9;
  box-shadow: 0 0 12px var(--azure-glow);
}

.zone-hotspot-pin.active .pin-core-badge {
  background: #10b981;
  border-color: #ffffff;
  box-shadow: 0 0 14px var(--mint-glow);
}

.zone-hotspot-pin.active .pin-pulse-ring {
  background: rgba(16, 185, 129, 0.5);
  width: 30px;
  height: 30px;
}

@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Floating Zoom HUD Toolbar */
.blueprint-hud-toolbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(11, 19, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hud-btn {
  background: transparent;
  border: none;
  color: var(--text-pure);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hud-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hud-btn:hover {
  background: var(--azure-primary);
  color: #ffffff;
}

.hud-zoom-level {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--azure-light);
  padding: 0 0.4rem;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: center;
}

.blueprint-usage-hint {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  z-index: 15;
  background: rgba(11, 19, 36, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.blueprint-usage-hint svg {
  width: 13px;
  height: 13px;
  stroke: var(--azure-light);
  stroke-width: 2;
  fill: none;
}

/* ========================================================
   STRUCTURED ZONE DIRECTORY & DETAILS DRAWER
   ======================================================== */
.zone-inspector-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 590px;
}

.inspector-floor-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.inspector-floor-indicator span.floor-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--azure-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inspector-floor-indicator span.count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* Directory Category Filter Row */
.inspector-category-filter-row {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.zone-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.zone-cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-headline);
}

.zone-cat-btn.active {
  background: var(--azure-primary);
  border-color: var(--azure-primary);
  color: #ffffff;
}

.inspector-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.inspector-search-box svg {
  position: absolute;
  left: 0.85rem;
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}

.inspector-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  padding: 0.55rem 0.85rem 0.55rem 2.3rem;
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  font-family: var(--font-main);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition-fast);
}

.inspector-search-input:focus {
  border-color: var(--azure-vibrant);
  background: rgba(14, 165, 233, 0.06);
  box-shadow: 0 0 14px var(--azure-glow);
}

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

.inspector-rooms-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 0.35rem;
}

.inspector-room-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.inspector-room-card:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--border-subtle);
  transform: translateX(3px);
}

.inspector-room-card.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--azure-vibrant);
  box-shadow: 0 0 16px var(--azure-glow);
}

.room-card-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.room-code-tag {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--azure-light);
  flex-shrink: 0;
}

.inspector-room-card.active .room-code-tag {
  background: var(--azure-vibrant);
  color: #ffffff;
  border-color: var(--azure-vibrant);
}

.room-card-info h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 0.1rem;
}

.room-card-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.room-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--azure-light);
  white-space: nowrap;
}

/* Active Zone Detail Drawer */
.active-zone-detail-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: var(--shadow-card);
  animation: drawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.zone-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.zone-detail-header h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-pure);
}

.zone-detail-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.15);
  color: var(--azure-light);
  text-transform: uppercase;
}

.zone-detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
}

.spec-item span.label {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
}

.spec-item span.value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--azure-ice);
}

.zone-detail-desc {
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* ========================================================
   TAB 3: 3D & PHOTOGRAPHY GALLERY (37 ASSETS)
   ======================================================== */
.gallery-category-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gallery-filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.gallery-filter-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.gallery-filter-pill:hover {
  color: var(--text-pure);
  background: var(--bg-card-hover);
}

.gallery-filter-pill.active {
  background: linear-gradient(135deg, var(--azure-primary), var(--indigo-primary));
  color: #ffffff;
  border-color: var(--azure-primary);
  font-weight: 700;
}

.gallery-filter-pill.active svg {
  stroke: #ffffff;
}

.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.gallery-display-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.gallery-display-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.item-thumb-viewport {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #000;
}

.item-thumb-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 17, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-hover-overlay svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  transform: scale(0.8);
  transition: var(--transition-fast);
}

.gallery-display-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-display-item:hover .gallery-hover-overlay svg {
  transform: scale(1);
}

.gallery-display-item:hover .item-thumb-viewport img {
  transform: scale(1.05);
}

.gallery-item-footer {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gallery-item-footer h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
}

.gallery-item-footer span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--azure-light);
}

/* ========================================================
   LIGHTBOX MODAL WITH FULL PAN & ZOOM, SIDE CONTROLS
   ======================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-stage-box {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lift);
  background: #000;
  cursor: grab;
}

.lightbox-img-wrapper:active {
  cursor: grabbing;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
}

.lightbox-title-text {
  margin-top: 1rem;
  color: var(--text-pure);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-hud-bar {
  position: absolute;
  top: -46px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-exit-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lightbox-exit-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.lightbox-exit-btn:hover {
  background: var(--azure-vibrant);
  border-color: var(--azure-vibrant);
  transform: scale(1.08);
}

/* Lightbox Large Side Navigation Arrow Buttons */
.lb-side-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.lb-side-arrow-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

.lb-side-arrow-btn:hover {
  background: var(--azure-primary);
  border-color: var(--azure-vibrant);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--azure-glow);
}

.lb-side-prev {
  left: -70px;
}

.lb-side-next {
  right: -70px;
}

/* ========================================================
   TAB 4: FINANCIAL & ROI CALCULATOR
   ======================================================== */
.finance-top-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.control-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scenario-presets-group,
.currency-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scenario-btn,
.currency-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-headline);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.scenario-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.scenario-dot.conservative { background: var(--amber-accent); }
.scenario-dot.base { background: var(--azure-vibrant); }
.scenario-dot.optimistic { background: var(--mint-accent); }

.scenario-btn:hover,
.currency-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
}

.scenario-btn.active,
.currency-btn.active {
  background: var(--azure-primary);
  color: #ffffff;
  border-color: var(--azure-primary);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--azure-glow);
}

.finance-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.finance-simulator-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.panel-title-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--azure-light);
  stroke-width: 2;
  fill: none;
}

.panel-title-row h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
}

.slider-unit-block {
  margin-bottom: 1.35rem;
}

.slider-label-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 0.4rem;
}

.slider-val-input-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.slider-val-input-group:focus-within {
  border-color: var(--azure-vibrant);
  background: rgba(14, 165, 233, 0.16);
  box-shadow: 0 0 12px var(--azure-glow);
}

.slider-number-input {
  background: transparent;
  border: none;
  color: var(--azure-light);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  width: 60px;
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.slider-number-input::-webkit-outer-spin-button,
.slider-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slider-unit-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

input[type="range"].luxury-slider {
  width: 100%;
  accent-color: var(--azure-vibrant);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}

.kpi-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kpi-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.kpi-metric-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--azure-primary);
}

.kpi-metric-box.emerald-edge::before {
  background: var(--mint-accent);
}

.kpi-label-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.kpi-main-figure {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kpi-metric-box.emerald-edge .kpi-main-figure {
  color: var(--mint-accent);
}

.kpi-sub-detail {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* OPEX & Co-Financing Section */
.opex-breakdown-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.opex-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.opex-item-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.opex-row-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.opex-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-headline);
}

.opex-item-label strong {
  color: var(--azure-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.opex-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.opex-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azure-primary), var(--azure-vibrant));
  border-radius: var(--radius-pill);
}

.opex-total-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pure);
}

.opex-total-summary strong {
  color: var(--azure-light);
  font-size: 1.05rem;
}

/* Capital Structure & Subsidy */
.capital-pie-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cap-source-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cap-source-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-headline);
}

.cap-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.cap-badge.equity {
  background: rgba(16, 185, 129, 0.15);
  color: var(--mint-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cap-badge.debt {
  background: rgba(14, 165, 233, 0.15);
  color: var(--azure-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.subsidy-feature-box {
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.subsidy-feature-box h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--azure-light);
  margin-bottom: 0.75rem;
}

.subsidy-feature-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.subsidy-feature-box ul li {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.45;
}

.subsidy-feature-box ul li strong {
  color: var(--text-pure);
}

/* Official Budget Table */
.budget-official-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.budget-official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.budget-official-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--azure-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  border-bottom: 2px solid var(--border-subtle);
}

.budget-official-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-body);
}

.budget-official-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.budget-official-table tr.subtotal-row td {
  background: rgba(14, 165, 233, 0.06);
  font-weight: 700;
  color: var(--text-pure);
}

.budget-official-table tr.grand-total-row td {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-pure);
  background: rgba(14, 165, 233, 0.14);
  border-top: 2px solid var(--azure-vibrant);
}

/* ========================================================
   TAB 5: STRATEGIC INNOVATION PILLARS
   ======================================================== */
.pillars-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.strategic-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.strategic-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-lift);
}

.pillar-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.pillar-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--azure-light);
  stroke-width: 1.8;
  fill: none;
}

.strategic-pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 0.6rem;
}

.strategic-pillar-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.pillar-meta-badge {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--azure-light);
}

.market-strategy-dossier {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.market-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.market-info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  padding: 1.35rem;
  border-radius: var(--radius-md);
}

.market-info-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--azure-light);
  margin-bottom: 0.6rem;
}

.market-info-box p {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================================== */
@media (max-width: 1200px) {
  .blueprint-master-card {
    grid-template-columns: 1fr;
  }
  .zone-inspector-sidebar {
    height: auto;
    max-height: 520px;
  }
  .blueprint-zoom-viewport {
    height: 480px;
    min-height: 480px;
  }
  .finance-split-layout,
  .opex-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .header-utilities {
    width: 100%;
    justify-content: flex-end;
  }
  nav.nav-pills {
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }
  .presentation-stage-frame {
    height: auto;
    min-height: auto;
  }
  .deck-slide-panel {
    grid-template-columns: 1fr;
    position: relative;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .deck-slide-panel.active {
    display: flex;
    flex-direction: column;
  }
  .slide-pane-visual {
    height: 280px;
  }
  .slide-pane-editorial {
    padding: 1.75rem 1.5rem;
  }
  .lb-side-arrow-btn {
    display: none;
  }
  .kpi-quad-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .btn-pdf-download {
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }
  main.viewport-container {
    padding: 1rem 1rem 3rem;
  }
  .section-heading {
    font-size: 1.35rem;
  }
  .slide-main-title {
    font-size: 1.4rem;
  }
  .deck-header-bar {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .deck-progress-meta {
    width: 100%;
    max-width: 100%;
  }
  .deck-nav-buttons {
    width: 100%;
    justify-content: space-between;
  }
  .deck-arrow-btn {
    flex: 1;
    justify-content: center;
  }
  .finance-top-controls-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================================
   ARCHITECTURAL DOSSIER & SPACES EXPLICATION STYLES
   ======================================================== */
.print-architectural-dossier {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.dossier-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.dossier-title-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.dossier-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dossier-badge-tag {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.dossier-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dossier-kpi-card {
  background: var(--bg-card-subtle, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dossier-kpi-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-accent);
}

.dossier-kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dossier-visual-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dossier-visual-card {
  background: var(--bg-card-subtle, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dossier-visual-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.dossier-visual-header .plan-num {
  background: #0284c7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.dossier-visual-header h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
}

.dossier-visual-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #0f172a;
}

.dossier-visual-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  border-top: 1px solid var(--border-color);
}

.dossier-tables-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dossier-table-block {
  background: var(--bg-card-subtle, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.dossier-table-header {
  padding: 0.75rem 1rem;
  background: rgba(2, 132, 199, 0.08);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-table-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

.dossier-table-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dossier-explication-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.dossier-explication-table th {
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.dossier-explication-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color-subtle, rgba(255, 255, 255, 0.05));
  color: var(--text-normal);
  line-height: 1.4;
}

.dossier-explication-table tbody tr:last-child td {
  border-bottom: none;
}

.dossier-explication-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================================
   INSTITUTIONAL INVESTOR MEMORANDUM PRINT & PDF EXPORT
   ======================================================== */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }

  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    font-size: 9.5pt;
    line-height: 1.4;
  }

  /* Hide Interactive Screen-Only Elements */
  header,
  .header-utilities,
  .btn-pdf-download,
  .deck-header-bar,
  .deck-thumbs-scroll-strip,
  .plans-filter-bar,
  .blueprint-master-card,
  .blueprint-hud-toolbar,
  .blueprint-usage-hint,
  .inspector-category-filter-row,
  .inspector-search-box,
  .gallery-category-bar,
  .finance-top-controls-bar,
  .lightbox-overlay,
  .visual-zoom-badge,
  .hud-btn,
  input[type="range"],
  .slider-number-input,
  .slider-unit-block {
    display: none !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  thead {
    display: table-header-group !important;
  }

  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Show Print Cover & Header */
  .print-memorandum-header {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2pt solid #0284c7;
  }

  .print-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .print-title-block h1 {
    font-size: 18pt;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 0.2rem;
  }

  .print-title-block h2 {
    font-size: 11pt;
    font-weight: 600;
    color: #475569;
  }

  .print-meta-block {
    font-size: 8.5pt;
    color: #334155;
    text-align: right;
    line-height: 1.4;
  }

  main.viewport-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Render all sections cleanly in document order */
  .tab-section {
    display: block !important;
    page-break-before: always;
    break-before: page;
  }

  .tab-section:first-of-type {
    page-break-before: avoid;
    break-before: auto;
  }

  .section-meta-head {
    border-bottom: 1.5pt solid #0284c7 !important;
    margin-bottom: 1.25rem !important;
  }

  .section-heading {
    color: #0f172a !important;
    font-size: 13pt !important;
  }

  .section-subtext {
    color: #475569 !important;
  }

  /* Print Layout for Slide Deck */
  .presentation-stage-frame {
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .deck-slide-panel {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    background: #ffffff !important;
    border: 1pt solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 1.25rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .slide-pane-editorial {
    background: #ffffff !important;
    padding: 1rem !important;
  }

  .slide-main-title {
    color: #0f172a !important;
    font-size: 12pt !important;
  }

  .slide-lead-description {
    color: #334155 !important;
    border-left-color: #0284c7 !important;
    font-size: 8.5pt !important;
  }

  .slide-feature-stack li {
    color: #1e293b !important;
    font-size: 8pt !important;
  }

  .slide-feature-stack li strong {
    color: #0f172a !important;
  }

  .feature-icon-bullet {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
  }

  .slide-pane-visual {
    height: 220px !important;
  }

  .slide-pane-visual img {
    height: 100% !important;
    object-fit: cover !important;
  }

  .media-caption-tag {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }

  /* Print Layout for Master Plans & Architectural Dossier */
  .print-architectural-dossier {
    display: block !important;
    background: #ffffff !important;
    border: 1pt solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    margin-top: 0 !important;
  }

  .dossier-header-banner {
    border-bottom: 2pt solid #0284c7 !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .dossier-title-group h3 {
    color: #0284c7 !important;
    font-size: 13pt !important;
  }

  .dossier-title-group p {
    color: #475569 !important;
    font-size: 8.5pt !important;
  }

  .dossier-badge-tag {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1pt solid #bae6fd !important;
    font-size: 7.5pt !important;
  }

  .dossier-kpi-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .dossier-kpi-card {
    background: #f8fafc !important;
    border: 1pt solid #cbd5e1 !important;
    padding: 0.5rem 0.75rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dossier-kpi-num {
    color: #0284c7 !important;
    font-size: 11pt !important;
  }

  .dossier-kpi-label {
    color: #334155 !important;
    font-size: 7.5pt !important;
  }

  .dossier-visual-deck {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dossier-visual-card {
    background: #ffffff !important;
    border: 1pt solid #cbd5e1 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dossier-visual-header {
    background: #f1f5f9 !important;
    border-bottom: 1pt solid #cbd5e1 !important;
  }

  .dossier-visual-header h4 {
    color: #0f172a !important;
    font-size: 7.5pt !important;
  }

  .dossier-visual-card img {
    height: 120px !important;
    object-fit: cover !important;
  }

  .dossier-visual-caption {
    color: #475569 !important;
    font-size: 7pt !important;
  }

  .dossier-table-block {
    background: #ffffff !important;
    border: 1pt solid #cbd5e1 !important;
    margin-bottom: 1rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dossier-table-header {
    background: #f1f5f9 !important;
    border-bottom: 1pt solid #cbd5e1 !important;
  }

  .dossier-table-header h4 {
    color: #0f172a !important;
    font-size: 9pt !important;
  }

  .dossier-table-sub {
    color: #475569 !important;
    font-size: 7.5pt !important;
  }

  .dossier-explication-table {
    font-size: 7.5pt !important;
  }

  .dossier-explication-table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-bottom: 1.5pt solid #cbd5e1 !important;
    padding: 0.35rem 0.5rem !important;
  }

  .dossier-explication-table td {
    color: #1e293b !important;
    border-bottom: 1pt solid #e2e8f0 !important;
    padding: 0.35rem 0.5rem !important;
  }

  /* Print Layout for Gallery (3-Column Catalog Grid) */
  .gallery-masonry-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }

  .gallery-display-item {
    background: #ffffff !important;
    border: 1pt solid #cbd5e1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .gallery-display-item .item-thumb-viewport {
    height: 140px !important;
  }

  .gallery-display-item .item-thumb-viewport img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .gallery-item-footer {
    padding: 0.5rem !important;
    background: #ffffff !important;
  }

  .gallery-item-footer h4 {
    color: #0f172a !important;
    font-size: 7.5pt !important;
    margin-bottom: 0.15rem !important;
  }

  .gallery-item-footer span {
    color: #0284c7 !important;
    font-size: 6.5pt !important;
    font-weight: 600 !important;
  }

  /* Print Layout for Finance & Budget */
  .finance-split-layout,
  .opex-breakdown-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .finance-simulator-panel,
  .opex-detail-card,
  .budget-official-frame,
  .strategic-pillar-card,
  .market-strategy-dossier {
    background: #ffffff !important;
    border: 1pt solid #e2e8f0 !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .panel-title-row h3 {
    color: #0f172a !important;
  }

  .kpi-metric-box {
    background: #f8fafc !important;
    border: 1pt solid #e2e8f0 !important;
  }

  .kpi-main-figure {
    color: #0284c7 !important;
  }

  .kpi-metric-box.emerald-edge .kpi-main-figure {
    color: #059669 !important;
  }

  .budget-official-table {
    font-size: 8pt !important;
  }

  .budget-official-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1.5pt solid #cbd5e1 !important;
  }

  .budget-official-table td {
    border-bottom: 1pt solid #e2e8f0 !important;
    color: #1e293b !important;
  }

  .budget-official-table tr.subtotal-row td {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: bold !important;
  }

  .budget-official-table tr.grand-total-row td {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: bold !important;
  }

  .pillars-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .strategic-pillar-card {
    padding: 1rem !important;
  }

  .strategic-pillar-card h3 {
    color: #0f172a !important;
    font-size: 9.5pt !important;
  }

  .strategic-pillar-card p {
    color: #334155 !important;
    font-size: 7.5pt !important;
  }

  .pillar-meta-badge {
    color: #0284c7 !important;
    border-top: 1pt solid #e2e8f0 !important;
    font-size: 7pt !important;
  }
}
