/**
 * t1201u/t1205u — presentation + finishing (larger gallery logo) (scoped CSS)
 * Property singular only (enqueued by MU-plugin).
 * Brand: Sundance Blue #274565, black, white. No gold. No Houzez core edits.
 */

/* ------------------------------------------------------------------ */
/* 1) REMOVE HERO CONTACT OVERLAY — keep lower forms                  */
/* ------------------------------------------------------------------ */
.property-banner .property-form-wrap {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ------------------------------------------------------------------ */
/* 2) REMOVE FORM FROM GALLERY LIGHTBOX — photos first                */
/* ------------------------------------------------------------------ */
#property-lightbox .lightbox-form-wrap {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* Expand gallery to full modal body width when form sidebar gone */
#property-lightbox .lightbox-gallery-wrap {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

#property-lightbox .modal-body {
  display: flex !important;
  flex-wrap: nowrap !important;
}

/* Keep expand / slick controls usable */
#property-lightbox .lightbox-gallery-wrap .btn-expand,
#property-lightbox .lightbox-slider .slick-prev,
#property-lightbox .lightbox-slider .slick-next,
#property-lightbox .btn-close {
  display: block;
  pointer-events: auto;
}

/* Hide mobile email affordance that only opened the lightbox form */
#property-lightbox .lightbox-tools .btn-email {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* 3) REBRAND GALLERY VIEWER — Sundance navy/white                    */
/* ------------------------------------------------------------------ */
#property-lightbox .modal-header {
  background-color: #274565 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

#property-lightbox .modal-content {
  background-color: #1a2e42 !important; /* deeper navy for photo stage */
}

#property-lightbox .lightbox-logo img {
  max-height: 56px !important;
  max-width: 300px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* Keep logo readable without bloating navy header or crowding close control */
#property-lightbox .modal-header .lightbox-logo {
  display: flex;
  align-items: center;
  max-width: calc(100% - 56px);
}
#property-lightbox .modal-header .lightbox-logo img {
  display: block;
}
#property-lightbox .modal-header {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  min-height: 0;
}

@media (max-width: 767.98px) {
  #property-lightbox .lightbox-logo img {
    max-height: 44px !important;
    max-width: 220px !important;
  }
}

#property-lightbox .btn-close,
#property-lightbox .btn-close-white {
  filter: none;
  opacity: 0.95;
}

#property-lightbox .lightbox-gallery-wrap .btn-expand {
  color: #ffffff;
  background-color: rgba(39, 69, 101, 0.85);
  border-radius: 4px;
}

#property-lightbox .lightbox-slider .slick-prev,
#property-lightbox .lightbox-slider .slick-next {
  color: #ffffff;
}

/* a11y: visible focus on close / expand */
#property-lightbox .btn-close:focus-visible,
#property-lightbox .lightbox-gallery-wrap .btn-expand:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
