:root {
  --apd-navy: #212121;
  --apd-navy-dark: #212121;
  --apd-gold: #957A56;
  --apd-gold-dark: #957A56;
  --apd-paper: #FCFCFC;
  --apd-white: #FCFCFC;
  --apd-text: #212121;
  --apd-muted: #212121;
  --apd-border: rgba(16, 40, 63, 0.11);
  --apd-shadow: 0 18px 55px rgba(13, 31, 48, 0.09);
  --apd-shadow-soft: 0 10px 30px rgba(13, 31, 48, 0.07);
  --apd-radius: 22px;
}

body.ancor-premium-project {
  background:
    radial-gradient(circle at 100% 20%, rgba(199, 155, 82, 0.08), transparent 30%),
    #FCFCFC;
  color: var(--apd-text);
}

.ancor-premium-project .project-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.ancor-premium-project .project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(7, 22, 35, 0.94) 0%,
      rgba(7, 22, 35, 0.74) 48%,
      rgba(7, 22, 35, 0.25) 100%
    );
}

html[dir="rtl"] .ancor-premium-project .project-hero::before {
  background:
    linear-gradient(
      270deg,
      rgba(7, 22, 35, 0.94) 0%,
      rgba(7, 22, 35, 0.74) 48%,
      rgba(7, 22, 35, 0.25) 100%
    );
}

.ancor-premium-project .project-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 22, 35, 0.54), transparent);
}

.ancor-premium-project .project-hero-content {
  width: 100%;
  padding-top: 125px;
  padding-bottom: 72px;
}

.ancor-premium-project .project-hero-content > * {
  max-width: 760px;
}

.ancor-premium-project .breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.ancor-premium-project .breadcrumb a,
.ancor-premium-project .breadcrumb span {
  color: inherit;
}

.ancor-premium-project .project-hero h1 {
  margin: 0 0 18px;
  color: #FCFCFC;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -1.8px;
  text-wrap: balance;
}

.ancor-premium-project .project-hero-content > p {
  max-width: 690px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.ancor-premium-project .project-hero .btn {
  min-height: 47px;
  padding: 11px 22px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
}

.ancor-premium-project .project-hero .btn.gold {
  border-color: var(--apd-gold);
  background: var(--apd-gold);
  color: #FCFCFC;
  box-shadow: 0 13px 35px rgba(199, 155, 82, 0.28);
}

.ancor-premium-project .project-hero .btn.white {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #FCFCFC;
  backdrop-filter: blur(10px);
}

.apd-summary {
  position: relative;
  z-index: 6;
  margin-top: -34px;
  margin-bottom: 26px;
}

.apd-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--apd-border);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--apd-shadow);
  backdrop-filter: blur(16px);
}

.apd-fact {
  position: relative;
  min-width: 0;
  padding: 21px 18px;
  text-align: center;
}

.apd-fact:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  inset-inline-end: 0;
  width: 1px;
  background: var(--apd-border);
}

.apd-fact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--apd-muted);
  font-size: 11px;
  font-weight: 750;
}

.apd-fact-value {
  display: block;
  overflow: hidden;
  color: var(--apd-navy);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ancor-premium-project .project-nav {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 auto 24px;
  padding: 8px;
  border: 1px solid var(--apd-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--apd-shadow-soft);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.ancor-premium-project .project-nav::-webkit-scrollbar {
  display: none;
}

.ancor-premium-project .project-nav a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 11px;
  color: var(--apd-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.22s ease;
}

.ancor-premium-project .project-nav a:hover {
  background: rgba(199, 155, 82, 0.12);
  color: var(--apd-gold-dark);
}

.ancor-premium-project .project-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.ancor-premium-project .project-page-layout > aside,
.ancor-premium-project .project-sidebar {
  position: sticky;
  top: 145px;
}

.ancor-premium-project .project-main-card,
.ancor-premium-project .project-side-card,
.ancor-premium-project .sidebar-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 29px;
  border: 1px solid var(--apd-border);
  border-radius: var(--apd-radius);
  background: var(--apd-white);
  box-shadow: var(--apd-shadow-soft);
}

.ancor-premium-project .project-main-card::before {
  content: attr(data-apd-label);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(199, 155, 82, 0.12);
  color: var(--apd-gold-dark);
  font-size: 11px;
  font-weight: 850;
}

.ancor-premium-project .project-main-card:not([data-apd-label])::before {
  display: none;
}

.ancor-premium-project .project-main-card h2,
.ancor-premium-project .project-side-card h2,
.ancor-premium-project .project-side-card h3 {
  margin-top: 0;
  color: var(--apd-navy);
  font-weight: 850;
  letter-spacing: -0.4px;
}

.ancor-premium-project .project-main-card h2 {
  margin-bottom: 13px;
  font-size: clamp(23px, 3vw, 31px);
}

.ancor-premium-project .project-main-card p,
.ancor-premium-project .project-side-card p {
  color: var(--apd-muted);
  line-height: 1.9;
}

.ancor-premium-project .project-main-card:hover,
.ancor-premium-project .project-side-card:hover {
  border-color: rgba(199, 155, 82, 0.3);
}

.ancor-premium-project table {
  width: 100%;
  overflow: hidden;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid var(--apd-border);
  border-radius: 16px;
  background: #FCFCFC;
}

.ancor-premium-project th {
  padding: 13px 15px;
  background: var(--apd-navy);
  color: #FCFCFC;
  font-size: 12px;
  font-weight: 800;
  text-align: start;
}

.ancor-premium-project td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--apd-border);
  color: #465564;
  font-size: 13px;
  line-height: 1.65;
}

.ancor-premium-project tr:last-child td {
  border-bottom: 0;
}

.ancor-premium-project tbody tr:hover td {
  background: rgba(199, 155, 82, 0.055);
}

.ancor-premium-project .gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 230px;
  gap: 11px;
}

.ancor-premium-project .gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 15px;
  cursor: zoom-in;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.ancor-premium-project .gallery-grid img:first-child {
  grid-row: span 2;
}

.ancor-premium-project .gallery-grid img:hover {
  z-index: 2;
  transform: scale(1.012);
  filter: brightness(0.92);
}

.ancor-premium-project .units-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.ancor-premium-project .project-unit-card {
  padding: 21px;
  border: 1px solid var(--apd-border);
  border-radius: 16px;
  background:
    linear-gradient(145deg, #FCFCFC, #FCFCFC);
}

.ancor-premium-project .project-unit-card h3 {
  margin: 0 0 9px;
  color: var(--apd-navy);
  font-size: 18px;
}

.ancor-premium-project .project-row {
  display: grid !important;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: 0.2s ease;
}

.ancor-premium-project .project-row:hover {
  border-color: var(--apd-border);
  background: var(--apd-paper);
}

.ancor-premium-project .project-row img {
  width: 75px;
  height: 65px;
  border-radius: 11px;
  object-fit: cover;
}

.ancor-premium-project .project-row h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.ancor-premium-project .project-row p {
  margin: 0;
  font-size: 12px;
}

.ancor-premium-project .project-mini-map {
  overflow: hidden;
  min-height: 340px !important;
  border: 1px solid var(--apd-border);
  border-radius: 17px;
  background: #FCFCFC;
}

.ancor-premium-project .inquiry-section {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  background:
    radial-gradient(circle at 10% 10%, rgba(199, 155, 82, 0.21), transparent 27%),
    linear-gradient(135deg, var(--apd-navy-dark), var(--apd-navy));
}

.ancor-premium-project .inquiry-section::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  inset: auto -150px -170px auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.ancor-premium-project .inquiry-section h2,
.ancor-premium-project .inquiry-section p,
.ancor-premium-project .inquiry-section label {
  color: #FCFCFC;
}

.ancor-premium-project .inquiry-section form {
  position: relative;
  z-index: 2;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ancor-premium-project .inquiry-section .field {
  gap: 7px;
}

.ancor-premium-project .inquiry-section input,
.ancor-premium-project .inquiry-section select,
.ancor-premium-project .inquiry-section textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--apd-text);
  transition: 0.2s ease;
}

.ancor-premium-project .inquiry-section input:focus,
.ancor-premium-project .inquiry-section select:focus,
.ancor-premium-project .inquiry-section textarea:focus {
  border-color: var(--apd-gold);
  box-shadow: 0 0 0 4px rgba(199, 155, 82, 0.16);
}

.apd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(4, 13, 21, 0.91);
  backdrop-filter: blur(13px);
}

.apd-lightbox.is-open {
  display: flex;
}

.apd-lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 87vh;
  border-radius: 18px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

.apd-lightbox-close {
  position: fixed;
  top: 22px;
  inset-inline-end: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FCFCFC;
  font-size: 25px;
  cursor: pointer;
}

.ancor-premium-project .btn {
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ancor-premium-project .btn:hover {
  transform: translateY(-2px);
}

.ancor-premium-project .btn.gold {
  background: var(--apd-gold);
  border-color: var(--apd-gold);
  color: #FCFCFC;
}

.ancor-premium-project .whatsapp-float {
  box-shadow: 0 12px 35px rgba(17, 126, 77, 0.3);
}

@media (max-width: 1050px) {
  .ancor-premium-project .project-page-layout {
    grid-template-columns: 1fr;
  }

  .ancor-premium-project .project-page-layout > aside,
  .ancor-premium-project .project-sidebar {
    position: static;
  }

  .apd-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apd-fact:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .ancor-premium-project .project-hero {
    min-height: 470px;
    align-items: flex-end;
  }

  .ancor-premium-project .project-hero-content {
    padding-top: 105px;
    padding-bottom: 58px;
  }

  .ancor-premium-project .project-hero h1 {
    font-size: 37px;
    line-height: 1.12;
    letter-spacing: -1px;
  }

  .ancor-premium-project .project-hero-content > p {
    font-size: 14px;
    line-height: 1.8;
  }

  .ancor-premium-project .breadcrumb {
    font-size: 11px;
  }

  .apd-summary {
    margin-top: -23px;
    overflow: hidden;
  }

  .apd-summary-grid {
    display: flex;
    overflow-x: auto;
    border-radius: 17px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .apd-summary-grid::-webkit-scrollbar {
    display: none;
  }

  .apd-fact {
    flex: 0 0 145px;
    padding: 17px 14px;
    scroll-snap-align: start;
  }

  .apd-fact::after {
    display: block !important;
  }

  .apd-fact:last-child::after {
    display: none !important;
  }

  .ancor-premium-project .project-nav {
    top: 63px;
    margin-bottom: 17px;
    border-radius: 13px;
  }

  .ancor-premium-project .project-nav a {
    padding: 9px 12px;
    font-size: 12px;
  }

  .ancor-premium-project .project-main-card,
  .ancor-premium-project .project-side-card,
  .ancor-premium-project .sidebar-card {
    margin-bottom: 13px;
    padding: 20px;
    border-radius: 17px;
  }

  .ancor-premium-project .project-main-card h2 {
    font-size: 23px;
  }

  .ancor-premium-project .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .ancor-premium-project .gallery-grid img:first-child {
    grid-row: auto;
  }

  .ancor-premium-project .units-grid {
    grid-template-columns: 1fr;
  }

  .ancor-premium-project table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ancor-premium-project .inquiry-section form {
    padding: 18px;
  }
}
