/* ============================================
   SIPO API styles — Mango
   ============================================
   Styles only for elements filled from the API:
   branch Open/Closed badges, hours lists and the
   menu page. Uses the site's existing palette
   (#e9af05 gold, #b23111 red, #95643a brown) so
   it sits inside the current template.
   ============================================ */

/* ---------- Branch Open / Closed badge ---------- */

.branch-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    letter-spacing: .2px;
    min-height: 0;
    transition: opacity .2s ease;
}

.branch-status:empty,
.branch-status.is-unknown {
    display: none;
}

.branch-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    background: currentColor;
}

.branch-status em {
    font-style: normal;
    font-weight: 500;
    opacity: .8;
}

.branch-status.is-open {
    color: #1a7f37;
    background: rgba(34, 197, 94, .12);
}

.branch-status.is-open .dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: mango-pulse 2s infinite;
}

.branch-status.is-closed {
    color: #b42318;
    background: rgba(239, 68, 68, .12);
}

.branch-status.is-closed .dot {
    background: #ef4444;
}

@keyframes mango-pulse {
    to { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .branch-status.is-open .dot { animation: none; }
}

/* ---------- Inline hours summary (branch cards) ---------- */

.hours-line {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 2px;
}

.hours-line strong {
    color: #95643a;
    font-weight: 600;
    margin-right: 4px;
}

/* ---------- Full 7-day hours table (contact page) ---------- */

.hours-table {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.hours-table .hours-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid #efefef;
    font-size: 15px;
}

.hours-table .hours-row:last-child { border-bottom: 0; }

.hours-table .hours-row .day {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.hours-table .hours-row .time {
    text-align: right;
    color: #555;
    line-height: 1.5;
}

.hours-table .hours-row.today {
    background: rgba(233, 175, 5, .1);
}

.hours-table .hours-row.today .day { color: #b23111; }

.hours-table .hours-row .time.closed-day {
    color: #b42318;
    font-weight: 500;
}

/* ---------- Menu page ---------- */

.menu-page-wrap { padding: 50px 0 70px; }

.menu-branch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 26px;
}

.menu-branch-tab {
    background: #fff;
    border: 1px solid #d8d8d8;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .18s ease;
}

.menu-branch-tab:hover {
    border-color: #e9af05;
    color: #b23111;
}

.menu-branch-tab.active {
    background: #b23111;
    border-color: #b23111;
    color: #fff;
}

.menu-cat-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 26px;
    border-bottom: 1px solid #ececec;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.menu-cat-tab {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .3px;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: all .18s ease;
}

.menu-cat-tab:hover { border-color: #e9af05; color: #b23111; }

.menu-cat-tab.active {
    background: #e9af05;
    border-color: #e9af05;
    color: #000;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.menu-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.menu-item:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.menu-item-img {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f5fa;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-item-body { flex: 1 1 auto; min-width: 0; }

.menu-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 5px;
}

.menu-item-head h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.35;
}

.menu-item-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #b23111;
    background: rgba(233, 175, 5, .18);
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: middle;
}

.menu-item-price {
    font-size: 15.5px;
    font-weight: 700;
    color: #b23111;
    white-space: nowrap;
}

.menu-item-body p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b6b6b;
    margin: 0;
}

.menu-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 44px 20px;
    font-size: 15px;
}

.menu-loading {
    text-align: center;
    color: #888;
    padding: 44px 20px;
    font-size: 15px;
}

.menu-loading::after {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    margin: 14px auto 0;
    border: 3px solid #eee;
    border-top-color: #e9af05;
    border-radius: 50%;
    animation: mango-spin .8s linear infinite;
}

@keyframes mango-spin { to { transform: rotate(360deg); } }

.menu-order-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
    .menu-grid { grid-template-columns: 1fr; }

    .menu-branch-tab { padding: 10px 20px; font-size: 14px; }

    .menu-item { padding: 13px; gap: 12px; }

    .menu-item-img { flex: 0 0 68px; width: 68px; height: 68px; }

    .menu-item-head { flex-wrap: wrap; gap: 4px; }

    .hours-table .hours-row { font-size: 14px; padding: 10px 13px; }

    .branch-status { font-size: 12px; padding: 5px 10px; }

    .branch-status em { display: none; }
}

/* ============================================
   Navbar
   ============================================ */

/* The desktop bar was wrapping onto two lines. ORDER ONLINE is now
   hidden at lg+ (it lives in the floating button instead) and stays
   inside the mobile hamburger menu via Bootstrap's .d-lg-none. */

.header_area .menu_nav .nav-link {
    white-space: nowrap;
}

/* ============================================
   Footer — Follow Us + app download
   ============================================ */

.social-links {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.social-links li { margin-bottom: 10px; }

/* The template sets `display:block` on footer links, which kills the
   flex gap — override with matching specificity so icon and label align. */
.footer_out .social-links a,
.social-links a {
    display: inline-flex !important;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.social-links a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-size: 15px;
    transition: transform .2s ease, background .2s ease;
}

.social-links a:hover { color: #e9af05; text-decoration: none; }
.social-links a:hover i { transform: translateY(-2px); background: #0d65d9; }

.footer-app-heading {
    margin-top: 4px;
}

.footer_out .footer-app-btn,
.footer-app-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e9af05;
    color: #000;
    font-size: 14.5px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.footer-app-btn i { font-size: 16px; }

.footer-app-btn:hover {
    background: #95643a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================
   Floating "Order Now" button
   ============================================ */

.floating-order {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1035;              /* under the modal (1050), above page content */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    background: #b23111;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.floating-order i { font-size: 17px; }

.floating-order:hover {
    background: #e9af05;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
}

.floating-order:focus-visible {
    outline: 3px solid #e9af05;
    outline-offset: 3px;
}

/* Collapse to a circular icon button on small screens */
@media (max-width: 575px) {
    .floating-order {
        right: 16px;
        bottom: 16px;
        padding: 0;
        width: 56px;
        height: 56px;
        justify-content: center;
        gap: 0;
    }
    .floating-order span { display: none; }
    .floating-order i { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-order,
    .footer-app-btn,
    .social-links a i { transition: none; }
}

/* ============================================
   Order modal — centred box
   ============================================ */

.order-modal .modal-dialog {
    max-width: 460px;
    /* main_style.css sets `.modal-dialog { margin: 2.5rem }` under 991px,
       which overrides Bootstrap's `margin: 1.75rem auto` and pins the box
       to the left. Restore horizontal centring at every width. */
    margin-left: auto;
    margin-right: auto;
}

.order-modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

.order-modal-content .modal-header {
    background: #b23111;
    border-bottom: 0;
    padding: 18px 24px;
    align-items: center;
}

.order-modal-content .modal-title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.order-modal-content .close {
    color: #fff;
    opacity: .85;
    text-shadow: none;
    font-size: 28px;
    font-weight: 400;
    padding: 0 4px;
    margin: 0;
    line-height: 1;
}

.order-modal-content .close:hover { opacity: 1; color: #fff; }

.order-modal-content .modal-body {
    padding: 24px;
}

.order-modal-sub {
    text-align: center;
    color: #666;
    font-size: 14.5px;
    margin: 0 0 18px;
}

.order-branch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.order-branch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    padding: 12px 14px;
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    color: #2a2a2a !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .18s ease;
}

.order-branch-btn:hover {
    border-color: #e9af05;
    background: #e9af05;
    color: #000 !important;
    transform: translateY(-2px);
}

@media (max-width: 400px) {
    .order-branch-grid { grid-template-columns: 1fr; }
    .order-modal-content .modal-body { padding: 20px; }
}

/* ============================================
   Contact page — stacked branch panels
   ============================================
   Four narrow columns squeezed the hours table
   into wrapped fragments. Each branch now gets a
   full-width row instead: photo | details | hours.
   Collapses to a single column on tablet/mobile.
   ============================================ */

.branch-panels {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.branch-panel {
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
    transition: box-shadow .25s ease, transform .25s ease;
    text-align: left;
}

.branch-panel:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

/* ---- photo ---- */

.branch-panel-media {
    position: relative;
    min-height: 260px;
    background: #f2f2f2;
}

.branch-panel-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- details ---- */

.branch-panel-info {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.branch-panel-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1b1b1b;
    margin: 0 0 14px;
    line-height: 1.25;
}

.branch-panel-line {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 10px;
    font-size: 15.5px;
    line-height: 1.55;
    color: #4a4a4a;
}

.branch-panel-line i {
    color: #b23111;
    font-size: 15px;
    width: 18px;
    flex: 0 0 18px;
    margin-top: 3px;
    text-align: center;
}

.branch-panel-line a { color: inherit; text-decoration: none; }
.branch-panel-line a:hover { color: #b23111; text-decoration: underline; }

.branch-panel-phone a {
    font-weight: 600;
    color: #b23111;
    font-size: 16.5px;
}

/* ---- actions ---- */

.branch-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.branch-panel-order,
.branch-panel-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s ease;
}

.branch-panel-order {
    background: #e9af05;
    color: #000 !important;
    border: 1.5px solid #e9af05;
}

.branch-panel-order:hover {
    background: #95643a;
    border-color: #95643a;
    color: #fff !important;
}

.branch-panel-book {
    background: transparent;
    color: #b23111 !important;
    border: 1.5px solid #dcdcdc;
}

.branch-panel-book:hover {
    border-color: #b23111;
    background: #b23111;
    color: #fff !important;
}

/* ---- hours ---- */

.branch-panel-hours {
    padding: 24px 26px;
    background: #fbfaf7;
    border-left: 1px solid #efefef;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branch-panel-hours h4 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #95643a;
    margin: 0 0 12px;
}

.branch-panel-hours .hours-table {
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.branch-panel-hours .hours-row {
    padding: 8px 10px;
    font-size: 14.5px;
    gap: 14px;
    border-bottom: 1px solid #eee;
    border-radius: 5px;
}

.branch-panel-hours .hours-row .time {
    white-space: nowrap;
}

/* Badge must never wrap onto two lines inside a panel.
   A full-width row always has room for the closing time, so keep the
   "· until 9:30 PM" detail that the narrow-card rule hides. */
.branch-panel .branch-status {
    white-space: nowrap;
    margin-bottom: 14px;
}

.branch-panel .branch-status em {
    display: inline;
}

/* ---- responsive ---- */

@media (max-width: 1199px) {
    .branch-panel { grid-template-columns: 240px 1fr 300px; }
    .branch-panel-info { padding: 24px; }
    .branch-panel-hours { padding: 20px; }
}

@media (max-width: 991px) {
    .branch-panel {
        grid-template-columns: 1fr;
    }

    .branch-panel-media { min-height: 220px; }

    .branch-panel-hours {
        border-left: 0;
        border-top: 1px solid #efefef;
    }

    .branch-panel-info { align-items: flex-start; }
}

@media (max-width: 575px) {
    .branch-panels { gap: 20px; }
    .branch-panel-info { padding: 20px; }
    .branch-panel-hours { padding: 18px 20px; }
    .branch-panel-info h3 { font-size: 21px; }
    .branch-panel-actions { width: 100%; }
    .branch-panel-order,
    .branch-panel-book { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .branch-panel { transition: none; }
    .branch-panel:hover { transform: none; }
}
