/*
 * Location page v1
 * Layout is intentionally locked here. PMS payloads may select images and
 * content, but cannot alter crops, opacity, positioning or section order.
 */
.location-page-v1 {
  position: relative;
  isolation: isolate;
  background: rgba(247, 244, 238, .94);
  color: var(--ink);
}

.location-page-v1 > section {
  position: relative;
  z-index: 1;
}

.location-v1-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.location-v1-background img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  opacity: .075;
  filter: saturate(.72) contrast(.92);
  transform: scale(1.025);
}

.location-v1-hero {
  position: relative;
  display: flex;
  min-height: clamp(560px, 70vh, 680px);
  align-items: flex-end;
  overflow: hidden;
  background: #26042f;
  color: #fff;
}

.location-v1-hero-image,
.location-v1-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.location-v1-hero-image {
  object-fit: cover;
  object-position: center;
}

.location-v1-hero-overlay {
  background: linear-gradient(180deg, rgba(21, 10, 31, .18), rgba(21, 10, 31, .82));
}

.location-v1-hero.has-no-image .location-v1-hero-overlay {
  background: linear-gradient(145deg, #26042f, #684873);
}

.location-v1-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  padding-bottom: 56px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.location-v1-hero h1 {
  max-width: 900px;
  margin: 8px auto 14px;
  font-size: clamp(46px, 6.4vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.location-v1-hero p {
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 18px;
  line-height: 1.55;
}

.location-v1-intro {
  background: rgba(255, 255, 255, .96);
}

.location-v1-intro .wrap {
  display: block;
  max-width: 820px;
  text-align: center;
}

.location-v1-intro header,
.location-v1-description {
  margin-right: auto;
  margin-left: auto;
}

.location-v1-intro h2,
.location-v1-section-heading h2,
.location-v1-contact h2 {
  max-width: 760px;
  margin: 8px auto 16px;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.location-v1-description {
  max-width: 760px;
}

.location-v1-description p,
.location-v1-section-heading > p,
.location-v1-contact-copy > p {
  margin: 0 0 14px;
  color: #625b65;
  font-size: 16px;
  line-height: 1.65;
}

.location-v1-description p:first-child {
  color: #3f3742;
  font-size: 18px;
}

.location-v1-description p:last-child {
  margin-bottom: 0;
}

.location-v1-section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.location-v1-section-heading > p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

.location-v1-gallery-section {
  background: rgba(247, 244, 238, .86);
}

.location-v1-gallery {
  display: grid;
  gap: 12px;
}

.location-v1-gallery figure {
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #ded7e2;
}

.location-v1-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-v1-gallery.gallery-count-1 {
  width: min(100%, 960px);
  margin-inline: auto;
}

.location-v1-gallery.gallery-count-1 figure {
  aspect-ratio: 16 / 9;
}

.location-v1-gallery.gallery-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-v1-gallery.gallery-count-2 figure {
  aspect-ratio: 4 / 3;
}

.location-v1-gallery.gallery-count-3,
.location-v1-gallery.gallery-count-4,
.location-v1-gallery.gallery-count-5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(210px, 20vw, 270px));
}

.location-v1-gallery.gallery-count-3 figure:first-child,
.location-v1-gallery.gallery-count-4 figure:first-child,
.location-v1-gallery.gallery-count-5 figure:first-child {
  grid-row: 1 / 3;
}

.location-v1-gallery.gallery-count-3 figure:nth-child(2) {
  grid-column: 2 / 4;
}

.location-v1-gallery.gallery-count-3 figure:nth-child(3) {
  grid-column: 2 / 4;
}

.location-v1-gallery.gallery-count-4 figure:nth-child(4) {
  grid-column: 2 / 4;
}

.location-v1-facilities {
  background: rgba(240, 232, 242, .9);
}

.location-v1-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.location-v1-facility-grid article {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 20px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
}

.location-v1-facility-grid img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.location-v1-facility-grid h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.location-v1-facility-grid p {
  margin: 4px 0 0;
  color: #6b636e;
  font-size: 13px;
  line-height: 1.45;
}

.location-v1-products {
  scroll-margin-top: 24px;
  background: rgba(252, 249, 253, .96);
}

.location-v1-anchor {
  position: absolute;
  top: 0;
}

.location-v1-products-heading {
  margin-bottom: 0;
}

.location-v1-product-grid {
  display: grid;
  width: 100%;
  margin: 45px auto 0;
  align-items: stretch;
  gap: 30px;
}

.location-v1-product-grid.product-count-1 {
  max-width: 360px;
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.location-v1-product-grid.product-count-1.product-type-apartment,
.location-v1-product-grid.product-count-1.product-type-villa {
  max-width: 1040px;
  grid-template-columns: minmax(0, 1fr);
}

.location-v1-product-grid.product-count-2 {
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-v1-product-grid.product-count-3,
.location-v1-product-grid.product-count-many {
  max-width: 1140px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-v1-product-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(27, 11, 46, .09);
  border-radius: 10px;
  background: var(--soft, #f4eef5);
  box-shadow: 0 15px 36px rgba(38, 4, 47, .07);
}

@media (min-width: 901px) {
  .location-v1-product-grid.product-count-1.product-type-apartment > .location-v1-product-card,
  .location-v1-product-grid.product-count-1.product-type-villa > .location-v1-product-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .85fr);
  }

  .location-page-v1 .location-v1-product-grid.product-count-1.product-type-apartment .location-v1-product-media,
  .location-page-v1 .location-v1-product-grid.product-count-1.product-type-villa .location-v1-product-media {
    height: 100%;
    min-height: 520px;
    aspect-ratio: auto;
  }

  .location-v1-product-grid.product-count-1.product-type-apartment .location-v1-product-copy,
  .location-v1-product-grid.product-count-1.product-type-villa .location-v1-product-copy {
    padding: 32px;
  }
}

.location-page-v1 .location-v1-product-media {
  position: relative;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ded7e2;
}

.location-page-v1 .location-v1-product-media .studio-slides,
.location-page-v1 .location-v1-product-media .studio-slides img,
.location-v1-product-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.location-page-v1 .location-v1-product-media .studio-slides img {
  object-fit: cover;
  object-position: center;
}

.location-v1-product-placeholder {
  background: linear-gradient(145deg, #ded7e2, #f0e8f2);
}

.location-v1-product-copy {
  display: flex;
  padding: 22px;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.location-v1-product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-v1-product-heading h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.location-v1-status {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #d5ff55;
  color: #24102f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.location-v1-status.status-coming_soon {
  background: #eadff0;
  color: #60496b;
}

.location-v1-status.status-sold-out {
  background: #e7e1e8;
  color: #685f6b;
}

.location-v1-product-description {
  color: #595159;
  font-size: 14px;
  line-height: 1.55;
}

.location-v1-product-description p {
  margin: 0 0 10px;
}

.location-v1-product-description p:last-child {
  margin-bottom: 0;
}

.location-v1-price {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.location-v1-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.location-v1-facts div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.location-v1-facts dt,
.location-v1-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.location-v1-facts dt {
  color: #806f8d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.location-v1-facts dd {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.location-v1-features {
  display: grid;
  margin: 0 0 4px;
  padding: 0;
  gap: 7px;
  color: #595159;
  font-size: 13px;
  line-height: 1.35;
  list-style: none;
}

.location-v1-features li {
  position: relative;
  min-height: 21px;
  padding-left: 29px;
}

.location-v1-features li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  color: #4d315a;
  font-size: 11px;
  font-weight: 800;
  place-items: center;
}

.location-v1-product-copy .btn {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  align-self: stretch;
}

.location-v1-product-unavailable {
  border-color: rgba(27, 11, 46, .22);
  color: #6d6570;
  cursor: not-allowed;
}

.location-v1-products-empty {
  max-width: 620px;
  margin: 36px auto 0;
  text-align: center;
}

.location-v1-map-section {
  background: rgba(247, 244, 238, .92);
}

.location-v1-map-frame {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(38, 4, 47, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(38, 4, 47, .1);
}

.location-v1-map {
  position: relative;
  width: 100%;
  height: clamp(390px, 48vw, 540px);
  overflow: hidden;
  border-radius: 11px;
  background: #ded7e2;
}

.location-v1-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #665a69;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.location-v1-map .leaflet-tile-pane {
  filter: grayscale(.65) sepia(.14) hue-rotate(225deg) saturate(.7) brightness(1.03) contrast(.94);
}

.location-v1-map .leaflet-control-attribution {
  padding: 3px 7px;
  background: rgba(255, 255, 255, .86);
  color: #554c58;
  font-size: 9px;
}

.location-v1-map .leaflet-control-attribution a {
  color: #26042f;
  text-decoration: underline;
}

.location-v1-map-pin-wrap {
  border: 0 !important;
  background: none !important;
}

.location-v1-map-pin {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #26042f;
  color: #d2ff3f;
  box-shadow: 0 9px 24px rgba(38, 4, 47, .3);
  font-size: 18px;
  font-weight: 800;
}

.location-v1-map-label {
  max-width: 180px;
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #26042f !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(38, 4, 47, .18) !important;
  font-family: "Barlow", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.location-v1-map-label::before {
  display: none !important;
}

.location-v1-map-popup {
  display: grid;
  gap: 3px;
  font-family: "Barlow", Arial, sans-serif;
}

.location-v1-map-popup strong {
  color: #26042f;
  font-size: 15px;
}

.location-v1-map-popup span {
  color: #6b636e;
  font-size: 12px;
}

.location-v1-contact {
  scroll-margin-top: 24px;
  padding: 76px 0;
  background: #26042f;
  color: #fff;
}

.location-v1-contact .wrap {
  display: flex;
  max-width: 820px;
  align-items: center;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.location-v1-contact h2 {
  margin-bottom: 0;
  color: #fff;
}

.location-v1-contact-copy > p {
  max-width: 540px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, .74);
}

.location-v1-contact-details {
  width: min(100%, 520px);
  padding: 23px 27px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
}

.location-v1-contact-details a {
  display: block;
  margin: 7px 0;
  overflow-wrap: anywhere;
  font-size: 20px;
}

@media (max-width: 900px) {
  .location-v1-gallery.gallery-count-3,
  .location-v1-gallery.gallery-count-4,
  .location-v1-gallery.gallery-count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .location-v1-gallery.gallery-count-3 figure,
  .location-v1-gallery.gallery-count-4 figure,
  .location-v1-gallery.gallery-count-5 figure,
  .location-v1-gallery.gallery-count-3 figure:first-child,
  .location-v1-gallery.gallery-count-4 figure:first-child,
  .location-v1-gallery.gallery-count-5 figure:first-child,
  .location-v1-gallery.gallery-count-3 figure:nth-child(2),
  .location-v1-gallery.gallery-count-3 figure:nth-child(3),
  .location-v1-gallery.gallery-count-4 figure:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .location-v1-facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-v1-product-grid.product-count-2,
  .location-v1-product-grid.product-count-3,
  .location-v1-product-grid.product-count-many {
    max-width: 760px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-v1-product-grid.product-count-1.product-type-apartment,
  .location-v1-product-grid.product-count-1.product-type-villa {
    max-width: 720px;
  }
}

@media (max-width: 650px) {
  .location-v1-hero {
    min-height: 570px;
  }

  .location-v1-hero-copy {
    padding-bottom: 38px;
  }

  .location-v1-hero h1 {
    max-width: 350px;
    font-size: 42px;
  }

  .location-v1-hero p {
    max-width: 360px;
    margin-bottom: 21px;
    font-size: 16px;
    line-height: 1.5;
  }

  .location-v1-intro h2,
  .location-v1-section-heading h2,
  .location-v1-contact h2 {
    font-size: 34px;
  }

  .location-v1-description p,
  .location-v1-section-heading > p,
  .location-v1-contact-copy > p {
    font-size: 15px;
  }

  .location-v1-description p:first-child {
    font-size: 16px;
  }

  .location-v1-gallery.gallery-count-1,
  .location-v1-gallery.gallery-count-2,
  .location-v1-gallery.gallery-count-3,
  .location-v1-gallery.gallery-count-4,
  .location-v1-gallery.gallery-count-5,
  .location-v1-facility-grid,
  .location-v1-product-grid.product-count-1,
  .location-v1-product-grid.product-count-2,
  .location-v1-product-grid.product-count-3,
  .location-v1-product-grid.product-count-many {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .location-v1-product-grid.product-count-1.product-type-apartment,
  .location-v1-product-grid.product-count-1.product-type-villa {
    max-width: none;
  }

  .location-v1-gallery.gallery-count-1 figure,
  .location-v1-gallery.gallery-count-2 figure,
  .location-v1-gallery.gallery-count-3 figure,
  .location-v1-gallery.gallery-count-4 figure,
  .location-v1-gallery.gallery-count-5 figure {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .location-v1-product-grid {
    gap: 24px;
    margin-top: 28px;
  }

  .location-v1-contact {
    padding: 58px 0;
  }

  .location-v1-contact-details {
    padding: 20px;
  }

  .location-v1-contact-details a {
    font-size: 17px;
  }

  .location-v1-map-frame {
    padding: 6px;
    border-radius: 14px;
  }

  .location-v1-map {
    height: 360px;
    border-radius: 9px;
  }

  .location-v1-map .leaflet-control-attribution {
    font-size: 8px;
  }

  .location-v1-map-label {
    max-width: 120px;
    font-size: 9px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-v1-background img {
    transform: none;
  }
}
