@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* =============================================
   POPUP WRAPPER — full screen fixed layer
   display toggled by JS (none / flex)
   ============================================= */
.aurp-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

/* Fade in */
.aurp-wrap[style*="flex"] {
    animation: aurpFadeIn .3s ease forwards;
}

/* Fade out */
.aurp-wrap.aurp-hiding {
    animation: aurpFadeOut .26s ease forwards;
}

@keyframes aurpFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes aurpFadeOut { from{opacity:1} to{opacity:0} }

/* ---- DARK OVERLAY ---- */
/* Sits behind the box, covers the screen, clicking it calls aurpClose */
.aurp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 9, 2, 0.72);
    cursor: pointer;
    z-index: 1;
}

/* ---- POPUP BOX ---- */
.aurp-box {
    position: relative;
    z-index: 2;             /* above the overlay */
    background: #fff9f3;
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(140,90,43,.15);
    animation: aurpSlideUp .38s cubic-bezier(.22,1,.36,1) forwards;
    box-shadow: 0 24px 60px rgba(20,9,2,.35);
}

@keyframes aurpSlideUp {
    from { opacity:0; transform:translateY(24px) scale(.97) }
    to   { opacity:1; transform:translateY(0)    scale(1)   }
}

/* ---- CLOSE BUTTON ---- */
/* Inline onclick — never depends on event bubbling or delegation */
.aurp-x {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;           /* well above everything inside the box */
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2a1a0e;
    color: #f2c66e;
    border: 2px solid rgba(242,198,110,.7);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s, transform .15s;
    /* Guarantee clicks reach the button */
    pointer-events: all !important;
}

.aurp-x:hover {
    background: #8c5a2b;
    transform: scale(1.12);
}

/* ---- GOLD TOP BAR ---- */
.aurp-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #8c5a2b, #f2c66e, #8c5a2b);
}

/* ---- IMAGE ---- */
.aurp-img {
    width: 100%;
    overflow: hidden;
    background: #f5efe8;
}

.aurp-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.aurp-img--banner  { max-height: 260px; }
.aurp-img--review  { max-height: 200px; }
.aurp-img--gallery { max-height: 300px; }

/* ---- BODY ---- */
.aurp-body {
    padding: 22px 26px 26px;
}

/* Badge */
.aurp-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
}
.aurp-badge--banner  { background:#8c5a2b; color:#f2c66e; }
.aurp-badge--review  { background:#f2c66e; color:#2a1a0e; }
.aurp-badge--gallery { background:#2a1a0e; color:#f2c66e; }

/* Title */
.aurp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    color: #2a1a0e;
    margin: 0 0 10px;
    line-height: 1.2;
}

/* Stars */
.aurp-stars { display:flex; gap:3px; margin-bottom:10px; }
.aurp-star    { font-size:20px; color:#ddd; }
.aurp-star--on { color:#f2c66e; }

/* Description */
.aurp-desc {
    font-size: 14px;
    color: #7a6354;
    font-weight: 300;
    line-height: 1.75;
    margin: 0 0 12px;
}

/* Reviewer */
.aurp-reviewer {
    font-size: 13px;
    font-weight: 500;
    color: #8c5a2b;
    margin: 0 0 14px;
}

/* CTA */
.aurp-btn {
    display: inline-block;
    background: #8c5a2b;
    color: #f2c66e;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 2px;
    text-decoration: none;
    margin-top: 4px;
    transition: background .22s;
}
.aurp-btn:hover { background:#6e431e; color:#f2c66e; }

/* Body scroll lock */
body.aurp-open { overflow: hidden; }

/* ---- MOBILE ---- */
@media (max-width: 540px) {
    .aurp-wrap {
        padding: 0;
        align-items: flex-end;
    }
    .aurp-box {
        max-width: 100%;
        border-radius: 14px 14px 0 0;
    }
    .aurp-title { font-size: 22px; }
    .aurp-body  { padding: 18px 18px 28px; }
    .aurp-img--banner,
    .aurp-img--review,
    .aurp-img--gallery { max-height: 190px; }
}
