/* ==========================================================================
   PROPERTY SINGLE — Transparent Nav + v2 Full-Width Banner
   ========================================================================== */

/* Give the full-width v2 banner a generous min-height so the transparent nav
   overlays its top portion rather than leaving an empty gap above content. */
.property-detail-v2 .property-banner {
  min-height: 60vh;
  position: relative;
}

/* Dark overlay scrim on the banner image */
.property-detail-v2 .property-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* On mobile the parent theme collapses #pills-gallery to height:0 and uses
   mobile-view.php instead. Our min-height would leave a grey void — reset it.
   Also clip #pills-gallery overflow: the parent sets height:0 but no
   overflow:hidden, so page-title-wrap bleeds out creating a grey gap. */
@media (max-width: 767.98px) {
  .property-detail-v2 .property-banner {
    min-height: 0 !important;
  }
  .property-detail-v2 #pills-gallery,
  .property-detail-v2 #pills-map,
  .property-detail-v2 #pills-street-view {
    overflow: hidden !important;
  }
  /* Also hide the label wrap (star/badges) that would otherwise float above */
  .property-detail-v2 .page-label-wrap {
    display: none !important;
  }
}

/* Push the Featured / Available / New Listing tags below the transparent navbar
   (parent theme sets top:0 which glues them to the nav edge). */
.property-detail-v2 .page-label-wrap {
  top: auto !important;
  padding-top: 108px !important;
}

@media (max-width: 767.98px) {
  .property-detail-v2 .page-label-wrap {
    padding-top: 88px !important;
  }
}

/* ==========================================================================
   ICON-ONLY LABEL BADGES — v2 banner
   Collapse text labels to frosted-glass circular icon badges.
   ========================================================================== */
.property-detail-v2 .page-label-wrap .label {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 4px 0 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  font-size: 0 !important; /* hide text */
  overflow: hidden;
  vertical-align: middle;
  transition:
    background 0.2s ease,
    transform 0.15s ease !important;
}

.property-detail-v2 .page-label-wrap .label:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  transform: scale(1.1);
}

/* Icon via ::before — text hidden, icon restored at visible size */
.property-detail-v2 .page-label-wrap .label::before {
  font-size: 16px !important;
  line-height: 1 !important;
  display: block !important;
}

/* Featured → star */
.property-detail-v2 .page-label-wrap .label-featured::before {
  content: "★" !important;
  color: #fbbf24 !important;
}

/* Status (Available, For Sale, etc.) → check badge */
.property-detail-v2 .page-label-wrap .label-status::before {
  content: "✔" !important;
  font-size: 14px !important;
}

/* Custom labels (New Listing, Hot, etc.) → tag diamond */
.property-detail-v2 .page-label-wrap .hz-label::before {
  content: "◆" !important;
  font-size: 13px !important;
}

/* ==========================================================================
   CTA BAR — rendered below the v2 full-width banner
   ========================================================================== */
.vc-prop-v2-cta {
  background: #0f172a;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vc-prop-v2-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.vc-prop-v2-cta__text {
  flex: 1;
  min-width: 0;
}

.vc-prop-v2-cta__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 3px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-prop-v2-cta__sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.vc-prop-v2-cta__btn {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  padding: 13px 28px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(37, 99, 235, 0.35);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease !important;
}

.vc-prop-v2-cta__btn:hover,
.vc-prop-v2-cta__btn:focus {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5) !important;
}

@media (max-width: 767px) {
  .vc-prop-v2-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 14px;
  }

  .vc-prop-v2-cta__title {
    font-size: 1.05rem;
    white-space: normal;
  }

  .vc-prop-v2-cta__btn {
    width: 100% !important;
    justify-content: center;
  }
}

/* ==========================================================================
   STICKY FAB — floating action button (bottom-right)
   ========================================================================== */
.property-buy-now-wrap-sticky {
  bottom: 32px !important;
  left: 32px !important;
  right: auto !important;
}

.property-buy-now-wrap-sticky .btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border-radius: 50px !important;
  padding: 13px 24px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 22px rgba(37, 99, 235, 0.45) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

.property-buy-now-wrap-sticky .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55) !important;
}

/* Override the 50×50 circle style the template inlines on mobile */
@media (max-width: 767px) {
  .property-buy-now-wrap-sticky {
    /* Sit above the fixed agent contact bar (~72px tall) */
    bottom: 84px !important;
    left: 16px !important;
    right: auto !important;
  }

  .property-buy-now-wrap-sticky .btn {
    width: auto !important;
    height: auto !important;
    padding: 14px !important;
    border-radius: 50px !important;
    justify-content: center !important;
    /* Icon-only on mobile — hide label text */
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .property-buy-now-wrap-sticky .btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .property-buy-now-wrap-sticky .btn:before {
    display: none !important;
  }
}
