/* ============================================================
   Amerose Rich Empire — Wellness Care package listing + detail
   Pairs with assets/css/style.css (brand tokens: --emerald, --gold…)
   ============================================================ */

/* ---------------- Shared page frame ---------------- */
.wpage { padding: 148px 0 100px; }

.wbread {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
}
.wbread a { color: var(--emerald-2); }
.wbread a:hover { color: var(--emerald); text-decoration: underline; }

.wpage-head { max-width: 48rem; margin-bottom: 38px; }
.wpage-head h1 {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--emerald);
}
.wpage-head h1 em { font-style: italic; color: var(--gold-deep); }
.wpage-head p { margin: 0 0 10px; color: var(--muted); }
.wpage-from {
    font-size: .9rem;
    font-weight: 700;
    color: var(--emerald-2);
}
.wpage-from b { font-size: 1.15rem; color: var(--emerald); }

/* ---------------- Listing toolbar ---------------- */
.wlist-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.wlist-count {
    margin: 0;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
}
.wlist-count b { color: var(--emerald); }
.wlist-wa {
    font-size: .82rem;
    font-weight: 800;
    color: var(--emerald-2);
    border-bottom: 2px solid rgba(212, 175, 94, .6);
    padding-bottom: 2px;
}
.wlist-wa:hover { color: var(--emerald); border-color: var(--gold-deep); }

/* ---------------- Listing grid (3 × 2 on desktop) ---------------- */
.wlist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.wrow {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 22px;
    border: 1px solid rgba(4, 56, 44, .1);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 30px rgba(4, 45, 35, .07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.wrow:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(4, 45, 35, .18);
    border-color: rgba(212, 175, 94, .6);
}

.wrow-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #07231b;
}
.wrow-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform .6s ease;
}
.wrow:hover .wrow-media img { transform: scale(1.06); }

.wrow-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 16px;
    flex: 1;
}
.wrow-body h2 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.25;
}
.wrow-body h2 a { color: var(--emerald); }
.wrow-body h2 a:hover { color: var(--gold-deep); }

.wrow-desc {
    margin: 0;
    font-size: .86rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wrow-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.wrow-meta .chip { font-size: .72rem; padding: 4px 10px; }

.wrow-price {
    margin: auto 0 0;
    padding-top: 4px;
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: -.01em;
}
.wrow-price small {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.wrow-action { display: block; padding: 0 20px 20px; }
.wrow-action .btn { width: 100%; padding: 11px 16px; font-size: .84rem; }
.wrow-action .btn svg { width: 15px; height: 15px; }

/* ---------------- Notes + CTA ---------------- */
.wpage-note {
    margin-top: 34px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .7);
    border: 1px dashed rgba(4, 56, 44, .22);
    font-size: .85rem;
    color: var(--muted);
}

/* ---------------- Package price table ---------------- */
.ptable-wrap {
    border-radius: 22px;
    border: 1px solid rgba(4, 56, 44, .12);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 40px rgba(4, 45, 35, .10);
    overflow: hidden;
}
.ptable {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
}
.ptable thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f7ecd2;
    background: linear-gradient(135deg, var(--emerald), #0a4a3a);
}
.ptable tbody td {
    padding: 16px 20px;
    border-top: 1px solid rgba(4, 56, 44, .08);
    color: #285246;
    font-weight: 600;
    vertical-align: middle;
}
.ptable tbody tr {
    transition: background .18s ease;
}
.ptable tbody tr:hover { background: rgba(212, 175, 94, .12); }

.ptable .p-num {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald);
    line-height: 1;
}
.ptable .p-num small {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}
.ptable .p-days b { font-size: 1.06rem; color: var(--emerald); }
.ptable .p-days span {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
}
.ptable .p-thumb {
    width: 54px;
    height: 74px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 94, .35);
    background: #07231b;
    display: block;
}
.ptable .p-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ptable .p-actions { text-align: right; white-space: nowrap; }
.ptable .p-actions .btn { padding: 10px 16px; font-size: .82rem; }
.ptable .p-actions .btn + .btn { margin-left: 8px; }

@media (max-width: 720px) {
    .ptable thead { display: none; }
    .ptable tbody tr {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 4px 14px;
        padding: 14px;
        border-top: 1px solid rgba(4, 56, 44, .1);
    }
    .ptable tbody td { border: 0; padding: 0; }
    .ptable td.p-num { grid-column: 2; }
    .ptable td.p-days { grid-column: 2; }
    .ptable td.p-thumb { grid-row: 1 / span 3; }
    .ptable td.p-actions { grid-column: 2; text-align: left; white-space: normal; }
    .ptable td.p-actions .btn { width: 100%; margin-top: 6px; }
    .ptable td.p-actions .btn + .btn { margin-left: 0; margin-top: 8px; }
    .ptable .p-thumb { width: 64px; height: 88px; }
}

.wpage-cta { margin-top: 38px; text-align: center; }
.wpage-cta p { margin: 0 0 16px; color: var(--muted); }

/* ---------------- Reveal animation ---------------- */
.wpage .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}
.wpage .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .wpage .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Detail page ---------------- */
.wdetail {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.wdetail-flyer {
    margin-top: 14px;
    border-radius: 20px;
    overflow: hidden;
    background: #07231b;
    border: 1px solid rgba(212, 175, 94, .35);
    box-shadow: 0 20px 50px rgba(4, 45, 35, .22);
    cursor: zoom-in;
}

/* Main photo (replaces the poster as the hero image) */
.wdetail-main {
    border-radius: 20px;
    overflow: hidden;
    background: #07231b;
    border: 1px solid rgba(212, 175, 94, .4);
    box-shadow: 0 22px 56px rgba(4, 45, 35, .24);
    cursor: zoom-in;
    aspect-ratio: 4 / 5;
}
.wdetail-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}.wdetail-flyer img { width: 100%; height: auto; }

.wdetail-flyer-tools {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.wdetail-flyer-tools button {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    color: var(--emerald);
    font-weight: 800;
    font-size: .8rem;
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.wdetail-flyer-tools button:hover { border-color: var(--gold-deep); }
.wdetail-flyer-tools button.active {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    border-color: var(--gold-deep);
    color: #3d2c07;
}

.wdetail-body h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--emerald);
}
.wdetail-body > p { margin: 0 0 18px; color: var(--muted); }

.wdetail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(4, 56, 44, .1);
}
.wdetail-facts div { display: grid; gap: 2px; }
.wdetail-facts span {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.wdetail-facts b { font-size: 1.05rem; color: var(--emerald); }

.wdetail-list {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    font-size: .93rem;
    font-weight: 600;
    color: #285246;
}.wdetail-list li { padding-left: 26px; position: relative; }

/* Intro line above a list ("Our experienced therapist will provide:") */
.wdetail-body > h2 + p {
    margin: -2px 0 12px;
    font-size: .9rem;
    color: var(--muted);
}

/* "Recommended for" list — same highlight box as "Suitable for" */
.wdetail-reco {
    margin: 0 0 26px;
    padding: 14px 16px 14px 32px;
    border-radius: 14px;
    background: rgba(11, 95, 73, .06);
    border-left: 3px solid var(--gold);
    font-size: .92rem;
    font-weight: 600;
    color: #285246;
    display: grid;
    gap: 6px;
    list-style: none;
    counter-reset: reco;
}
.wdetail-reco li {
    position: relative;
    padding-left: 4px;
    counter-increment: reco;
}
.wdetail-reco li::before {
    content: counter(reco);
    position: absolute;
    left: -22px;
    top: .1em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .66rem;
    font-weight: 800;
    color: #3d2c07;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

/* "Suitable for" statement */
.wdetail-suit {
    margin: 0 0 26px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 95, 73, .06);
    border-left: 3px solid var(--gold);
    font-size: .92rem;
    font-weight: 600;
    color: #285246;
}
.wdetail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(212, 175, 94, .22);
    border: 1px solid rgba(169, 130, 47, .5);
}

.wdetail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Benefits cards ---------------- */
.wbenefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 0 0 26px;
}

.wbenefit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 253, 246, .96), rgba(252, 244, 224, .8));
    border: 1px solid rgba(212, 175, 94, .34);
    box-shadow: 0 10px 26px rgba(169, 130, 47, .10);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.wbenefit:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 94, .65);
    box-shadow: 0 18px 40px rgba(169, 130, 47, .18);
}

.wbenefit-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #3d2c07;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 8px 18px rgba(182, 141, 47, .35);
    flex: none;
}
.wbenefit-ico svg { width: 20px; height: 20px; }

.wbenefit p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--muted);
}
.wbenefit p b {
    display: block;
    margin-bottom: 2px;
    font-size: .92rem;
    color: var(--emerald);
}

.wdetail-note {
    margin-top: 20px;
    font-size: .82rem;
    color: var(--muted);
    font-style: italic;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .wdetail { grid-template-columns: 1fr; }
    .wdetail-flyer { position: static; max-width: 340px; }
}

@media (max-width: 980px) {
    .wlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 720px) {
    .wpage { padding: 126px 0 80px; }
    .wlist { grid-template-columns: 1fr; gap: 18px; }
    .wrow-body { padding: 16px 18px 14px; }
    .wrow-body h2 { font-size: 1.08rem; }
    .wrow-desc { font-size: .85rem; -webkit-line-clamp: 2; }
    .wrow-action { padding: 0 18px 18px; }
    .wdetail-actions .btn { width: 100%; }
}
