/* === PROJECT DETAIL PAGE STYLES === */

/* Hero */
.project-hero {
  position: relative;
  padding: 11rem 2rem 5rem;
  overflow: hidden;
  isolation: isolate;
}
.project-hero--compact {
  padding: 7.5rem 2rem 2rem;
}
.project-hero--compact .ph-back {
  margin-bottom: 1.5rem;
}
.project-hero--compact .ph-meta {
  margin-bottom: 1rem;
}
.project-hero--compact .ph-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 0.75rem;
}
.project-hero--compact .ph-sub {
  font-size: 1rem;
  line-height: 1.45;
}

/* Hero + video */
.project-hero--with-video {
  padding: 6.75rem 2rem 1.75rem;
}
.project-hero--with-video .container {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.5rem;
  row-gap: 0;
  align-items: start;
}
.project-hero--with-video .ph-back,
.project-hero--with-video .ph-meta,
.project-hero--with-video .ph-title,
.project-hero--with-video .ph-sub {
  grid-column: 1;
}
.project-hero--with-video .ph-back {
  margin-top: 1rem;
}
.project-hero--with-video .ph-sub {
  margin-bottom: 0;
}

/* Video */
.video-frame {
  position: relative;
  width: 560px;
  max-width: 56vw;
  height: 360px;
  margin: 0 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-sizing: border-box;
  contain: layout size style;
  isolation: isolate;
}
.project-hero--with-video .video-frame {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: start;
  margin-top: 0.75rem;
}
.video-frame .video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  object-position: center 35%;
  border: none;
  display: block;
}

.video-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  line-height: 0;
}
.ph-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 133, 79, 0.35) 0%, transparent 50%),
              radial-gradient(circle at 80% 60%, rgba(201, 169, 97, 0.18) 0%, transparent 55%),
              linear-gradient(180deg, #051d12 0%, #02140c 100%);
  z-index: -2;
}
.ph-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -1;
}
.ph-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 50px;
  background: rgba(2, 20, 12, 0.6);
  backdrop-filter: blur(10px);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  transition: all 0.3s;
}
.ph-back:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateX(-4px);
}
.ph-back svg { width: 16px; height: 16px; }

.ph-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ph-tag {
  background: var(--gold);
  color: #2a1a08;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-radius: 50px;
  text-transform: uppercase;
}
.ph-loc {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  border-radius: 50px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.ph-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.ph-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ph-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.5;
}

/* Section wrapper */
.project-section {
  padding: 5rem 2rem;
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.fact {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.fact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 30%;
  background: var(--gold);
  transition: height 0.4s;
}
.fact:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.fact:hover::before { height: 100%; }
.fact-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}
.fact-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}
.fact-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Description */
.proj-desc {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.pd-head .section-num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.pd-head .section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pd-head .section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.pd-body p {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

/* Amenities / social facilities */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.amenity {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  transition: border-color 0.3s, transform 0.3s;
}
.amenity:hover {
  border-color: rgba(201, 169, 97, 0.35);
  transform: translateY(-2px);
}
.am-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
}
.am-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.amenity h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.amenity p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gal-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: all 0.4s;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-item:hover {
  border-color: var(--gold);
  transform: scale(1.01);
}
.gal-lg {
  grid-column: span 2;
  grid-row: span 2;
}
.gal-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  opacity: 0.5;
}
.gal-ph svg {
  width: 60px;
  height: 60px;
}
.gal-ph span {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Video — landscape fallback */
.video-wrap:not(.video-wrap--portrait) {
  max-width: 520px;
  width: 90%;
  margin: 0 auto;
}
.video-wrap:not(.video-wrap--portrait) .video-player {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #000;
}
.video-ph {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
  opacity: 0.6;
  background:
    radial-gradient(circle at center, rgba(201,169,97,0.08) 0%, transparent 70%),
    var(--bg-2);
}
.video-ph svg {
  width: 80px;
  height: 80px;
}
.video-ph span {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.project-hero--bestepe .ph-bg {
  background: linear-gradient(135deg, #1a3a20 0%, #00854f 100%);
}

/* Responsive */
@media (max-width: 1024px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-desc { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal-lg { grid-column: span 2; grid-row: span 1; }
}
@media (min-width: 769px) {
  .project-hero--with-video .container {
    grid-template-columns: minmax(0, 1fr) 600px;
  }
  .project-hero--with-video .video-frame {
    width: 600px;
    max-width: 600px;
    height: 400px;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .project-hero--with-video {
    padding: 5.5rem 0.875rem 1rem;
  }
  .project-hero--with-video .container {
    grid-template-columns: 1fr 66%;
    column-gap: 0.35rem;
  }
  .project-hero--with-video .ph-back {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
  }
  .project-hero--with-video .ph-meta {
    margin-bottom: 0.6rem;
  }
  .project-hero--with-video .ph-title {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem);
    margin-bottom: 0.4rem;
  }
  .project-hero--with-video .ph-sub {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .project-hero--with-video .video-frame {
    width: 100%;
    max-width: 100%;
    height: 255px;
    margin: 0.65rem 0 0 auto;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .facts-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gal-lg { grid-column: auto; }
  .project-hero { padding: 7rem 0.875rem 1.5rem; }
  .project-hero--with-video {
    padding: 5rem 0.875rem 0.875rem;
    overflow-x: hidden;
  }
  .project-hero--with-video .container {
    grid-template-columns: 1fr 72%;
    column-gap: 0.35rem;
  }
  .project-hero--with-video .ph-back {
    margin-top: 0.65rem;
    margin-bottom: 0.5rem;
  }
  .project-hero--with-video .ph-meta {
    margin-bottom: 0.45rem;
    gap: 0.4rem;
  }
  .project-hero--with-video .ph-tag,
  .project-hero--with-video .ph-loc {
    font-size: 0.6rem;
    padding: 0.28rem 0.6rem;
  }
  .project-hero--with-video .ph-title {
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: 0;
  }
  .project-hero--with-video .ph-sub {
    display: none;
  }
  .project-hero--with-video .video-frame {
    width: 100%;
    max-width: 100%;
    height: 230px;
    margin: 0.5rem 0 0 auto;
    border-radius: 8px;
  }
  .project-section { padding: 2.25rem 0.875rem; }
}
