/* Palace Residences Hillside | DRE Homes — page styles */
/* ================= PROPERTY DETAIL PAGE ================= */
.pd-hero {
  padding: 120px 0 0;
}
.pd-hero .crumbs {
  margin-bottom: 20px;
}
.pd-gal {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  height: min(72vh, 640px);
}
.pd-gal button {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #888;
}
.pd-gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pd-gal button:hover img {
  transform: scale(1.04);
}
.pg-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.pg-more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.pd-title {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(640px, calc(66% - 30px));
  padding: 24px 28px;
  border-radius: 24px;
}
.pt-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pt-tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--acc);
}
.pd-title h1 {
  font-size: clamp(34px, 3vw, 58px);
  line-height: 1.02;
}
.pd-title p {
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.pd-title p svg {
  color: var(--acc);
}
.pd-body {
  padding: 40px 0 60px;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.pd-grid > *,
.mort > *,
.enq > *,
.loc-grid > * {
  min-width: 0;
}
.pd-tabs {
  position: sticky;
  top: 100px;
  z-index: 15;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  background:
    linear-gradient(145deg, rgba(var(--tint-rgb), 0.14), rgba(var(--tint-rgb), 0.04)), rgba(var(--bg-rgb), 0.85) !important;
}
.pd-tabs a {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.pd-tabs a.on {
  background: var(--btn);
  color: var(--btn-fg);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.facts div {
  padding: 18px 20px;
  border-radius: 20px;
}
.facts small,
.side-card small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.facts b {
  font-weight: 400;
  font-size: 18px;
}
.pd-sec {
  padding: 40px 0;
  border-top: 1px solid var(--stroke);
  scroll-margin-top: 170px;
}
.pd-sec h2.serif {
  font-size: clamp(32px, 3.6vw, 50px);
}
.pd-sec .lead {
  max-width: none;
  margin-bottom: 14px;
}
.more-txt {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
.more-txt.open {
  max-height: 900px;
}
.rm {
  border: 0;
  background: none;
  color: var(--acc);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
}
.am-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 10px 0 24px;
}
.am {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
}
.am svg {
  width: 24px;
  height: 24px;
  color: var(--acc);
  flex: none;
}
.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}
.map-wrap {
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  padding: 0;
  display: grid;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.map-load {
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.map-load svg {
  color: var(--acc);
}
.map-load small {
  color: var(--faint);
}
.loc-img,
.mp-img {
  border: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  position: relative;
}
.loc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-img {
  display: block;
  width: 100%;
  margin: 10px 0 20px;
  max-height: 520px;
}
.mp-img img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}
.mp-img span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.near {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.near li {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(var(--tint-rgb), 0.06);
  font-size: 12px;
  color: var(--faint);
}
.near b {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.mort {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
  border-radius: 28px;
  margin-top: 10px;
}
.mg-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-content: start;
}
.mg-in label {
  display: block;
}
.mg-in input[type="range"] {
  width: 100%;
}
.mg-in label > span {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.mg-in label > span b {
  color: var(--text);
  letter-spacing: 0;
}
.mv {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(var(--tint-rgb), 0.08);
}
.mv span {
  color: #fff;
  font-weight: 600;
  font-size: 26px;
  margin-right: 0;
}
.mv input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font: 300 26px var(--font);
}
.m-out {
  padding: 26px;
  border-radius: 22px;
  background: rgba(var(--tint-rgb), 0.08);
  border: 1px solid var(--stroke);
}
.m-out small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.m-big {
  font-weight: 200;
  font-size: 48px;
  line-height: 1.1;
  margin: 6px 0 16px;
}
.m-out ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.m-out li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.m-out li b {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.m-out p {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 16px;
}
.enq {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  padding: 44px;
  border-radius: 32px;
  align-items: center;
}
.pd-side {
  position: sticky;
  top: 100px;
}
.side-card {
  padding: 28px;
  border-radius: 28px;
}
.dev-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: var(--dev-filter);
  margin-bottom: 22px;
}
.sc-price {
  font-weight: 200;
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.sc-facts {
  list-style: none;
  display: grid;
  margin-bottom: 22px;
  border-top: 1px solid var(--stroke);
}
.sc-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 14px;
}
.sc-facts span {
  color: var(--faint);
}
.sc-facts b {
  font-weight: 500;
  text-align: right;
}
.sc-facts a {
  color: var(--acc);
  font-weight: 500;
}
.sc-dl,
.sc-ct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-dl .btn,
.sc-ct .btn {
  justify-content: center;
  padding: 13px 10px;
  gap: 8px;
  font-size: 11.5px;
}
.sc-wa svg {
  width: 16px;
  height: 16px;
  color: #25d366;
}
.sc-call {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.sc-call b {
  color: var(--text);
}
.car-nav {
  display: flex;
  gap: 8px;
}
.car-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(var(--tint-rgb), 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}
.car-nav button:hover {
  border-color: var(--stroke-acc);
}
.sim-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.sim-track::-webkit-scrollbar {
  display: none;
}
.sim {
  scroll-snap-align: start;
}
.oc {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(var(--tint-rgb), 0.1), rgba(var(--tint-rgb), 0.03));
  display: flex;
  flex-direction: column;
  transition: 0.4s;
}
.oc:hover {
  border-color: var(--stroke-acc);
  transform: translateY(-5px);
}
.oc-img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #888;
}
.oc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.oc:hover .oc-img img {
  transform: scale(1.06);
}
.oc .badge {
  top: 12px;
  left: 12px;
}
.oc-loc {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(var(--bg-rgb), 0.6);
  color: var(--text);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  display: flex;
    align-items: center;
    gap: 6px;
}
.oc-b {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.oc-dev {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
}
.oc-b h3 {
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}
.oc-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}
.oc-meta small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.oc-meta b {
  font-weight: 500;
  font-size: 16px;
}
.oc-meta .pr em {
  font-style: normal;
  color: var(--acc);
  font-weight: 500;
}
.lb {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  overflow: hidden;
}
.lb[open] {
  display: grid;
  place-items: center;
}
.lb::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}
.lb img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb p {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}
.lb-x,
.lb-n {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lb-x {
  top: 24px;
  right: 24px;
}
.lb-p {
  left: 24px;
  top: 50%;
}
.lb-nx {
  right: 24px;
  top: 50%;
}
.dl {
  border: 0;
  padding: 0;
  width: min(460px, 92vw);
  border-radius: 28px !important;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(var(--tint-rgb), 0.12), rgba(var(--tint-rgb), 0.03)), rgba(var(--bg-rgb), 0.97) !important;
}
.dl::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.dl form {
  padding: 36px 30px;
  display: grid;
  gap: 10px;
  position: relative;
}
.dl h2.serif {
  font-size: 34px;
  margin: 4px 0 0;
}
.dl .lead {
  margin-bottom: 8px;
  font-size: 14px;
}
.dl input {
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(var(--tint-rgb), 0.1);
  color: var(--text);
  font: 15px var(--font);
  outline: none;
}
.dl input::placeholder {
  color: var(--faint);
}
.sv-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
@media (min-width: 1081px) and (max-width: 1280px) {
  .mort {
    grid-template-columns: 1fr;
  }
}
/* @media (min-width: 1081px) and (max-width: 1500px) {
  .pd-body .wrap,
  .pd-hero .wrap {
    padding-right: 96px;
  }
} */
@media (max-width: 1080px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
  .pd-side {
    position: static;
    order: -1;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .am-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mort,
  .enq,
  .loc-grid {
    grid-template-columns: 1fr;
  }
  .sim-track {
    grid-auto-columns: calc((100% - 22px) / 2);
  }
  .pd-title {
    max-width: calc(100% - 36px);
  }
  .pd-gal {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pg-main {
    aspect-ratio: 16/10;
  }
  .pg-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: 180px;
  }
  .pd-title {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .pd-hero {
    padding-top: 100px;
  }
  .pg-side {
    height: 120px;
  }
  .pg-more {
    font-size: 11px;
    padding: 7px 10px;
  }
  .pd-title {
    padding: 20px;
  }
  .pd-tabs {
    top: 86px;
    border-radius: 18px;
  }
  .sim-track {
    grid-auto-columns: 86%;
  }
  .enq {
    padding: 26px 20px;
  }
  .mort {
    padding: 20px;
  }
  .m-big {
    font-size: 38px;
  }
  .lb-n {
    width: 44px;
    height: 44px;
  }
  .lb-p {
    left: 8px;
  }
  .lb-nx {
    right: 8px;
  }
}

dialog.glass {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
}
