/* ============================================
   BiteOut Restaurant Page — Dark Theme
   Inspired by NeoTaste, built for BiteOut
   ============================================ */

:root {
    --r-bg: #0a0a0a;
    --r-surface: #111111;
    --r-card: #161616;
    --r-card-hover: #1c1c1c;
    --r-border: rgba(255,255,255,0.08);
    --r-border-strong: rgba(255,255,255,0.14);
    --r-green: #53F293;
    --r-green-dim: rgba(83,242,147,0.12);
    --r-green-glow: rgba(83,242,147,0.25);
    --r-text: #ffffff;
    --r-text-2: #b3b3b3;
    --r-text-3: #777777;
    --r-red: #ff6b6b;
    --r-radius: 16px;
    --r-radius-sm: 10px;
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

html { scroll-behavior: smooth; scroll-padding-top: 52px; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--r-bg);
    color: var(--r-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* =========================
   STICKY SECTION NAV — sticks to top on scroll
   ========================= */
.rest-section-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(10,10,10,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--r-border);
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}

.rest-section-nav::-webkit-scrollbar { display: none; }

.rest-section-nav__tab {
    padding: 0.85rem 1.25rem;
    color: var(--r-text-3);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.rest-section-nav__tab:hover { color: var(--r-text-2); }

.rest-section-nav__tab.active {
    color: var(--r-green);
    border-bottom-color: var(--r-green);
    font-weight: 600;
}

/* =========================
   GALLERY — Horizontal scroll, compact cards
   ========================= */
.rest-gallery {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem 0.5rem;
    background-color: var(--r-bg);
}

.rest-gallery__scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rest-gallery__scroll::-webkit-scrollbar { display: none; }

.rest-gallery__card {
    flex: 0 0 auto;
    width: 280px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    background-color: #151515;
}

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

/* Single image: wider card, centered */
.rest-gallery--single .rest-gallery__scroll {
    justify-content: center;
}

.rest-gallery--single .rest-gallery__card {
    width: min(480px, calc(100vw - 2.5rem));
    height: 240px;
}

/* Dots */
.rest-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding-top: 0.75rem;
}

.rest-gallery__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    border: none;
    padding: 0;
    transition: all 0.3s;
}

.rest-gallery__dot--active {
    background-color: var(--r-green);
    width: 18px;
    border-radius: 4px;
}


/* =========================
   MAIN CONTENT
   ========================= */
.rest-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================
   RESTAURANT HEADER — NeoTaste two-column
   ========================= */
.rest-header {
    padding: 1.75rem 0 1.25rem;
}

.rest-header__top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.rest-header__left { flex: 1; min-width: 0; }
.rest-header__right { flex-shrink: 0; text-align: right; }

.rest-header__name {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.rest-header__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 0.6rem;
}

.rest-header__stars { display: flex; gap: 2px; }

.rest-header__rating-text {
    color: var(--r-text-2);
    font-size: 0.85rem;
    font-weight: 500;
}

.rest-header__rating:hover .rest-header__rating-text {
    color: var(--r-green);
}

.rest-header__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rest-header__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rest-header__tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background-color: var(--r-card);
    border: 1px solid var(--r-border);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--r-text-2);
}

.rest-header__address {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: var(--r-text-2);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    justify-content: flex-end;
}

.rest-header__address svg { flex-shrink: 0; margin-top: 2px; }

.rest-header__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.rest-header__status--open { color: var(--r-green); }
.rest-header__status--closed { color: var(--r-red); }


/* =========================
   SECTION TITLES
   ========================= */
.rest-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--r-border);
}

.rest-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* =========================
   DEALS — NeoTaste green cards, 2-col grid
   ========================= */
.rest-deals__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.rest-deal {
    background-color: var(--r-green);
    border-radius: var(--r-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.rest-deal:hover {
    box-shadow: 0 8px 32px rgba(83,242,147,0.2);
    transform: translateY(-2px);
}

.rest-deal__body {
    padding: 1.15rem 1.15rem 0.75rem;
    flex: 1;
}

.rest-deal__title {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #0a0a0a;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.rest-deal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.rest-deal__tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background-color: rgba(0,0,0,0.10);
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(0,0,0,0.75);
}

.rest-deal__desc {
    color: rgba(0,0,0,0.55);
    font-size: 0.78rem;
    line-height: 1.45;
}

.rest-deal__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    margin: 0.75rem 1.15rem 1.15rem;
    background-color: rgba(0,0,0,0.12);
    color: #0a0a0a;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.rest-deal__cta:hover {
    background-color: rgba(0,0,0,0.20);
}

/* =========================
   MENU — Collapsible sections
   ========================= */
.rest-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rest-menu__section {
    border-bottom: 1px solid var(--r-border);
}

.rest-menu__section:last-child { border-bottom: none; }

.rest-menu__section-head {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--r-text);
}

.rest-menu__section-head::-webkit-details-marker { display: none; }
.rest-menu__section-head::marker { display: none; content: ''; }

.rest-menu__section-count {
    margin-left: auto;
    color: var(--r-text-3);
    font-size: 0.8rem;
    font-weight: 400;
    padding-right: 0.5rem;
}

.rest-menu__chevron {
    flex-shrink: 0;
    color: var(--r-text-3);
    transition: transform 0.3s;
}

details[open] > .rest-menu__section-head .rest-menu__chevron {
    transform: rotate(180deg);
}

.rest-menu__items {
    padding-bottom: 0.75rem;
}

.rest-menu__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
}

.rest-menu__item + .rest-menu__item {
    border-top: 1px solid rgba(255,255,255,0.03);
}

.rest-menu__item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.rest-menu__item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--r-text);
}

.rest-menu__item-desc {
    font-size: 0.78rem;
    color: var(--r-text-3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rest-menu__item-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--r-text);
    white-space: nowrap;
}

/* =========================
   OPENING HOURS
   ========================= */
.rest-hours {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rest-hours__row {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
}

.rest-hours__row:last-child { border-bottom: none; }

.rest-hours__row--today {
    background-color: var(--r-green-dim);
    margin: 0 -1rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border-bottom: none;
}

.rest-hours__day {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--r-text);
}

.rest-hours__today-badge {
    background-color: var(--r-green);
    color: var(--r-bg);
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rest-hours__time {
    color: var(--r-text-2);
    font-weight: 400;
}

.rest-hours__closed { color: var(--r-red); }

/* =========================
   LOCATION
   ========================= */
.rest-location__address {
    color: var(--r-text-2);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.35rem;
}

.rest-location__landmark {
    color: var(--r-text-3);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.rest-location__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--r-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.rest-location__map-link:hover { opacity: 0.8; }

/* =========================
   CONTACT
   ========================= */
.rest-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--r-card);
    border: 1px solid var(--r-border-strong);
    border-radius: var(--r-radius-sm);
    color: var(--r-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.rest-contact__link:hover {
    background-color: var(--r-card-hover);
    border-color: rgba(255,255,255,0.2);
}

/* =========================
   REVIEWS
   ========================= */
.rest-reviews__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background-color: var(--r-card);
    border-radius: var(--r-radius);
    border: 1px solid var(--r-border);
}

.rest-reviews__score {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.rest-reviews__stars-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rest-reviews__stars-row { display: flex; gap: 2px; }

.rest-reviews__count {
    color: var(--r-text-3);
    font-size: 0.85rem;
}

.rest-reviews__note {
    color: var(--r-text-3);
    font-size: 0.78rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.rest-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rest-review {
    background-color: var(--r-card);
    border-radius: var(--r-radius-sm);
    padding: 1.15rem;
    border: 1px solid var(--r-border);
}

.rest-review__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rest-review__text { margin-top: 0.65rem; }

.rest-review__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--r-green-dim), rgba(83,242,147,0.22));
    color: var(--r-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rest-review__avatar--img {
    object-fit: cover;
    background: none;
}

.rest-review__meta { flex: 1; min-width: 0; }

.rest-review__name {
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.1rem;
}

.rest-review__info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rest-review__stars { display: flex; gap: 1px; }

.rest-review__date {
    color: var(--r-text-3);
    font-size: 0.75rem;
}

.rest-review__text {
    color: var(--r-text-2);
    font-size: 0.88rem;
    line-height: 1.55;
}


/* =========================
   DOWNLOAD BANNER
   ========================= */
.rest-download {
    padding: 3rem 0;
    border-bottom: none;
}

.rest-download__inner {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(83,242,147,0.08) 0%, rgba(83,242,147,0.03) 100%);
    border: 1px solid rgba(83,242,147,0.12);
    border-radius: var(--r-radius);
}

.rest-download__logo {
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.rest-download__title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.rest-download__subtitle {
    color: var(--r-text-2);
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
}

.rest-download__buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rest-download__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
}

.rest-download__btn--apple {
    background-color: #fff;
    color: #000;
}

.rest-download__btn--google {
    background-color: var(--r-card);
    color: #fff;
    border: 1px solid var(--r-border-strong);
}

.rest-download__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* =========================
   FOOTER
   ========================= */
.rest-footer {
    border-top: 1px solid var(--r-border);
    padding: 2rem 1.25rem;
}

.rest-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.rest-footer__logo { display: inline-block; margin-bottom: 1rem; }
.rest-footer__logo img { height: 22px; opacity: 0.6; border-radius: 5px; }

.rest-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    margin-bottom: 1rem;
}

.rest-footer__links a {
    color: var(--r-text-3);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.rest-footer__links a:hover { color: var(--r-green); }

.rest-footer__copy {
    color: var(--r-text-3);
    font-size: 0.72rem;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .rest-header__name { font-size: 1.5rem; }
    .rest-section__title { font-size: 1.1rem; }
    .rest-gallery__card { width: 240px; height: 172px; }

    /* Stack header on tablet */
    .rest-header__top { flex-direction: column; gap: 1rem; }
    .rest-header__right { text-align: left; }
    .rest-header__address { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .rest-main { padding: 0 1rem; }
    .rest-gallery { padding: 1rem 1rem 0.5rem; }
    .rest-header__name { font-size: 1.35rem; }
    .rest-deals__grid { grid-template-columns: 1fr; }
    .rest-deal__body { padding: 1rem 1rem 0.6rem; }
    .rest-deal__cta { margin: 0.6rem 1rem 1rem; }
    .rest-download__inner { padding: 2rem 1.25rem; }
    .rest-download__buttons { flex-direction: column; align-items: center; }
    .rest-download__btn { width: 100%; justify-content: center; }
    .rest-reviews__score { font-size: 2.25rem; }
    .rest-gallery__card { width: 220px; height: 160px; border-radius: 12px; }
    .rest-gallery--single .rest-gallery__card { height: 200px; }
    .rest-section-nav { margin: 0 -1rem; padding: 0 1rem; }
    .rest-section-nav__tab { padding: 0.75rem 1rem; font-size: 0.8rem; }
}

@media (min-width: 769px) {
    .rest-gallery__card { width: 320px; height: 220px; }
    .rest-gallery--single .rest-gallery__card { width: min(540px, calc(100vw - 2.5rem)); height: 280px; }
}
