/* Project View - Pixel-Precise Showcase Layout */

body.page-project-view {
  background: #ffffff;
}

.pv-wrap {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #101223;
  box-sizing: border-box;
}

/* Breadcrumb Navigation */
.pv-breadcrumbs {
  margin-bottom: 24px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pv-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pv-breadcrumbs a:hover {
  color: #bf2026;
  text-decoration: underline;
}

/* Two-column showcase layout */
.pv-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

/* Left Column: Gallery */
.pv-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.pv-hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* Overlay Navigation Buttons on Hero */
.pv-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 5;
  padding: 0;
  outline: none;
}

.pv-slider-btn:hover {
  background: rgba(17, 24, 39, 0.9);
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.pv-slider-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.pv-slider-btn.prev {
  left: 16px;
}

.pv-slider-btn.next {
  right: 16px;
}

.pv-slider-btn svg {
  width: 20px;
  height: 20px;
}

/* Thumbnails Grid - Consistent 3 Columns */
.pv-thumbs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.pv-thumb-btn {
  position: relative;
  padding: 0;
  margin: 0;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  height: 180px;
  aspect-ratio: 1 / 1;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.pv-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-thumb-btn:hover {
  opacity: 0.88;
}

.pv-thumb-btn.active {
  border-color: #111827;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Right Column: Project Info */
.pv-details-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pv-title {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.pv-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0 0 24px;
  border: none;
  width: 100%;
}

/* Specifications Card */
.pv-spec-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pv-spec-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.pv-spec-label {
  font-weight: 600;
  color: #374151;
  min-width: 175px;
  flex-shrink: 0;
}

.pv-spec-value {
  color: #4b5563;
  font-weight: 500;
}

.pv-metafield-link {
  color: #bf2026;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.pv-metafield-link:hover {
  color: #991b1b;
  text-decoration-color: #991b1b;
}

/* Description */
.pv-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 32px;
}

.pv-desc p {
  margin: 0 0 16px;
}

.pv-desc p:last-child {
  margin-bottom: 0;
}

/* Share Row */
.pv-share-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.pv-share-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.pv-share-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pv-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.pv-share-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.pv-share-btn img.icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Bottom Deployments Section */
.pv-deployments-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #f3f4f6;
  width: 100%;
}

.pv-deployments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.pv-deployments-title {
  font-size: 32px;
  font-weight: 900;
  color: #111827;
  margin: 0;
  letter-spacing: -0.5px;
}

.pv-deployments-nav {
  display: flex;
  gap: 8px;
}

/* Deployment Carousel */
.installation-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.installation-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 0 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.installation-carousel::-webkit-scrollbar {
  display: none;
}

.installation-card {
  flex: 0 0 calc((100% - (16px * 3)) / 4);
  min-width: 290px;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.installation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #eeeeee;
}

.installation-card-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

.installation-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.installation-card:hover .installation-card-media img {
  transform: scale(1.05);
}

.installation-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.installation-card:hover .installation-card-overlay,
.installation-card:focus .installation-card-overlay,
.installation-card:focus-visible .installation-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.installation-card-overlay span,
.installation-card-overlay .uk-pill {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  box-shadow: none !important;
  transform: none !important;
  display: inline-block;
}

.installation-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.installation-card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.installation-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.installation-spec-item.full-width {
  grid-column: 1 / -1;
}

.installation-spec-item .spec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9ca3af;
}

.installation-spec-item .spec-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-env-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.spec-env-dot.indoor {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.spec-env-dot.outdoor {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .installation-card {
    flex: 0 0 320px;
  }
}

@media (max-width: 1024px) {
  .pv-wrap {
    padding-top: 100px;
  }

  .pv-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 60px;
  }

  .pv-hero-slider {
    height: 420px;
  }

  .installation-card {
    flex: 0 0 310px;
  }
}

@media (max-width: 768px) {
  .pv-wrap {
    padding: 90px 16px 60px;
  }

  .pv-title {
    font-size: 26px;
  }

  .pv-hero-slider {
    height: 300px;
  }

  .pv-thumb-btn {
    height: 140px;
    aspect-ratio: 1 / 1;
  }

  .pv-deployments-title {
    font-size: 24px;
  }

  .installation-card {
    flex: 0 0 280px;
  }

  .installation-card-media {
    height: 200px;
  }

  .installation-card-body {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .pv-hero-slider {
    height: 240px;
  }

  .pv-thumb-btn {
    height: 100px;
    aspect-ratio: 1 / 1;
  }

  .pv-spec-box {
    padding: 18px 20px;
  }

  .pv-spec-row {
    gap: 12px;
  }

  .pv-spec-label {
    min-width: 140px;
  }
}