/* ==========================================================================
   Cinematic introduction
   ========================================================================== */
.cinema {
  position: relative;
  height: 260vh;
  background: #000;
}
.cinema__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.cinema__layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.cinema__img {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center 58%;
  transform-origin: 60% 62%;
  filter: saturate(0.86) brightness(0.62);
}
.cinema__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 62%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.9) 100%);
}
.cinema__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cinema__lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 25% 100%;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
}
.cinema__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px var(--pad) 40px;
}
.cinema__title {
  font-family: var(--font-brand);
  font-size: clamp(38px, 8.4vw, 112px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #fff;
  text-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}
.cinema__title span {
  display: block;
}
.cinema__title .line-2 {
  margin-top: clamp(6px, 1.1vw, 16px);
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #f4e8d6, #c6a67a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: none;
}
.cinema__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10.5px, 1.4vw, 13px);
  letter-spacing: 0.34em;
  color: rgba(238, 242, 249, 0.72);
  margin-bottom: clamp(14px, 2.4vw, 26px);
  text-transform: uppercase;
}
.cinema__eyebrow::before,
.cinema__eyebrow::after {
  content: '';
  width: clamp(18px, 5vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 183, 140, 0.8));
}
.cinema__eyebrow::after {
  background: linear-gradient(270deg, transparent, rgba(214, 183, 140, 0.8));
}
.cinema__sub {
  margin-top: clamp(16px, 2.6vw, 26px);
  color: rgba(232, 238, 248, 0.8);
  font-size: clamp(13px, 1.6vw, 17px);
  max-width: 46ch;
  margin-inline: auto;
  line-height: 1.9;
}
.cine-rise {
  display: block;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  animation: cine-in 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
.cinema__title .cine-rise {
  display: block;
}
@keyframes cine-in {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cine-rise {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
.cinema__scroll {
  position: absolute;
  bottom: clamp(20px, 4vh, 42px);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(232, 238, 248, 0.55);
  z-index: 4;
  text-transform: uppercase;
}
.cinema__scroll-rail {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  position: relative;
  overflow: hidden;
}
.cinema__scroll-rail::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 18px;
  background: var(--accent);
  animation: rail 2.2s var(--ease) infinite;
}
@keyframes rail {
  0% {
    top: -20px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 54px;
    opacity: 0;
  }
}
.cinema__counter {
  position: absolute;
  inset-inline-end: var(--pad);
  bottom: clamp(20px, 4vh, 42px);
  z-index: 4;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cinema__counter i {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.cinema__counter i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: right;
}
.cinema__skip {
  position: absolute;
  inset-inline-start: var(--pad);
  bottom: clamp(20px, 4vh, 42px);
  z-index: 5;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease);
}
.cinema__skip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Reference image section — pure black, image untouched
   ========================================================================== */
.reference {
  background: #000;
  padding-block: clamp(36px, 6vw, 88px);
  display: flex;
  justify-content: center;
}
.reference__frame {
  width: min(1500px, 100%);
  padding-inline: clamp(10px, 3vw, 40px);
}
.reference__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.reference__caption {
  margin: clamp(16px, 2.4vw, 26px) auto 0;
  max-width: 900px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* ==========================================================================
   Discovery / hero of listings
   ========================================================================== */
.discovery {
  position: relative;
  padding-block: clamp(52px, 7vw, 96px);
}
.discovery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.searchbar {
  padding: 14px;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.searchbar .input-group .input {
  height: 52px;
  font-size: 15px;
}
.searchbar .select {
  height: 52px;
}
.searchbar__submit {
  height: 52px;
  padding-inline: 26px;
}
@media (max-width: 900px) {
  .searchbar {
    grid-template-columns: 1fr 1fr;
  }
  .searchbar > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .searchbar {
    grid-template-columns: 1fr;
  }
}

.filters-panel {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--r-lg);
  animation: fade-in 0.3s var(--ease);
}
.filters-panel .form-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-block: 18px;
}
.filters-bar__count {
  font-size: 13px;
  color: var(--muted);
  margin-inline-end: auto;
}
.filters-bar__count b {
  color: var(--txt);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Property type grid
   ========================================================================== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  text-align: start;
  min-height: 132px;
  justify-content: space-between;
}
.type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 183, 140, 0.35);
}
.type-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--sheen);
  flex: none;
}
.type-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  width: 100%;
}
.type-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.type-card__count {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.type-card--active {
  border-color: rgba(214, 183, 140, 0.5);
  background:
    linear-gradient(160deg, rgba(214, 183, 140, 0.16), rgba(255, 255, 255, 0.02)),
    var(--glass-fill);
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.why-card__num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.85;
}
.why-card h3 {
  font-size: 20px;
  line-height: 1.4;
}
.why-card p {
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.85;
}
.why-card__glyph {
  position: absolute;
  inset-inline-end: -14px;
  top: -14px;
  opacity: 0.06;
  color: #fff;
  pointer-events: none;
}

/* ==========================================================================
   Submit CTA
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
  }
}
.cta__glow {
  position: absolute;
  inset-inline-end: -18%;
  top: -60%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(214, 183, 140, 0.22), transparent 68%);
  pointer-events: none;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(160deg, #f4e6cf, var(--accent));
  flex: none;
  font-variant-numeric: tabular-nums;
}
.step__body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.step__body span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Property details
   ========================================================================== */
.pd {
  padding-top: 92px;
}
.gallery {
  display: grid;
  grid-template-columns: 2.05fr 1fr;
  gap: 10px;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: clamp(300px, 46vw, 540px);
}
@media (max-width: 820px) {
  .gallery {
    grid-template-columns: 1fr;
    height: auto;
  }
}
.gallery--single {
  grid-template-columns: 1fr;
}
.gallery--duo {
  grid-template-columns: 1.7fr 1fr;
}
.gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: zoom-in;
  background: #070b14;
}
.gallery__main img,
.gallery__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.gallery__main:hover img {
  transform: scale(1.03);
}
.gallery__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}
@media (max-width: 820px) {
  .gallery__side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: 150px;
  }
}
.gallery__cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: zoom-in;
  background: #070b14;
}
.gallery__cell::after,
.gallery__main::after,
.gallery__cell .overlay {
  pointer-events: none;
}
.gallery__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 13, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 0.3s var(--ease);
}
.gallery__more:hover {
  background: rgba(4, 7, 13, 0.4);
}
.gallery__badges {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  z-index: 2;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 366px;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin-top: clamp(22px, 3vw, 34px);
}
@media (max-width: 1040px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
}
.pd-panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
}
.pd-title {
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.35;
  font-weight: 500;
}
.pd-price {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--accent-2);
  font-weight: 600;
  line-height: 1.2;
}
.pd-price small {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}
.spec-box {
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-box__label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.spec-box__value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.prose {
  color: var(--txt-2);
  font-size: 14.5px;
  line-height: 2.05;
  white-space: pre-wrap;
}
.sticky-panel {
  position: sticky;
  top: 96px;
}
@media (max-width: 1040px) {
  .sticky-panel {
    position: static;
  }
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(214, 183, 140, 0.3), rgba(214, 183, 140, 0.06));
  border: 1px solid rgba(214, 183, 140, 0.3);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 17px;
  flex: none;
}

/* ==========================================================================
   Submit property page
   ========================================================================== */
.submit-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
@media (max-width: 980px) {
  .submit-layout {
    /* minmax(0, 1fr), not 1fr: the horizontally scrollable step rail would
       otherwise push the single column wider than the phone viewport. */
    grid-template-columns: minmax(0, 1fr);
  }
}
.progress-rail {
  position: sticky;
  top: 100px;
  padding: 20px;
  border-radius: var(--r-lg);
}
@media (max-width: 980px) {
  .progress-rail {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
  }
  .progress-rail__list {
    display: flex;
    gap: 8px;
  }
  .progress-rail__title,
  .progress-rail__meter,
  .progress-rail__foot {
    display: none;
  }
}
.progress-rail__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.progress-rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  text-align: start;
  width: 100%;
}
.progress-step:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.04);
}
.progress-step__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  font-size: 10.5px;
  font-weight: 700;
  flex: none;
  font-variant-numeric: tabular-nums;
  transition: all 0.25s var(--ease);
}
.progress-step.is-active {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.06);
}
.progress-step.is-active .progress-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.progress-step.is-done .progress-step__dot {
  background: rgba(108, 199, 164, 0.18);
  border-color: rgba(108, 199, 164, 0.5);
  color: #a6e6cd;
}
.progress-rail__meter {
  margin-top: 18px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-rail__meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s var(--ease);
}
.progress-rail__foot {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.form-card {
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--r-lg);
}
.form-step-head {
  margin-bottom: 22px;
}
.form-step-head h2 {
  font-size: 22px;
}
.form-step-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt-2);
  font-size: 13px;
  transition: all 0.22s var(--ease);
  text-align: start;
}
.choice:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
}
.choice[aria-pressed='true'] {
  border-color: rgba(214, 183, 140, 0.55);
  background: linear-gradient(160deg, rgba(214, 183, 140, 0.16), rgba(255, 255, 255, 0.03));
  color: var(--txt);
  box-shadow: 0 0 0 1px rgba(214, 183, 140, 0.16);
}
.choice svg {
  color: var(--accent);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 20px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: rgba(214, 183, 140, 0.6);
  background: rgba(214, 183, 140, 0.06);
}
.dropzone input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone strong {
  font-size: 14px;
}
.dropzone span {
  font-size: 12px;
  color: var(--muted);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0f1a;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb__del {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease);
}
.thumb__del:hover {
  background: rgba(239, 143, 143, 0.85);
}
.thumb__cover {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 6px;
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.upload-meter {
  margin-top: 12px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.upload-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s var(--ease);
}

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-3);
  flex-wrap: wrap;
}

.review-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.review-item {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-3);
  background: rgba(255, 255, 255, 0.025);
}
.review-item dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.review-item dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--txt);
  font-weight: 500;
  word-break: break-word;
}

.success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(30px, 6vw, 54px) 24px;
}
.success-mark {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(108, 199, 164, 0.4), rgba(108, 199, 164, 0.1));
  border: 1px solid rgba(108, 199, 164, 0.45);
  color: #a6e6cd;
  animation: pop 0.6s var(--ease-out);
}
@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 424px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-xl);
}
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, 0.72), rgba(4, 6, 11, 0.94)),
    url('/media/reference.jpg') center 40% / cover no-repeat;
  filter: saturate(0.7);
}

/* ==========================================================================
   Mobile overrides (kept last so they win over the base rules above)
   ========================================================================== */
@media (max-width: 980px) {
  .progress-rail {
    position: static;
    display: block;
    padding: 12px;
    overflow: visible;
  }
  .progress-rail__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
  }
  .progress-rail__list::-webkit-scrollbar {
    display: none;
  }
  .progress-step {
    width: auto;
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
  }
  .progress-step__dot {
    width: 18px;
    height: 18px;
    font-size: 9.5px;
  }
  .progress-rail__title,
  .progress-rail__meter,
  .progress-rail__foot {
    display: none;
  }
}
@media (max-width: 620px) {
  .gallery__side {
    height: 118px;
  }
  .pd {
    padding-top: 84px;
  }
  .form-card,
  .pd-panel {
    padding: 16px;
  }
  .cta {
    padding: 22px;
  }
  .reference__caption {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
}

/* ============================================================ construction
   مشاريع قيد الإنشاء — homepage section + project detail page.
   Reuses the site's glass panels, gold accent and RTL rhythm. */

.project-grid {
  display: grid;
  /* capped track width: one or two projects must not stretch into a wall of
     empty media, while three still fill the row nicely */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 400px));
  justify-content: start;
  gap: clamp(14px, 2vw, 22px);
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  height: 100%;
}
.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1524, #070b14);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease);
}
.project-card:hover .project-card__media img {
  transform: scale(1.045);
}
.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.05) 0%, transparent 42%, rgba(4, 7, 13, 0.55) 100%);
  pointer-events: none;
}
.project-card__badges {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}
.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.45;
  margin: 0;
}
.project-card__title a {
  color: var(--txt);
  text-decoration: none;
}
.project-card__title a:hover {
  color: var(--accent);
}
.project-card__meta {
  min-height: 20px;
}
.project-card__latest {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: var(--txt-2);
  line-height: 1.6;
}
.project-card__cta {
  margin-top: auto;
  align-self: flex-start;
}
.project-card--skeleton {
  pointer-events: none;
}
.project-card__sk-media {
  height: 190px;
  border-radius: 0;
}
.project-card__sk-line {
  height: 14px;
  border-radius: 6px;
}
.project-card__sk-line--short {
  width: 55%;
}

.project-badge--under_construction {
  border-color: rgba(214, 183, 140, 0.45);
  color: var(--accent);
  background: rgba(214, 183, 140, 0.12);
}
.project-badge--completed {
  border-color: rgba(120, 210, 160, 0.35);
  color: #8fd6ab;
  background: rgba(120, 210, 160, 0.1);
}
.project-badge--paused {
  border-color: rgba(240, 190, 110, 0.4);
  color: #f0be6e;
  background: rgba(240, 190, 110, 0.1);
}
.project-badge--planned {
  border-color: rgba(150, 185, 240, 0.35);
  color: #a9c6f2;
  background: rgba(150, 185, 240, 0.1);
}
.project-badge--archived {
  opacity: 0.75;
}

/* progress meter */
.progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.progress__val {
  color: var(--accent);
  font-size: 15px;
}
.progress__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid var(--line-3);
}
.progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2e2c9, var(--accent));
  transition: width 0.9s var(--ease-out);
}

/* ---------------- project detail page ---------------- */
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
}
.project-hero__media {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
}
.project-hero__main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #0d1524, #070b14);
  cursor: zoom-in;
}
.project-hero__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero__main--empty {
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12.5px;
  cursor: default;
}
.project-hero__zoom {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.72);
  border: 1px solid var(--line-3);
  font-size: 11.5px;
  color: var(--txt-2);
}
.project-hero__side {
  display: grid;
  gap: 8px;
  grid-template-rows: 1fr 1fr;
}
.project-hero__cell {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #0a1018;
  cursor: zoom-in;
}
.project-hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--r-lg);
}
/* inline-level chips must not stretch across the column */
.project-hero__panel > .badge,
.project-hero__panel > .tag {
  align-self: flex-start;
  width: fit-content;
}
.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.35;
  margin: 0;
}
.project-hero__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--txt-2);
  font-size: 13px;
}
.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.project-hero__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
}
.project-hero__map:hover {
  text-decoration: underline;
}
.project-body {
  margin-top: clamp(18px, 2.4vw, 30px);
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}
.project-desc {
  white-space: pre-wrap;
  line-height: 1.95;
  color: var(--txt-2);
  font-size: 14.5px;
  margin: 0;
}
.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px 18px;
  margin: 0;
}
.spec-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-3);
}
.spec-list__row dt {
  font-size: 12.5px;
  color: var(--muted);
}
.spec-list__row dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--txt);
  font-weight: 600;
}

/* progress history */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-3), transparent);
}
.timeline__item {
  position: relative;
  padding-inline-start: 30px;
  padding-bottom: 16px;
}
.timeline__dot {
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 183, 140, 0.14);
}
.timeline__card {
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.timeline__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.timeline__date {
  font-size: 12px;
  color: var(--accent);
}
.timeline__title {
  font-size: 15.5px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.timeline__body {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.9;
  color: var(--txt-2);
  white-space: pre-wrap;
}
.timeline__next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--accent);
}
.timeline__gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.timeline__thumb {
  width: 108px;
  height: 78px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-3);
  padding: 0;
  background: #0a1018;
  cursor: zoom-in;
}
.timeline__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.timeline__thumb:hover img {
  transform: scale(1.06);
}

/* filters used by /projects */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--txt);
}
.chip.is-active {
  background: linear-gradient(160deg, #f2e2c9, var(--accent));
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
  }
  .project-hero__media {
    grid-template-columns: 1fr;
  }
  .project-hero__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .project-hero__cell {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 520px) {
  .timeline__thumb {
    width: 84px;
    height: 62px;
  }
}

/* ------------------------------------------------------------ project units */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
  justify-content: start;
  gap: clamp(12px, 1.8vw, 20px);
}

.unit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  height: 100%;
}

.unit-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1524, #070b14);
}
.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.unit-card:hover .unit-card__media img {
  transform: scale(1.045);
}
.unit-card__badges {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 1;
}
.unit-card__badge-type {
  background: rgba(8, 12, 18, 0.62);
  color: var(--txt-2);
  border: 1px solid var(--line-3);
}
.unit-card__count {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.66);
  border: 1px solid var(--line-3);
  color: var(--txt-2);
  font-size: 11px;
  z-index: 1;
}

.unit-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 15px 16px;
}
.unit-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
}
.unit-card__title a {
  color: var(--txt);
  text-decoration: none;
}
.unit-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.unit-card__meta span {
  position: relative;
  padding-inline-start: 10px;
}
.unit-card__meta span::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.unit-card__prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.unit-card__prices li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  padding-block: 3px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.unit-card__prices li:last-child {
  border-bottom: 0;
}
.unit-card__prices li strong {
  color: var(--txt);
  font-size: 13px;
  font-weight: 600;
}
.unit-card__prices li.muted strong {
  color: var(--muted);
  font-weight: 500;
}
.unit-card__prices--hero {
  margin-top: 4px;
}
.unit-card__prices--hero li strong {
  font-size: 14.5px;
}

.unit-card__latest {
  display: block;
  line-height: 1.7;
}
.unit-card__cta {
  align-self: flex-start;
  margin-top: 2px;
}

/* other units inside a unit page */
.unit-siblings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}
.unit-sibling {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-3);
  background: rgba(255, 255, 255, 0.025);
  color: var(--txt);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.unit-sibling:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.unit-sibling__thumb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #0a1018;
  border: 1px solid var(--line-3);
}
.unit-sibling__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.unit-sibling__body {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
}

/* soft chip used for the unit label on an update */
.badge--soft {
  background: rgba(214, 183, 140, 0.1);
  border: 1px solid rgba(214, 183, 140, 0.26);
  color: var(--accent);
}

@media (max-width: 520px) {
  .unit-card__badges {
    inset-inline-end: 8px;
    inset-block-start: 8px;
  }
}

.project-card__units {
  background: rgba(8, 12, 18, 0.62);
  border: 1px solid var(--line-3);
  color: var(--txt-2);
}

/* the tiny sibling thumbnail must not try to render the "no photo" sentence */
.unit-sibling__thumb [role='img'],
.unit-admin__thumb [role='img'] {
  font-size: 0 !important;
  line-height: 0;
  padding: 0;
}
.unit-sibling__thumb [role='img']::after,
.unit-admin__thumb [role='img']::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--muted-2);
  opacity: 0.55;
}

.timeline__video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-3);
  background: rgba(214, 183, 140, 0.08);
  color: var(--accent);
  font-size: 11.5px;
  text-decoration: none;
}
.timeline__video:hover {
  background: rgba(214, 183, 140, 0.16);
}

/* ---------- per-update / per-unit video ---------- */
.video-field {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.video-field .input {
  flex: 1 1 220px;
  min-width: 0;
}
.timeline__video-el {
  display: block;
  width: min(100%, 420px);
  margin-top: 10px;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.unit-video {
  margin-top: 14px;
}
.unit-video video {
  display: block;
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  background: #000;
  aspect-ratio: 16 / 9;
}
@media (max-width: 420px) {
  .timeline__video-el { width: 100%; }
  .video-field .input { flex: 1 1 100%; }
}

/* ---------- hero video (admin-managed) ---------- */
.cinema__video {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  transform-origin: 60% 62%;
  opacity: 0;
  transition: opacity 0.9s var(--ease, ease);
  pointer-events: none;
  background: #000;
}
.cinema__video.is-on {
  opacity: 1;
}
.cinema__video-toggle {
  position: absolute;
  inset-inline-end: clamp(16px, 3vw, 34px);
  bottom: clamp(20px, 4vh, 42px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 11.5px;
  line-height: 1;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.cinema__video-toggle:hover {
  background: rgba(0, 0, 0, 0.6);
}
@media (max-width: 640px) {
  .cinema__video-toggle span {
    display: none;
  }
  .cinema__video-toggle {
    padding: 9px;
  }
}
