.shared-realestate-detail {
  --detail-brand: #003c47;
  --detail-primary: #003c47;
  --detail-accent: #f28c00;
  --detail-ink: #172f34;
  --detail-muted: #687b7f;
  --detail-line: #e2e9e8;
  --detail-soft: #f5f8f8;
  width: 100%;
  color: var(--detail-ink);
  font-family: inherit;
}

.shared-realestate-detail,
.shared-realestate-detail * {
  box-sizing: border-box;
}

.shared-realestate-detail .panorama-tour-arrow {
  width: 92px !important;
  height: 38px !important;
  margin-top: -19px !important;
  margin-left: -46px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  background-image: none !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 50% !important;
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(1px);
  cursor: pointer !important;
}

.shared-realestate-detail .panorama-tour-arrow::before {
  position: absolute;
  top: 5px;
  left: 34px;
  width: 22px;
  height: 22px;
  content: "";
  border-top: 7px solid rgba(98, 98, 98, 0.72);
  border-right: 7px solid rgba(98, 98, 98, 0.72);
  transform: rotate(calc(-45deg + var(--tour-arrow-rotation, 0deg)));
  transform-origin: center;
}

.shared-realestate-detail .panorama-tour-arrow::after {
  position: absolute;
  top: 16px;
  left: 39px;
  width: 13px;
  height: 13px;
  content: "";
  border-top: 6px solid rgba(120, 120, 120, 0.52);
  border-right: 6px solid rgba(120, 120, 120, 0.52);
  transform: rotate(calc(-45deg + var(--tour-arrow-rotation, 0deg)));
  transform-origin: center;
}

.shared-realestate-detail > .container,
.shared-realestate-detail .price-section.container {
  width: min(1320px, calc(100% - 32px));
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

.shared-realestate-detail > .container-mosiac {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.shared-realestate-detail .price-section.container {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.shared-realestate-detail .swiper-mosaic-realestate {
  width: 100%;
  overflow: hidden;
  background: #eef3f2;
  border-radius: 18px;
}

.shared-realestate-detail .rever-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 8px;
  height: clamp(360px, 42vw, 520px);
  overflow: hidden;
  border-radius: 18px;
}

.shared-realestate-detail .mosaic-left,
.shared-realestate-detail .mosaic-right,
.shared-realestate-detail .main-img-wrap,
.shared-realestate-detail .main-link,
.shared-realestate-detail .small {
  min-width: 0;
  min-height: 0;
}

.shared-realestate-detail .main-link,
.shared-realestate-detail .mosaic-right .small {
  display: block;
  width: 100%;
  height: 100%;
}

.shared-realestate-detail .mosaic-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.shared-realestate-detail .rever-mosaic img,
.shared-realestate-detail .mobile-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-realestate-detail #count-mosaic {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
}

.shared-realestate-detail .swiper-slide-wrap {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 42vw, 520px);
  color: var(--detail-muted);
  background: var(--detail-soft);
}

.shared-realestate-detail #box-info-detail-video.swiper-slide-wrap {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #081315;
}

.shared-realestate-detail #box-info-detail-video .widget-video,
.shared-realestate-detail #box-info-detail-video .video-thumbnail-container {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #000;
}

.shared-realestate-detail #box-info-detail-video .video-thumbnail-container > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.shared-realestate-detail #box-info-detail-video .video-thumbnail-container > img[hidden] {
  display: none;
}

.shared-realestate-detail .rever-mobile-swiper {
  display: none;
}

.shared-realestate-detail .gallery-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 12px;
  padding: 0;
}

.shared-realestate-detail .gallery-thumbs {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.shared-realestate-detail .gallery-thumbs .swiper-slide {
  width: 76px;
  height: 58px;
}

.shared-realestate-detail .gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.shared-realestate-detail .gallery-thumbs img.rever-thumb-active {
  border-color: var(--detail-accent);
}

.shared-realestate-detail .thumb-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--detail-brand);
  font-size: 24px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 50%;
  cursor: pointer;
}

.shared-realestate-detail .rever-bottombar {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 60, 71, 0.08);
}

.shared-realestate-detail .rever-tabs,
.shared-realestate-detail .tabs-utilities {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  background: var(--detail-soft);
  border: 1px solid var(--detail-line);
  border-radius: 12px;
}

.shared-realestate-detail .rever-bottombar .rever-tabs {
  align-items: stretch;
  padding: 0;
  background: transparent;
  border: 0;
}

.shared-realestate-detail .rever-bottombar .rever-tab {
  min-height: 44px;
  align-self: stretch;
  box-sizing: border-box;
  overflow: hidden;
}

.shared-realestate-detail .rever-tab,
.shared-realestate-detail .tabs-utilities button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 108px;
  padding: 11px 16px;
  color: var(--detail-muted);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  justify-content: center;
  white-space: nowrap;
  height: 4rem;
}

.shared-realestate-detail .rever-tab.active,
.shared-realestate-detail .tabs-utilities button.active {
  color: #fff;
  background: var(--detail-brand);
}

.shared-realestate-detail .rever-tab.disabled,
.shared-realestate-detail .rever-tab:disabled {
  color: #9aa8aa;
  background: #edf1f1;
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(1);
  box-shadow: none;
}

.shared-realestate-detail .rever-tab.disabled svg,
.shared-realestate-detail .rever-tab:disabled svg {
  opacity: 0.72;
}

.shared-realestate-detail .price-section {
  margin-top: 30px;
  margin-bottom: 46px;
  overflow: visible !important;
}

.shared-realestate-detail .realestate-info-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 34px;
  overflow: visible !important;
}

.shared-realestate-detail .realestate-info-left {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

.shared-realestate-detail .realestate-info-right {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 90px !important;
  right: auto !important;
  z-index: 8;
  width: 100% !important;
  min-width: 0;
  height: fit-content;
  align-self: start;
}

@media (min-width: 769px) {
  .shared-realestate-detail[data-detail-context="client-detail"] .realestate-info-right.is-contact-fixed {
    position: fixed !important;
    top: 90px !important;
    right: max(16px, calc((100vw - 1320px) / 2)) !important;
    width: 330px !important;
  }

  .shared-realestate-detail[data-detail-context="client-detail"] .price-section {
    position: relative;
  }

  .shared-realestate-detail[data-detail-context="client-detail"] .realestate-info-right.is-contact-bottom {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0;
    width: 330px !important;
  }
}

.shared-realestate-detail .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 17px;
  padding: 0;
  color: var(--detail-muted);
  font-size: 13px;
  list-style: none;
}

.shared-realestate-detail .breadcrumb li {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.shared-realestate-detail .breadcrumb li::before {
  display: none !important;
  content: none !important;
}

.shared-realestate-detail .breadcrumb a {
  color: inherit;
  text-decoration: none !important;
  border: 0 !important;
}

.shared-realestate-detail .breadcrumb a:hover {
  color: var(--detail-brand);
}

.shared-realestate-detail .detail-inline-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #71410b;
  background: #fff8ed;
  border: 1px solid #f1c98f;
  border-radius: 12px;
}

.shared-realestate-detail .detail-inline-notice > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--detail-accent);
}

.shared-realestate-detail .detail-inline-notice div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.5;
}

.shared-realestate-detail .breadcrumb li:not(:last-child)::after {
  margin-left: 7px;
  color: #aebdbc;
  content: "/";
}

.shared-realestate-detail #image-wrap-panorama,
.shared-realestate-detail #image-wrap-panorama-mobile {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.shared-realestate-detail .panorama-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  padding: 9px 14px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.shared-realestate-detail .pnlm-container {
  width: 100% !important;
  height: 100% !important;
}

.shared-realestate-detail .p-title-realestate {
  margin: 0;
  color: var(--detail-ink);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* Detail titles and addresses should wrap naturally instead of being truncated. */
.shared-realestate-detail .p-title-realestate,
.shared-realestate-detail .p-address-realestate {
  display: block;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset !important;
}

.shared-realestate-detail .p-address-realestate {
  display: flex;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--detail-muted);
  font-size: 15px;
  line-height: 1.55;
}

.shared-realestate-detail .p-address-realestate > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  color: var(--detail-accent);
}

.shared-realestate-detail .box-quick-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
}

.shared-realestate-detail .quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 5vw, 55px);
}

.shared-realestate-detail .quick-info > div {
  display: grid;
  gap: 5px;
}

.shared-realestate-detail .quick-info p {
  margin: 0;
}

.shared-realestate-detail .quick-info strong {
  color: var(--detail-brand);
  font-size: 20px;
}

.shared-realestate-detail .quick-info span {
  color: var(--detail-muted);
  font-size: 13px;
}

.shared-realestate-detail .box-action-realestate-detail {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

.shared-realestate-detail .item-action-detail {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--detail-brand);
  font-size: 18px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 50%;
}

.shared-realestate-detail .item-action-detail svg,
.shared-realestate-detail .thumb-nav svg {
  width: 20px;
  height: 20px;
}

.shared-realestate-detail section:not(.price-section) {
  margin-top: 32px;
}

/* Keep the main information blocks visually separated from the page background,
   matching the dashboard transaction card treatment. */
.shared-realestate-detail .realestate-info-left > section:not(.price-section),
.shared-realestate-detail .realestate-info-left > [data-detail-nearby] {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.shared-realestate-detail .realestate-loan-card {
  overflow: hidden;
}
.shared-realestate-detail .realestate-loan-card .title-loan-card {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
}

.shared-realestate-detail .realestate-loan-card .lc-body {
  margin-top: 0;
  background: transparent;
}

.shared-realestate-detail .realestate-loan-card .lc-wrapper {
  max-width: none;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.shared-realestate-detail .agent-profile-link {
  color: inherit;
  text-decoration: none;
}

.shared-realestate-detail .detail-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 10px 0 0;
  padding: 6px 11px;
  color: #075f49;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
  background: #d9f6e8;
  border: 1px solid #65c99a;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(8, 116, 67, 0.12);
}

.shared-realestate-detail .detail-verified-badge svg {
  width: 19px;
  height: 19px;
}

.shared-realestate-detail .detail-verified-card {
  padding: 18px 22px;
  color: #163b42;
  background: #f2f2f2;
  border-radius: 9px;
}

.shared-realestate-detail .detail-verified-card__heading,
.shared-realestate-detail .detail-verified-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shared-realestate-detail .detail-verified-card__heading {
  color: #18353b;
}

.shared-realestate-detail .detail-verified-card__heading svg,
.shared-realestate-detail .detail-verified-card li svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #087443;
}

.shared-realestate-detail .detail-verified-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.shared-realestate-detail .detail-verified-card details {
  margin-top: 12px;
}

.shared-realestate-detail .detail-verified-card summary {
  color: #164952;
  cursor: pointer;
}

.shared-realestate-detail .detail-verified-card details p {
  margin: 8px 0 0 32px;
  color: #557076;
  font-size: 13px;
}

.shared-realestate-detail section:not(.price-section) h2 {
  margin: 0 0 16px;
  color: var(--detail-brand);
  font-size: 21px;
}

.shared-realestate-detail .box-description-realestate {
  margin: 0;
  color: #42595e;
  font-size: 16px;
  line-height: 1.75;
}

.shared-realestate-detail .read-more {
  margin-top: 10px;
  padding: 0;
  color: var(--detail-brand);
  font-weight: 700;
  background: none;
  border: 0;
}

.shared-realestate-detail .utilities-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--detail-soft);
  border: 1px solid var(--detail-line);
  border-radius: 16px;
}

.shared-realestate-detail .utilities,
.shared-realestate-detail .body-select-other-info-type {
  display: block !important;
  width: 100% !important;
  margin-top: 32px;
}

.shared-realestate-detail .utilities > .detail-title,
.shared-realestate-detail .body-select-other-info-type > .detail-title,
.shared-realestate-detail .box-description-detail > .detail-title {
  margin: 0 0 14px;
  color: var(--detail-ink);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
}

.shared-realestate-detail .box-description-detail {
  margin-top: 28px;
}

.shared-realestate-detail .box-description-realestate {
  width: 100%;
  margin: 0;
  padding: 20px 20px 38px;
  color: var(--detail-ink);
  line-height: 1.75;
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
  border: 1px solid var(--detail-line);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 8px 24px rgba(0, 60, 71, 0.05);
}

.shared-realestate-detail .description-read-more-bar {
  display: flex;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px rgba(0, 60, 71, 0.05);
}

.shared-realestate-detail .box-description-detail .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: static;
  margin: 0 auto;
  padding: 0;
  color: var(--detail-brand);
  font-weight: 800;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.shared-realestate-detail .box-description-detail .read-more svg {
  width: 18px;
  height: 18px;
  padding: 2px;
  color: var(--detail-accent);
  border: 1px solid var(--detail-accent);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.shared-realestate-detail .box-description-detail .read-more.is-expanded svg {
  transform: rotate(180deg);
}

.shared-realestate-detail .u-box {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--detail-line);
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(0, 60, 71, 0.035);
  transform: none;
}

.shared-realestate-detail .u-box > span {
  color: var(--detail-muted);
}

.shared-realestate-detail .u-box-label,
.shared-realestate-detail .amenity-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shared-realestate-detail .u-box-label svg,
.shared-realestate-detail .amenity-icon svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--detail-brand);
}

.shared-realestate-detail [data-detail-amenities] .u-box {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #e3eaea;
  box-shadow: 0 4px 12px rgba(0, 60, 71, 0.04);
}

.shared-realestate-detail [data-detail-amenities] .utilities-list {
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.shared-realestate-detail [data-detail-amenities] .amenity-icon {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--detail-brand);
  background: #e8f3f1;
  border-radius: 10px;
  place-items: center;
}

.shared-realestate-detail .detail-u-box {
  font-weight: 700;
}

.shared-realestate-detail .box-utilities-map {
  min-height: 300px;
  overflow: hidden;
  background: var(--detail-soft);
  border: 1px solid var(--detail-line);
  border-radius: 16px;
}

.shared-realestate-detail .nearby-map-canvas {
  width: 100%;
  min-height: 300px;
}

.shared-realestate-detail .box-utilities-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.shared-realestate-detail .media-title-247 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-weight: 800;
}

.shared-realestate-detail .media-title-247 svg,
.shared-realestate-detail .detail-title-icon svg {
  width: 24px;
  height: 24px;
}

.shared-realestate-detail .box-utilities-detail {
  overflow: hidden;
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.shared-realestate-detail .detail-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: var(--detail-soft);
}

.shared-realestate-detail .detail-title-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: var(--detail-brand);
  background: #e8f3f1;
  border-radius: 10px;
  place-items: center;
}

.shared-realestate-detail .detail-title p {
  margin: 0;
  font-weight: 800;
}

.shared-realestate-detail .detail-content {
  padding: 4px 12px 12px;
}

.shared-realestate-detail .list-content-utilities {
  padding: 0;
  margin: 0;
  list-style: none;
}

.shared-realestate-detail .item-content-utility {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--detail-line);
}

.shared-realestate-detail .item-content-utility.read-more {
  font-weight: 800;
  color: var(--detail-primary);
  border-bottom: 0;
}

.shared-realestate-detail .contact-card {
  display: block !important;
  width: 100%;
  max-width: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 60, 71, 0.1);
  transform: none !important;
}

.shared-realestate-detail .contact-cover {
  height: 112px;
  margin: 0 -22px 18px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #dcece8, #eff6f3);
}

.shared-realestate-detail .contact-card.has-cover {
  padding: 0 22px 22px;
}

.shared-realestate-detail .contact-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-realestate-detail .contact-card:hover {
  background: #fff;
  transform: none !important;
}

.shared-realestate-detail .sticky-box {
  position: static !important;
  top: auto !important;
}

.shared-realestate-detail[data-detail-context^="admin-"] .realestate-info-right {
  position: relative !important;
  top: auto !important;
  height: 100%;
  align-self: stretch;
}

.shared-realestate-detail[data-detail-context^="admin-"] .contact-card.sticky-box {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 90px !important;
}

.shared-realestate-detail .agent-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.shared-realestate-detail .agent-profile-link {
  display: flex;
  min-width: 0;
  grid-column: 1 / -1;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.shared-realestate-detail .agent-profile-link:hover .agent-info strong {
  color: var(--detail-primary);
}

.shared-realestate-detail .agent-avatar img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.shared-realestate-detail .agent-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shared-realestate-detail .agent-info strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.shared-realestate-detail .agent-info span {
  color: var(--detail-muted);
  font-size: 13px;
}

.shared-realestate-detail .button-contact,
.shared-realestate-detail .button-zalo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 11px;
  padding: 12px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  background: var(--detail-brand);
  border: 0;
  border-radius: 9px;
  width: 100%;
  gap: 8px;
  white-space: normal;
  position: static !important;
  max-width: none !important;
  transform: none !important;
}

.shared-realestate-detail .contact-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  margin-top: 11px;
}

.shared-realestate-detail .contact-actions .button-contact,
.shared-realestate-detail .contact-actions .button-zalo {
  margin-top: 0;
}

.shared-realestate-detail .contact-actions .button-listings {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  color: var(--detail-brand);
  font-weight: 750;
  text-decoration: none;
  background: #f1f8f6;
  border: 1px solid #cde5de;
  border-radius: 9px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.shared-realestate-detail .contact-actions .button-listings:hover {
  background: #e2f2ed;
  border-color: #9fcec0;
  transform: translateY(-1px);
}

.shared-realestate-detail .contact-actions .button-listings svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.shared-realestate-detail .button-contact svg,
.shared-realestate-detail .button-zalo svg,
.shared-realestate-detail .contact-card-mobile svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.shared-realestate-detail .button-zalo .zalo-icon,
.shared-realestate-detail .contact-card-mobile .zalo-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.shared-realestate-detail .button-zalo {
  color: var(--detail-brand);
  background: #fff;
  border: 1px solid var(--detail-brand);
}

.shared-realestate-detail .contact-card-mobile {
  display: none;
}

.detail-copy-toast {
  position: fixed;
  top: calc(var(--broker-sticky-top, 85px) + 16px);
  right: 20px;
  z-index: 2000;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  width: min(360px, calc(100vw - 32px));
  padding: 13px 12px 13px 14px;
  color: #18352e;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d7ebe3;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(13, 55, 43, 0.18);
  opacity: 0;
  transform: translate3d(24px, -8px, 0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: none;
}

.detail-copy-toast[hidden] {
  display: none;
}

.detail-copy-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.detail-copy-toast__icon {
  display: grid;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #16805c;
  border-radius: 10px;
  place-items: center;
}

.detail-copy-toast__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.detail-copy-toast__icon svg[hidden] {
  display: none;
}

.detail-copy-toast.is-error .detail-copy-toast__icon {
  background: #bd4c39;
}

.detail-copy-toast__content {
  min-width: 0;
}

.detail-copy-toast__title,
.detail-copy-toast__message {
  display: block;
  margin: 0;
}

.detail-copy-toast__title {
  color: #153b31;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.detail-copy-toast__message {
  margin-top: 2px;
  color: #71857e;
  font-size: 12px;
  line-height: 1.35;
}

.detail-copy-toast__close {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #80928c;
  background: transparent;
  border: 0;
  border-radius: 8px;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.detail-copy-toast__close:hover {
  color: #18352e;
  background: #edf5f1;
}

@media (max-width: 576px) {
  .detail-copy-toast {
    top: calc(var(--broker-sticky-top, 72px) + 12px);
    right: 12px;
    width: calc(100vw - 24px);
  }
}

.shared-realestate-detail .box-share-realestate {
  position: relative;
}

.shared-realestate-detail .box-option-sharing {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: none;
  width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 39, 46, 0.18);
}

.shared-realestate-detail .box-option-sharing :is(a, button) {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 12px;
  color: var(--detail-ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.shared-realestate-detail .box-option-sharing :is(a, button):hover {
  color: var(--detail-brand);
  background: var(--detail-soft);
}

.shared-realestate-detail .box-option-sharing svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.shared-realestate-detail .box-option-sharing .zalo-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.shared-realestate-detail .rever-tab svg {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
}

@media (max-width: 1023.98px) {
  .shared-realestate-detail .quick-info {
    margin-top: unset;
  }

  .shared-realestate-detail .quick-info > div > span {
    order: -1;
  }

  .shared-realestate-detail .quick-info p {
    display: flex;
    flex-direction: column;
  }

  .shared-realestate-detail > .container,
  .shared-realestate-detail .price-section.container {
    width: min(100% - 24px, 640px);
  }

  .shared-realestate-detail .swiper-mosaic-realestate {
    display: none;
  }

  .shared-realestate-detail--mobile .swiper-mosaic-realestate,
  .shared-realestate-detail .rever-mobile-swiper {
    display: block;
  }

  .shared-realestate-detail .mobile-swiper .swiper-slide,
  .shared-realestate-detail--mobile .swiper-mosaic-realestate .swiper-slide {
    height: 300px;
  }

  .shared-realestate-detail .gallery-bar {
    display: flex;
    gap: 7px;
    margin-top: 8px;
  }

  .shared-realestate-detail .gallery-thumbs .swiper-slide {
    width: calc((100% - 16px) / 3) !important;
    height: 64px;
  }

  .shared-realestate-detail .thumb-nav {
    width: 32px;
    height: 32px;
  }

  .shared-realestate-detail .thumb-nav svg {
    width: 17px;
    height: 17px;
  }

  .shared-realestate-detail .rever-bottombar {
    width: 100%;
    margin-top: 10px;
  }

  .shared-realestate-detail .rever-bottombar .rever-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shared-realestate-detail .rever-tab {
    flex-direction: row;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 5px 2px;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  .shared-realestate-detail .rever-tab svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .shared-realestate-detail .box-option-sharing {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
    width: min(270px, calc(100vw - 24px));
    padding: 10px;
  }

  .shared-realestate-detail .realestate-info-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shared-realestate-detail .realestate-info-right {
    display: none;
  }

  .shared-realestate-detail .p-title-realestate {
    font-size: 25px;
  }

  .shared-realestate-detail .box-quick-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .shared-realestate-detail .box-action-realestate-detail {
    align-self: flex-end;
  }

  .shared-realestate-detail .utilities-list {
    grid-template-columns: 1fr;
  }

  .shared-realestate-detail .box-utilities-content {
    grid-template-columns: 1fr;
  }

  .shared-realestate-detail .contact-card-mobile {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(52px, 0.35fr) minmax(72px, 0.7fr) minmax(130px, 1.95fr);
    align-items: center;
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--detail-line);
    box-shadow: 0 -10px 30px rgba(0, 60, 71, 0.12);
    backdrop-filter: blur(10px);
  }

  .shared-realestate-detail .mobile-contact-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 3px solid #e1e8e7;
    border-radius: 50%;
  }

  .shared-realestate-detail .mobile-contact-avatar-link {
    display: block;
    min-width: 0;
    grid-column: 1;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .shared-realestate-detail .contact-card-mobile button,
  .shared-realestate-detail .contact-card-mobile a {
    min-height: 44px;
    padding: 11px 16px;
    color: #fff;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    background: var(--detail-brand);
    border: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .shared-realestate-detail .contact-card-mobile #contactWithZaloMobile {
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
  }

  .shared-realestate-detail .contact-card-mobile .agent-profile-link {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .shared-realestate-detail .contact-card-mobile #phoneContactInfoMobile {
    width: auto;
    overflow: hidden;
  }

  .shared-realestate-detail .contact-card-mobile #phoneContactInfoMobile span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shared-realestate-detail .contact-card-mobile a {
    color: #075ec6;
    background: #edf4ff;
    border: 1px solid #b9d3ff;
  }

  body:has(.shared-realestate-detail .contact-card-mobile) {
    padding-bottom: 82px;
  }
}

/* Admin mobile preview has a fixed device width even on a desktop viewport. */
.layout-preview.device-mobile .shared-realestate-detail .swiper-mosaic-realestate {
  display: block !important;
}

.layout-preview.device-mobile .shared-realestate-detail .swiper-mosaic-realestate.mobile-swiper {
  height: 300px;
}

.layout-preview.device-mobile .shared-realestate-detail .realestate-info-container {
  grid-template-columns: 1fr;
}

.layout-preview.device-mobile .shared-realestate-detail .realestate-info-right {
  display: none;
}

.layout-preview.device-mobile .shared-realestate-detail .utilities-list {
  grid-template-columns: 1fr;
}

.layout-preview.device-mobile .shared-realestate-detail .box-utilities-content {
  grid-template-columns: 1fr;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: grid;
  width: 100%;
  grid-template-columns: 96px 144px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--detail-line);
  box-shadow: 0 -10px 30px rgba(0, 60, 71, 0.12);
}

.layout-preview.device-mobile .shared-realestate-detail .mobile-contact-avatar-link {
  display: block;
  min-width: 0;
  grid-column: 1;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.layout-preview.device-mobile .shared-realestate-detail .mobile-contact-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid #e1e8e7;
  border-radius: 50%;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile button,
.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  gap: 7px;
  padding: 10px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 18px;
  min-width: 0;
  font-size: 24px;
  white-space: nowrap;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile .zalo-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile svg {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile .agent-profile-link {
  min-height: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile #contactWithZaloMobile,
.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile #phoneContactInfoMobile {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile #phoneContactInfoMobile span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Preview mobile keeps the compact contact actions: Zalo icon only and
   the phone value remains readable with the last three digits masked by JS. */
.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile #contactWithZaloMobile span {
  display: none !important;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile #contactWithZaloMobile .zalo-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto;
}

/* The mobile layout already has its own spacing/card treatment. */
@media (max-width: 768px) {
  .shared-realestate-detail > .container-mosiac {
    padding: 8px;
    background: #fff;
    border: 1px solid var(--detail-line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .shared-realestate-detail .price-section.container {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--detail-line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .shared-realestate-detail .realestate-info-left > section:not(.price-section),
  .shared-realestate-detail .realestate-info-left > [data-detail-nearby] {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .shared-realestate-detail .realestate-loan-card {
    margin-top: 24px;
  }

  .shared-realestate-detail .contact-card-mobile #contactWithZaloMobile span {
    display: none;
  }
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile a {
  color: #075ec6;
  background: #edf4ff;
  border: 1px solid #b9d3ff;
}

.layout-preview.device-mobile .shared-realestate-detail .contact-card-mobile button {
  color: var(--detail-brand);
  background: #c8f4f2;
  border: 1px solid #00a9a5;
}

.layout-preview.device-mobile .shared-realestate-detail .rever-bottombar {
  width: 100%;
}

.layout-preview.device-mobile .shared-realestate-detail .rever-bottombar .rever-tabs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout-preview.device-mobile .shared-realestate-detail .rever-tab {
  flex-direction: row;
  min-width: 0;
  min-height: 34px;
  padding: 5px 2px;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.layout-preview.device-mobile .shared-realestate-detail .rever-tab svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.layout-preview.device-mobile .shared-realestate-detail .gallery-bar {
  display: flex;
}

.layout-preview.device-mobile .shared-realestate-detail .gallery-thumbs .swiper-slide {
  width: calc((100% - 16px) / 3) !important;
  height: 64px;
}

.layout-preview.device-mobile .shared-realestate-detail .box-option-sharing {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;
  width: min(270px, calc(100% - 12px));
}

.layout-preview.device-mobile .shared-realestate-detail > .container,
.layout-preview.device-mobile .shared-realestate-detail .price-section.container {
  width: calc(100% - 24px);
}

.layout-preview.device-mobile .shared-realestate-detail .p-title-realestate {
  font-size: 25px;
}

.layout-preview.device-mobile .shared-realestate-detail .quick-info {
  margin-top: unset;
}

.layout-preview.device-mobile .shared-realestate-detail .quick-info > div > span {
  order: -1;
}

.layout-preview.device-mobile .shared-realestate-detail .quick-info p {
  display: flex;
  flex-direction: column;
}

.layout-preview.device-mobile .shared-realestate-detail .box-quick-info {
  align-items: flex-start;
  flex-direction: column;
}
