/* Pro profile page (/pro/<name>/<category>, app/views/pro-details.cfm). Own rbpp- classes: the compiled Tailwind on
   public pages does not have every utility, and these must not change other pages. Colours match the directory
   (directorySearch.css): orange text/buttons #B84F00 (the brand #D75E00 is too light for text on white). */
.rbpp { --o: #B84F00; --od: #8A3B00; --ink: #0F120E; --mute: #4B4B46; --line: #ECE7E1; --peach: #FDEEE3; --cream: #F6F5F3;
        --star: #B07A00; --tabs-h: 57px;
        font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
.rbpp *, .rbpp *::before, .rbpp *::after { box-sizing: border-box; }
.rbpp h1, .rbpp h2, .rbpp h3, .rbpp p { margin: 0; }
.rbpp a { color: var(--od); }
.rbpp [hidden] { display: none !important; }
.rbpp-in { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.rbpp-muted { color: var(--mute); font-weight: 400; }
.rbpp-star { color: var(--star); }

/* the floating "Message <name>" bubble is replaced by the Message buttons on this page (its chat window still opens) */
#chatbox .chatbox-floating-icon { display: none !important; }

/* breadcrumb */
.rbpp-crumbs { padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--mute); }
.rbpp-crumbs a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.rbpp-crumbs a:hover { color: var(--ink); }

/* hero */
.rbpp-hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 22px; padding-bottom: 26px; }
.rbpp-avatar { position: relative; flex: 0 0 auto; width: 132px; height: 132px; }
.rbpp-avatar img, .rbpp-avatar > span:not(.rbpp-avatar-badge) { width: 132px; height: 132px; border-radius: 999px; object-fit: cover; display: flex; align-items: center; justify-content: center;
    background: var(--peach); color: var(--od); font-size: 44px; font-weight: 800; box-shadow: 0 0 0 2px var(--line); border: 4px solid #fff; }
.rbpp-avatar-badge { position: absolute; right: 2px; bottom: 6px; width: 32px; height: 32px; border-radius: 999px; background: #1F6FEB; border: 3px solid #fff;
    display: flex; align-items: center; justify-content: center; }
.rbpp-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rbpp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rbpp-title h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; overflow-wrap: anywhere; }
.rbpp-verified { background: #E8F0FE; color: #174EA6; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.rbpp-sub { font-size: 18px; color: #3D3D38; }
.rbpp-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; color: var(--mute); }
.rbpp-rating { color: var(--ink) !important; text-decoration: none; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.rbpp-rating > span:last-child { font-weight: 500; color: var(--mute); text-decoration: underline; }
.rbpp-new { color: #1F6F4A; font-weight: 600; }
.rbpp-bio { max-width: 760px; font-size: 16px; line-height: 1.6; color: #3D3D38; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.rbpp-bio p { white-space: pre-line; }
.rbpp-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; align-self: flex-start; }
.rbpp-sec-head .rbpp-link { color: var(--o); }
.rbpp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; align-items: center; }

/* buttons */
.rbpp-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 12px;
    border: 1px solid #D9D3CB; background: #fff; color: var(--ink) !important; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rbpp-btn:hover { border-color: var(--ink); }
.rbpp-btn-primary { background: var(--o); border-color: var(--o); color: #fff !important; font-weight: 700; padding: 0 24px; }
.rbpp-btn-primary:hover { background: var(--od); border-color: var(--od); }
.rbpp-btn-icon { width: 48px; padding: 0; }
.rbpp-btn-sm { min-height: 40px; font-size: 14px; padding: 0 16px; border-radius: 10px; }
.rbpp-btn-block { width: 100%; min-height: 50px; }

/* share menu (phones use the system share sheet) */
.rbpp-share, .rbpp-more { position: relative; }
.rbpp-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 180px; list-style: none; margin: 0; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(15, 18, 14, .12); }
.rbpp-menu button { width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.rbpp-menu button:hover { background: var(--cream); }
.rbpp .rb-safety-menu__button.rbpp-btn { min-height: 48px; }

/* section menu */
.rbpp-tabs { position: sticky; top: var(--nav-h, 0px); z-index: 20; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rbpp-tabs .rbpp-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rbpp-tabs .rbpp-in::-webkit-scrollbar { display: none; }
.rbpp-tabs a { padding: 16px 14px 13px; color: var(--mute); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s; }
.rbpp-tabs a:hover { color: var(--ink); }
.rbpp-tabs a.is-on { color: var(--ink); border-bottom-color: var(--o); }

/* two columns: content + booking box */
.rbpp-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.rbpp-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.rbpp-sec { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--nav-h, 0px) + var(--tabs-h) + 24px); }
.rbpp-sec h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.rbpp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rbpp-empty { color: var(--mute); font-size: 15px; padding: 18px; border-radius: 14px; background: var(--cream); }

/* portfolio */
.rbpp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 8px; border-radius: 16px; overflow: hidden; }
.rbpp-grid-1 { grid-template-columns: 1fr; grid-auto-rows: 420px; }
.rbpp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; }
.rbpp-grid-3 .rbpp-tile:first-child, .rbpp-grid-4 .rbpp-tile:first-child, .rbpp-grid-5 .rbpp-tile:first-child { grid-column: span 2; grid-row: span 2; }
.rbpp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rbpp-grid-4 .rbpp-tile:last-child { grid-column: span 2; }
.rbpp-tile { position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #EFE9E2; display: block; width: 100%; height: 100%; }
.rbpp-tile img, .rbpp-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.rbpp-tile:hover img, .rbpp-tile:hover video { transform: scale(1.03); }
.rbpp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 999px; background: rgba(15, 18, 14, .7);
    color: #fff; display: flex; align-items: center; justify-content: center; }
.rbpp-more-phone { display: none !important; }
.rbpp-more-n { position: absolute; inset: 0; background: rgba(15, 18, 14, .55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }

/* services */
.rbpp-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rbpp-svc { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, background .2s; }
.rbpp-svc.is-picked { border: 2px solid var(--o); background: #FFF7F1; padding: 17px; }
.rbpp-svc h3 { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.rbpp-svc p { font-size: 15px; line-height: 1.5; color: var(--mute); }
.rbpp-svc .rbpp-svc-meta { font-size: 14px; }
.rbpp-svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.rbpp-price { font-size: 18px; font-weight: 800; white-space: nowrap; }
.rbpp-also { font-size: 15px; color: var(--mute); }

/* reviews */
.rbpp-rsum { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 20px; border-radius: 16px; background: var(--cream); }
.rbpp-rsum-score { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--mute); }
.rbpp-rsum-score strong { font-size: 44px; line-height: 1; font-weight: 800; color: var(--ink); }
.rbpp-stars { color: var(--star); letter-spacing: 2px; font-size: 17px; white-space: nowrap; }
.rbpp-rsum-bars { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rbpp-rsum-bars > div { display: flex; align-items: center; gap: 10px; }
.rbpp-rsum-bars > div > span:first-child { width: 110px; color: #3D3D38; }
.rbpp-rsum-bars b { width: 28px; }
.rbpp-bar { flex: 1; height: 8px; border-radius: 999px; background: #E4DED6; overflow: hidden; }
.rbpp-bar > span { display: block; height: 100%; background: var(--o); }
.rbpp-review { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rbpp-review-head { display: flex; align-items: center; gap: 12px; }
.rbpp-review-av { width: 40px; height: 40px; border-radius: 999px; background: #EFE9E2; color: var(--mute); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.rbpp-review-who { display: flex; flex-direction: column; font-size: 15px; }
.rbpp-review-who span { font-size: 14px; color: var(--mute); }
.rbpp-review-head .rbpp-stars { margin-left: auto; }
.rbpp-review p { font-size: 15px; line-height: 1.6; color: #3D3D38; white-space: pre-line; }
.rbpp-reply { margin-left: 52px; padding: 12px 14px; border-radius: 12px; background: var(--cream); font-size: 14px; line-height: 1.5; color: #3D3D38; }
.rbpp-reply b { color: var(--ink); }
#rbppMoreReviews { align-self: flex-start; min-height: 44px; font-size: 15px; }

/* areas */
.rbpp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rbpp-chips li { padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* booking box: stays in view on wide screens and never runs off the window */
.rbpp-book { flex: 0 1 380px; min-width: 300px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff;
    box-shadow: 0 12px 30px rgba(15, 18, 14, .08); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--nav-h, 0px) + var(--tabs-h) + 24px); }
@media (min-width: 1000px) {
    .rbpp-book { position: sticky; top: calc(var(--nav-h, 0px) + var(--tabs-h) + 18px); max-height: calc(100vh - var(--nav-h, 0px) - var(--tabs-h) - 36px); overflow-y: auto; }
}
.rbpp-book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rbpp-book-head h2 { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.rbpp-book-head > span { font-size: 14px; color: var(--mute); white-space: nowrap; }
.rbpp-field { display: flex; flex-direction: column; gap: 6px; }
.rbpp-field label, .rbpp-pick legend { font-size: 14px; font-weight: 700; }
.rbpp-field input { width: 100%; min-height: 46px; border: 1px solid #D9D3CB; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.rbpp-field input:focus { outline: 2px solid var(--o); outline-offset: 1px; border-color: var(--o); }
.rbpp-area { font-size: 14px; line-height: 1.45; min-height: 0; }
.rbpp-area:empty { display: none; }
.rbpp-ok { color: #1F6F4A; font-weight: 600; }
.rbpp-wait { color: var(--mute); }
.rbpp-err { color: #A4262C; }
.rbpp-warn { border-radius: 12px; background: #FFF4E5; border: 1px solid #F3D2A2; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #3D3D38; }
.rbpp-warn b { color: var(--ink); }
.rbpp-warn .rbpp-link { font-size: 14px; color: var(--od); display: block; margin-top: 4px; }
.rbpp-alts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rbpp-alts > b { font-size: 14px; }
.rbpp-alt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink) !important; }
.rbpp-alt:hover { border-color: var(--o); }
.rbpp-alt-av { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; background: var(--peach); color: var(--od); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; overflow: hidden; }
.rbpp-alt-av img { width: 100%; height: 100%; object-fit: cover; }
.rbpp-alt-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rbpp-alt-text b { line-height: 1.3; overflow-wrap: anywhere; }
.rbpp-alt-text span { font-size: 13px; color: var(--mute); }
.rbpp-alt-price { flex: 0 0 auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.rbpp-alts > a:last-child:not(.rbpp-alt) { font-size: 14px; font-weight: 700; margin-top: 2px; }
.rbpp-pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rbpp-pick legend { display: flex; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 8px; }
.rbpp-pick legend .rbpp-muted { font-weight: 500; }
.rbpp-pick-list { max-height: 270px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 6px 2px 2px; scrollbar-gutter: stable; }
.rbpp-opt { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid #D9D3CB; background: #fff; cursor: pointer; font-size: 15px; }
.rbpp-opt:has(input:checked) { border: 2px solid var(--o); background: #FFF7F1; padding: 9px 11px; }
.rbpp-opt input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--o); }
.rbpp-opt-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rbpp-opt-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rbpp-opt-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.3; }
.rbpp-opt-line b { font-size: 15px; white-space: nowrap; }
.rbpp-note { font-size: 13px; line-height: 1.5; color: var(--mute); text-align: center; margin-top: 10px !important; }
.rbpp-note-left { text-align: left; font-size: 15px; margin-top: 0 !important; }
#rbppIn { display: flex; flex-direction: column; gap: 14px; }
#rbppIn .rbpp-note { margin-top: -4px !important; }

/* phone Book bar (sits above the site's bottom menu; bottom set by proProfile.js) */
.rbpp-bookbar { display: none; }
@media (max-width: 999px) {
    .rbpp-bookbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; gap: 10px; padding: 10px 16px;
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 18, 14, .08); }
    .rbpp-bookbar > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
    .rbpp-bookbar b { font-size: 16px; }
    .rbpp-bookbar > div > span { font-size: 13px; color: var(--mute); }
    .rbpp-bookbar .rbpp-btn { min-height: 46px; }
    .rbpp-bookbar .rbpp-btn-icon { width: 46px; }
    .rbpp-book { flex: 1 1 100%; }
    .rbpp.has-bar { padding-bottom: 76px; }
}

/* photo viewer */
.rbpp-viewer { position: fixed; inset: 0; z-index: 10050; background: rgba(15, 18, 14, .94); display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.rbpp-v-stage { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.rbpp-v-stage img, .rbpp-v-stage video { max-width: min(1100px, 100%); max-height: calc(100vh - 128px); border-radius: 8px; object-fit: contain; display: block; }
.rbpp-v-nav, .rbpp-v-close { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rbpp-v-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rbpp-v-next { right: 16px; top: 50%; transform: translateY(-50%); }
.rbpp-v-close { right: 16px; top: 16px; font-size: 24px; }
.rbpp-v-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

@media (max-width: 640px) {
    .rbpp-in { padding-left: 16px; padding-right: 16px; }
    .rbpp-hero { gap: 16px; padding-top: 14px; padding-bottom: 18px; }
    .rbpp-avatar, .rbpp-avatar img, .rbpp-avatar > span:not(.rbpp-avatar-badge) { width: 84px; height: 84px; }
    .rbpp-avatar > span:not(.rbpp-avatar-badge) { font-size: 28px; }
    .rbpp-avatar-badge { width: 26px; height: 26px; right: -2px; bottom: 0; }
    .rbpp-hero-text { flex-basis: 100%; }
    .rbpp-title h1 { font-size: 26px; }
    .rbpp-sub { font-size: 16px; }
    .rbpp-facts { font-size: 14px; }
    .rbpp-bio { font-size: 15px; }
    .rbpp-actions { gap: 8px; }
    .rbpp-actions > .rbpp-btn-primary { flex: 1 1 100%; }
    .rbpp-actions .rbpp-btn { min-height: 44px; font-size: 15px; }
    .rbpp-actions .rbpp-btn-icon { width: 44px; }
    .rbpp-tabs a { padding: 13px 10px 11px; font-size: 14px; }
    .rbpp-layout { gap: 32px; padding-top: 20px; }
    .rbpp-main { gap: 40px; }
    .rbpp-sec h2 { font-size: 22px; }
    .rbpp-grid, .rbpp-grid-3, .rbpp-grid-4, .rbpp-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; border-radius: 12px; }
    .rbpp-grid-1 { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .rbpp-grid-2 { grid-auto-rows: 200px; }
    .rbpp-grid-3 .rbpp-tile:first-child, .rbpp-grid-4 .rbpp-tile:first-child, .rbpp-grid-5 .rbpp-tile:first-child { grid-column: span 2; grid-row: span 2; }

    .rbpp-grid-4 .rbpp-tile:nth-child(n+4), .rbpp-grid-5 .rbpp-tile:nth-child(n+4) { display: none; }
    .rbpp-more-phone { display: flex !important; }
    .rbpp-svcs { grid-template-columns: 1fr; gap: 12px; }
    .rbpp-svc { padding: 14px; }
    .rbpp-svc.is-picked { padding: 13px; }
    .rbpp-rsum { gap: 16px; padding: 16px; }
    .rbpp-reply { margin-left: 0; }
    .rbpp-book { padding: 18px; min-width: 0; }
    .rbpp-viewer { padding: 56px 8px; }
    .rbpp-v-prev { left: 6px; } .rbpp-v-next { right: 6px; }
    .rbpp-v-nav { width: 42px; height: 42px; background: rgba(255, 255, 255, .9); }
}

/* owner's own profile before it is listed */
.rbpp-unlisted { margin-top: 14px; padding-top: 10px; padding-bottom: 10px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 14px; }
@media (min-width: 1248px) { .rbpp-unlisted { max-width: 1152px; } }
