/**
 * PakMakan Real Estate Portal - Master Stylesheet
 * Incorporating Google Stitch Design Tokens:
 * Primary: #004f27 | Accent: #fea619 | Surface: #faf8ff | Dark: #131b2e
 */

:root {
  --primary: #004f27;
  --primary-hover: #003a1d;
  --primary-container: #0d6938;
  --primary-light: #e8f5ec;
  --on-primary: #ffffff;
  --secondary: #855300;
  --secondary-container: #fea619;
  --secondary-light: #fff8eb;
  --tertiary: #004f34;
  --surface: #faf8ff;
  --surface-low: #f2f3ff;
  --surface-container: #eaedff;
  --surface-high: #e2e7ff;
  --surface-white: #ffffff;
  --on-surface: #131b2e;
  --on-surface-variant: #59655d;
  --outline: #d0d7ce;
  --outline-light: #e8ece7;
  --danger: #ba1a1a;
  --danger-light: #ffdad6;
  --success: #136c3b;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(19, 27, 46, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 79, 39, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 79, 39, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-family);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  color: var(--on-surface);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Navbar & Header */
.top-utility-bar {
  background-color: var(--surface-low);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-container);
  transition: var(--transition);
}

.site-navbar .nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface-variant);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Buttons */
.btn-primary-pak {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 79, 39, 0.2);
  transition: var(--transition);
}

.btn-primary-pak:hover {
  background-color: var(--primary-container);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 79, 39, 0.25);
}

.btn-accent-pak {
  background-color: var(--secondary-container);
  color: #432800;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-accent-pak:hover {
  background-color: #f59e0b;
  color: #000;
  transform: translateY(-1px);
}

.btn-outline-pak {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

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

/* Hero Section with Custom Aerial Community & Skyline Background */
.hero-pakmakan {
  position: relative;
  background-color: #002814;
  background-image: 
    linear-gradient(180deg, rgba(0, 32, 16, 0.65) 0%, rgba(0, 32, 16, 0.50) 40%, rgba(1, 20, 10, 0.88) 100%),
    url('../images/hero-bg.jpg');
  background-position: center 38%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 85px 0 105px;
  overflow: hidden;
}

.hero-pakmakan h1 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
}

.hero-pakmakan p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero-overlay-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 15%, rgba(254, 166, 25, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 35, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #a8f5be;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Search Box Container */
.search-matrix-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 24px;
  position: relative;
  z-index: 5;
  margin-top: 30px;
}

.search-purpose-tabs {
  display: inline-flex;
  background: var(--surface-low);
  padding: 4px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.search-purpose-btn {
  border: none;
  background: transparent;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: var(--transition);
}

.search-purpose-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 79, 39, 0.25);
}

/* Property Cards */
.property-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-container);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 79, 39, 0.2);
}

.card-img-wrap {
  position: relative;
  height: 230px;
  background-color: var(--surface-container);
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-badge-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-featured {
  background: linear-gradient(135deg, #fea619 0%, #e08c00 100%);
  color: #2a1700;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-purpose {
  background: rgba(0, 79, 39, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-verified {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.property-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.property-location {
  font-size: 13px;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-features-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--surface-container);
  border-bottom: 1px solid var(--surface-container);
  margin: 12px 0;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Property Detail Page */
.detail-gallery-main {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--surface-container);
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-contact-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-container);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

/* Forms */
.form-control, .form-select {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--outline);
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 79, 39, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--on-surface);
  margin-bottom: 6px;
}

/* SEO Section in forms */
.seo-section-card {
  background: #f7faf8;
  border: 1.5px dashed #004f2740;
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Gateway Selector Cards */
.gateway-radio-card {
  border: 2px solid var(--surface-container);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  background: #ffffff;
}

.gateway-radio-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.gateway-radio-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 79, 39, 0.12);
}

/* Status Badges */
.badge-status-approved {
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
}

.badge-status-pending {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
}

.badge-status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
}

.badge-status-banned {
  background-color: #1f2937;
  color: #f9fafb;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
}

/* Footer */
.site-footer {
  background-color: #0a140d;
  color: #b0c4b6;
  font-size: 14px;
  padding: 60px 0 30px;
  margin-top: 60px;
  border-top: 3px solid var(--primary);
}

.site-footer h5 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}

.site-footer a {
  color: #b0c4b6;
}

.site-footer a:hover {
  color: #ffffff;
}

/* ==============================================================
   FULL SCREEN GRAND ROYAL ESTATE GATE (SCROLL-DRIVEN 3D)
   ============================================================== */
.fullscreen-gate-track {
  position: relative;
  height: 230vh; /* Smooth, generous scroll distance */
  background: #02140a;
}

.fullscreen-gate-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  background: #011208;
}

/* Background Scene Revealed Behind Doors */
.fullscreen-gate-scenery {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse at 50% 48%, rgba(254, 166, 25, 0.45) 0%, rgba(0, 79, 39, 0.6) 45%, rgba(1, 20, 10, 0.96) 95%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
}

.fs-scenery-sunburst {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 235, 140, 0.5) 0%, rgba(254, 166, 25, 0.25) 35%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fs-scenery-welcome-box {
  position: relative;
  z-index: 2;
  background: rgba(1, 28, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(254, 166, 25, 0.5);
  border-radius: 24px;
  padding: 36px 44px;
  max-width: 680px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(254, 166, 25, 0.3);
  transform: scale(0.9);
  opacity: 0.2;
  will-change: transform, opacity;
}

.fs-welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 166, 25, 0.15);
  border: 1px solid rgba(254, 166, 25, 0.4);
  color: #fea619;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.fs-welcome-heading {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 15px rgba(0,0,0,0.8);
}

.fs-welcome-lead {
  font-size: 16px;
  color: #d1fae5;
  margin-bottom: 22px;
  line-height: 1.6;
}

.fs-welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fea619 0%, #e08b06 100%);
  color: #0b1a10;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(254, 166, 25, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fs-welcome-btn:hover {
  transform: translateY(-2px);
  color: #0b1a10;
  box-shadow: 0 12px 30px rgba(254, 166, 25, 0.65);
}

/* Full-Screen Modern Luxury Gate Leaves (Left 50vw and Right 50vw) */
.fullscreen-gate-leaf {
  position: absolute;
  top: 0;
  width: 50.15vw;
  height: 100vh;
  z-index: 10;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  overflow: hidden;
  background: #0d1210;
}

.fs-leaf-left {
  left: 0;
  transform-origin: left center;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.95);
}

.fs-leaf-right {
  right: 0;
  transform-origin: right center;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.95);
}

/* Photorealistic Seamless Modern Gate Surface */
.fs-leaf-inner {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/modern-gate.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.fs-leaf-inner-left {
  left: 0;
}

.fs-leaf-inner-right {
  right: 0;
}

/* Subtle Modern Dark Overlay for Contrast & Drama */
.fs-leaf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Beveled Center Edge for Real 3D Door Thickness & Depth */
.fs-door-bevel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
  z-index: 5;
}

.fs-door-bevel-left {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.7) 40%, rgba(254, 166, 25, 0.6) 85%, rgba(255,255,255,0.8) 100%);
  box-shadow: inset -4px 0 15px rgba(0,0,0,0.9);
}

.fs-door-bevel-right {
  left: 0;
  background: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.7) 40%, rgba(254, 166, 25, 0.6) 85%, rgba(255,255,255,0.8) 100%);
  box-shadow: inset 4px 0 15px rgba(0,0,0,0.9);
}

/* Modern Champagne Gold Handle */
.fs-modern-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 240px;
  background: linear-gradient(180deg, #ffe082 0%, #fea619 50%, #b87304 100%);
  border-radius: 5px;
  z-index: 6;
  box-shadow: 0 0 25px rgba(254, 166, 25, 0.8), 3px 6px 14px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.fs-handle-left {
  right: 42px;
}

.fs-handle-right {
  left: 42px;
}

/* Center Prompt Overlay (Visible when closed) */
.fullscreen-gate-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.fs-prompt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(3, 25, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid #fea619;
  border-radius: 50px;
  padding: 12px 28px;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(254, 166, 25, 0.5);
  cursor: pointer;
  user-select: none;
}

.fs-prompt-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid #fea619;
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
}

.fs-prompt-mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: #fea619;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: mouseWheelScroll 1.6s infinite;
}

.fs-prompt-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.fs-prompt-sub {
  font-size: 11px;
  color: #fea619;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Scroll Direction Indicator at Bottom */
.fs-scroll-hint-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.fs-scroll-hint-bar .material-symbols-outlined {
  animation: bounceHint 1.8s infinite;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Staggered Listing Cards Reveal Effect */
.card-gate-revealed {
  animation: gateCardReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes gateCardReveal {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .fs-scenery-welcome-box {
    padding: 22px 20px;
    margin: 10px;
  }
  .fs-welcome-heading {
    font-size: 22px;
  }
  .fs-welcome-lead {
    font-size: 13px;
  }
  .fs-prompt-card {
    padding: 10px 18px;
    gap: 12px;
  }
  .fs-prompt-title {
    font-size: 13px;
  }
}

/* ==========================================================================
   ARCHITECTURAL NAQSHA (FLOOR PLANS), AREA CONVERSIONS & TECHNICAL SPECS
   ========================================================================== */
.naqsha-blueprint-card {
  background: #08162b;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.4);
}

.naqsha-blueprint-header {
  padding: 18px 24px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.naqsha-nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(2, 6, 23, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.naqsha-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.naqsha-tab-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.naqsha-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.naqsha-view-pane {
  display: none;
  position: relative;
  background: #031224;
  padding: 20px;
  text-align: center;
}

.naqsha-view-pane.active {
  display: block;
}

.naqsha-blueprint-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.naqsha-blueprint-img:hover {
  cursor: zoom-in;
}

.naqsha-badge-overlay {
  position: absolute;
  top: 32px;
  left: 32px;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* Area Conversions Cards */
.area-breakdown-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.area-breakdown-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #004f27;
}

.area-breakdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #004f27;
  opacity: 0.8;
}

/* Construction Spec Card */
.spec-category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  transition: all 0.3s ease;
}

.spec-category-card:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.08);
}

.spec-category-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 79, 39, 0.08);
  color: #004f27;
  margin-bottom: 14px;
}

.spec-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 13.5px;
}

.spec-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-item-row .material-symbols-outlined {
  color: #16a34a;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Rich Visual Gallery Grid */
.detail-rich-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .detail-rich-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rich-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 180px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  background: #f1f5f9;
}

.rich-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rich-gallery-item:hover img {
  transform: scale(1.08);
}

.rich-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #ffffff;
  padding: 20px 12px 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modal Lightbox */
.pkm-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pkm-lightbox-modal.active {
  display: flex;
}

.pkm-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

.pkm-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.pkm-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}



