/* =============================================
   SERVICE DETAIL COMPONENT STYLING
   ============================================= */

.detail-page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* =============================================
   MOBILE DETAIL HERO
   ============================================= */
.mobile-detail-hero {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: var(--dark-charcoal);
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-header-actions {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 10;
}

.floating-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark-charcoal);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.floating-action-btn.fav {
  background-color: rgba(255,255,255,0.95);
}
.floating-action-btn.fav i { color: #e53e3e; }

.floating-action-btn:active {
  transform: scale(0.92);
  background-color: #ffffff;
}

.hero-title-area {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  color: #ffffff;
}

.hero-service-title {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =============================================
   PAGE COLUMNS & BLOCKS
   ============================================= */
.detail-columns-wrapper {
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.detail-left-column {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.web-detail-header {
  display: none; /* Mobile view doesn't show this header */
}

/* =============================================
   GALLERY THUMBNAILS (Mobile Horizontal)
   ============================================= */
.detail-gallery-thumbnails {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.thumbnail-card {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.thumbnail-card.active {
  border-color: var(--primary-green);
  box-shadow: 0 4px 10px rgba(11, 128, 67, 0.2);
}

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

/* =============================================
   RATING META
   ============================================= */
.detail-meta-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.rating-star-icon {
  color: #fb0;
  font-size: 16px;
}

.rating-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.reviews-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   DESCRIPTION
   ============================================= */
.detail-description-section {
  margin-bottom: 24px;
}

.detail-description-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

/* =============================================
   KEY FEATURE CHECKLISTS
   ============================================= */
.detail-features-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  background-color: #f8fafc;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #edf2f7;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-icon-wrapper {
  color: var(--primary-green);
  font-size: 16px;
}

.checklist-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-charcoal);
}

/* =============================================
   MOBILE STICKY ACTION BAR
   ============================================= */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1.5px solid #edf2f7;
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
}

.mobile-cta-btn {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-cta-btn.solid {
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(11, 128, 67, 0.2);
}

.mobile-cta-btn.solid:active {
  background-color: #096836;
}

.mobile-cta-btn.outline {
  background-color: #ffffff;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.mobile-cta-btn.outline:active {
  background-color: #f0fff4;
}

/* =============================================
   WEB ONLY CTA PANEL (Right column)
   ============================================= */
.detail-right-column {
  display: none; /* Mobile view doesn't show this column */
}

/* =============================================
   DESKTOP RESPONSIVE STYLE
   ============================================= */
/* Web-Only Large Featured Image */
.web-featured-image-wrapper {
  display: none; /* hide on mobile */
}

@media (min-width: 768px) {
  /* Hide mobile-specific hero elements */
  .mobile-detail-hero {
    display: none !important;
  }
  .mobile-sticky-action-bar {
    display: none !important;
  }

  .detail-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
  }

  .web-featured-image-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .web-featured-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease-in-out;
  }

  /* Desktop Two-Column Layout */
  .detail-columns-wrapper {
    padding: 0;
    flex-direction: row;
    gap: 48px;
  }

  .detail-left-column {
    flex: 1.4;
  }

  .detail-right-column {
    display: block;
    flex: 0.8;
  }

  /* Web header */
  .web-detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .web-back-link {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    width: max-content;
    transition: var(--transition-smooth);
  }

  .web-back-link:hover {
    color: #096836;
    transform: translateX(-2px);
  }

  .web-service-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-charcoal);
  }

  /* Gallery Grid */
  .detail-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    overflow-x: visible;
  }

  .thumbnail-card {
    width: 100%;
    height: 120px;
    border-radius: 12px;
  }

  .detail-description-text {
    font-size: 15px;
  }

  /* Sticky CTA panel */
  .sticky-cta-panel {
    position: sticky;
    top: 100px;
    background-color: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cta-panel-price-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .cta-price-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .cta-price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-charcoal);
  }

  .cta-panel-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--dark-charcoal);
    font-weight: 600;
  }

  .cta-panel-rating-row i {
    color: #fb0;
  }

  .cta-panel-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cta-solid-btn,
  .cta-outline-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .cta-solid-btn {
    background-color: var(--primary-green);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 128, 67, 0.2);
  }

  .cta-solid-btn:hover {
    background-color: #096836;
    transform: translateY(-1px);
  }

  .cta-outline-btn {
    background-color: #ffffff;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
  }

  .cta-outline-btn:hover {
    background-color: #f0fff4;
    transform: translateY(-1px);
  }

  .cta-panel-note {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }
}
