/* =============================================================
   PROJECT — project detail page
   Gallery, spec table, amenities, landmarks, developer card and
   the sticky enquiry sidebar. Only loaded by project.html.
   ============================================================= */

/* ============ BREADCRUMB ============ */
.crumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted)
}

.crumb__in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.crumb a:hover {
  color: var(--teal)
}

.crumb span {
  color: var(--ink-2)
}

/* ============ PROJECT HERO ============ */
.phero {
  padding: 24px 0 8px
}

.phero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px
}

.gal__main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 340px
}

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

.gal__main .badge {
  position: absolute;
  top: 14px;
  left: 14px
}

.gal__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(var(--veil), .6);
  padding: 6px 11px;
  border-radius: 6px;
  backdrop-filter: blur(6px)
}

.gal__thumbs {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  height: 340px
}

.gal__thumbs a {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden
}

.gal__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s
}

.gal__thumbs a:hover img {
  transform: scale(1.06)
}

.gal__more {
  position: absolute;
  inset: 0;
  background: rgba(var(--veil), .62);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700
}

/* ============ TITLE ROW ============ */
.ptitle {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0 0
}

.ptitle h1 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0
}

.ptitle h1 em {
  font-style: normal;
  color: var(--teal)
}

.ptitle__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0
}

.ptitle__loc svg {
  width: 13px;
  height: 13px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  flex: none
}

.ptitle__tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap
}

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--ink-2)
}

.tag--teal {
  background: var(--teal-soft);
  color: var(--teal)
}

.ptitle__price {
  text-align: right
}

.ptitle__price small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted)
}

.ptitle__price b {
  font-size: 23px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2
}

.ptitle__price .btn {
  margin-top: 10px
}

/* ============ PAGE GRID ============ */
.pj {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  padding: 26px 0 64px
}

.pj__main {
  min-width: 0
}

/* lets the wide spec table shrink instead of overflowing the grid */
.pj__side {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

/* ============ CARD + SECTION HEADING ============ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px
}

.card+.card {
  margin-top: 16px
}

.sec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px
}

.sec-h::before {
  content: "";
  width: 3px;
  height: 19px;
  border-radius: 2px;
  background: var(--teal);
  flex: none
}

.sec-h h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0
}

.sec-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px 13px
}

/* ============ FACT STRIP ============ */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden
}

.fact {
  background: var(--white);
  padding: 13px 15px
}

.fact small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px
}

.fact b {
  font-size: 13.5px;
  font-weight: 700
}

/* ============ OVERVIEW ============ */
.prose {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0
}

.prose+.prose {
  margin-top: 10px
}

/* ============ SPEC TABLE ============ */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px
}

.spec th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0 12px 9px;
  border-bottom: 1px solid var(--line)
}

.spec td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line)
}

.spec tr:last-child td {
  border-bottom: 0
}

.spec tbody tr:hover {
  background: var(--bg)
}

.spec td b {
  font-weight: 700
}

.spec td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--navy)
}

/* ============ AMENITIES ============ */
.amen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.amen div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 12px;
  transition: .2s
}

.amen div:hover {
  border-color: var(--teal)
}

.amen svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.7;
  flex: none
}

/* ============ LANDMARKS ============ */
.lands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.land {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: .2s
}

.land:hover {
  border-color: var(--teal)
}

.land__pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  flex: none
}

.land__pin svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8
}

.land__txt {
  flex: 1;
  min-width: 0
}

.land__txt small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

.land__txt b {
  font-size: 13px;
  font-weight: 700
}

.land__km {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-2);
  padding: 5px 10px;
  border-radius: 6px;
  flex: none
}

/* ============ DEVELOPER ============ */
.dev {
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.dev__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none
}

.dev__logo svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6
}

.dev h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0
}

.dev__meta {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 10px
}

.dev p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0
}

.dev__stats {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.dev__stats b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--teal)
}

.dev__stats small {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

/* ============ ENQUIRY FORM ============ */
.enq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden
}

.enq__top {
  background: var(--navy);
  padding: 15px 18px
}

.enq__top small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent)
}

.enq__top h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 0
}

.enq__body {
  padding: 18px
}

.field+.field {
  margin-top: 14px
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink)
}

.field input::placeholder {
  color: var(--muted)
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white)
}

.field .hint {
  font-size: 10.5px;
  color: var(--muted);
  margin: 6px 0 0
}

.field--tel {
  display: flex;
  gap: 8px
}

.field--tel .cc {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 600;
  flex: none
}

.enq .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px
}

.enq__note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.5
}

/* ============ DIRECT CONTACT ============ */
.dcon {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px
}

.dcon>span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line)
}

.drow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  margin-top: 9px;
  border: 1px solid var(--line);
  transition: .2s
}

.drow:hover {
  border-color: var(--teal);
  background: var(--bg)
}

.drow__ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none
}

.drow__ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke-width: 1.8
}

.drow--call .drow__ico {
  background: var(--teal-soft)
}

.drow--call .drow__ico svg {
  stroke: var(--teal)
}

.drow--wa {
  background: rgba(37, 211, 102, .06);
  border-color: rgba(37, 211, 102, .28)
}

.drow--wa .drow__ico {
  background: var(--whatsapp)
}

.drow--wa .drow__ico svg {
  stroke: #fff
}

.drow__txt {
  flex: 1;
  min-width: 0
}

.drow__txt small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

.drow__txt b {
  font-size: 13.5px;
  font-weight: 700
}

.drow__go {
  font-size: 14px;
  color: var(--muted);
  flex: none
}

/* ============ RESPONSIVE ============ */
@media (max-width:1024px) {
  .pj {
    grid-template-columns: 1fr
  }

  .pj__side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap
  }

  .pj__side>* {
    flex: 1;
    min-width: 280px
  }

  .phero__grid {
    grid-template-columns: 1fr
  }

  .gal__thumbs {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
    height: 96px
  }

  .facts,
  .amen {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .ptitle {
    flex-direction: column;
    align-items: flex-start
  }

  .ptitle__price {
    text-align: left
  }

  .ptitle h1 {
    font-size: 22px
  }

  .facts,
  .amen,
  .lands {
    grid-template-columns: 1fr
  }

  .gal__main {
    height: 230px
  }

  .pj__side {
    flex-direction: column
  }

  .spec {
    font-size: 11.5px
  }

  .spec th,
  .spec td {
    padding-left: 8px;
    padding-right: 8px
  }
}

/* ============ GALLERY MODAL ============ */
.gal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(11 46 89 / 61%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.gal-modal--active {
  opacity: 1;
  pointer-events: auto;
}

.gal-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gal-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gal-modal__close svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
}

.gal-modal__counter {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.gal-modal__img-container {
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal-modal__img-container img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.gal-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gal-modal__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gal-modal__nav svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.gal-modal__prev {
  left: 24px;
}

.gal-modal__next {
  right: 24px;
}

@media (max-width:640px) {
  .gal-modal__nav {
    width: 40px;
    height: 40px;
  }

  .gal-modal__nav svg {
    width: 20px;
    height: 20px;
  }

  .gal-modal__prev {
    left: 10px;
  }

  .gal-modal__next {
    right: 10px;
  }

  .gal-modal__img-container {
    max-width: 100%;
  }
}