/**
 * ==========================================================================
 * Arbuda Engineering — "Project Details Section" Design System & Styles
 * Architecture: Clean 2x3 Grid Gallery with Luxury Glass Reflection Sheen
 * Typography: 'Instrument Sans' (Headings & Body) & 'Lora' (Serif Accent) - Aligned with index.html
 * Theme: Clean Architectural White (#FFFFFF) matching index.html
 * Aesthetic: Sharp Zero-Radius Corners, No Distorting Zoom, High-End Glass Sweep
 * ==========================================================================
 */

:root {
  --background: #ffffff;
  --black: #151717;
  --text-color: #555555;
  --neutral-border: #e3e3e3;
  --transparent: transparent;
  --light-neutral-border: #f2f2f2;
  --main-color: #967767;
  --dark-color: #5f5551;
  --light-color: #ffcdb3;
  --white: #ffffff;
  --light-text: #ececec;
  --darker-neutral-border: #6d6d6d;
  --neutral-accent: #e0dedf;

  /* Typography aligned with index.html */
  --font-heading: 'Instrument Sans', 'FindSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Lora', 'Times New Roman', serif;
  --font-body: 'Instrument Sans', 'FindSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background-color: var(--background);
  color: var(--black);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   PROJECT DETAILS SECTION CORE LAYOUT
   ========================================================================== */
.project-details-section,
.property-detail-section {
  padding-top: 11rem;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-bottom: 5rem;
  width: 100%;
  background-color: var(--background);
}

.project-details-container,
.property-detail-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.project-details-wrapper,
.property-wrapper {
  display: flex;
  flex-direction: column;
  grid-column-gap: 4rem;
  grid-row-gap: 4rem;
  width: 100%;
}

/* ==========================================================================
   2x3 ARCHITECTURAL PHOTO GALLERY GRID (PC & TABLET)
   Sharp Zero-Radius Edges • No Zoom Distortion • Luxury Glass Sheen Hover
   ========================================================================== */
.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.5rem;
  width: 100%;
}

.property-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  background-color: #f0f2f5;
  border: 1px solid var(--neutral-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.property-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transform: none !important;
}

/* ==========================================================================
   GLASS REFLECTION SHEEN EFFECT (1:1 IDENTICAL WITH PROTFOLIE.HTML)
   Sweeps 45° across the photograph on hover via GPU-accelerated translate3d
   ========================================================================== */
.property-gallery-item::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.08) 46%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(255, 255, 255, 0.08) 54%,
      rgba(255, 255, 255, 0) 58%);
  transform: translate3d(55%, -55%, 0);
  transition: transform 1000ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Hover & Focus In: Sweeps from Top-Right to Bottom-Left */
.property-gallery-item:hover::after,
.property-gallery-item:focus-visible::after {
  transform: translate3d(-55%, 55%, 0);
}

/* Video gallery item — suppress sheen overlay so YouTube controls are accessible */
.property-gallery-item--video::after {
  display: none;
}

/* Responsive 16:9 YouTube iframe embed container */
.property-gallery-item--video {
  aspect-ratio: auto;
  background-color: #000;
  padding: 0;
}

.yt-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.yt-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   BOTTOM DETAILS CONTENT & EDITORIAL TYPOGRAPHY
   ========================================================================== */
.property-detail-bottom-wrapper {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 3rem;
  position: relative;
  width: 100%;
}

.property-detail-right-inner-wrapper {
  display: flex;
  flex-direction: column;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  width: 100%;
  max-width: 900px;
}

.property-detail-title-wrapper {
  display: flex;
  flex-direction: column;
  grid-column-gap: 1.25rem;
  grid-row-gap: 1.25rem;
}

.property-detail-title-inner-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.property-name {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--black);
}

.property-name.dark {
  color: var(--black);
}

.property-location-detail-wrapper {
  display: flex;
  flex-direction: row;
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.property-info-bold {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--main-color);
}

.property-detail-location {
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
}

.property-detail-title-wrapper p {
  color: var(--text-color);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (PC, TABLET, MOBILE)
   ========================================================================== */

/* Large Desktop */
@media screen and (min-width: 1440px) {
  .project-details-section,
  .property-detail-section {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* Tablet (2x3 Grid Preserved) */
@media screen and (max-width: 991px) {
  .project-details-section,
  .property-detail-section {
    padding: calc(var(--header-h-mobile, 8.4rem) + 3.5rem) 2rem 4rem;
  }

  .project-details-wrapper,
  .property-wrapper {
    grid-column-gap: 2.5rem;
    grid-row-gap: 2.5rem;
  }

  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.25rem;
  }

  .property-name {
    font-size: 34px;
  }
}

/* Mobile (1 Column Stacked) */
@media screen and (max-width: 767px) {
  .project-details-section,
  .property-detail-section {
    padding: calc(var(--header-h-mobile, 8.4rem) + 3rem) 1.25rem 3.5rem;
  }

  .property-gallery-grid {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }

  .property-gallery-item {
    aspect-ratio: 16 / 10;
  }

  .property-name {
    font-size: 28px;
  }

  .property-detail-title-wrapper p {
    font-size: 15px;
  }
}

@media screen and (max-width: 479px) {
  .project-details-section,
  .property-detail-section {
    padding: calc(var(--header-h-mobile, 8.4rem) + 2.5rem) 1rem 3rem;
  }

  .property-name {
    font-size: 24px;
  }
}

/* ==========================================================================
   PROJECT DETAILS SKELETON SHIMMER SYSTEM (ZERO CLS)
   ========================================================================== */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    #e8eaed 0%,
    #f4f6f8 50%,
    #e8eaed 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-gallery-item {
  pointer-events: none;
  background-color: #e8eaed;
  border: 1px solid var(--neutral-border);
}

.skeleton-gallery-item::after {
  display: none !important;
}

.skeleton-line {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #e0e2e6 0%,
    #f0f2f5 50%,
    #e0e2e6 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-title-main {
  height: 36px;
  width: 60%;
  margin-bottom: 0.5rem;
}

.skeleton-location-main {
  height: 18px;
  width: 30%;
  display: inline-block;
}

.skeleton-desc-line {
  height: 16px;
  width: 95%;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   PROJECT DETAILS ERROR & NOT FOUND STATES
   ========================================================================== */
.project-state-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background-color: #ffffff;
  border: 1px solid var(--neutral-border);
  box-sizing: border-box;
}

.project-state__icon {
  width: 4rem;
  height: 4rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-state__icon svg {
  width: 100%;
  height: 100%;
}

.project-state__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}

.project-state__desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.project-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.project-state__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.4rem;
  background-color: var(--black);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-state__btn:hover {
  background-color: #333333;
  color: #ffffff;
  transform: translateY(-2px);
}

.project-state__btn--secondary {
  background-color: transparent;
  color: var(--black);
  border-color: var(--neutral-border);
}

.project-state__btn--secondary:hover {
  background-color: #f5f5f5;
  color: var(--black);
}
