/* Spa Detail Page Styles */
:root {
  --rainbow-purple: #750787;
  --rainbow-blue: #0066cc;
  --dark-text: #333;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.spa-detail-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* 店家資料 Section */
.spa-profile {
  margin-bottom: 3rem;
}

.spa-profile h2 {
  color: var(--rainbow-purple);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rainbow-purple);
}

.profile-content {
  display: flex;
  gap: 2rem;
}

.spa-image-container {
  width: 55%;
  position: relative;
}

/* Store Image Slider - Fixed Version */
store-image-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.store-image-slider .slides-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.store-image-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.store-image-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Navigation buttons */
.store-image-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rainbow-purple);
  font-size: 1.2rem;
}

.store-image-slider button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.store-image-slider .prev {
  left: 15px;
}

.store-image-slider .next {
  right: 15px;
}

/* Dots navigation */
.store-image-slider .slider-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.store-image-slider .slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.store-image-slider .slider-dots .dot.active {
  background: white;
  transform: scale(1.2);
}

/* Adjusted meta section */
.spa-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 40%;
}

/* About Section */
.about-section h3 {
  color: var(--rainbow-purple);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.about-section p {
  line-height: 1.6;
  color: var(--dark-text);
}

/* Review Section */
.review-section {
  margin-top: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-section h3 {
  color: var(--rainbow-purple);
  font-size: 1.4rem;
  margin: 0;
}

.go-to-btn {
  background: var(--rainbow-purple);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.go-to-btn:hover {
  background: var(--rainbow-blue);
  transform: translateY(-2px);
}

.go-to-btn i {
  font-size: 0.8rem;
}

.no-reviews {
  color: #666;
  font-style: italic;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.social-icons a {
  color: var(--rainbow-purple);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--rainbow-blue);
  transform: translateY(-3px);
}

/* Staff Section - Complete Styling */
.staff-section {
  margin-bottom: 3rem;
}

.staff-section h2 {
  color: var(--rainbow-purple);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rainbow-purple);
}

.staff-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

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

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.staff-photo {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Default photo fallback */
.staff-photo.default-photo {
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rainbow-purple);
  font-size: 3rem;
}

/* Staff Information Overlay */
.staff-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  z-index: 2;
}

.staff-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  line-height: 1.3;
}

.staff-status {
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
  color: #eee;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  font-weight: 400;
}

/* Hover "View Details" Button */
.staff-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(117, 7, 135, 0.9);
  color: white;
  text-align: center;
  padding: 0.8rem;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 3;
  font-size: 0.9rem;
  font-weight: 500;
}

.staff-card:hover .staff-hover {
  transform: translateY(0);
}


/* Video Section */
.video-section {
  margin-bottom: 3rem;
}

.video-section h2 {
  color: var(--rainbow-purple);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rainbow-purple);
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-content {
    flex-direction: column;
  }
  
  .spa-image-container {
    width: 100%;
  }
  
  .spa-meta {
    min-width: 100%;
  }
  
  .staff-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.2rem;
  }
  
  .staff-info {
    padding: 0.8rem 0.6rem;
  }
  
  .staff-info h3 {
    font-size: 1rem;
  }
  
  .staff-status {
    font-size: 0.8rem;
  }
  
  .staff-hover {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  .store-image-slider {
    padding-bottom: 75%; /* More square aspect ratio on tablet */
  }
}

@media (max-width: 480px) {
  .spa-image-container {
    min-height: 250px;
  }
  
  .social-icons a {
    font-size: 1.3rem;
  }
  
  .video-gallery {
    grid-template-columns: 1fr;
  }
  
  .go-to-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
  
  .store-image-slider {
    padding-bottom: 100%; /* Square aspect ratio on mobile */
  }
  
  .store-image-slider button {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .store-image-slider .slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .staff-gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }
  
  .staff-section h2 {
    font-size: 1.6rem;
  }
}