/* Business page styles: the CSS business_page_view.php used to print in its own
   style blocks. Linked in its <head> after main-new-business.css and rj-design-system.css.
   After editing, bump ?v= on that link. */

/* ── Report form (moved from test.css, which menu_page_view.php still inlines) ── */
.set_report,
.set_report_badge {
    width: 60%;
    min-width: 320px;
    background: #fff;
    color: #232323;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: normal;
    border-radius: 5px;
}

.set_report .container,
.set_report_badge .container {
    width: auto;
    max-width: none;
    min-width: 320px;
    margin: 8px 0;
}

.set_report div span.congrats,
.set_report_badge div span.congrats {
    margin: auto;
    font-size: 18px;
}

.set_report input,
.set_report textarea,
.set_report_badge input {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 0;
    -moz-box-shadow: 0 0 0;
    padding: 5px 7px;
    -webkit-box-shadow: 0 0 0;
    font-size: 13px;
    border-radius: 6px;
}

/* ── Reserve card, link mode ──────────────────────────────────
   Used to be printed only when $reserveMode === 'link'; the two modes style
   the same classes differently, so each rule is scoped to body.rb-mode-link.
   :where() adds no specificity, the cascade is unchanged. */
/* карточка-ссылка */
:where(.rb-mode-link) a.rb-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
:where(.rb-mode-link) a.rb-card * { pointer-events: none; }          /* клик всегда уходит на ссылку */

/* Mobile quick-slots row, link mode: same trick as the card — the whole
   row is the link, children never swallow the click, and hovering the
   row lights up the chips the way the widget mode's do individually. */
:where(.rb-mode-link) a.rj-mslots { text-decoration: none; color: inherit; cursor: pointer; }
:where(.rb-mode-link) a.rj-mslots:hover, :where(.rb-mode-link) a.rj-mslots:focus { text-decoration: none; }
:where(.rb-mode-link) a.rj-mslots * { pointer-events: none; }
:where(.rb-mode-link) a.rj-mslots:hover .rj-mslot,
:where(.rb-mode-link) a.rj-mslots:focus .rj-mslot { background: var(--rj-green-dark); color: #fff; }
:where(.rb-mode-link) a.rj-mslots:hover .rj-mslot--more,
:where(.rb-mode-link) a.rj-mslots:focus .rj-mslot--more { background: var(--rj-surface); color: var(--rj-ink); }

:where(.rb-mode-link) .rb-card .rb-row { display: flex; gap: var(--rj-sp-3); margin-bottom: var(--rj-sp-3); }
:where(.rb-mode-link) .rb-card .rb-field { flex: 1 1 0; min-width: 0; }
:where(.rb-mode-link) .rb-card .rj-label { display: block; }
:where(.rb-mode-link) .rb-select-wrap { position: relative; }

/* имитация select / date-инпута */
:where(.rb-mode-link) .rb-fake {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--rj-font);
    font-size: 14px;
    color: var(--rj-ink);
    background: #fff;
    border: 1px solid #dfe3e0;
    border-radius: var(--rj-radius-sm);
    padding: 11px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:where(.rb-mode-link) .rb-fake--select { padding-right: 28px; }
:where(.rb-mode-link) .rb-fake--select::after {
    content: "";
    position: absolute; right: 12px; top: 50%;
    width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid var(--rj-muted);
    border-bottom: 2px solid var(--rj-muted);
    transform: rotate(45deg);
}

:where(.rb-mode-link) .rb-slots-label {
    font-family: var(--rj-font); font-size: 14px; font-weight: 600;
    color: var(--rj-ink); margin: var(--rj-sp-4) 0 10px;
}
:where(.rb-mode-link) .rb-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    gap: var(--rj-sp-2);
}
:where(.rb-mode-link) .rb-slot {
    display: block; text-align: center;
    border-radius: var(--rj-radius-sm);
    background: var(--rj-green-dark); color: #fff;
    font-family: var(--rj-font); font-size: 13px; font-weight: 600;
    padding: 11px 3px; white-space: nowrap;
    transition: background var(--rj-fast);
}
:where(.rb-mode-link) a.rb-card:hover .rb-slot { background: var(--rj-green-deep); }

:where(.rb-mode-link) .rb-note { margin-top: var(--rj-sp-3); }
:where(.rb-mode-link) .rb-view-all { display: block; text-align: center; margin-top: var(--rj-sp-4); }

/* ── Reserve card, widget mode ──────────────────────────────────
   Used to be printed only when $reserveMode === 'widget'; the two modes style
   the same classes differently, so each rule is scoped to body.rb-mode-widget.
   :where() adds no specificity, the cascade is unchanged. */
:where(.rb-mode-widget) .rb-card .rb-row {
    display: flex;
    gap: var(--rj-sp-3);
    margin-bottom: var(--rj-sp-3);
}

:where(.rb-mode-widget) .rb-card .rb-field {
    flex: 1 1 0;
    min-width: 0;
}

:where(.rb-mode-widget) .rb-select-wrap {
    position: relative;
}

/* Date input: hide the native calendar icon, keep the whole field
   clickable to open the picker, and left-align the value
   (fixes iOS centering + Android's mismatched arrow). */
:where(.rb-mode-widget) .rb-card input[type="date"] {
    position: relative;
    cursor: pointer;
}

:where(.rb-mode-widget) .rb-card input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

:where(.rb-mode-widget) .rb-card input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

:where(.rb-mode-widget) .rb-slots-label {
    font-family: var(--rj-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--rj-ink);
    margin: var(--rj-sp-4) 0 10px;
}

:where(.rb-mode-widget) .rb-slots {
    display: grid;
    /* Adaptive: as many ~62px+ columns as fit; reflows on narrow widths. */
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    gap: var(--rj-sp-2);
    /* Reserves the skeleton's own footprint (8 chips @ 42px wrap to 2 rows:
       42+8+42=92px) so swapping in real slots — usually fewer than 8, often
       wrapping to just 1 row — never shrinks the card and shifts everything
       below it. Measured delta without this: 92px -> 37px for a typical
       3-slot result, a real CLS contributor on desktop. min-height only
       floors it: a rare wider result can still grow past 92px with no shift
       risk in that direction. */
    min-height: 92px;
}

:where(.rb-mode-widget) .rb-slot {
    border: 0;
    border-radius: var(--rj-radius-sm);
    background: var(--rj-green-dark);
    color: #fff;
    font-family: var(--rj-font);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 3px;
    cursor: pointer;
    transition: background var(--rj-fast);
    white-space: nowrap;
}

:where(.rb-mode-widget) .rb-slot:hover {
    background: var(--rj-green-deep);
}

:where(.rb-mode-widget) .rb-skeleton {
    height: 42px;
    border-radius: var(--rj-radius-sm);
    background: #eef1ef;
    animation: rjPulse 1.2s ease-in-out infinite;
}

:where(.rb-mode-widget) .rb-msg {
    font-family: var(--rj-font);
    font-size: 14px;
    color: var(--rj-muted);
    line-height: 1.5;
    padding: 6px 0 2px;
}

:where(.rb-mode-widget) .rb-note {
    margin-top: var(--rj-sp-3);
}

:where(.rb-mode-widget) .rb-view-all {
    margin-top: var(--rj-sp-4);
}

/* ---- functional page rules (kept from the legacy blocks) ---- */
#google-ads-4 {
    min-height: 250px;
}

img[usemap] {
    max-height: 350px;
    object-fit: cover;
}

.hiiden {
    display: none;
}

.revew_wrapp {
    overflow: auto;
    max-height: 70vh;
}

/* cookie banner (#checkUPcookies) is styled by rj-design-system.css */

.checkmark:before {
    content: '\2713';
    color: var(--rj-green-dark);
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    left: 0;
}

.checkmark {
    display: block;
    float: left;
    margin-bottom: 7px;
    margin-right: 9px;
    position: relative;
    padding-left: 12px;
}

.checked {
    color: var(--rj-star);
}

.fa_custom {
    color: #0099CC
}

#myModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: black;
}

.mySlides {
    display: block;
}

.green {
    color: var(--rj-green-text);
}

a.view_entire {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    margin-top: 10px;
}

a.view-all-photos {
    font-size: 15px;
    font-weight: 600;
}

span.icon img {
    max-width: 20px;
    height: auto;
}

.heart_wrap {
    display: flex;
    width: 80px;
}

.heart_wrap>span {
    position: relative;
}

.heart_wrap>span:nth-child(2) {
    left: calc(0px - 10px);
}

.heart_wrap>span:nth-child(3) {
    left: calc(0px - 20px);
}

.heart_wrap>span:nth-child(4) {
    left: calc(0px - 30px);
}

.heart_wrap>span:nth-child(5) {
    left: calc(0px - 40px);
}

.heart_wrap>span:nth-child(6) {
    left: calc(0px - 50px);
}

.heart_wrap>span:nth-child(7) {
    left: calc(0px - 60px);
}

.heart_wrap>span:nth-child(8) {
    left: calc(0px - 70px);
}

.heart_wrap>span:nth-child(9) {
    left: calc(0px - 80px);
}

.heart_wrap>span:nth-child(10) {
    left: calc(0px - 90px);
}

div.v5_1 {
    display: block;
    margin-left: auto;
    margin-right: auto
}

#circle_v2 {
    cursor: default !important;
}

.header_in {
    padding: 0 !important;
}

.row {
    margin-right: unset;
    margin-left: unset;
}

@media (min-width: 576px) {
    footer .row {
        position: relative;
    }
}

.widget-author p {
    margin-bottom: 0;
}

@media(min-width: 576px) {
    .collapse.dont-collapse-sm {
        display: block !important;
        height: auto !important;
        visibility: visible !important
    }
}

footer {
    border-top: 1px solid #ededed;
    background-color: #fff
}

footer * {
    font-family: "Poppins", Helvetica, sans-serif;
}

footer h6 {
    margin: 0 0 15px;
    font-size: 18px;
    font-size: 1.125rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2
}

footer h6 {
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

@media(max-width: 575px) {
    footer h6 {
        font-size: 13px;
        font-size: .8125rem;
        cursor: pointer;
        border-bottom: 1px solid #ededed;
        padding: 12px 0;
        display: block
    }

    footer h6:after {
        content: url(/img/plus.svg);
        width: 20px;
        display: block;
        float: right
    }

    footer h6.opened:after {
        content: url(/img/minus.svg)
    }

    #androidApp,
    #iosApp {
        display: flex;
        justify-content: center;
    }
}

@media(max-width: 575px) {
    footer h6 {
        font-size: 16px;
        font-size: 1rem;
        margin: 0
    }
}

@media(max-width: 575px) {
    footer hr {
        display: none
    }
}

@media(max-width: 575px) {
    footer ul {
        padding-top: 15px
    }
}

footer ul li {
    margin-bottom: 5px
}

footer ul li a {
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    display: inline-block;
    position: relative;
    color: #555
}

footer ul li a:hover {
    color: #82ca97;
    opacity: 1;
}

footer ul li a i {
    margin-right: 10px;
    color: #fff
}

footer ul.links li a:hover {
    -webkit-transform: translate(5px, 0);
    -moz-transform: translate(5px, 0);
    -ms-transform: translate(5px, 0);
    -o-transform: translate(5px, 0);
    transform: translate(5px, 0)
}


footer ul.links li a:after {
    font-family: eleganticons;
    content: "\24";
    position: absolute;
    margin-left: 5px;
    top: 1px;
    opacity: 0;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;
}

footer ul.contacts li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 20px
}

footer ul.contacts li:last-child {
    margin-bottom: 0
}


@media(max-width: 575px) {
    footer #newsletter {
        padding-top: 15px
    }
}

#newsletter .form-group {
    position: relative
}

#newsletter .loader {
    position: absolute;
    right: -20px;
    top: 11px;
    color: #444;
    font-size: 12px;
    font-size: .75rem
}

#newsletter h6 {
    margin: 15px 0
}

#newsletter .form-group {
    position: relative
}

#newsletter input[type=email] {
    border: 0;
    height: 40px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    border-radius: 0;
    padding-left: 15px;
    font-size: 14px;
    font-size: .875rem;
    background-color: #000;
    background-color: rgba(0, 0, 0, .06)
}

#newsletter input[type=email]:focus {
    border: 0;
    box-shadow: none
}


#newsletter input[type=submit]:hover {
    background-color: #ffc107;
    color: #222
}

.follow_us {
    animation-delay: 1.1s;
    -webkit-animation-delay: 1.1s;
    -moz-animation-delay: 1.1s
}

.follow_us h5 {
    font-size: 16px;
    font-size: 1rem;
    margin-top: 35px
}

.follow_us ul li {
    display: inline-block;
    margin-right: 5px;
    font-size: 20px;
    font-size: 1.25rem
}

.follow_us ul li a i {
    color: #555;
    opacity: .6
}

ul#footer-selector {
    margin: 0;
    padding: 0;
    list-style: none
}

@media(max-width: 575px) {
    ul#footer-selector {
        margin-top: 30px
    }
}

ul#footer-selector li {
    float: left;
    margin-right: 10px
}

@media(max-width: 575px) {
    ul#footer-selector li:last-child {
        margin-top: 5px
    }
}

ul#additional_links {
    margin: 0;
    padding: 8px 0 0;
    color: #555;
    font-size: 13px;
    font-size: .8125rem;
    float: right
}

@media(max-width: 991px) {
    ul#additional_links {
        float: none;
        margin-top: 10px
    }
}

ul#additional_links li {
    display: inline-block;
    margin-right: 15px
}

ul#additional_links li:first-child {
    margin-right: 20px
}

ul#additional_links li:last-child:after {
    content: ""
}

ul#additional_links li span {
    color: #555;
    opacity: .8
}

ul#additional_links li a {
    color: #555;
    opacity: .8;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

ul#additional_links li a:hover {
    opacity: 1
}

ul#additional_links li:after {
    content: "|";
    font-weight: 300;
    position: relative;
    left: 10px
}

ul,
ol {
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
}

.margin_60_35 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.plus_border {
    position: relative;
}

.plus_border .row>div {
    padding-right: 15px;
    padding-left: 15px;
}

.widget-contact__title {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-top: 15px;

    transform: translate(-50%);
}

a:not([href]):not([tabindex]) {
    color: #fff;
}


.media-body h1 {
    color: #fff;
    font-size: 30px;
}

.wrapper h2,
.h2,
.sidebar_opening_hour_widget h2,
.c_container h2,
.lss_contact_location h2,
.sidebar_category_widget h2,
.listing_single_reviews h2 {
    font-size: 18px;
}

/* .myModal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6392156862745098);
width: 100%;
height: 100%;
z-index: 9999;
justify-content: center;

    } */


.modal-content {
    /* display: grid;
grid-template-columns: 250px 100%;
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px; */
    height: 100%;
    background: #000;
}

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 2;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.Thumbnail-controls img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.myModal {
    visibility: hidden;
}

.mySlides {
    position: relative;
}

.numbertext {
    position: absolute;
    top: 25px;
    left: 10px;
    color: #fff;
}

.gallery_item .gallery_overlay {
    transform: scale(1) !important;
}

.modal-open {
    overflow: hidden;
}

@media (max-width: 551px) {
    .photo_4 {
        display: none;
    }
}

.gallery_item {
    height: 100%;
}

.gallery_item img {
    height: 100%;
}


.related_img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    border-radius: 8px;
    flex-basis: 40%;
    margin: 0;
    height: 120px !important;
    margin-right: 0 !important;
}

.related_title {
    width: 60%;
}

.related_wrap {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

}

/* .slick-slide {
width: 400px;
    } */

area {
    cursor: zoom-in;
}

.device_type_mobile {
    display: none;
}

.device_type_desktop {
    display: block;
}

@media screen and (max-width: 767.98px) {
    #google-ads-4 {
        display: block;
        min-height: 270px;
    }

    .device_type_mobile {
        display: block;
    }

    .device_type_desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .bus_info a {
        display: inline-block;
        padding: 6px 0;
    }
}

/* ================================================================
   RJ DS page skin — maps this page's legacy classes onto the
   design-system tokens from rj-design-system.css.
   Reference: DESIGN_SYSTEM.md §6 (page redesign checklist).
   ================================================================ */

/* ---- page canvas & typography ---- */
body {
    background: var(--rj-surface-soft);
    -webkit-font-smoothing: antialiased;
}

.post-content--front-page,
.widget-author,
.sidebar {
    font-family: var(--rj-font);
    color: var(--rj-text);
}

.post-content--front-page {
    font-size: 14px;
    line-height: var(--rj-lh-body);
}

/* legacy main-new sets p to 18px — bring paragraphs back to the DS scale */
.post-content--front-page p {
    font-size: 15px;
}

/* top-level paragraphs (header meta: address, phone, status) sit tighter */
.post-content--front-page>p {
    font-size: 14px;
    line-height: 1.6;
}

/* Uniform 12px vertical rhythm across the header meta rows — h1, rating,
   price/categories, status chip, address, phone — so the whole block
   breathes the same as the address↔phone gap (.rj-contact gap = 12px). */
.post-content--front-page h1 {
    margin: 0 0 var(--rj-sp-3);
}

.post-content--front-page #rating-div-1 {
    margin: 0 0 var(--rj-sp-3);
}

.post-content--front-page>p {
    margin: var(--rj-sp-3) 0;
}

h1 {
    font-family: var(--rj-font);
    font-size: var(--rj-fs-h1);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--rj-ink);
}

.post-content--front-page h2,
h4.people_in_city_title {
    font-family: var(--rj-font);
    font-size: var(--rj-fs-h2);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--rj-ink);
    min-height: 0;
    margin: var(--rj-sp-8) 0 var(--rj-sp-3);
}

.post-content--front-page a {
    color: var(--rj-green-text);
    text-decoration: none;
    transition: color var(--rj-fast);
}

.post-content--front-page a:hover {
    color: var(--rj-green-deep);
    text-decoration: underline;
}

/* ---- cards (.boxed -> .rj-card look) ---- */
.boxed {
    background: var(--rj-surface);
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius-lg);
    box-shadow: var(--rj-shadow);
    padding: var(--rj-sp-5);
}

.widget-author.boxed {
    padding: 0 0 var(--rj-sp-5);
}

.sidebar .widget-posts {
    margin-bottom: 0;
}

/* ---- action buttons (Menu / Order Online / Reserve / Write a review) ---- */
.menuOrder {
    display: flex;
    flex-wrap: wrap;
    /* flex-start beats the legacy mobile space-between that scattered buttons */
    justify-content: flex-start;
    gap: var(--rj-sp-2) var(--rj-sp-3);
    margin: var(--rj-sp-4) 0 var(--rj-sp-2);
}

.post-content--front-page .menuOrder a,
.menuOrder a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--rj-radius-pill);
    background: var(--rj-green-dark);
    color: #fff;
    font-family: var(--rj-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background var(--rj-fast);
}

.post-content--front-page .menuOrder a:hover,
.menuOrder a:hover {
    background: var(--rj-green-deep);
    color: #fff;
    text-decoration: none;
}

/* ---- chips (favorites + take-out options) ---- */
.tips__link,
.tags__link {
    font-family: var(--rj-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--rj-text);
    background: var(--rj-surface-soft);
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius-pill);
    padding: 6px 12px;
    margin: 0 8px 8px 0;
    align-items: center;
}

.tips__link:before {
    top: 0;
    margin-right: 6px;
}

.tags__link:before {
    color: var(--rj-green-dark);
}

.take-out-section {
    display: flex;
    flex-wrap: wrap;
}

/* ---- Customers' Favorites: mobile-only accordion ----
   On phones, show only the first 3 chips and collapse the rest behind a
   "+N more" pill; tapping it reveals them. Pure CSS via a hidden
   checkbox — no JS, no layout shift on load (starts collapsed), and the
   expand is a user tap (CLS-exempt anyway). Desktop shows everything;
   the pill only exists when there are more than 3 (PHP .rj-favs--collapsible).
   display:contents lets the chips flow in .rj-favs's flex row alongside
   the pill; if it's unsupported the chips still show (just the pill wraps
   to its own line) — graceful either way. */
.rj-favs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rj-favs__chips {
    display: contents;
}

.rj-favs__more {
    display: none;
}

.rj-favs__more-close {
    display: none;
}

@media (max-width: 767.98px) {
    .rj-favs--collapsible .rj-favs__chips > .tips__link:nth-child(n+4) {
        display: none;
    }

    .rj-favs--collapsible .rj-favs__toggle:checked ~ .rj-favs__chips > .tips__link:nth-child(n+4) {
        display: inline-flex;
    }

    .rj-favs--collapsible .rj-favs__more {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
        font-family: var(--rj-font);
        font-size: 13px;
        font-weight: 600;
        color: var(--rj-ink);
        background: var(--rj-surface-soft);
        border: 1px solid var(--rj-border);
        border-radius: var(--rj-radius-pill);
        padding: 6px 12px;
        margin: 0 8px 8px 0;
    }

    .rj-favs--collapsible .rj-favs__toggle:checked ~ .rj-favs__more .rj-favs__more-open {
        display: none;
    }

    .rj-favs--collapsible .rj-favs__toggle:checked ~ .rj-favs__more .rj-favs__more-close {
        display: inline;
    }
}

/* ---- reviews ----
   Kept in step with the review cards on order_page_view.php
   (components/three_comments_v2.php) — same card, same type scale,
   same MUI-style stars. */
.comment-inner {
    background-color: var(--rj-surface-soft);
    border: 0;
    border-radius: var(--rj-radius);
    padding: var(--rj-sp-4) 18px;
    margin-bottom: var(--rj-sp-3);
}

.comment-inner.new-style {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    padding: 2px 0;
}

/* legacy sets these to inline-table / Open Sans — normalise to the DS scale */
.comment-inner>div {
    display: block;
}

.post-content--front-page .comment-text {
    display: block;
    width: auto;
    margin-top: 0;
    font-family: var(--rj-font);
    font-size: var(--rj-fs-body);
    line-height: var(--rj-lh-body);
    color: var(--rj-text);
}

/* only the About summaries still wrap their text in a <p> inside the legacy
   .comment-content shell — keep them on the DS size and drop the margins
   main-new gives that <p> */
div.comment-content .comment-text p {
    font-size: var(--rj-fs-body);
    margin: 0;
}

.comment-inner .comment-metadata {
    font-family: var(--rj-font);
    font-size: var(--rj-fs-small);
    font-weight: 500;
    color: var(--rj-muted);
}

.comment-inner .comment-metadata time {
    font-size: inherit;
    color: inherit;
}

/* The review cards used to carry copy-pasted MUI rating markup
   (.css-1fwwzvr / .css-13m1if9 / .css-1cw4hi4) with its own inline star
   paths; they now use renderRatingStars() like every other rating on
   the page, so those rules are gone. */

.flex {
    display: flex;
}

/* ---- "Rate your experience" header widget (#rating-div-1) ----
   Inline SVG stars: no icon font to fail to load (was Google's
   "Material Icons Outlined" ligature font — see bbp_main.js), and the
   empty/filled layers share one path so they can't misalign. */
.rj-vote-star {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    /* was a hardcoded #e65d01, which no longer matched the rating
       stars once --rj-star moved to #ff9800 */
    color: var(--rj-star);
}

.rj-vote-star__outline,
.rj-vote-star__fill {
    display: block;
    width: 24px;
    height: 24px;
}

.rj-vote-star__outline {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
    pointer-events: none;
}

.rj-vote-star__fillbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    overflow: hidden;
    pointer-events: none;
}

.rj-vote-star__fill {
    fill: currentColor;
}

/* ---- rating summary ---- */
.main-rating,
.rating-left,
.rating-bar,
.sub-rating,
.rating-label {
    display: flex;
    align-items: center;
}

.main-rating {
    margin-bottom: var(--rj-sp-5);
    flex-wrap: wrap;
    justify-content: center;
}

.rating-left {
    flex-direction: column;
    margin: 0 35px;
}

/* ---- .google_stars: one <img> per star ----
   renderRatingStars() emits five standalone design-system assets
   (star.svg / star-half.svg / star-outline.svg — DESIGN_SYSTEM.md §4.9)
   instead of the old two-layer cascade, where a grey null_stars.svg
   background was covered by an orange full-img.svg <img> clipped to the
   rating percent. The two layers were sized independently, so the orange
   drifted off the grey and grey peeked out as an offset "shadow" (the
   "зірки позʼїзжали" bug). With one image per star there is nothing left
   to misalign, and the row sizes from a single --rj-star-size.

   The three selectors below each carry the same specificity as the
   main-new rules that still paint the null_stars cascade
   (.rating-div .google_stars, .comment-inner .google_stars) and sit
   later in the cascade, so they win without !important. Those main-new
   rules stay untouched — other pages still use the old markup. */
.rating-div .google_stars,
.comment-inner .google_stars,
.rj-vcard .google_stars {
    --rj-star-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    /* drop main-new's grey cascade and its fixed 56px table box */
    background: none;
    width: auto;
    height: auto;
    vertical-align: middle;
}

.rating-div .google_stars img,
.comment-inner .google_stars img,
.rj-vcard .google_stars img {
    display: block;
    width: var(--rj-star-size);
    height: var(--rj-star-size);
    max-width: none;
    /* main-new pins some .google_stars descendants absolutely */
    position: static;
}

/* per-context sizes */
.comment-inner .google_stars {
    --rj-star-size: 18px;
}

.rj-vcard .google_stars {
    --rj-star-size: 16px;
}

.rating-left>span {
    font-size: 13px;
    color: var(--rj-muted);
}

.rating-number {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--rj-ink);
}

.rating-progress {
    flex-grow: 1;
    min-width: 130px;
}

.rating-bar {
    margin-bottom: 8px;
}

.rating-bar:last-child {
    margin-bottom: 0;
}

.star-count {
    width: 20px;
    text-align: right;
    font-weight: 500;
    color: var(--rj-ink);
}

.progress-bar {
    background-color: var(--rj-border);
    flex-grow: 1;
    height: 6px;
    margin: 0 10px;
    border-radius: 3px;
}

.progress {
    background-color: var(--rj-star);
    height: 100%;
    border-radius: 3px;
}

.rating-percentage {
    width: 32px;
    font-weight: 500;
    font-size: 13px;
    color: var(--rj-muted);
}

.sub-ratings {
    border-right: 1px solid var(--rj-border);
}

.sub-rating {
    justify-content: space-between;
    margin: 0 20px 10px 0;
}

.rating-label {
    font-size: 14px;
}

.add-review {
    text-align: center;
    padding: 0 20px;
}

.sub-ratings,
.add-review {
    flex: 1 50%;
    padding-bottom: 10px;
}

.add-review p {
    font-size: 15px;
    color: var(--rj-text);
}

.add-review .menuOrder {
    justify-content: center;
    margin: 0 0 var(--rj-sp-3);
}

.rating-label:before {
    content: '';
    width: 50px;
    height: 50px;
}

.rating-label.food::before {
    background-image: url('/images/review-icons/food.svg?id=1');
}

.rating-label.service:before {
    background-image: url('/images/review-icons/service.svg?id=1');
}

.rating-label.atmosphere:before {
    background-image: url('/images/review-icons/atmosphere.svg?id=1');
}

.progress-circle {
    transform: rotate(-90deg);
}

.progress-circle text {
    transform: rotate(90deg);
    font-weight: 600;
    fill: var(--rj-ink);
}

.bg {
    fill: none;
    stroke: var(--rj-border);
    stroke-width: 2.5;
}

.fg {
    fill: none;
    stroke: var(--rj-star);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.add-review .rating-div {
    justify-content: center;
}

/* ---- opening hours ----
   Rows are flex (legacy collapse mechanics): tbody click toggles between
   the full week and a single cloned "today" row (.is-today, added by
   firstTableCall in brand_business_page_rest_new.js). */
.shedule .table {
    margin-bottom: 0;
}

.shedule .table>tbody>tr>td {
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.5;
}

#hours_table {
    cursor: pointer;
}

.hours_table_group {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--rj-border);
}

.hours_table_group:last-child {
    border-bottom: 0;
}

.hours_table_group td:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--rj-ink);
}

.hours_table_group td+td {
    color: var(--rj-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* today: tinted pill row with a badge; stays styled in the collapsed clone */
.hours_table_group.is-today {
    background: var(--rj-green-tint);
    border-radius: var(--rj-radius-sm);
    border-bottom-color: transparent;
    margin: 2px 0;
}

.hours_table_group.is-today td:first-child {
    color: var(--rj-green-text);
    font-weight: 600;
}

.hours_table_group.is-today td:first-child::after {
    content: 'Today';
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    padding: 1px 9px;
    border-radius: var(--rj-radius-pill);
    background: var(--rj-surface);
    color: var(--rj-green-text);
    border: 1px solid rgba(81, 171, 109, .3);
}

.hours_table_group.is-today td+td {
    color: var(--rj-green-text);
    font-weight: 600;
}

/* days marked closed read quieter */
.hours_table_group.is-closed-day td+td {
    color: var(--rj-muted);
    font-weight: 400;
}

/* collapsed state: room for the chevron next to the single today row */
#hours_table:not(.openH) .hours_table_group:nth-child(1) {
    padding-right: 46px;
}

/* expand chevron (visible only while collapsed — legacy .openH toggle) */
span.BTP3Ac {
    border: 0;
    width: 26px;
    height: 26px;
    right: 12px;
    top: calc(50% - 13px);
    border-radius: 50%;
    background-color: var(--rj-surface);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5,4.5L6,8L9.5,4.5'%20fill='none'%20stroke='%2327734a'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    box-shadow: var(--rj-shadow);
    pointer-events: none;
}

/* ---- sidebar widgets ---- */
.sidebar h3 {
    margin-bottom: 12px;
}

/* small uppercase widget labels: neutral by design (never green) */
.h3_title {
    font-family: var(--rj-font);
    font-size: var(--rj-fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rj-muted);
    line-height: 1.5;
    margin: 0 0 var(--rj-sp-3);
}

.location_title {
    margin: 0 0 var(--rj-sp-3);
    padding: var(--rj-sp-5) var(--rj-sp-5) 0;
    font-family: var(--rj-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    color: var(--rj-ink);
}

.nearby_rest_title {
    margin-bottom: 12px;
}

.widget-author h4 {
    font-family: var(--rj-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--rj-ink);
    padding: 0 var(--rj-sp-4);
}

.widget-author p {
    color: var(--rj-muted);
}

.google-map-wrap p {
    padding: 0 var(--rj-sp-4);
}

/* ---- contact list (address / phone / website / order / edit) ----
   Was one <p> with <br>-jammed links crammed together; now a proper
   list — one row per item, an icon per row, and real breathing room
   between them. */
.rj-contact {
    list-style: none;
    margin: var(--rj-sp-4) 0 0;
    padding: 0 var(--rj-sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--rj-sp-3);
    text-align: left;
}

/* header variant: same icon-row style, but flush-left (no card inset)
   and sitting just above the Menu/Order/Reserve action buttons */
.rj-contact--header {
    margin: 0;
    padding: 0;
}

.rj-contact li {
    margin: 0;
}

.rj-contact li a {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.rj-contact__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--rj-green-dark);
}

/* "Suggest an Edit" is a utility action — set it apart, quieter */
.rj-contact__edit {
    margin-top: var(--rj-sp-1);
    padding-top: var(--rj-sp-3);
    border-top: 1px solid var(--rj-border);
}

.rj-contact__edit a {
    color: var(--rj-muted) !important;
    font-size: 13px;
}

.rj-contact__edit .rj-contact__icon {
    color: var(--rj-muted);
}

#google-map {
    border-radius: var(--rj-radius);
    overflow: hidden;
    margin: 0 var(--rj-sp-4);
}

.sidebar a,
.widget-author a {
    color: var(--rj-green-text);
    text-decoration: none;
    transition: color var(--rj-fast);
}

.sidebar a:hover,
.widget-author a:hover {
    color: var(--rj-green-deep);
    text-decoration: underline;
}

.related_title {
    font-size: 14px;
    font-weight: 500;
    color: var(--rj-ink);
    line-height: 1.45;
}

.related_img {
    border-radius: var(--rj-radius);
}

/* ---- "People Also Viewed" — compact cards (demo) ----
   Small thumbnail + text in a tight row; a responsive grid keeps them
   dense on wide columns and single-column on mobile. Photos are demo
   placeholders (see the loop in the view). */
.rj-vcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--rj-sp-2);
    margin-top: var(--rj-sp-3);
}

.rj-vcard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius);
    text-decoration: none !important;
    transition: border-color var(--rj-fast);
}

.rj-vcard:hover {
    border-color: var(--rj-border-strong);
    text-decoration: none !important;
}

.rj-vcard__media {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    /* Branded fallback shown when a restaurant has no photo (or the photo
       fails to load — the <img> gets onerror="this.style.display='none'").
       Inline SVG data-URI = never a broken image, no extra request.
       Fully %-encoded so minifyCSS can't collapse it. */
    background: var(--rj-surface-soft) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2351ab6d'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%202v7c0%201.1.9%202%202%202h1a2%202%200%200%200%202-2V2'/%3E%3Cpath%20d='M7%202v20'/%3E%3Cpath%20d='M21%2015V2a5%205%200%200%200-5%205v6c0%201.1.9%202%202%202h3Zm0%200v7'/%3E%3C/svg%3E") center / 26px no-repeat;
}

.rj-vcard__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* sits on top of the fallback; if it loads it covers the icon */
    background: var(--rj-surface-soft);
}

.rj-vcard__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rj-vcard__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rj-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rj-vcard__cuisine {
    font-size: 12px;
    line-height: 1.3;
    color: var(--rj-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* card stars: sized with the other .google_stars rows above */

.sidebar hr {
    border-top: 1px solid var(--rj-border);
    margin: var(--rj-sp-3) 0;
}

/* ---- breadcrumb + "updated on" ---- */
.breadcrumb {
    background: transparent;
    padding: var(--rj-sp-3) 0 0;
    margin: 0;
}

.breadcrumb .city_footer a i {
    font-style: normal;
}

i.push-down-45 {
    font-style: normal;
    font-family: var(--rj-font);
    font-size: 13px;
    color: var(--rj-muted);
}

/* ---- photo collage overlay buttons ---- */
.add_photo {
    top: 12px;
    background: rgba(27, 42, 54, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: 0 var(--rj-radius-pill) var(--rj-radius-pill) 0;
    padding: 8px 14px 8px 10px;
    font-family: var(--rj-font);
    font-size: 13px;
    font-weight: 500;
    align-items: center;
    transition: background var(--rj-fast);
}

.add_photo:hover {
    background: rgba(27, 42, 54, .92);
}

/* ---- responsive ---- */
@media (max-width: 767.98px) {
    .boxed {
        padding: var(--rj-sp-4);
        border-radius: var(--rj-radius);
    }

    .widget-author.boxed {
        padding: 0 0 var(--rj-sp-4);
    }
}

@media (max-width:432px) {

    .rating-left {
        margin: 0 20px;
    }

    .main-rating:last-child {
        flex-direction: column;
    }

    .sub-ratings {
        border: none;
        margin-bottom: 10px;
        min-width: 200px;
        display: flex;
        flex-wrap: wrap;
        width: 100%;

    }

    .sub-rating {
        margin-right: 0px;
        flex: 1 1 33.33%;
        border-right: 1.5px solid var(--rj-border);
        flex-direction: column;
    }

    .sub-rating:last-child {
        border: none;
    }

    .rating-label {
        padding-right: 3px;
    }

    .rating-label:before {
        width: 30px;
        height: 30px;
    }

}

@media (max-width:371px) {
    .sub-rating:nth-child(2) {
        border: none;
    }
}

/* ================================================================
   Structure v2 components (hero strip, breadcrumbs, status chip,
   sticky section nav, sticky sidebar rail, mobile reserve UI)
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

#about,
#menu,
#photos,
#reviews,
#hours,
#location {
    scroll-margin-top: 64px;
}

/* ---- hero photo strip ---- */
.rj-hero {
    position: relative;
    display: grid;
    gap: 8px;
    grid-template-rows: repeat(2, 132px);
    margin: 0 0 var(--rj-sp-4);
    border-radius: var(--rj-radius-lg);
    overflow: hidden;
}

.rj-hero--5 {
    grid-template-columns: 2fr 1fr 1fr;
}

.rj-hero--3 {
    grid-template-columns: 2fr 1fr;
}

.rj-hero__item {
    display: block;
    overflow: hidden;
    background: var(--rj-border);
}

.rj-hero__item:first-child {
    grid-row: span 2;
}

.rj-hero__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(0);
    transition: transform var(--rj-slow), filter .4s ease;
}

.rj-hero__item:hover img {
    transform: scale(1.04);
}

/* Blur-up placeholder state: matches automatically while data-original
   is still on the tag (see the PHP hero block + the upgrade script
   below) and stops matching the instant JS removes the attribute — the
   filter transition above then animates it away with no JS needed. The
   slight scale-up keeps the blur's soft edge from peeking past the
   tile's own overflow:hidden border. */
.rj-hero__item img[data-original] {
    filter: blur(14px);
    transform: scale(1.08);
}

.rj-hero__all {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 8px 16px;
    border-radius: var(--rj-radius-pill);
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--rj-border);
    box-shadow: var(--rj-shadow);
    font-family: var(--rj-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--rj-ink);
    text-decoration: none;
    transition: border-color var(--rj-fast), color var(--rj-fast);
}

.rj-hero__all:hover {
    border-color: var(--rj-green-dark);
    color: var(--rj-green-deep);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .rj-hero {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--rj-radius);
    }

    .rj-hero__item {
        flex: 0 0 58%;
        height: 170px;
    }

    .rj-hero__item:first-child {
        flex-basis: 74%;
    }
}

/* ---- breadcrumbs ---- */
.rj-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    font-family: var(--rj-font);
    font-size: 13px;
    color: var(--rj-muted);
}

.post-content--front-page .rj-crumbs a {
    color: var(--rj-muted);
}

.post-content--front-page .rj-crumbs a:hover {
    color: var(--rj-green-deep);
}

.rj-crumbs__sep {
    color: var(--rj-border-strong);
}

.rj-crumbs__here {
    color: var(--rj-ink);
    font-weight: 500;
}

/* ---- open/closed status chip ---- */
.post-content--front-page a.rj-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--rj-sp-3);
    padding: 6px 12px;
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius-pill);
    background: var(--rj-surface-soft);
    font-size: 13px;
    font-weight: 500;
    color: var(--rj-text);
}

.post-content--front-page a.rj-status:hover {
    text-decoration: none;
    border-color: var(--rj-border-strong);
    color: var(--rj-text);
}

.rj-status__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rj-muted);
}

.rj-status.is-open .rj-status__dot {
    background: var(--rj-green-dark);
}

.rj-status.is-open .rj-status__verdict {
    color: var(--rj-green-text);
    font-weight: 600;
}

.rj-status.is-closed .rj-status__dot {
    background: var(--rj-danger);
}

.rj-status.is-closed .rj-status__verdict {
    color: var(--rj-danger);
    font-weight: 600;
}

.rj-status__sep {
    color: var(--rj-border-strong);
}

.rj-status #today-work-time {
    color: var(--rj-muted);
}

/* ---- ghost actions in the button row ---- */
.post-content--front-page .menuOrder a.rj-action-ghost,
.menuOrder a.rj-action-ghost {
    background: transparent;
    border-color: var(--rj-border-strong);
    color: var(--rj-muted);
    cursor: pointer;
}

.post-content--front-page .menuOrder a.rj-action-ghost:hover,
.menuOrder a.rj-action-ghost:hover {
    background: var(--rj-surface-soft);
    border-color: var(--rj-border-strong);
    color: var(--rj-ink);
}

/* ---- sticky section nav ---- */
.rj-subnav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: var(--rj-sp-4) -20px 4px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rj-border);
}

.rj-subnav::-webkit-scrollbar {
    display: none;
}

.post-content--front-page .rj-subnav a {
    flex: none;
    padding: 7px 13px;
    border-radius: var(--rj-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--rj-muted);
}

.post-content--front-page .rj-subnav a:hover {
    background: var(--rj-surface-soft);
    color: var(--rj-ink);
    text-decoration: none;
}

.post-content--front-page .rj-subnav a.is-active {
    background: var(--rj-green-tint);
    color: var(--rj-green-text);
}

@media (max-width: 767.98px) {
    .rj-subnav {
        margin: var(--rj-sp-3) -16px 4px;
        padding: 8px 16px;
    }
}

/* Sidebar rail: intentionally plain static flow — no sticky, no internal
   scroll (dropped per user feedback: the pinned+scrolling sidebar felt
   wrong). .rj-rail / .rj-layout remain as plain wrapper markup only. */

/* ---- mobile quick slots strip ----
   One contained soft card, chips scroll horizontally inside it.
   Chips are outline-green so the row reads as secondary to the
   primary action buttons above it. */
.rj-mslots {
    /* visible by default (mobile-first); desktop hides it below */
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: var(--rj-sp-3) 0 2px;
    padding: 10px 12px;
    background: var(--rj-surface-soft);
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rj-mslots::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .rj-mslots {
        display: none !important;
    }
}

.rj-mslots__label {
    flex: none;
    font-family: var(--rj-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--rj-ink);
}

.rj-mslot {
    flex: none;
    border: 1px solid var(--rj-green-dark);
    border-radius: var(--rj-radius-pill);
    background: var(--rj-surface);
    color: var(--rj-green-text);
    font-family: var(--rj-font);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    cursor: pointer;
    transition: background var(--rj-fast), color var(--rj-fast);
}

.rj-mslot:hover,
.rj-mslot:active {
    background: var(--rj-green-dark);
    color: #fff;
}

/* Skeleton chip — same box model as .rj-mslot so the row's height and
   width never change once real chips (or the fallback button) replace it. */
.rj-mslot-skel {
    flex: none;
    width: 58px;
    height: 30px;
    border-radius: var(--rj-radius-pill);
    background: #e3ece6;
    animation: rjPulse 1.2s ease-in-out infinite;
}

.rj-mslot--more {
    background: transparent;
    border-color: var(--rj-border-strong);
    color: var(--rj-muted);
}

.rj-mslot--more:hover,
.rj-mslot--more:active {
    background: var(--rj-surface);
    color: var(--rj-ink);
}

/* ---- mobile sticky reserve CTA ---- */
.rj-mobile-cta {
    display: none;
}

@media (max-width: 767.98px) {
    .rj-mobile-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--rj-border);
        box-shadow: 0 -8px 24px rgba(27, 42, 54, .08);
        /* Hidden until the header "Reserve" button scrolls out of view; JS
           toggles .is-visible (see the rjMobileCta reveal observer). Slides
           in via transform/opacity only — the reserved padding-bottom below
           stays constant, so revealing it never shifts layout. */
        transform: translateY(110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--rj-slow), opacity var(--rj-slow), visibility var(--rj-slow);
    }

    .rj-mobile-cta.is-visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body:has(.rj-mobile-cta) {
        padding-bottom: 74px;
    }

    /* The sitewide "Get more info in our app" banner (footer.php) is
       also a fixed bottom bar (#appBanner.active, bottom:0). Without
       coordination the two overlap — this CTA's higher z-index made it
       cover the banner's lower half. Nudge the banner up by this CTA's
       height so they stack instead of colliding. Scoped via :has() so
       pages without the Reserve CTA (i.e. every page but this one)
       keep the banner's original position untouched. */
    body:has(.rj-mobile-cta) #appBanner.active {
        bottom: 60px;
    }
}

/* This page replaces the sitewide footer #appBanner with its own
   in-content banner (.rj-appbar, below). Hard-hide the footer one here so
   the two can never double up — this CSS is page-scoped and current even
   if the deployed footer's JS suppression (window.__rjInlineAppBanner) is
   stale. Also neutralise the footer's appActive bottom padding. */
#appBanner {
    display: none !important;
}

footer.appActive {
    padding-bottom: 0 !important;
}

/* ---- app download banner ----
   Lives inline in the flow after Location; JS pins it to the bottom of
   the viewport once scrolled to (see the rjAppbar IIFE). Pins at exactly
   its own inline position, so the reflow of the content below is masked
   by the banner itself — no visible jump, no reserved-space gap. Mobile
   only; hidden on desktop and until JS reveals it. */
.rj-appbar {
    display: none;
}

@media (max-width: 767.98px) {
    .rj-appbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        margin: var(--rj-sp-5) 0;
        padding: 10px 38px 10px 12px;
        background: #fff;
        border: 1px solid var(--rj-border);
        border-radius: var(--rj-radius);
        box-shadow: 0 2px 12px rgba(27, 42, 54, .07);
    }

    .rj-appbar[hidden] {
        display: none;
    }

    .rj-appbar.is-pinned {
        position: fixed;
        left: 0;
        right: 0;
        /* bottom is set inline by JS so the bar stacks above the Reserve
           CTA (which is itself fixed at bottom:0) when that CTA exists */
        margin: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        z-index: 9001;
        box-shadow: 0 -8px 24px rgba(27, 42, 54, .12);
    }

    .rj-appbar__close {
        position: absolute;
        top: 6px;
        right: 8px;
        padding: 4px;
        border: 0;
        background: transparent;
        color: var(--rj-muted);
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
    }

    .rj-appbar__icon {
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
    }

    .rj-appbar__text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .rj-appbar__title {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--rj-ink);
    }

    .rj-appbar__sub {
        margin: 2px 0 0;
        font-size: 12.5px;
        color: var(--rj-muted);
    }

    .rj-appbar__cta {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        border-radius: var(--rj-radius-pill);
        background: var(--rj-green-dark);
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }
}

/* ---- mobile header-zone density pass ---- */
@media (max-width: 767.98px) {
    .rj-hero {
        margin-bottom: var(--rj-sp-3);
    }

    .rj-crumbs {
        gap: 5px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .post-content--front-page h1 {
        margin-bottom: var(--rj-sp-3);
    }

    .post-content--front-page>p {
        margin: var(--rj-sp-3) 0;
        line-height: 1.55;
    }

    /* the verdict already carries the message — drop the duplicated
       raw hours from the chip on small screens */
    .rj-status.is-open .rj-status__sep,
    .rj-status.is-open #today-work-time,
    .rj-status.is-closed .rj-status__sep,
    .rj-status.is-closed #today-work-time {
        display: none;
    }

    .post-content--front-page a.rj-status {
        margin: 0 0 var(--rj-sp-3);
    }

    .menuOrder {
        gap: 8px;
        margin: var(--rj-sp-3) 0 var(--rj-sp-1);
    }

    .post-content--front-page .menuOrder a,
    .menuOrder a {
        padding: 8px 15px;
        font-size: 13px;
    }
}
