/* Project Details Page Custom Styles */

/* Details Hero Presentation Layout */
.details-hero-presentation {
  padding-top: 160px; /* space to clear fixed navbar */
  padding-bottom: 80px;
  background-color: var(--color-bg);
  width: 100%;
}

.hero-presentation-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-presentation-header {
  text-align: center;
  margin-bottom: 48px;
  width: 100%;
}

.hero-presentation-title {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-presentation-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
}

/* Featured Render Board Container */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: min(1100px, 100%);
  margin: 0 auto 48px auto;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 16px; /* premium padding to frame the rendering like architectural artwork */
  border-radius: 4px;
  box-sizing: border-box;
}

/* Responsive Image Rules - naturally sized, uncropped, unzoomed */
.hero-presentation-img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Actions Section */
.hero-presentation-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.project-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}

.project-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background-color: var(--color-gold);
}



/* Property Specs */
.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: flex-start;
}

.text-dimmed {
  color: #7b8b9a;
  font-size: 1.05rem;
}

.overview-specs {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(200, 164, 93, 0.15);
  padding: 40px;
  position: relative;
  backdrop-filter: blur(10px);
}

.specs-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--color-gray);
  font-weight: 300;
}

.spec-val {
  color: var(--color-white);
  text-align: right;
  font-weight: 400;
}

/* Storytelling Chapters */
.story-intro {
  margin-bottom: 80px;
}

.story-chapters {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.story-chapter {
  display: flex;
  align-items: center;
  gap: 80px;
}

.story-chapter.reverse {
  flex-direction: row-reverse;
}

.story-visual-container {
  flex: 1.1;
  position: relative;
  overflow: hidden;
}

.story-glass-wrapper {
  position: relative;
  padding: 15px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s;
}

.story-glass-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200, 164, 93, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.92) contrast(1.02);
}

.story-glass-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 164, 93, 0.25);
}

.story-glass-wrapper:hover .story-image {
  transform: scale(1.02);
}

.story-text {
  flex: 0.9;
  display: flex;
  flex-direction: column;
}

.story-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(200, 164, 93, 0.15);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.story-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--color-white);
  letter-spacing: 1px;
}

.story-description {
  color: var(--color-gray);
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 300;
}

/* Floor Showcase Section */
.showcase-section {
  background-color: rgba(11, 11, 15, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

/* Sticky Navigation Tabs */
.sticky-nav-container {
  position: sticky;
  top: 80px; /* Aligns with scrolled navbar height */
  z-index: 100;
  background-color: rgba(3, 14, 25, 0.9);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 60px;
  transition: top 0.3s;
}

.sticky-nav-scroll-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none; /* Hide for Firefox */
}

.sticky-nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Hide for Chrome/Safari */
}

.floor-nav-tabs {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-width: 500px; /* guarantees nice spacing on mobile */
  padding: 0 10px;
}

.floor-tab {
  background: transparent;
  border: none;
  color: var(--color-gray);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  cursor: pointer;
  transition: color 0.4s ease;
  position: relative;
  z-index: 2;
}

.floor-tab span {
  position: relative;
}

.floor-tab:hover {
  color: var(--color-white);
}

.floor-tab.active {
  color: var(--color-gold);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Floor Panel Transition */
.floor-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.floor-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Units Grid */
.units-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.units-grid-wrapper {
  position: relative;
  min-height: 500px;
}

.unit-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  position: relative;
}

.unit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 93, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 1px rgba(200, 164, 93, 0.1) inset;
}

/* Smart Image Scaling System */
.unit-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* Consistent aspect ratio for cards */
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* Blurred Duplicate Background Layer */
.smart-image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.3);
  opacity: 0.65;
  transform: scale(1.1);
  pointer-events: none;
  z-index: 1;
}

/* Centered Fully-Visible Original Image */
.unit-image {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.unit-card:hover .unit-image {
  transform: scale(1.03);
}

.unit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 15, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
  cursor: zoom-in;
}

.unit-img-container:hover .unit-overlay {
  opacity: 1;
}

.zoom-icon {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--color-white);
  background: rgba(200, 164, 93, 0.85);
  padding: 10px 20px;
  border-radius: 30px;
  text-transform: uppercase;
}

/* Unit Details Styling */
.unit-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.unit-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
}

.unit-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 500;
}

.unit-status.available {
  background-color: rgba(200, 164, 93, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(200, 164, 93, 0.3);
}

.unit-info-text {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
}

.cta-btn {
  margin-top: auto;
  font-size: 0.8rem;
  padding: 12px 20px;
}

/* Duplex Combination Card */
.duplex-card {
  grid-column: span 1;
}

.duplex-combined {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(200, 164, 93, 0.1);
}

.duplex-composition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.duplex-layouts-container {
  display: flex;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 24px;
}

.duplex-layout-level {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.level-badge {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 1.5px;
  font-weight: 400;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.duplex-separator-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(200, 164, 93, 0.25) 30%, rgba(200, 164, 93, 0.25) 70%, transparent);
  opacity: 0.5;
}

/* Sold Out Presentation */
.sold-out-card {
  border-color: rgba(255, 255, 255, 0.02);
}

.sold-out-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  cursor: not-allowed;
}

.sold-out-card:hover .unit-image {
  transform: none;
}

.sold-out-card .unit-image {
  filter: grayscale(100%) brightness(0.4);
}

.sold-out-card .smart-image-background {
  filter: blur(15px) grayscale(100%) brightness(0.15);
}

.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 14, 25, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}

.lock-icon {
  font-size: 1.8rem;
  opacity: 0.8;
}

.sold-out-badge {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #ff4a4a;
  border: 1px solid #ff4a4a;
  padding: 6px 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
  background-color: rgba(255, 74, 74, 0.08);
}

.text-dimmed {
  opacity: 0.4;
}

/* Lightbox Premium Fullscreen Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 14, 25, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: var(--color-white);
  cursor: pointer;
  z-index: 10002;
  transition: color 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: var(--color-gold);
}

.lightbox-content-wrapper {
  width: 85%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.15s ease-out; /* Smooth scrolling zoom */
  cursor: grab;
  z-index: 10001;
  user-select: none;
}

.lightbox-image:active {
  cursor: grabbing;
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Lightbox Zoom Controls */
.lightbox-controls {
  position: absolute;
  bottom: 40px;
  right: 50px;
  display: flex;
  gap: 12px;
  z-index: 10002;
}

.zoom-control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.zoom-control-btn:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}



/* Media Queries for Responsive Adjustments */

@media (max-width: 1200px) {
  .overview-grid {
    gap: 40px;
  }
  
  .story-chapter {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-specs {
    margin-top: 20px;
  }
  
  .story-chapter,
  .story-chapter.reverse {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  
  .story-visual-container {
    width: 100%;
  }
  
  .story-text {
    width: 100%;
  }

  .units-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .duplex-combined {
    grid-column: span 1;
  }
  
  .duplex-layouts-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .duplex-separator-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 164, 93, 0.25) 30%, rgba(200, 164, 93, 0.25) 70%, transparent);
  }
  
  .sticky-nav-container {
    top: 60px; /* Adjusted for smaller tablet header spacing */
  }
}
@media (max-width: 768px) {
  .details-hero-presentation {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-presentation-header {
    margin-bottom: 32px;
  }

  .hero-image-container {
    padding: 8px;
    margin-bottom: 32px;
  }
  
  .hero-presentation-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .hero-presentation-actions .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  
  .story-chapters {
    gap: 80px;
  }
  
  .story-title {
    font-size: 1.8rem;
  }
  
  .story-number {
    font-size: 2.8rem;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
  }
  
  .lightbox-controls {
    right: 20px;
    bottom: 20px;
  }
  
  .lightbox-caption {
    font-size: 1.1rem;
    width: 70%;
    bottom: 30px;
  }
}

@media (max-width: 480px) {
  .overview-specs {
    padding: 24px;
  }
  
  .unit-card {
    padding: 16px;
  }
  
  .unit-img-container {
    aspect-ratio: 1/1;
  }
}

/* Inquiry Modal Style */
.inquiry-modal-content {
  background: var(--color-bg);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 10001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .inquiry-modal-content {
    padding: 24px;
  }
}

