/* =====================================
   SPACE PAGE STYLES
   ===================================== */

.space-page {
  background: var(--color-off-white);
}

/* =====================================
   SPACE INTRO
   ===================================== */

.space-intro {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.space-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.space-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
}

.space-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 25, 24, 0.3) 0%, transparent 50%);
}

.space-intro-content {
  position: relative;
  z-index: 10;
  color: var(--color-primary-white);
  text-align: center;
}

.space-breadcrumb {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
  letter-spacing: var(--letter-spacing-wide);
}

.space-breadcrumb a {
  color: inherit;
  transition: var(--transition-default);
}

.space-breadcrumb a:hover {
  opacity: 1;
}

.space-breadcrumb span {
  margin: 0 var(--space-sm);
}

.space-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  margin-bottom: var(--space-md);
  letter-spacing: var(--letter-spacing-tight);
}

.space-description {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  opacity: 0.9;
  letter-spacing: var(--letter-spacing-wide);
}

/* Door Animation */
.entrance-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.door-left,
.door-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--color-deep-black);
  transform-origin: center;
}

.door-left {
  left: 0;
  transform: translateX(-100%);
}

.door-right {
  right: 0;
  transform: translateX(100%);
}

/* =====================================
   ROOM GALLERY
   ===================================== */

.room-gallery {
  padding: var(--space-4xl) 0;
  background: var(--color-primary-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-lg);
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 25, 24, 0.15);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--color-light-gray);
}

.gallery-item.main {
  grid-row: 1 / -1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

/* =====================================
   FEATURED PRODUCTS
   ===================================== */

.featured-products {
  padding: var(--space-5xl) 0;
  background: var(--color-warm-white);
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  margin-top: var(--space-3xl);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  background: var(--color-primary-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 25, 24, 0.08);
  transition: var(--transition-slow);
}

.product-detail:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 25, 24, 0.12);
}

.product-detail:nth-child(even) {
  direction: rtl;
}

.product-detail:nth-child(even) .product-info {
  direction: ltr;
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-detail:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-2xl);
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  color: var(--color-deep-black);
  margin-bottom: var(--space-lg);
}

.product-description {
  font-size: var(--text-body);
  color: var(--color-warm-gray);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
}

.product-specs {
  margin-bottom: var(--space-xl);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-light-gray);
}

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

.spec-label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  min-width: 80px;
}

.spec-value {
  font-size: var(--text-small);
  color: var(--color-warm-gray);
  text-align: right;
  flex: 1;
  margin-left: var(--space-lg);
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-light-gray);
}

.btn-secondary:hover {
  background: var(--color-light-gray);
  border-color: var(--color-medium-gray);
}

/* =====================================
   SPACE NAVIGATION
   ===================================== */

.space-navigation {
  padding: var(--space-4xl) 0;
  background: var(--color-off-white);
}

.spaces-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.space-nav-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: pointer;
}

.space-nav-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(26, 25, 24, 0.2);
}

.space-nav-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.space-nav-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.space-nav-card:hover .space-nav-image img {
  transform: scale(1.1);
}

.space-nav-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--color-primary-white);
  transform: translateY(10px);
  transition: var(--transition-default);
}

.space-nav-card:hover .space-nav-info {
  transform: translateY(0);
}

.space-nav-info h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.space-nav-info p {
  font-size: var(--text-small);
  opacity: 0.9;
}


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

@media (max-width: 767px) {
  .space-title {
    font-size: var(--text-h1);
  }
  
  .room-gallery {
    padding: var(--space-2xl) 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
  }
  
  .gallery-item.main {
    grid-row: auto;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .product-detail:nth-child(even) {
    direction: ltr;
  }
  
  .product-info {
    padding: var(--space-lg);
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .spaces-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-detail {
    gap: var(--space-xl);
  }
  
  .product-info {
    padding: var(--space-xl);
  }
  
  .spaces-nav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}