/* Project Detail Page Styles */

/* Project Intro Section */
.project-intro {
  padding: 80px 0;
}

.project-info {
  padding-right: 40px;
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--background-light);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.detail-item i {
  font-size: 24px;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.detail-item span {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: 5px;
}

.detail-item strong {
  font-size: var(--font-size-base);
  color: var(--text-color);
  font-weight: var(--font-weight-semibold);
}

.project-main-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Description */
.content-block {
  background: var(--white);
  padding: 60px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content-block h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.content-block h4 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.content-block p {
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.content-block ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.content-block ul li {
  padding: 10px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 25px;
}

.content-block ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 20px;
}

.feature-item span {
  color: var(--text-light);
  line-height: 1.6;
}

/* Project Gallery */
.project-gallery {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  height: 300px;
}

.gallery-item.large {
  grid-column: span 2;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay span {
  color: var(--white);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* Virtual Tour Section */
.virtual-tour {
  padding: 80px 0;
}

.tour-unavailable {
  padding: 60px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tour-unavailable h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.matterport-embed {
  margin-top: 40px;
  min-height: 400px;
}

@media (max-width: 768px) {
  .matterport-embed {
    height: 400px !important;
  }
}

@media (max-width: 576px) {
  .matterport-embed {
    height: 300px !important;
  }
}

/* Next Project */
.next-project {
  padding: 60px 0;
  background: var(--background-light);
  border-top: 1px solid var(--border-color);
}

.next-project-content {
  text-align: center;
}

.next-label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.next-project-content h3 {
  font-size: 2rem;
  margin: 0;
}

.next-project-content a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
}

.next-project-content a::after {
  content: '→';
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.next-project-content a:hover {
  color: var(--primary-color);
}

.next-project-content a:hover::after {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item.large {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .project-info {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .content-block {
    padding: 40px;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-intro {
    padding: 60px 0;
  }
  
  .project-details-grid {
    grid-template-columns: 1fr;
  }
  
  .content-block {
    padding: 30px;
  }
  
  .content-block h3 {
    font-size: 1.5rem;
  }
  
  .content-block h4 {
    font-size: 1.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item,
  .gallery-item.large {
    grid-column: span 1;
    height: 250px;
  }
  
  .project-gallery,
  .virtual-tour {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .project-intro {
    padding: 40px 0;
  }
  
  .content-block {
    padding: 20px;
  }
  
  .detail-item {
    padding: 15px;
  }
  
  .detail-item i {
    font-size: 20px;
  }
  
  .gallery-item,
  .gallery-item.large {
    height: 200px;
  }
  
  .next-project-content h3 {
    font-size: 1.5rem;
  }
}

/* Full-width Matterport Section */
.virtual-tour .container-fluid {
  max-width: 100%;
  padding: 0;
}

.matterport-fullwidth {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  background: var(--background-light);
  overflow: hidden;
}

.matterport-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments for Matterport */
@media (max-width: 768px) {
  .matterport-fullwidth {
    padding-bottom: 75%; /* Taller aspect ratio for mobile */
  }
}

@media (max-width: 576px) {
  .matterport-fullwidth {
    padding-bottom: 100%; /* Square aspect ratio for small screens */
  }
}