/* ═══════════════════════════════════════════════
   Page-Popup — Single Post
   Dark Mollusca adaptation of PAGE-POPUP-SPEC.md
   ═══════════════════════════════════════════════ */

.pp-body {
    margin: 0;
    background: #0a0a0a;
    color: #f0f0f0;
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Hide preloader and parent-theme footer on single-post */
.pp-body .preloader,
.pp-body footer.site-footer,
.pp-body footer#footer { display: none !important; }

/* ── Container ─────────────────────────────────── */
/* WPBakery (js_composer) globally sets `section { padding-top: 35px; margin: 0 -15px; padding-left/right: 15px }`.
   Override with !important so it cannot win the cascade by reset/late-loading. */
section.pp {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 160px 24px 56px !important;
    margin: 0 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    section.pp { padding: 130px 24px 56px !important; }
}
@media (max-width: 700px) {
    section.pp { padding: 110px 12px 28px !important; }
}

/* ── Blur cover ─────────────────────────────────── */
.pp__bg {
    position: absolute;
    inset: -40px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    filter: blur(36px) saturate(1.15);
    transform: scale(1.08) translateZ(0);
    will-change: transform;
    z-index: 0;
}

.pp__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* ── Inner ─────────────────────────────────────── */
.pp__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* ── Back button ───────────────────────────────── */
.pp__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.pp__back:hover {
    background: rgba(200,169,126,0.18);
    border-color: rgba(200,169,126,0.55);
    transform: translateX(-2px);
    text-decoration: none;
    color: #f5e3c5;
}
.pp__back svg { display: block; flex-shrink: 0; }

/* ── Card ─────────────────────────────────────── */
.pp__card {
    background: #222226;
    color: #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ── Hero ──────────────────────────────────────── */
.pp__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1d;
    flex-shrink: 0;
}

.pp__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* ── Tag chip ─────────────────────────────────── */
.pp__tag {
    display: inline-block;
    background: rgba(200,169,126,0.18);
    color: #f5e3c5;
    padding: 5px 13px;
    border-radius: 999px;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.pp__tag--on-hero {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    margin-bottom: 0;
    background: rgba(0,0,0,0.55);
    color: #f5e3c5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Body ─────────────────────────────────────── */
.pp__body {
    padding: 32px 40px 40px;
}

.pp__title {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #f5f5f5;
    margin: 0 0 10px;
}

.pp__subtitle {
    font-size: 12px;
    color: rgba(240,240,240,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.pp__text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(240,240,240,0.85);
}
.pp__text p { margin: 0 0 1em; }
.pp__text p:last-child { margin-bottom: 0; }
.pp__text strong { color: #f0f0f0; font-weight: 600; }
.pp__text em { color: rgba(240,240,240,0.7); }
.pp__text a {
    color: #c8a97e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pp__text a:hover { color: #f5e3c5; }
.pp__text h2,
.pp__text h3 {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    color: #f0f0f0;
    margin: 1.4em 0 0.5em;
    line-height: 1.2;
}
.pp__text h2 { font-size: 24px; }
.pp__text h3 { font-size: 20px; }
.pp__text ul,
.pp__text ol { margin: 0 0 1em; padding-left: 1.4em; }
.pp__text li { margin-bottom: 0.4em; }
.pp__text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.4em 0;
    border-radius: 8px;
}
.pp__text blockquote {
    border-left: 2px solid #c8a97e;
    padding: 4px 0 4px 16px;
    margin: 1.4em 0;
    color: rgba(240,240,240,0.75);
    font-style: italic;
}

/* Restaurant-meta block (rendered after body when >=2 restaurants linked) */
.pp__body .news-rest-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── CTA strip ─────────────────────────────────── */
.pp__cta {
    margin-top: 28px;
    padding: 18px 22px;
    background: rgba(200,169,126,0.06);
    border: 1px solid rgba(200,169,126,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.pp__cta-note {
    font-size: 13px;
    color: rgba(240,240,240,0.7);
    line-height: 1.5;
    margin: 0;
    flex: 1 1 220px;
}

.pp__cta-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 12px 24px;
    background: #c8a97e;
    color: #1a1a1d;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background .25s ease, transform .15s ease;
}
.pp__cta-btn:hover {
    background: #d8bb8e;
    text-decoration: none;
    transform: translateY(-1px);
    color: #1a1a1d;
}

/* ── Mobile ≤700px ─────────────────────────────── */
@media (max-width: 700px) {
    .pp {
        padding: 14px 12px 28px;
        align-items: flex-start;
    }
    .pp__bg { filter: blur(28px) saturate(1.15); }

    .pp__inner { position: relative; }

    /* Back button floats over hero */
    .pp__back {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 5;
        padding: 8px 14px;
        font-size: 11px;
        margin-bottom: 0;
        background: rgba(0,0,0,0.5);
        border-color: rgba(255,255,255,0.22);
    }

    .pp__card { border-radius: 14px; }
    .pp__hero { aspect-ratio: 1 / 1; }
    .pp__tag--on-hero { top: 56px; left: 12px; }

    .pp__body { padding: 22px 20px 28px; }
    .pp__title { font-size: clamp(24px, 6vw, 30px); }
    .pp__subtitle { margin-bottom: 18px; }
    .pp__text { font-size: 14px; }
}

/* ── Very narrow: CTA stacks ───────────────────── */
@media (max-width: 540px) {
    .pp__cta { flex-direction: column; align-items: stretch; }
    .pp__cta-note { flex: 0 0 auto; max-width: none; }
    .pp__cta-btn { text-align: center; }
}
