/* Photographer search page (/photographers, app/views/photographers.cfm). Own rbds- classes: the compiled Tailwind
   on public pages does not have every utility, and these must not change other pages. */
.rbds { --rb-orange: #B84F00; --rb-orange-dark: #8A3B00; --rb-ink: #0F120E; --rb-muted: #4B4B46; --rb-line: #ECE7E1;
        --rb-peach: #FDEEE3; --rb-cream: #F6F5F3; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        color: var(--rb-ink); background: #fff; }
.rbds *, .rbds *::before, .rbds *::after { box-sizing: border-box; }
.rbds h1, .rbds h2, .rbds p { margin: 0; }
.rbds a { color: inherit; }
.rbds [hidden] { display: none !important; }

/* search box */
.rbds-top { background: var(--rb-peach); padding: 20px 16px; }
.rbds-search { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 8px;
               display: flex; flex-wrap: wrap; gap: 8px; box-shadow: 0 10px 28px rgba(15, 18, 14, .09); }
.rbds-field { flex: 2 1 260px; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px; background: var(--rb-cream); cursor: text; }
.rbds-field-one { flex: 1 1 420px; }
.rbds-field-one > span:first-child { color: var(--rb-orange-dark); }
.rbds-field-one input { font-size: 17px; }
.rbds-field > span:first-child { font-size: 12px; font-weight: 600; color: var(--rb-muted); }
.rbds-field input { border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--rb-ink); outline: none; padding: 2px 0; width: 100%; min-width: 0; }
.rbds-where-row { display: flex; align-items: center; gap: 6px; }
.rbds-icon-btn { border: 0; background: transparent; color: var(--rb-orange); padding: 6px; border-radius: 8px; cursor: pointer; display: flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; }
.rbds-icon-btn:hover { background: #fff; }
.rbds-go { flex: 0 0 auto; min-height: 52px; border: 0; border-radius: 12px; background: var(--rb-orange); color: #fff; font: inherit; font-weight: 700;
           font-size: 16px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.rbds-go:hover { background: var(--rb-orange-dark); }
.rbds-suggest { position: absolute; left: 8px; right: 8px; top: calc(100% + 6px); background: #fff; border: 1px solid var(--rb-line); border-radius: 14px;
                box-shadow: 0 14px 32px rgba(15, 18, 14, .14); padding: 6px; z-index: 30; max-height: 360px; overflow-y: auto; }
.rbds-suggest button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; font: inherit;
                       font-size: 15px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--rb-ink); }
.rbds-suggest button:hover, .rbds-suggest button[aria-selected="true"] { background: var(--rb-cream); }
.rbds-suggest small { color: var(--rb-muted); font-size: 13px; margin-left: auto; }
.rbds-suggest .rbds-s-kind { font-size: 11px; font-weight: 700; color: var(--rb-orange-dark); text-transform: uppercase; letter-spacing: .04em; min-width: 62px; }

/* example searches under the box */
.rbds-examples { max-width: 1180px; margin: 12px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--rb-muted); }
.rbds-examples span { font-weight: 600; margin-right: 2px; }
.rbds-examples button { border: 1px solid #F0D5BE; background: #fff; color: var(--rb-ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.rbds-examples button:hover { border-color: var(--rb-orange); color: var(--rb-orange-dark); }
.rbds-change { border: 0; background: none; color: var(--rb-orange-dark); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 2px; }

/* page */
.rbds-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.rbds-head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.rbds-understood { margin-top: 10px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--rb-muted); min-height: 24px; }
.rbds-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--rb-peach); color: var(--rb-orange-dark); font-weight: 600; padding: 4px 6px 4px 11px; border-radius: 999px; }
.rbds-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 999px; font-size: 16px; line-height: 1; }
.rbds-broad { flex-basis: 100%; color: #3D3D38; }
.rbds-clarify { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--rb-peach);
                border: 1px solid #F3D3BA; border-radius: 14px; }
.rbds-clarify-q { font-weight: 700; font-size: 15px; margin-right: 4px; }
.rbds-clarify button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rb-orange); background: #fff;
                       color: var(--rb-orange-dark); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rbds-clarify button:hover { background: var(--rb-orange); color: #fff; }
.rbds-chip button:hover { background: rgba(184, 79, 0, .12); }

.rbds-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0;
            border-top: 1px solid var(--rb-line); border-bottom: 1px solid var(--rb-line); }
.rbds-bar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rbds-bar-label { font-size: 13px; font-weight: 600; color: var(--rb-muted); }
.rbds-pill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #D9D3CB; background: #fff; color: var(--rb-ink);
             font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rbds-pill[aria-pressed="true"] { background: var(--rb-ink); border-color: var(--rb-ink); color: #fff; }
.rbds-pill-dark { border-color: var(--rb-ink); }
.rbds-status { padding: 14px 16px; background: var(--rb-cream); border-radius: 12px; font-size: 15px; }

.rbds-map { height: 440px; border-radius: 18px; overflow: hidden; border: 1px solid var(--rb-line); background: #E7EDE8; }

.rbds-section { display: flex; flex-direction: column; gap: 14px; }
.rbds-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rbds-section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.rbds-section-head h2 span { color: var(--rb-muted); font-weight: 500; }
.rbds-section-head p { font-size: 14px; color: var(--rb-muted); }
.rbds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Pro card */
.rbds-card { border: 1px solid var(--rb-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s; }
.rbds-card:hover { box-shadow: 0 10px 26px rgba(15, 18, 14, .08); }
.rbds-photo { position: relative; aspect-ratio: 4 / 3; background: #EFE9E2; display: block; overflow: hidden; }
.rbds-photo img, .rbds-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbds-photo-empty { display: flex; align-items: center; justify-content: center; color: #8C857C; height: 100%; }
.rbds-badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--rb-orange-dark); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.rbds-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rbds-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; text-decoration: none; }
.rbds-name:hover { text-decoration: underline; }
.rbds-name svg { flex: 0 0 auto; }
.rbds-meta { font-size: 14px; color: var(--rb-muted); }
.rbds-rating { font-size: 14px; font-weight: 600; }
.rbds-rating .rbds-star { color: #D99A00; }
.rbds-new { font-size: 13px; font-weight: 600; color: #1F6F4A; }
.rbds-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.rbds-price { font-size: 16px; font-weight: 800; }
.rbds-foot > .rbds-btn, .rbds-foot > .rbds-actions { margin-left: auto; }   /* stays on the right, also when it wraps under the price */
.rbds-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rbds-btn { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 10px; border: 1px solid #D9D3CB;
            background: #fff; color: var(--rb-ink); text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rbds-btn:hover { border-color: var(--rb-ink); }
.rbds-btn-primary { background: var(--rb-orange); border-color: var(--rb-orange); color: #fff !important; font-weight: 700; }
.rbds-btn-primary:hover { background: var(--rb-orange-dark); border-color: var(--rb-orange-dark); }
.rbds-btn-claim { border: 1.5px solid var(--rb-orange); color: var(--rb-orange-dark) !important; background: #FFF7F1; font-weight: 700; }

/* nearby Pros: compact cards */
.rbds-grid-compact { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.rbds-mini { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--rb-line); border-radius: 16px; background: #fff; }
.rbds-mini .rbds-photo { width: 110px; height: 110px; aspect-ratio: auto; border-radius: 12px; flex: 0 0 auto; }
.rbds-mini .rbds-body { padding: 0; min-width: 0; }
.rbds-mini .rbds-foot { flex-direction: column; align-items: flex-end; gap: 8px; }   /* price over the button, both on the right */
.rbds-kicker { font-size: 12px; font-weight: 700; color: var(--rb-orange-dark); }
.rbds-beyond { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--rb-peach); border-radius: 14px; font-size: 15px; }

/* other photographers */
.rbds-claim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; background: var(--rb-peach);
              border: 1px solid #F3D3BA; border-radius: 16px; }
.rbds-claim div { display: flex; flex-direction: column; gap: 3px; max-width: 680px; }
.rbds-claim strong { font-size: 16px; }
.rbds-claim span { font-size: 14px; color: #3D3D38; }
.rbds-list { border: 1px solid var(--rb-line); border-radius: 16px; overflow: hidden; }
.rbds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border-bottom: 1px solid var(--rb-line); }
.rbds-row:last-child { border-bottom: 0; }
.rbds-row-img { width: 56px; height: 56px; border-radius: 10px; background: #ECE9E4; object-fit: cover; flex: 0 0 auto; }
.rbds-row-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rbds-row-text strong { font-size: 15px; font-weight: 600; }
.rbds-row-text span { font-size: 13px; color: var(--rb-muted); }
.rbds-phone { font-weight: 700; color: var(--rb-ink); text-decoration: none; padding: 0 6px; }
.rbds-more { align-self: center; min-height: 44px; padding: 0 26px; border-radius: 12px; border: 1px solid var(--rb-ink); background: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rbds-empty { text-align: center; padding: 40px 16px; background: var(--rb-cream); border-radius: 18px; }
.rbds-empty h2 { font-size: 20px; margin-bottom: 6px; }
.rbds-loading .rbds-grid, .rbds-loading .rbds-list { opacity: .45; transition: opacity .15s; }

/* the written section at the bottom (for people and Google) */
.rbds-seo { max-width: 1180px; margin: 0 auto; padding: 8px 16px 56px; color: #3D3D38; font-size: 15px; line-height: 1.6; }
.rbds-seo h2 { font-size: 20px; color: var(--rb-ink); margin: 0 0 8px; }
.rbds-seo h3 { font-size: 16px; color: var(--rb-ink); margin: 18px 0 8px; }
.rbds-seo a { color: var(--rb-orange-dark); }
.rbds-seo-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }

@media (max-width: 640px) {
    .rbds-top { padding: 12px; }
    .rbds-go { flex: 1 1 100%; min-height: 48px; }
    .rbds-examples { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .rbds-examples::-webkit-scrollbar { display: none; }
    .rbds-examples button, .rbds-examples span { flex: 0 0 auto; }
    .rbds-head h1 { font-size: 24px; }
    .rbds-bar { gap: 10px; }
    .rbds-bar-group { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
    .rbds-bar-group::-webkit-scrollbar { display: none; }
    .rbds-pill { flex: 0 0 auto; }
    .rbds-grid, .rbds-grid-compact { grid-template-columns: 1fr; }
    .rbds-mini .rbds-photo { width: 92px; height: 92px; }
    .rbds-map { height: 320px; }
    .rbds-row .rbds-actions { width: 100%; }
}

/* Pro cards: flip through the portfolio (public/assets/js/cardPhotos.js) */
.rbcp { position: relative; }
.rbds-photo.rbcp-on > img { display: none; }
.rbcp-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rbcp-track::-webkit-scrollbar { display: none; }
.rbcp-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #EFE9E2; }
.rbcp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbcp-slide.is-broken img { visibility: hidden; }
.rbcp-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92);
    color: var(--rb-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 18, 14, .2);
    opacity: 0; transition: opacity .15s; }
.rbcp-prev { left: 10px; }
.rbcp-next { right: 10px; }
.rbcp:hover .rbcp-btn:not(:disabled), .rbcp-btn:focus-visible { opacity: 1; }
.rbcp-btn:disabled { pointer-events: none; }
.rbcp-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.rbcp-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .35); transition: background .15s, transform .15s; }
.rbcp-dots span.is-on { background: #fff; transform: scale(1.25); }
@media (hover: none) { .rbcp-btn { display: none; } }
/* the /directory landing's phone row of cards already swipes sideways: there a card shows its cover only */
@media (max-width: 640px) {
    .rbdl .rbcp-track { overflow-x: hidden; }
    .rbdl .rbcp-dots, .rbdl .rbcp-btn { display: none; }
}
/* "Finding more photographers in ..." while the server fetches local businesses for a thin area */
.rbds-filling { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--rb-cream); color: var(--rb-muted); font-size: 14px; }
/* the site-wide input styles add an orange border (and focus ring) inside the search field: the field itself is the box */
.rbds .rbds-field input, .rbds .rbds-field input:focus, .rbds .rbds-field input:hover {
    border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; }
.rbds-field:focus-within { background: #fff; }

/* Request a quote popup (public/assets/js/directoryQuote.js): the house popup look (blurred background, title-case
   header, small X), closed only by X, Cancel/Done or Esc */
.rbdq { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #E5E7EB; border-radius: 12px;
    background: #fff; color: var(--rb-ink); box-shadow: 0 20px 50px rgba(15, 18, 14, .25); overflow: hidden; display: none; flex-direction: column; }
.rbdq[open] { display: flex; }
.rbdq::backdrop { background: rgba(17, 24, 39, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.rbdq-lock { overflow: hidden; }
.rbdq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #D1D5DB; }
.rbdq-title { margin: 0; font-size: 20px; font-weight: 600; color: #111827; }
.rbdq-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #6B7280; font-size: 22px; line-height: 1; cursor: pointer; }
.rbdq-x:hover { background: #F3F4F6; color: #111827; }
.rbdq-body { padding: 18px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.rbdq-form, .rbdq-done { display: flex; flex-direction: column; gap: 12px; }
.rbdq-biz { display: flex; align-items: center; gap: 12px; }
.rbdq-biz img, .rbdq-biz-ph { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #EFE9E2; }
.rbdq-biz div { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--rb-muted); }
.rbdq-biz strong { font-size: 16px; color: var(--rb-ink); overflow-wrap: anywhere; }
.rbdq-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--rb-cream); font-size: 13px; line-height: 1.5; color: var(--rb-muted); }
.rbdq-row { display: flex; gap: 12px; }
.rbdq-row > .rbdq-field { flex: 1; min-width: 0; }
.rbdq-field { display: flex; flex-direction: column; gap: 5px; }
.rbdq-label { font-size: 14px; font-weight: 600; }
.rbdq-opt { font-weight: 400; color: var(--rb-muted); }
.rbds .rbdq-field input, .rbds .rbdq-field textarea { width: 100%; min-height: 44px; border: 1px solid #D9D3CB; border-radius: 10px; padding: 0 12px;
    font: inherit; font-size: 16px; color: var(--rb-ink); background: #fff; box-shadow: none; }
.rbds .rbdq-field textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
.rbds .rbdq-field input:focus, .rbds .rbdq-field textarea:focus { outline: 2px solid var(--rb-orange); outline-offset: 1px; border-color: var(--rb-orange); }
.rbdq-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.rbdq-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rb-orange); }
.rbdq-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #8A1C1C; font-size: 14px; }
.rbdq-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.rbdq-done p { margin: 0; font-size: 15px; line-height: 1.55; }
.rbdq-done .rbdq-done-lead { font-size: 16px; }
.rbdq-pros { display: flex; flex-direction: column; gap: 8px; }
.rbdq-pros h3 { margin: 8px 0 2px; font-size: 15px; font-weight: 700; }
.rbdq-pro { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--rb-line); border-radius: 12px; text-decoration: none; color: var(--rb-ink) !important; }
.rbdq-pro:hover { border-color: var(--rb-orange); }
.rbdq-pro img, .rbdq-pro .rbdq-biz-ph { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: #EFE9E2; }
.rbdq-pro > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; color: var(--rb-muted); }
.rbdq-pro strong { font-size: 15px; color: var(--rb-ink); }
.rbdq-pro-go { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--rb-orange-dark); }
@media (max-width: 640px) {
    .rbdq-row { flex-direction: column; gap: 12px; }
    .rbdq-head { padding: 14px 16px; }
    .rbdq-body { padding: 16px; }
    .rbdq-actions .rbds-btn { flex: 1; justify-content: center; }
    .rbdq-pro-go { display: none; }
}
/* local business rows: the buttons in four fixed columns (Request a quote, Website, Call, Claim), so they line up from
   row to row when a business has no website or phone (directorySearch.js otherRow leaves an empty .rbds-slot) */
.rbds-row .rbds-row-actions { display: grid; grid-template-columns: 150px 92px 72px 160px; gap: 8px; align-items: center; }
.rbds-row .rbds-row-actions > .rbds-btn { width: 100%; justify-content: center; padding: 0 10px; white-space: nowrap; }
.rbds-row .rbds-row-actions > .rbds-phone { white-space: nowrap; padding: 0; text-align: center; }
@media (max-width: 640px) {
    /* phones: two buttons per line across the full width; empty columns take no room */
    .rbds-row .rbds-row-actions { grid-template-columns: 1fr 1fr; width: 100%; }
    .rbds-row .rbds-row-actions > .rbds-slot { display: none; }
    .rbds-row .rbds-row-actions[data-n="1"] > .rbds-btn-claim, .rbds-row .rbds-row-actions[data-n="3"] > .rbds-btn-claim { grid-column: 1 / -1; }
}
/* the Google rating on a local business: hover / focus / tap shows a small card with a link to its reviews on Google */
.rbds .rbds-grating { position: relative; display: inline-block; }
.rbds .rbds-grating-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.rbds .rbds-grating-btn:hover, .rbds .rbds-grating-btn:focus-visible { color: var(--rb-ink); }
.rbds .rbds-grating-card { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: none; flex-direction: column; gap: 4px; min-width: 210px;
    padding: 12px 14px; background: #fff; border: 1px solid var(--rb-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 18, 14, .16); white-space: nowrap; }
.rbds .rbds-grating-card::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* keeps hover alive across the gap */
.rbds .rbds-grating:hover .rbds-grating-card, .rbds .rbds-grating:focus-within .rbds-grating-card, .rbds .rbds-grating.is-open .rbds-grating-card { display: flex; }
.rbds .rbds-grating-top { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--rb-ink); }
.rbds .rbds-grating-stars { color: #E7A500; letter-spacing: 1px; }
.rbds .rbds-grating-count { font-size: 13px; color: var(--rb-muted); }
.rbds .rbds-grating-link { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--rb-orange-dark); text-decoration: underline; }
@media (hover: none) { .rbds .rbds-grating:hover .rbds-grating-card { display: none; } .rbds-grating.is-open .rbds-grating-card { display: flex; } }
/* Call on a computer: the number in a small card under the button (directorySearch.js callButton) */
.rbds .rbds-callwrap { position: relative; display: block; }
.rbds .rbds-row-actions > .rbds-callwrap > .rbds-btn { width: 100%; justify-content: center; padding: 0 10px; }
.rbds .rbds-callcard { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: none; flex-direction: column; gap: 6px;
    padding: 12px 14px; background: #fff; border: 1px solid var(--rb-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 18, 14, .16); white-space: nowrap; }
.rbds .rbds-callwrap.is-open .rbds-callcard { display: flex; }
.rbds .rbds-callcard-label { font-size: 13px; color: var(--rb-muted); }
.rbds .rbds-callcard-row { display: flex; align-items: center; gap: 10px; }
.rbds .rbds-callcard-num { font-size: 17px; font-weight: 700; color: var(--rb-ink); text-decoration: none; }
.rbds .rbds-callcard .rbds-btn { min-height: 32px; padding: 0 10px; font-size: 13px; }
@media (max-width: 640px) {
    /* phones: the rating card opens from the left of the row, inside the screen */
    .rbds .rbds-row-text { position: relative; }
    .rbds .rbds-grating { position: static; }
    .rbds .rbds-grating-card { left: 0; top: calc(100% + 4px); white-space: normal; }
}
/* the rating is now a link to Google: phones (no hover) just open Google, no card */
@media (hover: none) { .rbds .rbds-grating-card { display: none !important; } }
.rbds a.rbds-grating-btn { color: inherit; }
