/* ==========================================================================
   Restaurant Popup — Styles
   ========================================================================== */

/* ---------- OVERLAY ---------- */
.rp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rp-overlay, rgba(0, 0, 0, 0.75));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.rp-overlay.rp-active {
    opacity: 1;
    visibility: visible;
}

/* ---------- CONTAINER ---------- */
.rp-container {
    position: relative;
    background-color: var(--rp-bg, #1a1207);
    color: var(--rp-text, #ffffff);
    border-radius: 20px;
    width: 100%;
    max-width: var(--rp-max-width, 750px);
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 168, 83, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rp-active .rp-container {
    transform: scale(1) translateY(0);
}

/* Animation Variants */
.rp-popup--slideUp .rp-container {
    transform: translateY(80px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-popup--slideUp.rp-active .rp-container { transform: translateY(0); }

.rp-popup--slideDown .rp-container {
    transform: translateY(-80px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-popup--slideDown.rp-active .rp-container { transform: translateY(0); }

.rp-popup--fadeOnly .rp-container {
    transform: none;
    transition: none;
}

/* ---------- BACKGROUND IMAGE ---------- */
.rp-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--rp-bg-opacity, 0.25);
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.rp-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 18, 7, 0.3) 0%,
        rgba(26, 18, 7, 0.7) 50%,
        rgba(26, 18, 7, 0.9) 100%
    );
    border-radius: 20px;
}

/* ---------- DECORATIVE CORNERS ---------- */
.rp-decor {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

.rp-decor--top-left {
    top: 16px;
    left: 16px;
    border-top: 2px solid var(--rp-accent, #d4a853);
    border-left: 2px solid var(--rp-accent, #d4a853);
    border-radius: 4px 0 0 0;
}

.rp-decor--top-right {
    top: 16px;
    right: 16px;
    border-top: 2px solid var(--rp-accent, #d4a853);
    border-right: 2px solid var(--rp-accent, #d4a853);
    border-radius: 0 4px 0 0;
}

.rp-decor--bottom-left {
    bottom: 16px;
    left: 16px;
    border-bottom: 2px solid var(--rp-accent, #d4a853);
    border-left: 2px solid var(--rp-accent, #d4a853);
    border-radius: 0 0 0 4px;
}

.rp-decor--bottom-right {
    bottom: 16px;
    right: 16px;
    border-bottom: 2px solid var(--rp-accent, #d4a853);
    border-right: 2px solid var(--rp-accent, #d4a853);
    border-radius: 0 0 4px 0;
}

/* ---------- CLOSE BUTTON ---------- */
.rp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: var(--rp-text, #fff);
    transition: all 0.25s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.rp-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
}

.rp-close:focus-visible {
    outline: 2px solid var(--rp-accent, #d4a853);
    outline-offset: 3px;
}

/* ---------- HEADER ---------- */
.rp-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 44px 40px 8px;
}

.rp-header__ornament {
    font-size: 1.2rem;
    color: var(--rp-accent, #d4a853);
    letter-spacing: 12px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.rp-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
    color: var(--rp-text, #fff);
    letter-spacing: 0.5px;
}

.rp-header__subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--rp-text, #fff);
    opacity: 0.65;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CARDS GRID ---------- */
.rp-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 36px 12px;
}

/* ---------- INDIVIDUAL CARD ---------- */
.rp-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 83, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rp-card--1 {
    background-color: var(--rp-card1-bg, #2a1f0e);
    border-color: var(--rp-card1-border, rgba(212, 168, 83, 0.2));
}

.rp-card--2 {
    background-color: var(--rp-card2-bg, #2a1f0e);
    border-color: var(--rp-card2-border, rgba(212, 168, 83, 0.2));
}

.rp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--rp-accent, #d4a853);
}

/* Card Image */
.rp-card__image {
    width: 100%;
    height: 130px;
    overflow: hidden;
    line-height: 0;
}

.rp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rp-card:hover .rp-card__image img {
    transform: scale(1.08);
}

/* Card Body */
.rp-card__body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Icon */
.rp-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Card Title */
.rp-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--rp-accent, #d4a853);
    line-height: 1.3;
}

/* Card Description */
.rp-card__desc {
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0 0 20px;
    color: var(--rp-text, #fff);
    opacity: 0.6;
    flex: 1;
}

/* Card Button */
.rp-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1207;
    background: linear-gradient(135deg, var(--rp-accent, #d4a853), #e8c36a);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.rp-card__btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.45);
    text-decoration: none;
    color: #1a1207;
}

.rp-card__btn:focus-visible {
    outline: 2px solid var(--rp-accent, #d4a853);
    outline-offset: 3px;
}

.rp-card__btn svg {
    flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.rp-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 16px 36px 32px;
}

.rp-footer__text {
    font-size: 0.8rem;
    color: var(--rp-accent, #d4a853);
    opacity: 0.45;
    margin: 0 0 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.rp-footer__dismiss {
    background: none;
    border: none;
    color: var(--rp-text, #fff);
    opacity: 0.35;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rp-footer__dismiss:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
}

.rp-footer__dismiss:focus-visible {
    outline: 2px solid var(--rp-accent, #d4a853);
    outline-offset: 2px;
    opacity: 0.7;
}

/* ---------- BODY LOCK ---------- */
body.rp-body-locked {
    overflow: hidden;
    padding-right: var(--rp-scrollbar-width, 0px);
}

/* ---------- SCROLLBAR ---------- */
.rp-container::-webkit-scrollbar { width: 5px; }
.rp-container::-webkit-scrollbar-track { background: transparent; }
.rp-container::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.2);
    border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 680px) {
    .rp-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .rp-container {
        border-radius: 18px 18px 14px 14px;
        max-height: 88vh;
    }

    .rp-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 20px 8px;
    }

    .rp-card {
        flex-direction: row;
    }

    .rp-card__image {
        width: 110px;
        height: auto;
        min-height: 100%;
    }

    .rp-card__body {
        padding: 16px 16px 18px;
    }

    .rp-card__icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .rp-card__title {
        font-size: 1rem;
    }

    .rp-card__desc {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    .rp-card__btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .rp-header {
        padding: 32px 24px 4px;
    }

    .rp-header__title {
        font-size: 1.35rem;
    }

    .rp-header__subtitle {
        font-size: 0.85rem;
    }

    .rp-footer {
        padding: 12px 20px 24px;
    }

    .rp-decor { display: none; }
}

@media (max-width: 380px) {
    .rp-card {
        flex-direction: column;
    }

    .rp-card__image {
        width: 100%;
        height: 100px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rp-overlay,
    .rp-container,
    .rp-close,
    .rp-card,
    .rp-card__image img,
    .rp-card__btn {
        transition: none !important;
    }
}

/* Print */
@media print {
    .rp-overlay { display: none !important; }
}