/* =========================================================
   BUY OR SELL A HOME — shares tokens/buttons from style.css
   ========================================================= */

/* ---- Banner ---- */
.bs-banner{
  position:relative;
  min-height:42vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--primary-deep);
}
.bs-banner-media{ position:absolute; inset:0; }
.bs-banner-media img{ width:100%; height:100%; object-fit:cover; opacity:.5; }
.bs-banner-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(13,32,55,.55) 0%, rgba(13,32,55,.92) 100%);
}
.bs-banner-content{ position:relative; padding:0 32px 52px; max-width:760px; }
.bs-banner .breadcrumb{
  color:rgba(255,255,255,.6);
  font-size:.85rem;
  margin-bottom:14px;
}
.bs-banner .breadcrumb a{ color:var(--gold-bright); }
.bs-banner .breadcrumb span{ margin:0 6px; }
.bs-banner h1{
  color:var(--white);
  font-size:clamp(1.9rem,3.4vw,2.7rem);
  margin-bottom:12px;
}
.bs-banner-lead{
  color:rgba(255,255,255,.82);
  max-width:60ch;
  margin:0;
}

/* ---- List wrapper ---- */
.bs-list{ padding:72px 0 96px; }
.bs-rows{
  display:flex;
  flex-direction:column;
}

/* ---- Property row: details left, image right ---- */
.bp-row{
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:48px;
  align-items:center;
  padding:44px 0;
  border-bottom:1px solid var(--hairline);
}
.bp-row:first-child{ padding-top:0; }
.bp-row:last-child{ border-bottom:none; padding-bottom:0; }

.bp-details{ order:1; }
.bp-media{
  order:2;
  margin:0;
  border:1px solid var(--hairline);
  aspect-ratio:4/3;
  overflow:hidden;
}
.bp-media img{ width:100%; height:100%; object-fit:cover; }

.bp-badge{
  display:inline-block;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.03em;
  color:var(--white);
  background:var(--primary-deep);
  padding:5px 12px;
  margin-bottom:14px;
}
.bp-badge.rent{
  background:linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color:var(--primary-deep);
}

.bp-details h3{ font-size:1.35rem; margin-bottom:8px; }
.bp-location{
  font-size:.88rem;
  color:var(--gold-deep);
  font-weight:600;
  margin-bottom:18px;
}

.bp-specs{ margin:0 0 18px; max-width:52ch; }
.bp-specs li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
  border-bottom:1px solid var(--hairline);
  font-size:.9rem;
}
.bp-specs li:first-child{ padding-top:0; }
.bp-specs li span{ color:var(--muted); }
.bp-specs li strong{ color:var(--ink); font-weight:600; text-align:right; }

.bp-price{
  font-family:var(--font-display);
  font-size:1.5rem;
  font-weight:600;
  color:var(--primary-deep);
  margin:0 0 22px;
}

.bp-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.bp-action-btn.rent{
  background:var(--primary-deep);
  color:var(--white);
}
.bp-action-btn.rent:hover{ background:var(--primary-mid); }

/* =========================================================
   PROPERTY ENQUIRY POPUP (mirrors the site-wide pattern)
   ========================================================= */
.bs-overlay{
  position:fixed; inset:0;
  background:rgba(13,32,55,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:100;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
}
.bs-overlay.open{ opacity:1; visibility:visible; }

.bs-modal{
  position:relative;
  background:var(--white);
  max-width:460px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  padding:40px 36px;
  border-top:3px solid var(--gold);
  transform:translateY(16px);
  transition:transform .2s ease;
}
.bs-overlay.open .bs-modal{ transform:translateY(0); }

.bs-close{
  position:absolute;
  top:14px; right:16px;
  background:none;
  border:none;
  font-size:1.6rem;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
}
.bs-close:hover{ color:var(--primary-deep); }

.bs-modal h3{ font-size:1.4rem; margin-bottom:6px; }
.bs-modal-sub{ color:var(--muted); font-size:.9rem; margin-bottom:22px; }
.bs-modal-sub strong{ color:var(--primary-deep); }

.bs-form{ display:flex; flex-direction:column; gap:16px; }
.bs-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:.85rem;
  font-weight:600;
  color:var(--primary-deep);
}
.bs-form input{
  font-family:var(--font-body);
  font-size:.95rem;
  padding:11px 12px;
  border:1px solid var(--hairline);
  background:var(--white);
  color:var(--ink);
  border-radius:2px;
}
.bs-form input:focus{
  outline:2px solid var(--gold);
  outline-offset:1px;
}
.bs-submit{ margin-top:4px; justify-content:center; }
.bs-note{
  font-size:.78rem;
  color:var(--muted);
  margin:0;
}

.bs-success{
  display:none;
  margin-top:18px;
  padding:14px 16px;
  background:#f2f5f8;
  border-left:3px solid var(--gold);
  color:var(--primary-deep);
  font-size:.9rem;
}
.bs-success a{ color:var(--gold-deep); }
.bs-success.show{ display:block; }
.bs-form.hide{ display:none; }

/* =========================================================
   PDF PREVIEW POPUP
   ========================================================= */
.pdf-overlay{
  position:fixed; inset:0;
  background:rgba(13,32,55,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:110;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
}
.pdf-overlay.open{ opacity:1; visibility:visible; }

.pdf-modal{
  background:var(--white);
  width:100%;
  max-width:720px;
  max-height:92vh;
  display:flex;
  flex-direction:column;
  border-top:3px solid var(--gold);
  transform:translateY(16px);
  transition:transform .2s ease;
}
.pdf-overlay.open .pdf-modal{ transform:translateY(0); }

.pdf-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--hairline);
}
.pdf-modal-header h3{ font-size:1.15rem; margin:0; }
.pdf-close{
  background:none;
  border:none;
  font-size:1.6rem;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
}
.pdf-close:hover{ color:var(--primary-deep); }

.pdf-frame-wrap{
  flex:1;
  min-height:420px;
  background:#e9e9e9;
}
.pdf-frame-wrap iframe{
  width:100%; height:100%;
  min-height:420px;
  border:0;
  display:block;
}

.pdf-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:16px 24px;
  border-top:1px solid var(--hairline);
}

@media (max-width:640px){
  .pdf-frame-wrap{ min-height:340px; }
  .pdf-frame-wrap iframe{ min-height:340px; }
  .pdf-modal-actions{ flex-direction:column-reverse; }
  .pdf-modal-actions .btn{ width:100%; justify-content:center; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:900px){
  .bp-row{ grid-template-columns:1fr; gap:24px; }
  .bp-media{ order:-1; }
}
@media (max-width:560px){
  .bp-actions{ flex-direction:column; }
  .bp-actions .btn{ width:100%; justify-content:center; }
}