/* Subpage styles — extends style.css for individual room/space pages */

.subpage-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
}

.subpage-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.1) sepia(0.1);
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 60px;
  color: var(--cream);
}

.subpage-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 8px;
}

.subpage-hero-content .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.subpage-hero-content .breadcrumb a {
  color: var(--cream);
  opacity: 0.7;
}

.subpage-hero-content .breadcrumb a:hover {
  opacity: 1;
}

.subpage-hero .hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
}

.subpage-hero .hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Description section */
.subpage-desc {
  padding: 60px 0 40px;
  background: var(--cream);
}

.subpage-desc p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: center;
}

/* Photo gallery */
.subpage-gallery {
  padding: 0 0 80px;
  background: var(--cream);
}

.subpage-gallery-grid {
  columns: 3;
  column-gap: 12px;
}

.subpage-gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.subpage-gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
  filter: sepia(0.05) saturate(1.05);
  transition: transform 0.5s, filter 0.5s;
}

.subpage-gallery-grid .gallery-item:hover img {
  transform: scale(1.04);
  filter: sepia(0) saturate(1.2) brightness(1.05);
}

/* Back link */
.subpage-back {
  text-align: center;
  padding: 0 0 60px;
  background: var(--cream);
}

.subpage-back a {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.subpage-back a:hover {
  background: var(--orange);
  color: white;
}

@media (max-width: 968px) {
  .subpage-gallery-grid { columns: 2; }
}

@media (max-width: 640px) {
  .subpage-hero { height: 35vh; min-height: 250px; }
  .subpage-hero-content { padding-bottom: 40px; }
  .subpage-gallery-grid { columns: 2; column-gap: 8px; }
  .subpage-gallery-grid .gallery-item { margin-bottom: 8px; }
  .subpage-desc { padding: 40px 0 24px; }
  .subpage-desc p { font-size: 1rem; }
  .subpage-gallery { padding-bottom: 48px; }
}
