/**
 * Single business profile — the design's stylesheet.
 *
 * Loaded on business listings only, by single-pb_business.php, and versioned by
 * file time so an edit shows on the next load. The Elementor HTML widget holds
 * the markup only; everything visual is here.
 *
 * The accent colour comes from each business's own logo and arrives as an
 * inline --pbx-accent on .pbx, so rules below can use it freely.
 */

/* ------------------------------------------------------------ page width ---
 * The theme constrains .rh_page__main to its two-column width, and that rule
 * wins over a plain .rh_page__main override — which is why "full width" in
 * Elementor changed nothing. This has the specificity to beat it. Change 100%
 * to 75% here, or anything else, and it applies to both layout pages.
 */
body.single-pb_business .rh_page.rh_page__main,
body.single-pb_business .rh_page__main {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
}
body.single-pb_business .rh_section--flex { display: block; }


.pbx {
  --pbx-ink: #1e1e24;
  --pbx-soft: #6f6f79;
  --pbx-line: #e7e7ec;
  --pbx-wash: #f6f6f8;
  --pbx-panel: #fff;
  --pbx-r: 18px;
  --pbx-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  color: var(--pbx-ink);
  font-size: 16px;
  line-height: 1.6;
}
.pbx *, .pbx *::before, .pbx *::after { box-sizing: border-box; }
.pbx a { text-decoration: none; }
.pbx h1, .pbx h2, .pbx h3 { margin: 0; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- hero --- */
.pbx-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--pbx-r);
  padding: clamp(24px, 4vw, 48px);
  background: #1c0d0082;
  isolation: isolate;
}
/* the logo, blown up and blurred, filling the band behind everything */
.pbx-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -2;
  background: url('{{logo_url}}') center / cover no-repeat;
  filter: blur(46px) saturate(1.6);
  transform: scale(1.25);
  opacity: .55;
}
.pbx-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.9) 70%, #fff 100%);
}

.pbx-hero-row { display: flex; gap: clamp(20px, 3vw, 40px); align-items: flex-start; flex-wrap: wrap; }

.pbx-logo-box {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 22vw, 260px);
  height: clamp(150px, 22vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #e1e1e1a6;
  border: 1px solid var(--pbx-line);
  border-radius: var(--pbx-r);
  box-shadow: var(--pbx-shadow);
}
/* never crops: the picture fills whichever side is tighter */
.pbx-logo-box img,
.pbx-logo-box .pb-t-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

.pbx-badge { position: absolute; top: -10px; left: -10px; z-index: 2; line-height: 0; }
.pbx-badge svg, .pbx-badge img { width: 21px; height: 28px; opacity: 0.8;}

.pbx-headings { flex: 1 1 320px; min-width: 0; padding-top: 4px; }
.pbx-title { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.05; font-weight: 800; }
.pbx-cat {
  display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 50px;
  background: rgba(var(--pbx-accent-rgb), .12); color: var(--pbx-accent);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.pbx-phone { margin: 12px 0 0; font-size: 1.05rem; font-weight: 600; }
.pbx .pb-t-phone-icon { margin-right: 6px; }
.pbx .pb-t-phone-num { color: var(--pbx-accent); font-size: 1.5rem; }
.pbx .pb-t-phone-num:hover { text-decoration: bold; }

.pbx-addr { margin: 14px 0 0; color: var(--pbx-soft); font-size: 1.4rem; }
.pbx .pb-t-pin { margin-right: 6px; }


/* -------------------------------------------------------------- actions --- */
.pbx-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; }

.pbx-actions .pb-t-btn {
  --c: 120,120,130;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 15px; border-radius: 50px;
  border: 1px solid rgba(var(--c), .28);
  background: rgba(var(--c), .07);
  color: rgb(var(--c));
  font-size: 1.2rem; font-weight: 600;
  box-shadow: 0 1px 2px rgba(var(--c), .12);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.pbx-actions .pb-t-btn:hover {
  background: rgba(var(--c), .13);
  border-color: rgba(var(--c), .5);
  box-shadow: 0 0 0 4px rgba(var(--c), .12), 0 6px 18px rgba(var(--c), .28);
  transform: translateY(-1px);
}

.pbx-actions .pb-t-btn--call     { --c: 197,142,12; }
.pbx-actions .pb-t-btn--whatsapp { --c: 32,140,74; }
.pbx-actions .pb-t-btn--web      { --c: 39,98,178; }
.pbx-actions .pb-t-btn--dir      { --c: 190,52,45; }

/* --------------------------------------------------------------- layout --- */
.pbx-cols { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 36px); margin-top: clamp(24px, 3vw, 40px); }

@media (min-width: 900px) {
  .pbx-cols { grid-template-columns: minmax(0,1fr) 360px; align-items: start; }

  /* verified: description spans both columns, the rest sits beside the rail */
  .pbx-about  { grid-column: 1 / -1; }
  .pbx-glance { grid-column: 1; }
  .pbx-rail   { grid-column: 2; grid-row: 2; display: grid; gap: 20px; align-content: start; margin-top: 18px; }

  /* unverified: description stays in the left column, rail runs the full height */
  .pb-biz--unverified .pbx-about { grid-column: 1; grid-row: 1; margin-top: 18px;}
  .pb-biz--unverified .pbx-rail  { grid-row: 1 / span 2; }
}

.pbx-panel { background: var(--pbx-panel); border: 1px solid var(--pbx-line); border-radius: var(--pbx-r); padding: clamp(20px, 2.6vw, 30px); }
.pbx-panel + .pbx-panel { margin-top: 20px; }
.pbx-rail .pbx-panel + .pbx-panel { margin-top: 0; }
.pbx-h { font-size: 1.5rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pbx-soft); margin-bottom: 16px; }

.pbx-about { font-size: 1.06rem; line-height: 1.8; }
.pbx-about p:last-child { margin-bottom: 0; }

/* contact, sitting on an accent edge */
.pbx-contact { border: 1px solid #a5a5a5; }
.pbx .pb-t-contact { list-style: none; margin: 0; padding: 0; }
.pbx .pb-t-contact li { display: flex; gap: 0px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #f1f1f4; }
.pbx .pb-t-contact li:first-child { padding-top: 0; }
.pbx .pb-t-contact li:last-child { padding-bottom: 0; border-bottom: 0; }
.pbx .pb-t-contact li > span { flex: 0 0 82px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pbx-soft); }
.pbx .pb-t-contact a { color: var(--pbx-accent); font-weight: 500; }
.pbx .pb-t-contact a:hover { text-decoration: underline; }

.pbx-mapwrap { padding: 0; border: 0; }
.pbx .pb-t-map { width: 100%; height: 300px; border-radius: var(--pbx-r); overflow: hidden; border: 1px solid var(--pbx-line); }

/* ---------------------------------------------------------- at a glance --- */
.pbx-glance-row { display: grid; grid-template-columns: 120px 1fr; padding: 16px 0; border-bottom: 1px dashed var(--pbx-line); align-items: start; }
.pbx-glance-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pbx-glance-row:first-child { padding-top: 0; }
.pbx-glance-lbl { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pbx-soft); padding-top: 5px; }
.pbx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pbx .pb-t-chip {
  display: inline-block; padding: 6px 8px; border-radius: 40px;
  background: var(--pbx-wash); color: var(--pbx-soft); font-size: .84rem; border: 1px solid transparent;
}
.pbx a.pb-t-chip:hover { background: rgba(var(--pbx-accent-rgb), .1); color: var(--pbx-accent); border-color: rgba(var(--pbx-accent-rgb), .25); }
@media (max-width: 600px) { .pbx-glance-row { grid-template-columns: 1fr; gap: 8px; } }

/* --------------------------------------------------------------- finish --- */
.pbx-more { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 650px; margin: 84px auto 30px;}
@media (min-width: 720px) { .pbx-more { grid-template-columns: 1fr 1fr; } }
.pbx-more a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 24px; border-radius: var(--pbx-r); border: 1px solid var(--pbx-line);
  background: #efe9e3; color: var(--pbx-ink); font-weight: 700; transition: .15s;
  max-width: 400px;
}
.pbx-more a:hover { border-color: var(--pbx-accent); color: var(--pbx-accent); transform: translateY(-1px); }
.pbx-more small { display: block; font-weight: 500; font-size: .84rem; color: var(--pbx-soft); margin-top: 2px; }
.pbx-more span.arrow { font-size: 1.3rem; line-height: 1; opacity: .4; }

.pbx-find { margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--pbx-r); background: var(--pbx-wash); text-align: center; }
.pbx-find h3 { font-size: 1.15rem; }
.pbx-find p { color: var(--pbx-soft); margin: 6px 0 18px; }
.pbx .pb-t-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.pbx .pb-t-search input { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border: 1px solid var(--pbx-line); border-radius: 50px; background: #fff; }
.pbx .pb-t-search button { padding: 12px 24px; border: 0; border-radius: 50px; background: var(--pbx-accent); color: #fff; font-weight: 700; cursor: pointer; opacity: 0.7; }

.pbx .pb-t-survey { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--pbx-soft); font-size: .9rem; }
.pbx .pb-t-survey-btn { padding: 7px 20px; border: 1px solid var(--pbx-line); border-radius: 50px; background: #fff; cursor: pointer; font-size: 1rem; font-weight: 600; color: grey; }
.pbx .pb-t-survey-btn:hover { border-color: var(--pbx-accent); color: var(--pbx-accent); }
.pbx .pb-t-survey-thanks { color: var(--pbx-accent); font-weight: 600; }

.pbx .pb-share { margin-top: clamp(24px, 3vw, 40px); }


@media (max-width: 680px) {
  .pbx-logo-box { width: 80%; height: auto; aspect-ratio: 1 / 1; margin-left: auto; margin-right: auto; }
  .pbx-hero-row { justify-content: center; }
  .pbx-headings { text-align: center; flex-basis: 100%; }
  .pbx-actions { justify-content: center; }
}

.pbx .pb-t-pin { margin-right: 6px; }
.pbx .pb-t-pin img.emoji { width: 1em; height: 1em; vertical-align: -.12em; }
.pbx .pb-t-pin, .pbx .pb-t-phone-icon { 
	color: #b9b9b9;
    margin-right: 7px;
    text-decoration: none;
    font-size: 13px; }
.pbx a.pb-t-pin:hover { filter: brightness(.85); }

.rh_main_verification__icon {
    width: 40px;
    height: 40px;
}

@media (min-width: 1000px) {
.pbx-phone {
	margin-top: 25px;
}
}

@media (min-width: 1150px) {
.pbx-phone {
	margin-top: 40px;
}
}

.pbx .pb-t-url { display: flex; align-items: flex-start; gap: 2px; min-width: 220px; flex: 1 1 auto; }
.pbx .pb-t-url-link {
  min-width: 0; flex: 1 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--pbx-accent); font-weight: 400;
}
.pbx .pb-t-url.is-open .pb-t-url-link { white-space: normal; overflow: visible; word-break: break-all; }
.pbx .pb-t-url-more {
  flex: 0 0 auto; padding: 2px 6px; border: 0; background: none; cursor: pointer;
  color: var(--pbx-soft); font-size: .8rem; line-height: 1.6; transition: transform .2s ease, color .2s ease;
}
.pbx .pb-t-url-more:hover { color: var(--pbx-accent); }
.pbx .pb-t-url.is-open .pb-t-url-more { transform: rotate(180deg); }

/* Verified pill — same shape as a category tag, brighter and green */
.pbx-cat--verified {
  border: 1;
  cursor: pointer;
  font-family: inherit;
  margin-right: 8px;
  padding: 6px 16px 5px;
  border-color: rgba(var(--c), .5);
  box-shadow: 0 0 0 4px rgba(var(--c), .12), 0 6px 18px rgba(var(--c), .28);
  transform: translateY(-1px);
  background: #1ea69a;
  color: #fff;
  font-size: .93rem; font-weight: 700;
  box-shadow: 0 1px 2px rgba(var(--c), .12);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.pbx-cat--verified:hover { background: rgba(30, 166, 154, .22); color: #000;}
.pbx-cat--verified i {
  margin-left: 9px;
  font-size: 1.15em;
  opacity: 1;
}

/* Verified popup */
.pbx-modal {
  padding: 0;
  border: 0;
  border-radius: var(--pbx-r);
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  color: var(--pbx-ink);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.pbx-modal::backdrop { background: rgba(20,20,26,.5); backdrop-filter: blur(3px); opacity: 0; }
.pbx-modal[open]::backdrop { animation: pbxFadeIn .22s ease forwards; }
.pbx-modal[open] { animation: pbxRise .24s cubic-bezier(.2,.7,.3,1) both; }

@keyframes pbxFadeIn { to { opacity: 1; } }
@keyframes pbxRise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

.pbx-modal-inner { position: relative; padding: clamp(26px, 4vw, 38px); }
.pbx-modal-inner h3 { font-size: 1.35rem; margin-bottom: 14px; }
.pbx-modal-inner p { margin: 0 0 1em; color: #4a4a54; line-height: 1.7; }
.pbx-modal-inner p:last-of-type { margin-bottom: 22px; }

.pbx-modal-x {
  position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: none;
  color: var(--pbx-soft); font-size: 3rem; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pbx-modal-x:hover { background: var(--pbx-wash); color: var(--pbx-ink); }

.pbx-modal-cta {
  display: inline-block; padding: 11px 22px; border-radius: 50px;
  background: var(--rh-global-color-primary, #1ea69a); color: #fff;
  font-weight: 700; font-size: 1.3rem;
}
.pbx-modal-cta:hover { filter: brightness(.94); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .pbx-modal[open], .pbx-modal[open]::backdrop { animation-duration: .01ms; }
}

.pbx-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--pbx-r);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  color: var(--pbx-ink);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}

@keyframes pbxRise {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(10px) scale(.985); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Share card, business pages only */
.pbx .pb-share--pb_business { margin: 0; } 

.pb-share--pb_business.single-property-section {
  padding-top: 30px;
  padding-bottom: 0;
  background-color: transparent;
}

.pb-share--pb_business {
    padding: 0;
}

.pb-share--pb_business .pb-share__heading {
  text-align: center;
}

/* QR in the hero — floats top right, text wraps around it, gone when cramped */
.pbx-qr {
  float: right;
  width: 90px;
  margin: 0 0 2px 3px;
  shape-margin: 16px;
}
.pbx-qr .pb-qr,
.pbx-qr a { display: block; line-height: 0; }
.pbx-qr img {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  background: transparent;
  margin-top: 15px;
}

/* Below this the text column can no longer spare 120px, so it goes rather
   than shrinking past scannable size. */
@media (max-width: 680px) {
  .pbx-qr { display: none; }
}

@media (max-width: 735px) {
.pbx-more a {
margin: 0 auto; }
}




.pb-share--pb_business .pb-share__inner {
  position: relative;
  background: transparent;
  border: 0;
  /* 0 at 1000px, ~150px each side at 1500px, capped at 220px */
  --fade: clamp(0px, calc((100vw - 600px) * 0.3), 220px);
}

.pb-share--pb_business .pb-share__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: #e9e9e9;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      #000 var(--fade),
      #000 calc(100% - var(--fade)),
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0,
      #000 var(--fade),
      #000 calc(100% - var(--fade)),
      transparent 100%);
}