/* Project Detail Page - Cinematic Hero Gallery Design */
/* Premium property showcase with full-screen hero and Ken Burns effect */

/* ========================================
   BASE STYLES
   ======================================== */

body {
  font-family: 'Inter', sans-serif;
  background: #0a101d;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   CINEMATIC HERO SECTION
   ======================================== */

.cinematic-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: kenBurns 20s ease infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1.1) translate(0, 0); }
  100% { transform: scale(1.2) translate(-2%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(10,16,29,0.3) 0%, 
    rgba(10,16,29,0.1) 40%,
    rgba(10,16,29,0.6) 70%,
    rgba(10,16,29,0.95) 100%);
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,16,29,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #ffffff;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.property-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.property-location svg {
  width: 16px;
  height: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: #10b981;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.sold {
  background: #666;
}

.property-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.property-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Price & CTA Row */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: #0a101d;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

/* Slide Indicators */
.slide-indicators {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.content-wrapper {
  background: #fdfff5;
  color: #1a1a1a;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.description-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem;
  background: #f5f7f0;
  border-radius: 20px;
}

.spec-item {
  text-align: center;
}

.spec-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: #1a1a1a;
}

.spec-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.spec-label {
  font-size: 0.85rem;
  color: #888;
}

/* Features Section */
.features-section {
  background: linear-gradient(rgba(10, 16, 29, 0.85), rgba(10, 16, 29, 0.9)), url('../images/footer-image.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* Video Section */
.video-section {
  padding: 0;
}

.video-container {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1b263b 0%, #0a101d 100%);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button-large {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button-large:hover {
  transform: scale(1.1);
  background: #fff;
}

.play-button-large svg {
  width: 36px;
  height: 36px;
  color: #0a101d;
  margin-left: 4px;
}

.video-label {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Gallery Strip */
.gallery-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

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

/* CTA Section */
.cta-section {
  background: #0a101d;
  color: #fff;
  text-align: center;
  padding: 6rem 3rem;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.cta-buttons-large {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

/* ========================================
   GALLERY MODAL
   ======================================== */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.98);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.gallery-close:hover {
  background: rgba(255,255,255,0.2);
}

.gallery-close svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.gallery-main {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.gallery-nav:hover {
  background: rgba(255,255,255,0.2);
}

.gallery-nav svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.gallery-prev { left: 2rem; }

.gallery-next { right: 2rem; }

/* Video Card Hover Effects */
.video-card:hover .play-button-glass {
  background: rgba(255,255,255,0.25) !important;
  transform: scale(1.1);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 60px -12px rgba(0,0,0,0.6) !important;
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.2) !important;
  transform: rotate(90deg);
}

.video-nav:hover {
  background: rgba(255,255,255,0.2) !important;
}

.video-prev:hover {
  transform: translateY(-50%) translateX(-4px) !important;
}

.video-next:hover {
  transform: translateY(-50%) translateX(4px) !important;
}

/* Image Loading Optimization */
.gallery-item img,
.hero-bg-slide img {
  will-change: transform;
  content-visibility: auto;
}

/* Smooth image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Video Card Mobile Responsive */
@media (max-width: 768px) {
  .video-card .video-card-label {
    font-size: 0.7rem !important;
  }
  
  .video-card .video-card-title {
    font-size: 0.9rem !important;
  }
  
  .video-card .video-card-overlay {
    padding: 1rem !important;
  }
  
  .video-card .play-button-glass {
    width: 60px !important;
    height: 60px !important;
  }
  
  .video-card .play-button-glass svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Mobile Nav Icons - Ensure proper sizing */
@media (max-width: 768px) {
  .mobile-nav-icons {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }
  
  .mobile-basket-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }
  
  .mobile-basket-icon svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
  }
  
  .mobile-menu-toggle {
    display: block !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }
  
  .mobile-menu-toggle svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
  }
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.gallery-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: #fff;
}

/* ========================================
   NOT FOUND STATE
   ======================================== */

.project-not-found {
  text-align: center;
  padding: 8rem 4rem;
  max-width: 600px;
  margin: 0 auto;
  background: #fdfff5;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-not-found h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.project-not-found p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.project-btn-primary {
  background: #0a101d;
  color: #ffffff;
}

.project-btn-primary:hover {
  background: #1b263b;
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .cinematic-hero {
    min-height: 600px;
  }
  
  .hero-content {
    padding: 0 1.5rem 3rem;
  }
  
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .slide-indicators {
    display: none;
  }
  
  .content-section {
    padding: 3rem 1.5rem;
  }
  
  .section-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    width: 250px;
    height: 170px;
  }
  
  .video-container {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .cinematic-hero {
    min-height: 500px;
  }
  
  .scroll-indicator {
    bottom: 1rem;
    z-index: 10;
  }
  
  .property-name {
    font-size: 2rem;
  }
  
  .price-value {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .spec-value {
    font-size: 1.5rem;
  }
  
  .cta-buttons-large {
    flex-direction: column;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .gallery-nav {
    width: 48px;
    height: 48px;
  }
  
  .gallery-prev { left: 1rem; }
  .gallery-next { right: 1rem; }
}
