*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Banner */
.rst-banner {
    position: relative;
    width: 100%;
    height: 45vw;
    min-height: 220px;
    max-height: 420px;
    overflow: hidden;
    background: #111;
}

.rst-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rst-banner__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 25, 23, 0.7) 0%, rgba(26, 25, 23, 0.15) 55%, rgba(26, 25, 23, 0.35) 100%);
}

.rst-banner__cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Layout wrapper */
.rst-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header card (pulled up over banner) */
.rst-header {
    background: var(--surface, #fff);
    border-radius: 20px;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    box-shadow: 0 8px 32px rgba(26, 25, 23, 0.1);
    margin: -2.5rem 1rem 0;
    padding: 1.25rem;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .rst-header {
        margin: -3rem 1.5rem 0;
        padding: 1.75rem;
        flex-wrap: nowrap;
    }
}

.rst-hinfo {
    flex: 1;
    min-width: 0;
}

.rst-hname {
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink, #1A1917);
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.rst-hcuisine {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    color: var(--muted, #6B6860);
    margin-bottom: 0.2rem;
}

.rst-hcuisine strong {
    color: var(--accent, #E6B93B);
    font-weight: 600;
}

.rst-hloc {
    font-size: 0.85rem;
    color: var(--muted, #6B6860);
}

.rst-hmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.rst-htag {
    padding: 0.3rem 0.75rem;
    background: var(--cream, #F0EDE5);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted, #6B6860);
}

.rst-hdesc {
    font-family: 'Source Serif 4', serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--muted, #6B6860);
    margin-top: 0.85rem;
}

.rst-scorecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.85rem 1rem;
    background: var(--cream, #F0EDE5);
    border-radius: 16px;
    min-width: 90px;
}

.rst-scorecard img {
    width: 44px;
    height: 44px;
}

.rst-scorenum {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink, #1A1917);
    line-height: 1;
}

/* Action buttons */
.rst-actions {
    margin: 1rem 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.rst-actions::-webkit-scrollbar {
    display: none;
}

.rst-actions__row {
    display: flex;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
}

.rst-btn {
    flex-shrink: 0;
    padding: 0.65rem 1.1rem;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.rst-btn--primary {
    background: var(--accent, #E6B93B);
    color: var(--ink, #1A1917);
}

.rst-btn--primary:hover {
    background: var(--adk, #C89B1F);
}

.rst-btn--ghost {
    background: var(--cream, #F0EDE5);
    color: var(--ink, #1A1917);
    border: 1.5px solid var(--border, rgba(26, 25, 23, 0.1));
}

.rst-btn--ghost:hover {
    background: var(--accent, #E6B93B);
    border-color: var(--accent, #E6B93B);
}

.rst-btn img {
    width: 16px;
    height: 16px;
}

/* Section structure */
.rst-sec {
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.rst-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rst-sec-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink, #1A1917);
    letter-spacing: -0.01em;
}

/* Photos grid */
.rst-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

@media (min-width: 480px) {
    .rst-photos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .rst-photos {
        grid-template-columns: repeat(5, 1fr);
    }
}

.rst-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
}

.rst-photo:hover {
    transform: scale(1.05);
}

.rst-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rst-photo__fav {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    color: #FFD700;
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rst-viewmore {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: var(--cream, #F0EDE5);
    border: 2px dashed var(--border, rgba(26, 25, 23, 0.2));
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink, #1A1917);
    transition: all 0.18s;
}

.rst-viewmore:hover {
    background: var(--accent, #E6B93B);
    border-color: var(--accent, #E6B93B);
}

.rst-nophoto {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted, #6B6860);
    font-style: italic;
}

/* Reviews */
.rst-reviews {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rst-review-card {
    padding: 1rem;
    border-radius: 12px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    box-shadow: 0 2px 8px rgba(26, 25, 23, 0.05);
}

.rst-rv-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rst-rv-user {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    flex: 1;
}

.rst-rv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rst-rv-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink, #1A1917);
    display: block;
    margin-bottom: 0.15rem;
}

.rst-rv-name:hover {
    color: var(--accent, #E6B93B);
}

.rst-rv-title {
    font-size: 0.75rem;
    color: var(--muted, #6B6860);
}

.rst-rv-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cream, #F0EDE5);
    font-weight: 800;
    color: var(--adk, #C89B1F);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rst-rv-notes {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink, #1A1917);
    margin-bottom: 0.75rem;
}

.rst-rv-imgs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 0.75rem;
}

.rst-rv-imgs::-webkit-scrollbar {
    display: none;
}

.rst-rv-img {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    cursor: pointer;
}

.rst-rv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rst-rv-tag {
    padding: 0.25rem 0.6rem;
    background: var(--cream, #F0EDE5);
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted, #6B6860);
}

.rst-noreviews {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--muted, #6B6860);
    font-style: italic;
}

/* Ratings */
.rst-ratings {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem;
    margin: 0 1rem;
    background: var(--surface, #fff);
    border-radius: 16px;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    box-shadow: 0 2px 8px rgba(26, 25, 23, 0.05);
    flex-wrap: wrap;
}

.rst-hist {
    flex: 1;
    min-width: 180px;
}

.rst-hrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.rst-hlabel {
    width: 48px;
    font-size: 0.7rem;
    color: var(--muted, #6B6860);
    font-weight: 500;
    flex-shrink: 0;
}

.rst-hbar {
    flex: 1;
    height: 8px;
    background: var(--cream, #F0EDE5);
    border-radius: 50px;
    overflow: hidden;
}

.rst-hbar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #E6B93B), var(--adk, #C89B1F));
    border-radius: 50px;
    transition: width 0.5s;
}

.rst-ratingsbig {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rst-ratingsbig__n {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink, #1A1917);
}

.rst-ratingsbig__l {
    font-size: 0.8rem;
    color: var(--muted, #6B6860);
    font-weight: 500;
}

/* Divider */
.rst-hr {
    height: 1px;
    border: none;
    background: var(--border, rgba(26, 25, 23, 0.1));
    margin: 1.5rem 1rem;
}

/* Ad block */
.rst-ad {
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 0 1rem;
}

/* Menu row */
.rst-menu-row {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 1rem;
}

.rst-menu-row::-webkit-scrollbar {
    display: none;
}

.rst-menu-item {
    flex-shrink: 0;
    width: 140px;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
}

.rst-menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info section */
.rst-info {
    padding: 0 1rem;
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted, #6B6860);
    margin-bottom: 1rem;
}

.rst-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
}

.rst-table th,
.rst-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border, rgba(26, 25, 23, 0.1));
}

.rst-table th {
    background: var(--cream, #F0EDE5);
    font-weight: 700;
    color: var(--ink, #1A1917);
    font-size: 0.85rem;
}

.rst-table td {
    color: var(--muted, #6B6860);
    font-size: 0.9rem;
}

.rst-table a {
    color: var(--accent, #E6B93B);
}

.rst-table a:hover {
    color: var(--adk, #C89B1F);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(26, 25, 23, 0.6);
    backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
}

.modal.open {
    display: flex;
}

@media (min-width: 640px) {
    .modal.open {
        align-items: center;
    }
}

.modal-content {
    width: 100%;
    max-width: 520px;
    background: var(--surface, #fff);
    border-radius: 24px 24px 0 0;
    max-height: 92svh;
    overflow-y: auto;
    padding: 0;
    animation: sheetUp 0.25s ease;
}

@media (min-width: 640px) {
    .modal-content {
        border-radius: 20px;
    }
}

@keyframes sheetUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream, #F0EDE5);
    border: none;
    font-size: 1.5rem;
    color: var(--muted, #6B6860);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: var(--ink, #1A1917);
    color: #fff;
}

#review-margin {
    padding: 1.5rem 1.25rem;
    position: relative;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink, #1A1917);
    margin-bottom: 0.75rem;
}

.review-form-details,
.review-form-details2,
.review-form-details3 {
    margin-bottom: 1rem;
}

.review-form-details label,
.review-form-details2 label,
.review-form-details3 label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink, #1A1917);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--cream, #F0EDE5);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    color: var(--ink, #1A1917);
    transition: border-color 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent, #E6B93B);
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.feedback-btn,
.review-btn2 {
    padding: 0.65rem 0.9rem;
    background: var(--cream, #F0EDE5);
    border: 1.5px solid var(--border, rgba(26, 25, 23, 0.1));
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink, #1A1917);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.feedback-btn.selected,
.review-btn2.selected {
    background: var(--accent, #E6B93B);
    border-color: var(--accent, #E6B93B);
    font-weight: 700;
}

.feedback-btn img {
    width: 24px;
    height: 24px;
}

#close-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.btn-close {
    background: var(--cream, #F0EDE5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--muted, #6B6860);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: var(--ink, #1A1917);
    color: #fff;
}