.property-detail-page {
  padding-top: 0;
}

@supports (content-visibility: auto) {
  .property-detail-page > .property-detail-section,
  .property-detail-page > .footer-lux {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
  }
}

body.modal-open {
  overflow: hidden;
}

.property-detail-shell {
  margin-top: 20px;
}

.property-detail-hero {
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 20px 48px rgba(10, 30, 80, 0.10);
  padding: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  grid-template-areas: "image mosaic";
  gap: 10px;
  align-items: stretch;
}

.property-detail-hero.no-mosaic {
  grid-template-columns: 1fr;
  grid-template-areas: "image";
  gap: 0;
}

.property-detail-image-wrap {
  grid-area: image;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background: #e4ecf7;
  min-height: 520px;
}

.property-detail-mosaic {
  grid-area: mosaic;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  min-height: 520px;
}

.property-mosaic-tile {
  position: relative;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #e4ecf7;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  min-height: 0;
  transition: filter 0.2s ease;
}

.property-mosaic-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.property-mosaic-tile:hover {
  filter: brightness(1.12);
}

.property-mosaic-tile.is-active {
  box-shadow: inset 0 0 0 2px rgba(201, 168, 76, 0.88);
}

.property-mosaic-tile:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(47, 103, 188, 0.2));
}

.property-mosaic-tile-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(4, 14, 36, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #f2f8ff;
  pointer-events: none;
  border-radius: inherit;
}

.property-mosaic-tile-more-count {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.property-mosaic-tile-more-label {
  display: block;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 242, 255, 0.9);
}

/* Premium loading spinner — shows while image loads */
.property-detail-image-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2.5px solid rgba(29, 66, 134, 0.12);
  border-top-color: #c9a96e;
  animation: landmark-spin 0.8s linear infinite;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.property-detail-image-wrap.img-ready::before {
  opacity: 0;
  animation: none;
}

.property-detail-image-wrap.img-ready {
  background: #000;
}

.property-detail-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard, ease);
}

.property-detail-image-wrap img.is-loaded {
  opacity: 1;
}

.property-gallery-controls {
  grid-area: gallery;
  display: none;
}

.property-gallery-controls--hidden {
  display: none !important;
}

.property-gallery-mobile-toolbar,
.property-mobile-features-section {
  display: none;
}

.property-gallery-mobile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(201, 222, 252, 0.54);
  border-radius: 999px;
  background: rgba(7, 25, 55, 0.62);
  color: #f7fbff;
  padding: 0 13px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(7, 29, 63, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.property-gallery-mobile-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(223, 236, 255, 0.82);
  background: rgba(10, 31, 64, 0.78);
}

.property-detail-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 91, 164, 0.7) rgba(177, 205, 245, 0.45);
}

.property-detail-gallery::-webkit-scrollbar {
  height: 7px;
}

.property-detail-gallery::-webkit-scrollbar-track {
  background: rgba(177, 205, 245, 0.45);
  border-radius: 999px;
}

.property-detail-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, rgba(47, 103, 188, 0.92), rgba(24, 66, 132, 0.92));
  border-radius: 999px;
}

.property-detail-gallery.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.property-detail-gallery.is-dragging .property-gallery-thumb {
  pointer-events: none;
}

.property-gallery-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #bfd5fb;
  border-radius: 999px;
  background: #ffffff;
  color: #1f4f98;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(8, 34, 73, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.property-gallery-nav--overlay {
  position: absolute;
  top: 44%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-color: rgba(186, 212, 251, 0.84);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%);
}

.property-gallery-nav--overlay:hover {
  transform: translateY(calc(-50% - 1px));
}

.property-gallery-nav--prev {
  left: 10px;
}

.property-gallery-nav--next {
  right: 10px;
}

.property-gallery-nav:not(.property-gallery-nav--overlay):hover {
  transform: translateY(-1px);
  border-color: #3b6cbb;
  box-shadow: 0 12px 22px rgba(8, 34, 73, 0.18);
}

.property-gallery-nav:not(.property-gallery-nav--overlay):disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.property-gallery-nav--overlay:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.property-gallery-thumb {
  flex: 0 0 auto;
  border: 1px solid #bfd5fb;
  border-radius: 10px;
  overflow: hidden;
  background: #e7f0ff;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  min-width: 136px;
  width: 136px;
  scroll-snap-align: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.property-gallery-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.property-gallery-thumb:hover {
  transform: translateY(-1px);
  border-color: #3b6cbb;
  box-shadow: 0 10px 20px rgba(8, 34, 73, 0.16);
}

.property-gallery-thumb.is-active {
  border-color: #1f4f98;
  box-shadow: 0 12px 22px rgba(7, 29, 63, 0.2);
}

.property-detail-label {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 1px solid #aac8f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f4f98;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.53rem;
  font-weight: 800;
  padding: 6px 9px;
}

.property-detail-panel {
  position: relative;
  margin-top: 10px;
  border: 1px solid rgba(29, 76, 162, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(5, 25, 60, 0.97) 0%, rgba(9, 38, 86, 0.92) 56%, rgba(15, 57, 118, 0.86) 100%);
  backdrop-filter: blur(9px) saturate(122%);
  -webkit-backdrop-filter: blur(9px) saturate(122%);
  padding: 22px 26px 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "title"
    "summary"
    "meta"
    "actions";
  gap: 10px;
  overflow: hidden;
}

.property-detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0) 0%, rgba(201, 169, 110, 0.8) 50%, rgba(201, 169, 110, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.property-detail-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 140px at 92% 10%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.property-detail-panel > * {
  position: relative;
  z-index: 1;
}

.property-detail-eyebrow {
  grid-area: eyebrow;
  margin: 0;
  color: #cfe1ff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.54rem;
  font-weight: 800;
}

.property-detail-panel h1 {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  color: #f6faff;
  font-size: clamp(1.95rem, 2.6vw, 2.7rem);
  line-height: 0.9;
}

#detailSummary {
  grid-area: summary;
  margin: 0;
  font-family: var(--font-content);
  color: #d8e8ff;
  font-size: 0.85rem;
  line-height: 1.45;
}

.property-detail-meta-grid {
  grid-area: meta;
  margin-top: 1px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.property-detail-meta-grid div {
  border: 1px solid rgba(184, 210, 250, 0.5);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  padding: 8px 9px;
  display: grid;
  gap: 3px;
  min-height: 62px;
  align-content: center;
}

.property-detail-meta-grid span {
  color: #c8ddff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.47rem;
  font-weight: 800;
}

.property-detail-meta-grid strong {
  color: #f6faff;
  font-size: 0.89rem;
  font-weight: 800;
}

.property-detail-actions {
  grid-area: actions;
  margin-top: 1px;
  display: flex;
  justify-content: center;
}

.property-detail-actions .property-btn {
  padding: 9px 15px;
  font-size: 0.58rem;
}

.property-detail-share {
  display: none;
}

.property-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  border: 1px solid rgba(189, 215, 252, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf5ff;
  padding: 0 12px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.property-share-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(209, 225, 250, 0.42);
  box-shadow: 0 12px 22px rgba(7, 29, 63, 0.18);
}

.property-share-trigger.is-feedback {
  border-color: rgba(201, 169, 110, 0.36);
  background: rgba(201, 169, 110, 0.16);
}

.property-detail-side-grid {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.property-detail-side-card {
  border: 1px solid rgba(184, 210, 250, 0.5);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.1));
  padding: 10px;
  display: grid;
  gap: 4px;
}

.property-detail-side-card span {
  color: #c8ddff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.51rem;
  font-weight: 800;
}

.property-detail-side-card strong {
  color: #f6faff;
  font-size: 0.95rem;
  font-weight: 800;
}

.property-detail-side-cta {
  margin-top: 6px;
}

.property-detail-side-cta .property-btn {
  width: 100%;
}

.property-detail-concierge {
  grid-area: concierge;
  margin-top: 0;
  border: 1px solid rgba(189, 215, 252, 0.44);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  padding: 11px 12px 12px;
  display: grid;
  gap: 10px;
}

.property-detail-support {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.property-detail-support-title {
  margin: 0;
  color: #f2f8ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.55rem;
  font-weight: 800;
}

.property-detail-support-body {
  margin: 0;
  color: #d8e9ff;
  font-size: 0.8rem;
  line-height: 1.5;
}

.property-detail-support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-detail-support-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(191, 216, 251, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #eaf3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 5px 9px;
}

.property-detail-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.property-concierge-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.48rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(191, 216, 251, 0.64);
  background: rgba(255, 255, 255, 0.14);
  color: #f2f8ff;
  min-height: 40px;
  padding: 6px 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.property-concierge-action:hover {
  transform: translateY(-1px);
  border-color: rgba(223, 236, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
}

.property-concierge-action:focus-visible {
  outline: 2px solid #dcecff;
  outline-offset: 2px;
}

.property-concierge-action--wide {
  grid-column: auto;
}

.property-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm, 0.62rem);
  font-weight: 800;
  border-radius: var(--radius-pill, 999px);
  padding: 10px var(--space-4, 16px);
  transition: transform var(--duration-fast, 0.22s) var(--ease-standard, ease), box-shadow var(--duration-fast, 0.22s) var(--ease-standard, ease), filter var(--duration-fast, 0.22s) var(--ease-standard, ease);
}

.property-btn-primary {
  background: linear-gradient(145deg, var(--color-btn-from, #2e66bb), var(--color-btn-to, #174283));
  border: 1px solid var(--color-btn-border, #2f64b2);
  box-shadow: var(--shadow-btn-strong, 0 12px 26px rgba(7, 29, 63, 0.24));
  color: #fff;
}

.property-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(191, 214, 250, 0.6);
  box-shadow: var(--premium-btn-shadow-soft, 0 10px 22px rgba(8, 34, 73, 0.14));
  color: #f2f7ff;
}

.property-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--premium-btn-shadow-hover, 0 18px 34px rgba(7, 29, 63, 0.3));
}

.property-btn:active {
  transform: translateY(0);
  box-shadow: var(--premium-btn-shadow-soft, 0 10px 22px rgba(8, 34, 73, 0.14));
}

.property-detail-section {
  margin-top: 20px;
  border: 1px solid #c6dafb;
  border-radius: 18px;
  background: linear-gradient(176deg, #ffffff, #f5f9ff);
  box-shadow: 0 16px 38px rgba(10, 37, 82, 0.08);
  padding: 16px;
}

.property-detail-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-navy-980);
  font-size: 2.25rem;
  line-height: 0.9;
}

.property-detail-description-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: start;
  margin-top: 14px;
}

.property-detail-description {
  min-width: 0;
  font-family: var(--font-content);
  color: #143e7a;
  font-size: clamp(1.05rem, 1.12vw, 1.18rem);
  line-height: 1.66;
  letter-spacing: 0.005em;
  font-weight: 500;
  word-break: break-word;
}

.property-detail-features-aside {
  position: sticky;
  top: var(--property-features-sticky-top, 132px);
  border: 1px solid #b2cbf5;
  border-radius: 18px;
  background: linear-gradient(160deg, #f5f9ff 0%, #e8f1ff 100%);
  box-shadow: 0 16px 30px rgba(9, 33, 79, 0.13);
  padding: 20px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.property-features-title {
  margin: 0;
  font-family: var(--font-ui);
  color: #082244;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.property-features-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-content: start;
}

.property-features-list li {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(42, 95, 192, 0.24);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #0f3468;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.34;
  padding: 10px 11px 10px 43px;
  position: relative;
  box-shadow: 0 8px 16px rgba(10, 36, 81, 0.09);
}

.property-features-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(145deg, #2a5fc0, #1a43a0);
  box-shadow: 0 6px 12px rgba(14, 55, 131, 0.32);
}

@media (max-width: 900px) {
  .property-detail-description-layout {
    grid-template-columns: 1fr;
  }

  .property-detail-features-aside {
    position: static;
    min-height: 0;
  }

  .property-features-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .property-features-list {
    grid-template-columns: 1fr;
  }
}

.property-description-group {
  margin: 0 0 1.15rem;
}

.property-description-group:last-child {
  margin-bottom: 0;
}

.property-description-group-title {
  margin: 0 0 0.55rem;
}

.property-description-group--financial {
  border: 1px solid rgba(57, 104, 180, 0.14);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(233, 243, 255, 0.55), rgba(248, 252, 255, 0.78));
  padding: 0.72rem 0.78rem 0.08rem;
}

.property-description-list {
  margin-top: 0.15rem;
}

.property-description-inline-heading {
  margin: 0.28rem 0 0.5rem;
  color: #0f3364;
  font-family: var(--font-ui);
  font-size: 1.01rem;
  letter-spacing: 0.01em;
}

.property-description-inline-heading strong {
  color: inherit;
  font-weight: 800;
}

.property-detail-description p {
  margin: 0 0 1rem;
}

.property-detail-description p:last-child {
  margin-bottom: 0;
}

.property-detail-description ul,
.property-detail-description ol {
  margin: 0.2rem 0 1.1rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.72rem;
}

.property-detail-description li {
  color: #153f7b;
  font-weight: 600;
  line-height: 1.58;
}

.property-detail-description strong {
  color: #0f3364;
  font-weight: 780;
}

.property-detail-description h3,
.property-detail-description h4 {
  margin: 1.05rem 0 0.52rem;
  color: #0f3364;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.property-detail-description h3:first-child,
.property-detail-description h4:first-child {
  margin-top: 0;
}

.property-detail-description blockquote {
  margin: 0.4rem 0 1rem;
  padding: 0.5rem 0.8rem;
  border-left: 3px solid rgba(33, 84, 165, 0.45);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(232, 242, 255, 0.74), rgba(255, 255, 255, 0));
  color: #1b467f;
}

.property-description-group--rich > :first-child {
  margin-top: 0;
}

.property-description-group--rich > :last-child {
  margin-bottom: 0;
}

.property-related-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.property-related-card {
  position: relative;
  border: 1px solid var(--color-line, #c6dafb);
  border-radius: var(--radius-md, 14px);
  background: #fff;
  box-shadow: var(--shadow-md, 0 14px 30px rgba(9, 36, 78, 0.1));
  overflow: hidden;
  display: grid;
  transition: transform var(--duration-normal, 0.34s) var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow var(--duration-fast, 0.22s) var(--ease-standard, ease), border-color var(--duration-fast, 0.22s) var(--ease-standard, ease);
}

.property-related-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--accent-bar-height, 5px);
  background: var(--accent-bar, linear-gradient(90deg, rgba(28, 79, 153, 0.88), rgba(48, 104, 190, 0.18)));
  z-index: 2;
}

.property-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-card-hover, #a8c8f8);
  box-shadow: var(--shadow-lg, 0 22px 44px rgba(9, 36, 78, 0.16));
}

.property-related-image {
  display: block;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #d4e4ff;
  overflow: hidden;
}

.property-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-related-body {
  padding: var(--space-3, 12px);
  display: grid;
  gap: var(--space-2, 8px);
}

.property-related-body h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-navy-980);
  font-size: var(--text-xl, clamp(1.4rem, 2vw, 1.6rem));
  line-height: 0.92;
}

.property-related-body h3 a {
  color: inherit;
  text-decoration: none;
}

.property-related-body h3 a:hover {
  color: #1f4f98;
}

.property-related-body p {
  margin: 0;
  font-family: var(--font-content);
  color: #2b5ca0;
  font-size: 0.88rem;
  line-height: 1.52;
}

.property-related-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #2a5a9f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  font-weight: 800;
}

.viewing-modal[hidden] {
  display: none !important;
}

.viewing-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 16px;
}

.viewing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 30, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.viewing-modal-card {
  position: relative;
  width: min(760px, 100%);
  border: 1px solid rgba(167, 194, 237, 0.38);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(4, 20, 50, 0.95) 0%, rgba(7, 28, 66, 0.9) 52%, rgba(11, 36, 81, 0.86) 100%);
  box-shadow: 0 24px 54px rgba(13, 34, 56, 0.45);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  padding: 18px;
  z-index: 1;
}

.viewing-modal-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(191, 214, 250, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2f7ff;
  font-size: 1.18rem;
  line-height: 1;
  cursor: pointer;
}

.viewing-modal-eyebrow {
  margin: 0;
  color: #bdd5fb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.54rem;
  font-weight: 800;
}

#viewingModalTitle {
  margin: 8px 0 0;
  font-family: var(--font-display);
  color: #f6faff;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.9;
}

.viewing-property-context {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.viewing-property-context div {
  border: 1px solid rgba(182, 208, 248, 0.44);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 9px;
  display: grid;
  gap: 3px;
}

.viewing-property-context span {
  color: #bcd5fb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.5rem;
  font-weight: 800;
}

.viewing-property-context strong {
  color: #f2f7ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.viewing-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.viewing-form label {
  display: block;
  margin: 0 0 5px;
  color: #bdd5fb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.5rem;
  font-weight: 800;
}

.viewing-form input,
.viewing-form textarea {
  width: 100%;
  border: 1px solid rgba(191, 214, 250, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #f2f7ff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 11px;
}

.viewing-form textarea {
  min-height: 92px;
  resize: vertical;
}

.viewing-form input::placeholder,
.viewing-form textarea::placeholder {
  color: rgba(214, 228, 251, 0.75);
}

.viewing-form-full {
  grid-column: 1 / -1;
}

.viewing-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.viewing-form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #d5e6ff;
  font-size: 0.78rem;
}

.viewing-status {
  display: block;
  min-height: 1.1rem;
}

.viewing-form-success {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(62, 149, 94, 0.46);
  background: rgba(24, 103, 58, 0.2);
  color: #d3f2de;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  outline: none;
}

.viewing-form-success strong {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.viewing-form-success p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #c7ecd5;
}

.viewing-form-success.is-visible {
  animation: successFadeIn 0.4s ease;
}

@media (max-width: 1080px) {
  .property-detail-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "mosaic";
    gap: 10px;
  }

  .property-detail-image-wrap {
    min-height: 360px;
  }

  .property-detail-mosaic {
    min-height: 160px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 10px;
  }

  .property-detail-panel {
    grid-template-areas:
      "eyebrow"
      "title"
      "summary"
      "meta"
      "actions";
  }

  .property-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-gallery-nav {
    width: 42px;
    height: 42px;
  }

  .property-gallery-thumb {
    min-width: 118px;
    width: 118px;
  }

  .property-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .property-detail-shell {
    margin-top: 14px;
  }

  .property-detail-hero {
    border-radius: 16px;
    padding: 8px;
    gap: 0;
  }

  .property-detail-section {
    border-radius: 14px;
    padding: 12px;
  }

  .property-detail-image-wrap {
    min-height: 250px;
    border-radius: 10px;
  }

  .property-detail-panel {
    border-radius: 14px;
    padding: 18px 18px 16px;
    margin-top: 8px;
  }

  .property-detail-mosaic {
    display: none;
  }

  .property-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .property-gallery-nav {
    width: 40px;
    height: 40px;
  }

  .property-gallery-nav--overlay {
    top: 42%;
  }

  .property-gallery-thumb {
    min-width: 102px;
    width: 102px;
  }

  .property-gallery-nav--prev {
    left: 8px;
  }

  .property-gallery-nav--next {
    right: 8px;
  }

  .property-related-grid {
    grid-template-columns: 1fr;
  }

  .property-detail-concierge {
    margin-top: 8px;
    padding: 10px 10px 11px;
  }

  .property-detail-support-body {
    font-size: 0.76rem;
    line-height: 1.48;
  }

  .property-detail-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-concierge-action--wide {
    grid-column: 1 / -1;
  }

  .property-detail-description {
    font-size: 1rem;
    line-height: 1.58;
    max-width: 100%;
  }

  .viewing-property-context {
    grid-template-columns: 1fr;
  }

  .viewing-form {
    grid-template-columns: 1fr;
  }

  .viewing-form-actions {
    flex-direction: column;
  }
}

/* ============================================================
   LIGHTBOX — fullscreen image gallery overlay
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13, 34, 56, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxIn 0.25s ease;
  padding: 18px 20px 24px;
  box-sizing: border-box;
}

.lightbox-overlay[hidden] {
  display: none;
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-content {
  position: relative;
  width: 92vw;
  max-width: 1200px;
  height: 90vh;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100% - 142px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.lightbox-nav--prev {
  left: 20px;
}

.lightbox-nav--next {
  right: 20px;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px 2px 8px;
  min-height: 56px;
  align-items: center;
  scrollbar-width: none;
}

.lightbox-strip::-webkit-scrollbar {
  display: none;
}

.lightbox-strip-thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

body.lightbox-open .wa-concierge {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, 12px, 0) !important;
}

.lightbox-strip-thumb:hover {
  opacity: 0.8;
}

.lightbox-strip-thumb.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.8);
}

.lightbox-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   IMAGE COUNTER — "3 / 17" overlay on main hero image
   ============================================================ */
.property-image-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(13, 34, 56, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f2f8ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease;
}


/* Click hint on main image */
.property-detail-image-wrap {
  cursor: pointer;
}

.property-detail-image-wrap::after {
  content: '\1F50D Enlarge';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.property-detail-image-wrap:hover::after {
  opacity: 1;
}

@media (max-width: 760px) {
  .lightbox-nav--prev { left: 4px; }
  .lightbox-nav--next { right: 4px; }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-content {
    width: 98vw;
    height: 92vh;
  }
}


/* ============================================================
   DESIGN SYSTEM — Focus States
   ============================================================ */
.property-gallery-nav:focus-visible,
.property-gallery-thumb:focus-visible,
.property-gallery-mobile-trigger:focus-visible,
.property-btn:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(47, 103, 188, 0.2));
}

.viewing-modal-card input:focus-visible,
.viewing-modal-card select:focus-visible,
.viewing-modal-card textarea:focus-visible {
  outline: none;
  border-color: var(--color-navy-820, #2f67bc);
  box-shadow: var(--focus-ring-on-dark, 0 0 0 3px rgba(96, 145, 227, 0.22));
}


/* ============================================================
   DESIGN SYSTEM — Form Validation States
   ============================================================ */
.viewing-status.is-success {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-3, 12px);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-success-bg, rgba(28, 111, 53, 0.14));
  border: 1px solid var(--color-success-border, rgba(28, 111, 53, 0.3));
  color: #c4f0d0;
  font-weight: 700;
  animation: successFadeIn 0.4s ease;
}

.viewing-status.is-error {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-3, 12px);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-error-bg, rgba(229, 57, 53, 0.1));
  border: 1px solid var(--color-error-border, rgba(229, 57, 53, 0.28));
  color: #ffcdd2;
  font-weight: 700;
  animation: successFadeIn 0.4s ease;
}


/* ============================================================
   DESIGN SYSTEM — Related Card Image Blur-Up
   ============================================================ */
.property-related-image {
  position: relative;
  background: #eaf2ff;
}

/* Spinner for related property card thumbnails */
.property-related-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(29, 66, 134, 0.12);
  border-top-color: #c9a96e;
  animation: landmark-spin 0.8s linear infinite;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.property-related-image.img-ready::before {
  opacity: 0;
  animation: none;
}

.property-related-image img {
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard, ease);
}

.property-related-image img.is-loaded {
  opacity: 1;
}

.property-related-image.img-ready {
  background: transparent;
}

.property-mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  .property-detail-page {
    padding-bottom: calc(98px + var(--safe-area-bottom));
  }

  .property-detail-shell {
    margin-top: 12px;
    display: grid;
    gap: 12px;
  }

  .property-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "image";
    align-items: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  .property-detail-image-wrap {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 11;
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(8, 31, 67, 0.22);
  }

  .property-detail-image-wrap img {
    min-width: 100%;
  }

  .property-detail-image-wrap::after {
    display: none;
  }

  .property-gallery-mobile-toolbar {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .property-gallery-mobile-trigger {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.52rem;
  }

  .property-detail-gallery,
  .property-gallery-controls,
  .property-gallery-controls--hidden,
  .property-detail-mosaic {
    display: none !important;
  }

  .property-gallery-controls,
  .property-gallery-controls--hidden {
    min-width: 0;
    width: 100%;
  }

  .property-detail-panel {
    margin-top: 0;
    padding: 16px 15px 15px;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(8, 31, 67, 0.18);
    grid-template-areas:
      "eyebrow"
      "title"
      "summary"
      "share"
      "meta"
      "actions";
    gap: 9px;
  }

  .property-detail-panel h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.35rem);
    line-height: 0.98;
  }

  #detailSummary {
    font-size: 0.8rem;
    line-height: 1.46;
  }

  .property-detail-share {
    grid-area: share;
    display: flex;
  }

  .property-share-trigger {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.54rem;
  }

  .property-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .property-detail-meta-grid div {
    min-height: 0;
    padding: 10px;
  }

  .property-detail-actions {
    display: none;
  }

  .property-gallery-nav--overlay {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .property-gallery-nav--overlay:hover,
  .property-gallery-nav--overlay:disabled {
    transform: translateY(-50%);
  }

  .property-gallery-nav--prev {
    left: 16px;
  }

  .property-gallery-nav--next {
    right: 16px;
  }

  .property-image-counter {
    left: auto;
    right: 16px;
    bottom: 16px;
    font-size: 0.62rem;
    padding: 5px 10px;
  }

  .property-detail-section {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .property-detail-section-head h2 {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem);
  }

  .property-detail-description-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .property-detail-features-aside {
    display: none !important;
  }

  .property-mobile-features-section:not([hidden]) {
    display: block;
  }

  .property-mobile-features-section {
    margin-top: 0;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(8, 31, 67, 0.12);
  }

  .property-mobile-features-section .property-detail-section-head {
    margin-bottom: 12px;
  }

  .property-mobile-features-section .property-detail-section-head h2 {
    font-size: clamp(1.36rem, 6vw, 1.8rem);
  }

  .property-mobile-features-section .property-features-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .property-mobile-features-section .property-features-list li {
    align-items: flex-start;
    min-height: 72px;
    padding: 12px 12px 12px 40px;
    border-radius: 15px;
    font-size: 0.84rem;
    line-height: 1.42;
    box-shadow: 0 10px 20px rgba(10, 36, 81, 0.08);
  }

  .property-mobile-features-section .property-features-list li::before {
    top: 14px;
    transform: none;
    width: 20px;
    height: 20px;
    font-size: 0.74rem;
  }

  .property-related-grid {
    gap: 12px;
  }

  .property-mobile-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--safe-area-bottom));
    z-index: 145;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(189, 215, 252, 0.24);
    border-radius: 20px;
    background: rgba(8, 31, 67, 0.94);
    box-shadow: 0 22px 46px rgba(7, 29, 63, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .property-mobile-action {
    appearance: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(191, 216, 251, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #f2f8ff;
    padding: 0 10px;
    cursor: pointer;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    font-family: inherit;
  }

  .property-mobile-action--primary {
    background: linear-gradient(145deg, var(--color-btn-from, #2e66bb), var(--color-btn-to, #174283));
    border-color: var(--color-btn-border, #2f64b2);
    box-shadow: 0 16px 30px rgba(7, 29, 63, 0.22);
  }

  .property-mobile-action--share {
    background: linear-gradient(145deg, rgba(201, 169, 110, 0.28), rgba(111, 83, 32, 0.22));
    border-color: rgba(211, 180, 122, 0.34);
    color: #fff5e0;
  }

  .property-mobile-action--whatsapp {
    background: rgba(44, 152, 91, 0.16);
    border-color: rgba(82, 216, 139, 0.32);
    color: #e9fff1;
  }
}

@media (max-width: 420px) {
  .property-mobile-features-section .property-features-list {
    grid-template-columns: 1fr;
  }
}
