/* =========================================================
   Palace Museum — main.css
   Imperial red & gold design system
   ========================================================= */

/* ---------- 1. Tokens & reset ---------- */
:root {
        --pm-red: #A6212C;
        --pm-red-deep: #7E151F;
        --pm-red-dark: #4A0B10;
        --pm-maroon: #3B0A0E;
        --pm-gold: #C9A227;
        --pm-gold-bright: #E4C464;
        --pm-gold-pale: #F3E7C3;
        --pm-cream: #FAF5EA;
        --pm-paper: #FFFCF5;
        --pm-ink: #26201A;
        --pm-muted: #6E6355;
        --pm-line: #E9DEC6;
        --pm-shadow: 0 18px 44px rgba(74, 11, 16, 0.12);
        --pm-shadow-sm: 0 8px 22px rgba(74, 11, 16, 0.09);
        --pm-radius: 14px;
        --pm-radius-sm: 9px;
        --pm-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
        --pm-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --pm-font-cn: "Noto Serif SC", "Songti SC", serif;
        --pm-container: 1200px;
        --pm-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cpath d='M21 0L42 21L21 42L0 21Z' fill='none' stroke='%23E4D8B8' stroke-width='1'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pm-theme {
        margin: 0;
        font-family: var(--pm-font-body);
        font-size: 16.5px;
        line-height: 1.7;
        color: var(--pm-ink);
        background: var(--pm-paper);
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pm-red); text-decoration: none; }
a:hover { color: var(--pm-red-deep); }

h1, h2, h3, h4 { font-family: var(--pm-font-display); line-height: 1.18; margin: 0 0 0.55em; color: var(--pm-ink); font-weight: 700; }

.pm-container { max-width: var(--pm-container); margin: 0 auto; padding: 0 24px; }
.pm-container--narrow { max-width: 860px; }

.pm-skip { position: absolute; left: -9999px; top: 0; background: var(--pm-red); color: #fff; padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0; }
.pm-skip:focus { left: 0; color: #fff; }

.pm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.icon { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

::selection { background: var(--pm-gold); color: var(--pm-red-dark); }

/* ---------- 2. Buttons, links, badges ---------- */
.pm-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 9px;
        font-family: var(--pm-font-body); font-weight: 600; font-size: 15px;
        line-height: 1; padding: 14px 26px; border-radius: 999px;
        border: 2px solid transparent; cursor: pointer; transition: all 0.22s ease;
        white-space: nowrap; text-decoration: none;
}
.pm-btn:hover { transform: translateY(-2px); box-shadow: var(--pm-shadow-sm); }

.pm-btn--gold { background: linear-gradient(135deg, var(--pm-gold-bright), var(--pm-gold)); color: var(--pm-red-dark); border-color: rgba(122, 90, 8, 0.35); }
.pm-btn--gold:hover { color: var(--pm-red-dark); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.45); }

.pm-btn--red { background: var(--pm-red); color: #fff; }
.pm-btn--red:hover { background: var(--pm-red-deep); color: #fff; }

.pm-btn--outline { background: transparent; color: var(--pm-red); border-color: rgba(166, 33, 44, 0.45); }
.pm-btn--outline:hover { background: var(--pm-red); color: #fff; border-color: var(--pm-red); }

.pm-btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.65); backdrop-filter: blur(3px); }
.pm-btn--ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

.pm-btn--outline-gold { background: transparent; color: var(--pm-gold-bright); border-color: rgba(228, 196, 100, 0.6); }
.pm-btn--outline-gold:hover { background: rgba(228, 196, 100, 0.14); color: var(--pm-gold-bright); }

.pm-btn--sm { padding: 11px 20px; font-size: 14px; }
.pm-btn--lg { padding: 17px 34px; font-size: 16px; }
.pm-btn--block { width: 100%; }

.pm-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pm-red); border-bottom: 2px solid transparent; }
.pm-link-arrow:hover { color: var(--pm-red-deep); }
.pm-link-arrow .icon { transition: transform 0.2s; }
.pm-link-arrow:hover .icon { transform: translateX(4px); }
.pm-link-arrow--aside { align-self: center; font-size: 15px; }

.pm-eyebrow {
        display: inline-flex; align-items: center; gap: 10px;
        font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
        color: var(--pm-gold); margin: 0 0 14px;
}
.pm-eyebrow--red { color: var(--pm-red); }
.pm-eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; opacity: 0.7; }

.pm-seal {
        display: inline-flex; align-items: center; justify-content: center;
        font-family: var(--pm-font-cn); font-weight: 900; font-size: 13px; letter-spacing: 0.1em;
        background: var(--pm-red); color: #fff; width: 30px; height: 30px; line-height: 1;
        border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.pm-stars { display: inline-flex; gap: 2px; color: var(--pm-gold); }
.pm-stars .star { width: 17px; height: 17px; }

.pm-roof-divider { color: var(--pm-gold); line-height: 0; margin-bottom: -1px; }
.pm-roof-divider svg { display: block; width: 100%; height: 22px; }

/* ---------- 3. Header ---------- */
.pm-header { position: sticky; top: 0; z-index: 90; }
body.admin-bar .pm-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .pm-header { top: 46px; } }

.pm-topbar { background: var(--pm-red-dark); color: #EFE3C8; font-size: 13px; }
.pm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.pm-topbar__info { display: flex; gap: 22px; align-items: center; }
.pm-topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #EFE3C8; }
.pm-topbar__item .icon { color: var(--pm-gold-bright); }
a.pm-topbar__item:hover { color: #fff; }
.pm-topbar__right { display: flex; align-items: center; gap: 14px; }
.pm-topbar__tickets { color: var(--pm-gold-bright); font-weight: 600; letter-spacing: 0.04em; }
.pm-topbar__tickets:hover { color: #fff; }
.pm-topbar__info { white-space: nowrap; }
@media (max-width: 720px) { .pm-topbar__info .pm-topbar__item:first-child { display: none; } }

/* TranslatePress widget styling inside topbar */
.pm-lang ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.pm-lang li a, .pm-lang body .trp-language-wrap a { color: #EFE3C8; }
.pm-lang li.current-language a { color: var(--pm-gold-bright); font-weight: 600; }
.pm-lang ul li:not(:last-child)::after { content: "|"; opacity: 0.4; margin-left: 4px; }
.pm-lang .trp-language-switcher, .pm-lang .trp-ls-shortcode { font-size: 13px; }
.pm-lang a:hover { color: #fff; }

/* Compact TP shortcode switcher: pill nhỏ, hòa màu topbar, không đè link Book Tickets */
.pm-topbar__right { flex-wrap: wrap; row-gap: 6px; }
.pm-lang { flex-shrink: 0; line-height: 1; }
.pm-lang .trp-shortcode-switcher__wrapper {
        --bg: rgba(255, 255, 255, 0.1) !important;
        --bg-hover: rgba(255, 255, 255, 0.18) !important;
        --text: #F5E9CC !important;
        --text-hover: #ffffff !important;
        --border: 1px solid rgba(245, 233, 204, 0.4) !important;
        --border-width: 1px !important;
        --border-color: rgba(245, 233, 204, 0.4) !important;
        --border-radius: 999px !important;
        --flag-radius: 2px !important;
        --flag-size: 15px !important;
        --font-size: 12.5px !important;
        flex-shrink: 0;
}
.pm-lang .trp-shortcode-overlay { width: 100%; z-index: 120; }
.pm-lang .trp-language-item {
        padding: 4px 24px 4px 10px !important;
        gap: 6px; white-space: nowrap; min-height: 0;
}
.pm-lang .trp-language-item-name { font-weight: 600; letter-spacing: 0.01em; }
.pm-lang img.trp-flag-image { width: 15px !important; }

.pm-masthead { background: rgba(255, 252, 245, 0.96); backdrop-filter: blur(9px); border-bottom: 1px solid var(--pm-line); transition: box-shadow 0.25s; }
.pm-header.pm-scrolled .pm-masthead { box-shadow: 0 10px 30px rgba(74, 11, 16, 0.1); }
.pm-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 78px; }

.pm-brand { display: flex; align-items: center; }
.pm-brand__logo { height: 46px; width: auto; }
.custom-logo { height: 46px; width: auto; max-width: 240px; }
.custom-logo-link { display: inline-flex; }

/* Nav targets both wp_nav_menu anchors (no class) and the fallback markup (.pm-nav__link) */
.pm-nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pm-nav__list > li > a,
.pm-nav__link {
        display: block; padding: 10px 17px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
        color: var(--pm-ink); border-radius: 8px; position: relative; white-space: nowrap;
}
.pm-nav__list > li > a::after,
.pm-nav__link::after {
        content: ""; position: absolute; left: 17px; right: 17px; bottom: 4px; height: 2px;
        background: var(--pm-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.22s;
}
.pm-nav__list > li > a:hover,
.pm-nav__list > .current-menu-item > a,
.pm-nav__list > .current_page_item > a,
.pm-nav__list > .current_page_parent > a,
.pm-nav__item.current-menu-item > .pm-nav__link,
.pm-nav__item.current_page_item > .pm-nav__link { color: var(--pm-red); }
.pm-nav__list > li > a:hover::after,
.pm-nav__list > .current-menu-item > a::after,
.pm-nav__list > .current_page_item > a::after,
.pm-nav__list > .current_page_parent > a::after,
.pm-nav__link:hover::after,
.pm-nav__item.current-menu-item > .pm-nav__link::after { transform: scaleX(1); }

.pm-header__cta { display: flex; align-items: center; gap: 12px; }

.pm-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.pm-burger span { display: block; width: 24px; height: 2.5px; background: var(--pm-ink); margin: 5px 0; border-radius: 2px; transition: 0.25s; }
.pm-burger.pm-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.pm-burger.pm-open span:nth-child(2) { opacity: 0; }
.pm-burger.pm-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
        .pm-burger { display: block; }
        .pm-nav {
                position: absolute; left: 0; right: 0; top: 100%;
                background: var(--pm-paper); border-bottom: 1px solid var(--pm-line);
                max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
                box-shadow: 0 18px 30px rgba(74, 11, 16, 0.12);
        }
        .pm-nav.pm-nav--open { max-height: 420px; }
        .pm-nav__list { flex-direction: column; gap: 0; padding: 12px 20px 20px; }
        .pm-nav__list > li > a, .pm-nav__link { padding: 13px 8px; border-bottom: 1px solid var(--pm-line); border-radius: 0; white-space: normal; }
        .pm-nav__list > li > a::after, .pm-nav__link::after { display: none; }
}

/* ---------- 4. Hero (front page) ---------- */
.pm-main { min-height: 50vh; }

.pm-hero {
        background:
                var(--pm-lattice),
                linear-gradient(180deg, #FDF9EF 0%, var(--pm-cream) 100%);
        padding: 64px 0 72px;
        position: relative; overflow: hidden;
}
.pm-hero::after {
        content: "宫"; position: absolute; right: -40px; top: -60px;
        font-family: var(--pm-font-cn); font-weight: 900; font-size: 380px; line-height: 1;
        color: rgba(166, 33, 44, 0.05); pointer-events: none;
}
.pm-hero__grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 52px; align-items: start; position: relative; z-index: 1; }

.pm-hero__title { font-size: clamp(2.35rem, 4.6vw, 3.65rem); letter-spacing: -0.01em; margin-bottom: 18px; }
.pm-hero__lead { font-size: 17.5px; color: var(--pm-muted); max-width: 56ch; margin: 0 0 20px; }
.pm-hero__rating { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--pm-muted); font-size: 14.5px; }
.pm-hero__rating strong { color: var(--pm-ink); font-size: 16px; }
.pm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.pm-hero__figure { margin: 0; border-radius: var(--pm-radius); overflow: hidden; box-shadow: var(--pm-shadow); position: relative; }
.pm-hero__figure img { width: 100%; height: clamp(280px, 34vw, 430px); object-fit: cover; transition: transform 6s ease; }
.pm-hero__figure:hover img { transform: scale(1.05); }

.pm-tickets { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); box-shadow: var(--pm-shadow); overflow: hidden; position: sticky; top: 140px; }
.pm-tickets__media { position: relative; }
.pm-tickets__media img { width: 100%; height: 210px; object-fit: cover; }
.pm-tickets__ribbon {
        position: absolute; top: 16px; left: 16px; background: rgba(74, 11, 16, 0.86);
        color: var(--pm-gold-bright); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
        text-transform: uppercase; padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(3px);
}
.pm-tickets__body { padding: 26px 26px 24px; }
.pm-tickets__from { margin: 0; color: var(--pm-muted); font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pm-tickets__price { font-family: var(--pm-font-display); font-weight: 800; font-size: 46px; color: var(--pm-red); margin: 2px 0 18px; line-height: 1; }
.pm-tickets__price span { font-size: 15px; font-family: var(--pm-font-body); font-weight: 500; color: var(--pm-muted); letter-spacing: 0; }
.pm-tickets__facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; font-size: 14.5px; color: var(--pm-muted); }
.pm-tickets__facts li { display: flex; gap: 11px; align-items: flex-start; }
.pm-tickets__facts .icon { color: var(--pm-gold); margin-top: 4px; }
.pm-tickets__facts strong { color: var(--pm-ink); }
.pm-tickets__facts em { color: var(--pm-red); font-style: normal; font-weight: 600; font-size: 13.5px; }
.pm-tickets__body .pm-btn { margin-bottom: 10px; }
.pm-tickets__note { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--pm-muted); }

@media (max-width: 1024px) {
        .pm-hero__grid { grid-template-columns: 1fr; gap: 40px; }
        .pm-tickets { position: static; max-width: 560px; }
}

/* ---------- 5. Stats band ---------- */
.pm-stats { background: linear-gradient(120deg, var(--pm-red-dark) 0%, var(--pm-red-deep) 55%, #8A1A24 100%); color: #F6EBD2; position: relative; }
.pm-stats::before, .pm-stats::after {
        content: ""; position: absolute; left: 0; right: 0; height: 5px;
        background: repeating-linear-gradient(90deg, var(--pm-gold) 0 26px, transparent 26px 40px); opacity: 0.55;
}
.pm-stats::before { top: 0; } .pm-stats::after { bottom: 0; }
.pm-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 46px 24px; }
.pm-stat { text-align: center; padding: 6px 10px; }
.pm-stat__num { display: block; font-family: var(--pm-font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--pm-gold-bright); line-height: 1.05; }
.pm-stat__num small { font-size: 0.5em; font-weight: 600; letter-spacing: 0.04em; }
.pm-stat__label { display: block; margin-top: 8px; font-size: 13.5px; letter-spacing: 0.03em; opacity: 0.88; }
@media (max-width: 860px) { .pm-stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 6. Generic sections ---------- */
.pm-section { padding: 78px 0; }
.pm-section--cream { background: var(--pm-cream) ; background-image: var(--pm-lattice); }
.pm-section--tight { padding: 44px 0; }

.pm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.pm-section-head--center { flex-direction: column; align-items: center; text-align: center; }
.pm-section-head--center .pm-eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; opacity: 0.7; }
.pm-section-sub { color: var(--pm-muted); max-width: 62ch; margin: 10px auto 0; }

.pm-h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.pm-h2--sm { font-size: 1.6rem; margin-bottom: 26px; }
.pm-h3 { font-size: 1.28rem; }

.pm-grid { display: grid; gap: 26px; }
.pm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .pm-grid--4 { grid-template-columns: repeat(2, 1fr); } .pm-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pm-grid--4, .pm-grid--3 { grid-template-columns: 1fr; } }

/* ---------- 7. About ---------- */
.pm-about__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; }
.pm-about__media { position: relative; padding-bottom: 46px; }
.pm-about__img { border-radius: var(--pm-radius); box-shadow: var(--pm-shadow); }
.pm-about__img--main { width: 82%; height: 500px; object-fit: cover; }
.pm-about__img--small { position: absolute; right: 0; bottom: 0; width: 52%; height: 300px; object-fit: cover; border: 6px solid var(--pm-paper); }
.pm-about__badge {
        position: absolute; left: -14px; top: -18px; font-family: var(--pm-font-cn); font-weight: 900;
        background: var(--pm-red); color: #fff; padding: 14px 12px; writing-mode: vertical-rl;
        font-size: 17px; letter-spacing: 0.28em; border-radius: 8px; box-shadow: var(--pm-shadow-sm);
}
.pm-about__copy p { color: var(--pm-muted); margin-bottom: 16px; }
.pm-ticks { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.pm-ticks li { position: relative; padding-left: 32px; color: var(--pm-ink); font-weight: 500; }
.pm-ticks li::before {
        content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
        background: var(--pm-gold-pale); border: 1.5px solid var(--pm-gold);
}
.pm-ticks li::after {
        content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 5px;
        border-left: 2px solid var(--pm-red); border-bottom: 2px solid var(--pm-red); transform: rotate(-45deg);
}
@media (max-width: 1024px) { .pm-about__grid { grid-template-columns: 1fr; gap: 44px; } .pm-about__img--main { height: 380px; } }

/* ---------- 8. Photo marquee ---------- */
.pm-marquee { overflow: hidden; position: relative; padding: 6px 0; }
.pm-marquee::before, .pm-marquee::after {
        content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.pm-marquee::before { left: 0; background: linear-gradient(90deg, var(--pm-cream), transparent); }
.pm-marquee::after { right: 0; background: linear-gradient(-90deg, var(--pm-cream), transparent); }
.pm-marquee__track { display: flex; gap: 18px; width: max-content; animation: pm-scroll 68s linear infinite; }
.pm-marquee:hover .pm-marquee__track { animation-play-state: paused; }
.pm-marquee__item { display: block; width: 300px; border-radius: var(--pm-radius-sm); overflow: hidden; box-shadow: var(--pm-shadow-sm); flex: none; }
.pm-marquee__item img { width: 300px; height: 200px; object-fit: cover; transition: transform 0.5s; }
.pm-marquee__item:hover img { transform: scale(1.06); }
@keyframes pm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pm-marquee__track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- 9. Cards ---------- */
.pm-card {
        background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius);
        overflow: hidden; box-shadow: 0 2px 0 rgba(233, 222, 198, 0.6);
        transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column;
}
.pm-card:hover { transform: translateY(-6px); box-shadow: var(--pm-shadow); }

.pm-card__media { display: block; overflow: hidden; }
.pm-card__media img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.6s ease; }
.pm-card:hover .pm-card__media img { transform: scale(1.06); }

.pm-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.pm-card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pm-muted); margin-bottom: 10px; }
.pm-card__cat { background: var(--pm-gold-pale); color: #7A5A08; font-weight: 700; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pm-card__cat:hover { background: var(--pm-gold); color: var(--pm-red-dark); }
.pm-dot { opacity: 0.5; }
.pm-card__title { font-size: 1.22rem; margin: 0 0 10px; }
.pm-card__title a { color: var(--pm-ink); }
.pm-card__title a:hover { color: var(--pm-red); }
.pm-card__excerpt { color: var(--pm-muted); font-size: 14.8px; margin: 0 0 18px; flex: 1; }
.pm-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--pm-red); }
.pm-card__more .icon { transition: transform 0.2s; }
.pm-card__more:hover .icon { transform: translateX(4px); }

.pm-card--highlight { text-decoration: none; }
.pm-card--highlight .pm-card__title { color: var(--pm-ink); display: block; }
.pm-card--highlight .pm-card__excerpt { display: block; }
.pm-card--highlight:hover .pm-card__title { color: var(--pm-red); }

/* ---------- 10. Plan ---------- */
.pm-plan__item { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 30px 28px; text-align: left; box-shadow: 0 2px 0 rgba(233, 222, 198, 0.6); }
.pm-plan__icon {
        display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
        border-radius: 14px; background: linear-gradient(135deg, var(--pm-gold-pale), #F9F0D2); margin-bottom: 16px;
}
.pm-plan__icon .icon { width: 26px; height: 26px; color: var(--pm-red); }
.pm-plan__item h3 { font-size: 1.18rem; }
.pm-plan__item p { color: var(--pm-muted); margin: 0; font-size: 15px; }
.pm-plan__cta { text-align: center; margin-top: 40px; }

/* ---------- 11. Reviews ---------- */
.pm-reviews__summary {
        display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
        background: linear-gradient(120deg, var(--pm-red-dark), var(--pm-red-deep));
        border-radius: var(--pm-radius); color: #F6EBD2; padding: 30px 34px; margin-bottom: 34px;
        box-shadow: var(--pm-shadow);
}
.pm-reviews__score { display: flex; align-items: baseline; gap: 6px; }
.pm-reviews__num { font-family: var(--pm-font-display); font-weight: 800; font-size: 62px; color: var(--pm-gold-bright); line-height: 1; }
.pm-reviews__outof { font-size: 18px; opacity: 0.8; }
.pm-reviews__meta { flex: 1; min-width: 240px; }
.pm-reviews__meta .pm-stars .star { width: 21px; height: 21px; color: var(--pm-gold-bright); }
.pm-reviews__meta p { margin: 8px 0 0; font-size: 15px; opacity: 0.92; }
.pm-reviews__meta strong { color: #fff; }

.pm-card--review { padding: 26px 26px 24px; }
.pm-card__review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pm-avatar {
        display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
        border-radius: 50%; background: linear-gradient(135deg, var(--pm-red), var(--pm-red-deep));
        color: var(--pm-gold-bright); font-family: var(--pm-font-display); font-weight: 700; font-size: 20px; flex: none;
}
.pm-review-name { font-weight: 700; font-size: 15.5px; color: var(--pm-ink); }
.pm-review-sub { display: flex; align-items: center; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.pm-review-meta { font-size: 12.5px; color: var(--pm-muted); letter-spacing: 0.02em; }
.pm-card__quote { margin: 0; color: var(--pm-muted); font-size: 14.9px; line-height: 1.75; position: relative; }
.pm-card__quote::before { content: "\201C"; font-family: var(--pm-font-display); font-size: 54px; color: var(--pm-gold); opacity: 0.4; display: block; line-height: 0.6; margin-bottom: 10px; }

/* ---------- 12. CTA banner ---------- */
.pm-cta {
        position: relative; background: url("https://palacemuseumbeijing.com/wp-content/uploads/2026/10/The-Palace-Museum-62.webp") center/cover no-repeat;
        padding: 96px 0;
}
.pm-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(59, 10, 14, 0.93) 30%, rgba(126, 21, 31, 0.72)); }
.pm-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.pm-cta__title { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.pm-cta__sub { color: #EFD9BC; margin: 0; max-width: 54ch; }
.pm-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 13. Footer ---------- */
.pm-footer { background: var(--pm-maroon); color: #D9C9A8; margin-top: 0; }
.pm-footer__grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr 1fr; gap: 44px; padding: 66px 24px 50px; }
.pm-footer__logo-wrap { display: inline-block; background: #fff; border-radius: 10px; padding: 12px 18px; margin-bottom: 18px; }
.pm-footer__logo-wrap img { height: 40px; width: auto; }
.pm-footer__about { font-size: 14.3px; line-height: 1.75; opacity: 0.85; margin-bottom: 18px; }
.pm-footer__rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pm-footer__rating .pm-stars .star { width: 15px; height: 15px; color: var(--pm-gold-bright); }
.pm-footer__title { color: var(--pm-gold-bright); font-family: var(--pm-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.pm-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pm-footer__links a { color: #D9C9A8; font-size: 14.5px; }
.pm-footer__links a:hover { color: #fff; }
.pm-footer__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14.3px; }
.pm-footer__info li { display: flex; gap: 10px; align-items: flex-start; }
.pm-footer__info .icon { color: var(--pm-gold); margin-top: 3px; flex: none; }
.pm-footer__info a { color: #D9C9A8; }
.pm-footer__info a:hover { color: #fff; }
.pm-footer__ticket-note { font-size: 13.8px; opacity: 0.85; margin-bottom: 14px; }
.pm-footer__bottom { border-top: 1px solid rgba(228, 196, 100, 0.2); padding: 20px 0; font-size: 13px; }
.pm-footer__bottom-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pm-footer__bottom a { color: var(--pm-gold-bright); }
.pm-footer__note { opacity: 0.6; margin: 0; }
.pm-footer__bottom p { margin: 0; }
@media (max-width: 1024px) { .pm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pm-footer__grid { grid-template-columns: 1fr; gap: 34px; } }

.pm-top {
        position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
        background: var(--pm-red); color: #fff; border: 0; cursor: pointer; opacity: 0; pointer-events: none;
        transition: opacity 0.25s, transform 0.25s; transform: translateY(8px); z-index: 80;
        box-shadow: var(--pm-shadow-sm); display: flex; align-items: center; justify-content: center;
}
.pm-top.pm-top--show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.pm-top svg { width: 22px; height: 22px; }
.pm-top:hover { background: var(--pm-red-deep); }

/* ---------- 14. Page hero (inner pages) ---------- */
.pm-hero-page {
        background:
                var(--pm-lattice),
                linear-gradient(180deg, #FDF9EF, var(--pm-cream));
        padding: 58px 0 54px; border-bottom: 1px solid var(--pm-line); position: relative; overflow: hidden;
}
.pm-hero-page::after {
        content: "宫"; position: absolute; right: 2%; bottom: -70px; font-family: var(--pm-font-cn);
        font-size: 240px; font-weight: 900; color: rgba(166, 33, 44, 0.045); line-height: 1; pointer-events: none;
}
.pm-hero-page__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 12px; }
.pm-hero-page__sub { color: var(--pm-muted); font-size: 16.5px; max-width: 68ch; margin: 0 0 22px; }
.pm-hero-page__actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.pm-hero-page--post .pm-hero-page__title { max-width: 900px; }

.pm-breadcrumb { font-size: 13.5px; color: var(--pm-muted); margin-bottom: 16px; position: relative; z-index: 1; }
.pm-breadcrumb a { color: var(--pm-red); font-weight: 600; }
.pm-breadcrumb__sep { margin: 0 8px; opacity: 0.45; }

/* ---------- 15. Quick facts / info cards / tables / steps ---------- */
.pm-quickfacts { background: var(--pm-red-dark); color: #F6EBD2; }
.pm-quickfacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 34px 24px; }
.pm-quickfact { text-align: center; }
.pm-quickfact__num { display: block; font-family: var(--pm-font-display); font-weight: 800; font-size: 1.9rem; color: var(--pm-gold-bright); }
.pm-quickfact__label { font-size: 13px; opacity: 0.85; letter-spacing: 0.03em; }
@media (max-width: 860px) { .pm-quickfacts__grid { grid-template-columns: repeat(2, 1fr); } }

.pm-cols { display: grid; gap: 26px; }
.pm-cols--2 { grid-template-columns: 1fr 1fr; }
.pm-cols--3 { grid-template-columns: repeat(3, 1fr); }
.pm-cols--tickets { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
@media (max-width: 960px) { .pm-cols--2, .pm-cols--3, .pm-cols--tickets { grid-template-columns: 1fr; } }

.pm-info-card { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 28px; box-shadow: 0 2px 0 rgba(233, 222, 198, 0.6); }
.pm-info-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pm-info-card h3 em { display: block; font-family: var(--pm-font-body); font-style: normal; font-weight: 600; font-size: 13px; color: var(--pm-red); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }
.pm-info-card--icon p { margin: 8px 0 0; color: var(--pm-muted); font-size: 15px; }

.pm-info-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.pm-info-list li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--pm-line); padding-bottom: 9px; }
.pm-info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-info-list span { color: var(--pm-muted); }
.pm-info-list strong { font-family: var(--pm-font-display); font-size: 17px; color: var(--pm-red); }

.pm-note {
        background: var(--pm-gold-pale); border-left: 4px solid var(--pm-gold); border-radius: 0 var(--pm-radius-sm) var(--pm-radius-sm) 0;
        padding: 18px 22px; margin-top: 26px; font-size: 15px; color: #5C4A10;
}
.pm-note strong { color: var(--pm-red-dark); }

.pm-table-wrap { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); overflow: hidden; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pm-table th { background: var(--pm-red-dark); color: var(--pm-gold-pale); text-align: left; padding: 14px 18px; font-weight: 600; font-size: 13.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.pm-table td { padding: 13px 18px; border-top: 1px solid var(--pm-line); color: var(--pm-muted); }
.pm-table td:first-child { color: var(--pm-ink); font-weight: 600; }
.pm-table__note { padding: 14px 18px; margin: 0; background: #FFF9E9; color: #5C4A10; font-size: 13.5px; border-top: 1px solid var(--pm-line); }

.pm-book-steps { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 28px; }
.pm-steps { counter-reset: step; list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 15px; }
.pm-steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--pm-muted); font-size: 15px; }
.pm-steps li::before {
        content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
        background: var(--pm-red); color: #fff; font-family: var(--pm-font-display); font-weight: 700;
        display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.pm-steps strong { color: var(--pm-ink); }
.pm-book-steps__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pm-map { margin-top: 30px; border-radius: var(--pm-radius); overflow: hidden; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow-sm); }
.pm-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- 16. Highlights list (guide) ---------- */
.pm-hl-list { display: grid; gap: 34px; }
.pm-hl { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 38px; align-items: center; background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); overflow: hidden; scroll-margin-top: 130px; }
.pm-hl--flip { direction: rtl; }
.pm-hl--flip > * { direction: ltr; }
.pm-hl__img { width: 100%; height: 300px; object-fit: cover; }
.pm-hl__body { padding: 30px 34px; }
.pm-hl__body p { color: var(--pm-muted); margin: 0; }
@media (max-width: 860px) { .pm-hl { grid-template-columns: 1fr; } .pm-hl__img { height: 230px; } }

.pm-route { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 28px; position: relative; }
.pm-route--best { border-color: var(--pm-gold); box-shadow: 0 14px 34px rgba(201, 162, 39, 0.16); }
.pm-route--best::before { content: "★ Traveler favorite"; position: absolute; top: -13px; left: 24px; background: var(--pm-gold); color: var(--pm-red-dark); font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pm-route__time { display: inline-block; background: var(--pm-red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.pm-route p { color: var(--pm-muted); font-size: 15px; margin: 0; }
.pm-routes__link { margin-top: 30px; text-align: center; color: var(--pm-muted); }
.pm-routes__link a { font-weight: 700; }

.pm-tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pm-tip { background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-sm); padding: 22px; }
.pm-tip h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--pm-red-deep); }
.pm-tip p { margin: 0; color: var(--pm-muted); font-size: 14px; }
@media (max-width: 1024px) { .pm-tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pm-tips-grid { grid-template-columns: 1fr; } }

/* ---------- 17. Single post ---------- */
.pm-single__hero { margin: 38px 0 46px; border-radius: var(--pm-radius); overflow: hidden; box-shadow: var(--pm-shadow-sm); }
.pm-single__hero img { width: 100%; max-height: 560px; object-fit: cover; }
.pm-single__meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--pm-muted); margin-bottom: 14px; flex-wrap: wrap; }
.pm-single__wrap { padding-top: 2px; padding-bottom: 68px; }
.pm-single__content { max-width: 800px; margin: 0 auto; font-size: 17px; }
.pm-single__content p { margin-bottom: 1.35em; }
.pm-single__content h2 { margin-top: 1.6em; font-size: 1.65rem; }
.pm-single__content h3 { margin-top: 1.4em; }
.pm-single__content ul, .pm-single__content ol { padding-left: 1.4em; margin-bottom: 1.35em; }
.pm-single__content li { margin-bottom: 0.5em; }
.pm-single__content img { border-radius: var(--pm-radius-sm); }
.pm-single__content figure { margin: 2em 0; }
.pm-single__content figcaption { text-align: center; font-size: 13.5px; color: var(--pm-muted); margin-top: 10px; }
.pm-single__content a { text-decoration: underline; text-decoration-color: rgba(201, 162, 39, 0.7); text-underline-offset: 3px; }
.pm-single__content a:hover { color: var(--pm-red-deep); text-decoration-color: var(--pm-red); }
.pm-single__content blockquote { border-left: 4px solid var(--pm-gold); margin: 1.6em 0; padding: 6px 0 6px 24px; color: var(--pm-muted); font-style: italic; }
.pm-single__content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.pm-single__content table th { background: var(--pm-cream); text-align: left; }
.pm-single__content table th, .pm-single__content table td { border: 1px solid var(--pm-line); padding: 10px 14px; }

.pm-single__share { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--pm-line); font-size: 14.5px; color: var(--pm-muted); flex-wrap: wrap; }
.pm-single__share a { font-weight: 600; }
.pm-single__share a::before { content: "↗"; margin-right: 4px; color: var(--pm-gold); }

/* ---------- 18. Comments, search, pagination, misc ---------- */
.pm-comments { max-width: 800px; margin: 0 auto 40px; padding: 0 24px; }
.pm-comments__title { font-size: 1.4rem; }
.pm-comments__list { list-style: none; padding: 0; }
.pm-comments__list .comment-body { border: 1px solid var(--pm-line); border-radius: var(--pm-radius-sm); padding: 18px 20px; margin-bottom: 16px; background: var(--pm-paper); }
.pm-comments__list .children { list-style: none; padding-left: 34px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
        width: 100%; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-sm); padding: 12px 14px; font: inherit; background: var(--pm-paper);
}
.comment-form textarea:focus, .comment-form input:focus { outline: 2px solid var(--pm-gold); }
.pm-comments__closed { color: var(--pm-muted); }

.pm-searchform { display: flex; gap: 10px; max-width: 520px; margin: 20px auto; }
.pm-searchform__label { display: flex; align-items: center; color: var(--pm-muted); }
.pm-searchform__input { flex: 1; border: 1px solid var(--pm-line); border-radius: 999px; padding: 13px 20px; font: inherit; background: #fff; }
.pm-searchform__input:focus { outline: 2px solid var(--pm-gold); }

.pm-pagination { margin-top: 46px; text-align: center; }
.pm-pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pm-pagination .page-numbers {
        display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
        border-radius: 10px; border: 1px solid var(--pm-line); background: var(--pm-paper); color: var(--pm-ink); font-weight: 600;
}
.pm-pagination .page-numbers.current { background: var(--pm-red); border-color: var(--pm-red); color: #fff; }
.pm-pagination a.page-numbers:hover { border-color: var(--pm-red); color: var(--pm-red); }

.pm-empty { text-align: center; background: var(--pm-cream); border: 1px dashed var(--pm-gold); border-radius: var(--pm-radius); padding: 54px 30px; color: var(--pm-muted); max-width: 640px; margin: 0 auto; }
.pm-empty h2 { margin-bottom: 8px; }

.pm-404 { text-align: center; max-width: 560px; margin: 20px auto; }
.pm-404__char { font-family: var(--pm-font-cn); font-weight: 900; font-size: 130px; color: rgba(166, 33, 44, 0.14); margin: 0; line-height: 1; }
.pm-404__links { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.pm-review-single { max-width: 720px; }
.pm-review-back { margin-top: 26px; }

/* ---------- 19. Content defaults for WP core elements ---------- */
.entry-content a, .pm-page-content a { color: var(--pm-red); }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); }

/* ---------- 20. Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
        .pm-hero__copy > * { animation: pm-up 0.7s ease both; }
        .pm-hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
        .pm-hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
        .pm-hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
        .pm-hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
        .pm-tickets { animation: pm-up 0.8s 0.2s ease both; }
        @keyframes pm-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
}

/* ---------- 21. Small screens ---------- */
@media (max-width: 640px) {
        body.pm-theme { font-size: 16px; }
        .pm-section { padding: 56px 0; }
        .pm-hero { padding: 44px 0 56px; }
        .pm-hero__title { font-size: 2.05rem; }
        .pm-hero__actions .pm-btn { width: 100%; }
        .pm-tickets__price { font-size: 40px; }
        .pm-cta { padding: 74px 0; }
        .pm-cta__inner { flex-direction: column; align-items: flex-start; }
        .pm-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
        .pm-topbar__inner { justify-content: center; }
        .pm-top { right: 16px; bottom: 16px; }
}

/* ---------- 22. Footer menu fallback fix ---------- */
.pm-footer .pm-nav__list { display: grid; gap: 10px; }
.pm-footer .pm-nav__list a,
.pm-footer .pm-nav__list .pm-nav__link,
.pm-footer .pm-nav__link { color: #D9C9A8; font-weight: 500; font-size: 14.5px; padding: 0; border-radius: 0; white-space: normal; }
.pm-footer .pm-nav__list a:hover, .pm-footer .pm-nav__link:hover { color: #fff; }
.pm-footer .pm-nav__list a::after, .pm-footer .pm-nav__link::after { display: none; }
.pm-footer .pm-nav__item.current-menu-item > .pm-nav__link { color: var(--pm-gold-bright); }

/* ---------- 23. Footer stacked buttons spacing ---------- */
.pm-footer .pm-btn--block + .pm-btn--block { margin-top: 12px; }
