/* ============================================================
   BEST INVEST — Public Website Design System  (v2 · Obsidian & Gold)
   Aesthetic: near-black obsidian canvas, brushed gold hairlines,
   Marcellus roman display + Jost geometric body, wide-tracked caps.
   Mobile-first. Loaded AFTER app.css; overrides public globals.
   ============================================================ */

/* ------------------------------------------------------------ Tokens */
body.pub {
    --ink:        #070709;
    --ink-2:      #0b0b0f;
    --ink-3:      #121218;
    --paper:      #121217;
    --paper-2:    #17171e;
    --paper-3:    #1e1e26;
    --line:       rgba(232, 205, 134, .16);
    --line-soft:  rgba(255, 255, 255, .07);
    --txt:        #ece7db;
    --txt-soft:   #a29c90;
    --gold:       #c9a227;
    --gold-lite:  #e8cd86;
    --gold-deep:  #9a7b1e;
    --wa:         #25d366;
    --serif:      'Marcellus', 'Georgia', serif;
    --sans:       'Jost', 'Segoe UI', system-ui, sans-serif;
    --shadow-sm:  0 2px 12px rgba(0, 0, 0, .45);
    --shadow-md:  0 16px 40px rgba(0, 0, 0, .55);
    --shadow-lg:  0 30px 80px rgba(0, 0, 0, .65);
    --rad:        14px;
    --rad-sm:     9px;
    --gold-grad:  linear-gradient(115deg, #f0d79a 0%, var(--gold) 42%, #8f6f1c 100%);
    --hair:       rgba(232, 205, 134, .38);
    font-family: var(--sans);
    font-weight: 400;
    color: var(--txt);
    background: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.pub a { color: inherit; text-decoration: none; }
body.pub img { max-width: 100%; display: block; }
body.pub .ic { vertical-align: -2px; }
body.pub ::selection { background: rgba(201, 162, 39, .35); color: #fff; }
/* Faint film-grain over the whole public site for depth */
body.pub::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
body.pub > * { position: relative; z-index: 1; }

/* Container */
.pwrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 18px; }

/* Section scaffolding */
.psec { padding: 62px 0; }
.psec-tight { padding: 40px 0; }
.psec-alt { background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); }
.psec-dark {
    background:
        radial-gradient(760px 340px at 88% -10%, rgba(201, 162, 39, .16), transparent 62%),
        radial-gradient(560px 300px at 4% 110%, rgba(201, 162, 39, .10), transparent 60%),
        var(--ink-2);
    color: var(--txt);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.psec-head { text-align: left; max-width: 720px; margin: 0 auto 38px; }
.psec-head.left { text-align: left; margin-left: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600;
    letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.psec-dark .eyebrow { color: var(--gold-lite); }
.psec-title {
    font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: .01em;
    font-size: clamp(29px, 7.4vw, 48px); color: var(--txt);
}
.psec-title em { font-style: normal; color: var(--gold); }
.psec-dark .psec-title em { color: var(--gold-lite); }
.psec-sub { margin-top: 14px; color: var(--txt-soft); font-size: 15.5px; font-weight: 300; max-width: 60ch; }
.psec-dark .psec-sub { color: var(--txt-soft); }
/* Ornamental gold divider */
.pdivider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.pdivider::before, .pdivider::after { content: ''; height: 1px; width: min(120px, 26vw); background: linear-gradient(90deg, transparent, var(--hair)); }
.pdivider::after { background: linear-gradient(90deg, var(--hair), transparent); }

/* ------------------------------------------------------------ Buttons */
.pbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    padding: 14px 24px; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap; text-align: center; min-height: 46px;
}
.pbtn:active { transform: translateY(1px) scale(.99); }
.pbtn-lg { padding: 17px 32px; font-size: 13px; min-height: 54px; }
.pbtn-sm { padding: 9px 18px; font-size: 11.5px; min-height: 38px; }
.pbtn-gold { background: var(--gold-grad); color: #171004; box-shadow: 0 10px 26px rgba(201, 162, 39, .28); }
.pbtn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201, 162, 39, .42); }
.pbtn-dark { background: var(--ink-3); color: var(--gold-lite); border-color: var(--line); }
.pbtn-dark:hover { background: var(--paper-3); transform: translateY(-2px); }
.pbtn-outline { border-color: var(--hair); color: var(--gold-lite); background: transparent; }
.pbtn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 162, 39, .08); }
.psec-dark .pbtn-outline { border-color: var(--hair); color: var(--gold-lite); }
.psec-dark .pbtn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 162, 39, .1); }
.pbtn-ghost { border-color: rgba(255, 255, 255, .34); color: #fff; backdrop-filter: blur(4px); }
.pbtn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pbtn-wa { background: var(--wa); color: #062812; padding: 14px 18px; }
.pbtn-wa:hover { background: #1eb257; transform: translateY(-2px); }
.pbtn.loading { opacity: .7; pointer-events: none; }

/* ------------------------------------------------------------ Header */
.phead { position: sticky; top: 0; z-index: 900; background: rgba(7, 7, 9, .94); border-bottom: 1px solid var(--line-soft); }
.phead-top { display: none; }
.phead-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.ptop-item { display: inline-flex; align-items: center; gap: 6px; }
.phead-top a.ptop-item:hover { color: var(--gold-lite); }
.ptop-item .ic { color: var(--gold); }
.ptop-right { display: inline-flex; align-items: center; gap: 20px; }
.phead-top-inner > .ptop-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.phead-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; position: relative; z-index: 2; transition: padding .25s ease; }
.phead.scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.phead.scrolled .phead-main { padding-top: 8px; padding-bottom: 8px; }

.pbrand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.pbrand-logo { height: 44px; width: auto; max-width: 168px; object-fit: contain; display: block; flex: 0 0 auto; border-radius: 8px; }
.pbrand-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 600; font-size: 17px; letter-spacing: .22em; text-transform: uppercase; color: var(--txt); font-family: var(--sans); min-width: 0; }
.pbrand-text small { font-family: var(--sans); font-weight: 500; font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* Mobile-first: nav is an off-canvas drawer; becomes inline row at >=900px */
.pnav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 86vw); z-index: 880;
    background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); flex-direction: column; align-items: stretch;
    gap: 4px; padding: 86px 20px 30px; transform: translateX(102%); transition: transform .36s cubic-bezier(.22,.61,.36,1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .55); overflow-y: auto; border-left: 1px solid var(--line-soft);
}
body.pnav-open .pnav { transform: none; }
.pnav-link { color: #cfc9bd; font-size: 14px; padding: 14px 12px; border-radius: 8px; letter-spacing: .18em; }
.pnav-link:hover, .pnav-link.active { background: rgba(201, 162, 39, .12); color: var(--gold-lite); }
.pnav-link::after { display: none; }
.pnav-cta { margin: 16px 0 0; justify-content: center; }

.pburger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.pburger span { width: 24px; height: 2px; background: var(--gold-lite); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
body.pnav-open .pburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.pnav-open .pburger span:nth-child(2) { opacity: 0; }
body.pnav-open .pburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pnav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 850; backdrop-filter: blur(2px); }
body.pnav-open .pnav-backdrop { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------ Hero (home) */
.phero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.phero-bg { position: relative; width: 100%; height: clamp(320px, 52vh, 520px); overflow: hidden; }
.phero-bg img, .phero-bg picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.phero-bg img { object-fit: cover; object-position: 62% 80%; transform: scale(1.04); will-change: transform; }
.phero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--ink) 0%, rgba(7, 7, 9, .1) 26%, rgba(7, 7, 9, .12) 62%, var(--ink) 100%);
}
.phero-inner { position: relative; z-index: 2; padding: 40px 18px 56px; }
.phero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 600;
    letter-spacing: .34em; text-transform: uppercase; color: var(--gold-lite);
    border: 1px solid var(--hair); padding: 9px 16px; border-radius: 100px;
    background: rgba(201, 162, 39, .08); margin-bottom: 22px;
}
.phero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 9.6vw, 84px); line-height: 1.05; letter-spacing: .01em; }
.phero h1 span { color: var(--gold); font-style: normal; }
.phero p.lead { margin-top: 18px; font-size: clamp(15px, 3.9vw, 18px); font-weight: 300; color: #cfc9bd; max-width: 56ch; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero-trust { display: flex; flex-wrap: wrap; gap: 16px 26px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.phero-trust div { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #b6b0a4; }
.phero-trust .ic { color: var(--gold); }
.phero-side { display: none; }
.phero-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 3; color: var(--gold-lite); display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; }
.phero-cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold), transparent); animation: cueDrop 2.2s ease-in-out infinite; }
@keyframes cueDrop { 0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* Gold marquee ticker */
.pmarquee { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--ink-2); padding: 13px 0; }
.pmarquee-track { display: flex; gap: 0; width: max-content; animation: pmarq 34s linear infinite; }
.pmarquee span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-size: 11px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.pmarquee span i { font-style: normal; color: var(--gold-lite); opacity: .55; }
@keyframes pmarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Page banner (inner pages) */
.pbanner { position: relative; color: #fff; padding: 54px 0; overflow: hidden; background: var(--ink-2); }
.pbanner::before {
    content: ''; position: absolute; inset: 0; background-image: var(--img-hero-pc, none);
    background-size: cover; background-position: 74% 42%; opacity: .5;
}
.pbanner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--ink) 6%, rgba(7, 7, 9, .55) 52%, rgba(7, 7, 9, .35) 100%); }
.pbanner-inner { position: relative; z-index: 2; }
.pbanner h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 8vw, 54px); letter-spacing: .01em; }
.pbanner h1 span { font-style: normal; }
.pcrumbs { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9d9789; }
.pcrumbs a:hover { color: var(--gold-lite); }
.pcrumbs .sep { color: var(--gold); }

/* ------------------------------------------------------------ Search bar */
.psearch { position: relative; z-index: 5; margin-top: -34px; }
.psearch-card { background: rgba(18, 18, 23, .96); backdrop-filter: blur(12px); border-radius: var(--rad); box-shadow: var(--shadow-lg); padding: 18px; border: 1px solid var(--line); }
.psearch-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
.pfield { display: flex; flex-direction: column; gap: 7px; }
.pfield label { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--txt-soft); }
.pfield input, .pfield select, .pfield textarea {
    font-family: var(--sans); font-size: 14.5px; color: var(--txt); background: var(--paper-2);
    border: 1px solid var(--line-soft); border-radius: var(--rad-sm); padding: 12px 14px; width: 100%; min-height: 46px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.pfield select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pfield textarea { resize: vertical; min-height: 110px; }
.pfield input::placeholder, .pfield textarea::placeholder { color: #6d675d; }
.pfield input:focus, .pfield select:focus, .pfield textarea:focus { outline: none; border-color: var(--gold); background: var(--paper-3); box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }

/* Filter panel (properties page) */
.pfilter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 26px; }
.pfilter-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pfilter-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.pfilter-foot > div { min-width: 0; flex-wrap: wrap; }
.pchecks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pcheck { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--txt-soft); cursor: pointer; }
.pcheck input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.viewtoggle button { background: none; border: 0; padding: 9px 14px; cursor: pointer; color: var(--txt-soft); display: inline-flex; align-items: center; transition: background .2s, color .2s; }
.viewtoggle button.active { background: var(--gold); color: #171004; }
.results-meta { font-size: 13.5px; color: var(--txt-soft); letter-spacing: .06em; }
.results-meta strong { color: var(--gold-lite); font-size: 15px; }

/* ------------------------------------------------------------ Grids */
.pgrid { display: grid; gap: 20px; grid-template-columns: 1fr; }
/* Responsive two-column split (stacks on mobile, splits at >=900px) */
.psplit { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.psplit.start { align-items: start; }
/* Grid children must never force horizontal overflow (img/intrinsic min-width) */
.psplit > * { min-width: 0; max-width: 100%; }
body.pub .grid-list { grid-template-columns: 1fr; }
body.pub .grid-list .pcard { display: grid; grid-template-columns: 1fr; }
body.pub .grid-list .pcard-media { height: 200px; border-radius: var(--rad) var(--rad) 0 0; }

/* ------------------------------------------------------------ Property card */
.pcard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--hair); }
.pcard-media { position: relative; height: 195px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9); overflow: hidden; }
.pcard-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 9, 0) 42%, rgba(7, 7, 9, .62) 100%); }
.pcard-media .ic { position: relative; z-index: 1; width: 44px; height: 44px; opacity: .82; transition: transform .45s ease; color: var(--gold-lite); }
.pcard:hover .pcard-media .ic { transform: scale(1.14); }
.pcard-media.has-img img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.pcard:hover .pcard-media.has-img img { transform: scale(1.07); }
.pcard-price { position: absolute; bottom: 12px; right: 12px; z-index: 2; background: var(--gold-grad); color: #171004; font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 6px 13px; border-radius: 100px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.pcard-flag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; color: #fff; }
.pcard-flag.is-live { background: rgba(22, 163, 74, .9); }
.pcard-flag.is-sold { background: rgba(96, 100, 110, .95); }
.pcard-star { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; background: rgba(7, 7, 9, .82); color: var(--gold-lite); backdrop-filter: blur(4px); border: 1px solid var(--hair); }
.pcard-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-title { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.3; }
.pcard-title a:hover { color: var(--gold-lite); }
.pcard-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt-soft); }
.pcard-loc .ic { color: var(--gold); flex-shrink: 0; }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--txt-soft); background: var(--paper-2); border: 1px solid var(--line-soft); padding: 5px 10px; border-radius: 100px; }
.chip .ic { color: var(--gold); }
.chip-type { background: rgba(201, 162, 39, .12); border-color: var(--hair); color: var(--gold-lite); font-weight: 600; }
.pcard-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.pcard-actions .pbtn { flex: 1; }
.pcard-actions .pbtn-wa { flex: 0 0 auto; }

/* ------------------------------------------------------------ Status badges (Task #165) */
.pstatus-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 100px; color: #fff; line-height: 1; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.pcard-media .pstatus-badge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.badge-available { background: rgba(22, 163, 74, .94); }
.badge-reserved  { background: rgba(217, 119, 6, .95); }
.badge-sold      { background: rgba(220, 38, 38, .96); }
.badge-hold      { background: rgba(107, 114, 128, .94); }
.badge-blocked   { background: rgba(52, 58, 68, .96); }
.pstatus-lg { font-size: 12px; letter-spacing: .16em; padding: 9px 18px; }

/* SOLD veil draped over a card image */
.pcard-veil { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(7, 7, 9, .4), rgba(7, 7, 9, .68)); }
.pcard-veil span {
    font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: .2em;
    color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); transform: rotate(-6deg);
    border: 2px solid rgba(255, 255, 255, .72); border-radius: 8px; padding: 6px 16px 6px 22px;
    background: rgba(220, 38, 38, .28);
}
.is-sold-card .pcard-media.has-img img { filter: saturate(.5) brightness(.88); }

/* "No image" placeholder box */
.pcard-noimg { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Project name line + unit/plot chip on the card */
.pcard-proj { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-lite); }
.pcard-proj .ic { color: var(--gold); flex-shrink: 0; }
.pcard-proj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-unit { background: rgba(255, 255, 255, .05); border-color: var(--line); color: var(--txt); font-weight: 600; }

/* Detail hero status row */
.pdetail-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pdetail-projchip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; color: #c3ccdd; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-soft); padding: 8px 15px; border-radius: 100px; }
.pdetail-projchip .ic { color: var(--gold); }

/* Detail gallery flag + SOLD veil */
.pgallery-flag { position: absolute; top: 16px; left: 16px; z-index: 4; font-size: 12px; padding: 8px 16px; }
.pgallery-veil { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(7, 7, 9, .3), rgba(7, 7, 9, .58)); pointer-events: none; }
.pgallery-veil span {
    font-family: var(--serif); font-size: clamp(38px, 7vw, 64px); font-weight: 700; letter-spacing: .2em;
    color: #fff; text-shadow: 0 6px 26px rgba(0, 0, 0, .7); transform: rotate(-6deg);
    border: 3px solid rgba(255, 255, 255, .7); border-radius: 12px; padding: 10px 28px 10px 36px;
    background: rgba(220, 38, 38, .26);
}

/* Prominent SOLD banner on the detail page */
.psold-banner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 22px; padding: 20px 24px; border-radius: var(--rad); background: linear-gradient(115deg, rgba(127, 29, 29, .55), rgba(18, 18, 23, .92)); border: 1px solid rgba(220, 38, 38, .42); box-shadow: var(--shadow-sm); }
.psold-banner-word { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: .12em; color: #fff; line-height: 1; text-shadow: 0 4px 20px rgba(220, 38, 38, .6); padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .14); }
.psold-banner-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 220px; }
.psold-banner-text strong { font-family: var(--serif); font-size: 19px; font-weight: 400; color: #fff; }
.psold-banner-text span { font-size: 13.5px; color: #d6cfc2; font-weight: 300; }
.psold-banner .pbtn { flex-shrink: 0; }

/* ------------------------------------------------------------ Project card */
.pjcard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease; }
.pjcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--hair); }
.pjcard-media { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; color: var(--gold-lite); overflow: hidden; }
.pjcard-media.has-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.pjcard:hover .pjcard-media.has-img img { transform: scale(1.07); }
.pjcard-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pjcard-status { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; background: rgba(201, 162, 39, .14); color: var(--gold-lite); border: 1px solid var(--hair); }
.pjcard-title { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.16; }
.pjcard-title a:hover { color: var(--gold-lite); }
.pjcard-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt-soft); }
.pjcard-loc .ic { color: var(--gold); }
.pjcard-desc { font-size: 13.5px; color: var(--txt-soft); font-weight: 300; }
.pjcard-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--txt-soft); padding: 8px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pjcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pjcard-meta .ic { color: var(--gold); }
.pjcard .pbtn-outline { margin-top: 4px; align-self: flex-start; }

/* ------------------------------------------------------------ Feature / why cards */
.pfeat { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; position: relative; overflow: hidden; }
.pfeat::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.pfeat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--hair); }
.pfeat:hover::before { transform: scaleX(1); }
.pfeat-ic { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(201, 162, 39, .1); color: var(--gold); margin-bottom: 18px; border: 1px solid var(--hair); }
.pfeat h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 8px; color: var(--txt); }
.pfeat p { font-size: 14px; color: var(--txt-soft); font-weight: 300; }

/* ------------------------------------------------------------ Stats */
.pstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pstat { text-align: center; padding: 26px 12px; border-radius: var(--rad); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.pstat::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; transform: translateX(-50%); background: var(--gold-grad); }
.pstat-num { font-family: var(--serif); font-size: clamp(34px, 8vw, 56px); font-weight: 400; color: var(--gold); line-height: 1; }
.pstat-label { margin-top: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--txt-soft); }

/* ------------------------------------------------------------ Testimonials */
.ptest { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad); padding: 28px; box-shadow: var(--shadow-sm); position: relative; }
.ptest .qmark { position: absolute; top: 20px; right: 24px; color: rgba(201, 162, 39, .22); }
.ptest p { font-family: var(--serif); font-size: 17.5px; color: #d8d2c6; line-height: 1.55; font-weight: 400; }
.ptest-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.ptest-av { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); color: #171004; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.ptest-who strong { display: block; font-size: 14.5px; letter-spacing: .04em; }
.ptest-who span { font-size: 12px; color: var(--txt-soft); letter-spacing: .08em; text-transform: uppercase; }
.pstars { display: flex; gap: 2px; color: var(--gold); margin-top: 14px; }

/* ------------------------------------------------------------ CTA banner */
.pcta { position: relative; overflow: hidden; background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.pcta::before { content: ''; position: absolute; inset: 0; background-image: var(--img-hero-pc, none); background-size: cover; background-position: 70% 40%; opacity: .34; }
.pcta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 320px at 12% 120%, rgba(201, 162, 39, .22), transparent 62%), linear-gradient(90deg, rgba(7, 7, 9, .94), rgba(7, 7, 9, .6)); }
.pcta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 50px 18px; flex-wrap: wrap; }
.pcta-text h2 { font-family: var(--serif); font-size: clamp(26px, 6.4vw, 42px); font-weight: 400; color: #fff; }
.pcta-text p { margin-top: 8px; color: #bdb7ab; font-size: 15px; font-weight: 300; max-width: 520px; }
.pcta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ Detail page */
.pdetail-hero { position: relative; color: #fff; padding: 36px 0 84px; background: var(--ink-2); overflow: hidden; }
.pdetail-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--img-hero-pc, none); background-size: cover; background-position: 72% 40%; opacity: .38; }
.pdetail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 9, .8), rgba(7, 7, 9, .94)); }
.pdetail-hero .pwrap { position: relative; z-index: 2; }
.pdetail-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; margin-top: -50px; position: relative; z-index: 3; }
.pgallery { border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); }
.pgallery-main { height: 260px; display: flex; align-items: center; justify-content: center; color: var(--gold-lite); position: relative; }
.pgallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pgallery-main .ic { width: 72px; height: 72px; opacity: .7; }
.pgallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pthumb { height: 68px; border-radius: var(--rad-sm); display: flex; align-items: center; justify-content: center; color: var(--gold-lite); cursor: pointer; overflow: hidden; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb:hover { border-color: var(--gold); transform: translateY(-2px); }

.psummary { background: var(--paper); border-radius: var(--rad); box-shadow: var(--shadow-md); padding: 26px; border: 1px solid var(--line); }
.psummary-price { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--gold); line-height: 1; }
.psummary-mrp { font-size: 15px; color: var(--txt-soft); text-decoration: line-through; margin-left: 8px; }
.psummary-disc { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700; color: #062812; background: var(--wa); padding: 4px 10px; border-radius: 100px; }
.psummary-title { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 14px 0 6px; }
.psummary-loc { display: flex; align-items: center; gap: 6px; color: var(--txt-soft); font-size: 14px; }
.psummary-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.psummary-actions .pbtn-wide { grid-column: 1 / -1; }

.pinfo-block { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.pinfo-block h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--txt); }
.pinfo-block h3 .ic { color: var(--gold); }
.pkeygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pkey { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--rad-sm); padding: 15px; }
.pkey .k-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-soft); display: flex; align-items: center; gap: 6px; }
.pkey .k-lbl .ic { color: var(--gold); }
.pkey .k-val { font-size: 17px; font-weight: 600; margin-top: 6px; color: var(--gold-lite); }
.pbadges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pbadge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; padding: 8px 15px; border-radius: 100px; background: rgba(201, 162, 39, .12); color: var(--gold-lite); border: 1px solid var(--hair); }
.pbadge .ic { color: var(--gold); }
.pdesc { font-size: 15px; color: #c6c0b4; line-height: 1.8; white-space: pre-line; font-weight: 300; }
.pmap { border-radius: var(--rad); overflow: hidden; border: 1px solid var(--line); height: 320px; filter: grayscale(.35) contrast(1.05); }
.pmap iframe { width: 100%; height: 100%; border: 0; }

/* Blocks list (project detail) */
.pblocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pblock { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--rad-sm); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pblock strong { display: block; font-size: 15px; letter-spacing: .04em; }
.pblock span { font-size: 12px; color: var(--txt-soft); }
.pblock-count { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--gold); }
.pcountbar { display: flex; flex-wrap: wrap; gap: 12px; }
.pcount { flex: 1; min-width: 110px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad-sm); padding: 16px; text-align: center; }
.pcount b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold-lite); font-weight: 400; }
.pcount span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--txt-soft); font-weight: 600; }

/* ------------------------------------------------------------ Forms (cards) */
.pform-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow-md); padding: 26px; }
.pform-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pform-grid .full { grid-column: 1 / -1; }
.pform-note { font-size: 12.5px; color: var(--txt-soft); margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.pform-note .ic { color: var(--gold); }

/* Contact info list */
.pcontact-list { display: flex; flex-direction: column; gap: 4px; }
.pcontact-item { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.pcontact-item:last-child { border-bottom: 0; }
.pcontact-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(201, 162, 39, .1); color: var(--gold); border: 1px solid var(--hair); }
.pcontact-item h4 { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; color: var(--gold-lite); }
.pcontact-item p, .pcontact-item a { font-size: 14px; color: var(--txt-soft); font-weight: 300; }
.pcontact-item a:hover { color: var(--gold-lite); }

/* ------------------------------------------------------------ Blog */
.pblog-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.pblog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--hair); }
.pblog-media { height: 180px; display: flex; align-items: center; justify-content: center; color: var(--gold-lite); position: relative; overflow: hidden; }
.pblog-media img { width: 100%; height: 100%; object-fit: cover; }
.pblog-date { position: absolute; bottom: 12px; left: 12px; background: rgba(7, 7, 9, .85); color: var(--gold-lite); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px); border: 1px solid var(--hair); }
.pblog-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pblog-body h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.24; }
.pblog-body h3 a:hover { color: var(--gold-lite); }
.pblog-body p { font-size: 14px; color: var(--txt-soft); font-weight: 300; }
.pblog-more { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.particle { max-width: 820px; margin: 0 auto; }
.particle h1 { font-family: var(--serif); font-size: clamp(28px, 7vw, 48px); font-weight: 400; line-height: 1.16; }
.particle-meta { display: flex; align-items: center; gap: 16px; color: var(--txt-soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 26px; flex-wrap: wrap; }
.particle-body { font-size: 16.5px; line-height: 1.85; color: #c6c0b4; font-weight: 300; }
.particle-body p { margin-bottom: 18px; }
.particle-body h2 { font-family: var(--serif); font-size: 28px; margin: 30px 0 14px; color: var(--txt); }
.particle-body ul { margin: 0 0 18px 22px; }

/* Static legal content */
.plegal { max-width: 860px; margin: 0 auto; }
.plegal h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 32px 0 12px; color: var(--gold-lite); }
.plegal h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: var(--txt); }
.plegal p, .plegal li { font-size: 15px; color: #bdb7ab; line-height: 1.8; font-weight: 300; }
.plegal ul { margin: 0 0 16px 22px; }

/* ------------------------------------------------------------ Empty state */
.pempty { text-align: center; padding: 60px 22px; color: var(--txt-soft); grid-column: 1 / -1; }
.pempty .ic { width: 52px; height: 52px; color: var(--gold); opacity: .6; margin-bottom: 16px; }
.pempty h3 { font-family: var(--serif); font-size: 24px; color: var(--txt); margin-bottom: 8px; font-weight: 400; }

/* ------------------------------------------------------------ Pagination */
.ppager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.ppager a, .ppager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 100px; border: 1px solid var(--line-soft); font-size: 13.5px; font-weight: 600; color: var(--txt-soft); transition: all .2s ease; }
.ppager a:hover { border-color: var(--gold); color: var(--gold); }
.ppager .active { background: var(--gold-grad); color: #171004; border-color: transparent; }

/* ------------------------------------------------------------ Footer */
.pfoot { background: var(--ink); color: #a49e92; border-top: 1px solid var(--line-soft); }
.pfoot-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding: 54px 18px 34px; }
.pfoot-col h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-lite); margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.pfoot-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 1px; background: var(--gold); }
.pfoot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pfoot-col ul a { font-size: 14px; color: #a49e92; transition: color .2s, padding-left .2s; display: inline-flex; align-items: center; gap: 8px; font-weight: 300; }
.pfoot-col ul a:hover { color: var(--gold-lite); padding-left: 5px; }
.pfoot-about p { font-size: 14px; margin: 18px 0; max-width: 340px; font-weight: 300; }
.pbrand-foot .pbrand-text { color: var(--txt); }
.pbrand-foot .pbrand-logo { background: #fff; padding: 5px 10px; border-radius: 9px; height: 44px; }
.pfoot-social { display: flex; gap: 12px; }
.pfoot-social a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); color: #cfc9bd; transition: all .25s ease; }
.pfoot-social a:hover { background: var(--gold); color: #171004; transform: translateY(-3px); border-color: var(--gold); }
.pfoot-social-soon { font-size: 13px; color: #6d675d; font-style: italic; }
.pfoot-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; font-weight: 300; }
.pfoot-contact .ic { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.pfoot-bottom { border-top: 1px solid var(--line-soft); }
.pfoot-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; font-size: 12px; color: #6d675d; flex-wrap: wrap; letter-spacing: .06em; }

/* ------------------------------------------------------------ Floating actions */
.pfab { position: fixed; right: 16px; bottom: 18px; z-index: 950; display: flex; flex-direction: column; gap: 12px; }
.pfab-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.pfab-btn:hover { transform: translateY(-4px) scale(1.06); }
.pfab-wa { background: var(--wa); color: #062812; }
.pfab-wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pfabPulse 2.2s infinite; }
.pfab-call { background: var(--gold-grad); color: #171004; }
@keyframes pfabPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

/* ------------------------------------------------------------ Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-rv="left"] { transform: translateX(-30px); }
.reveal[data-rv="right"] { transform: translateX(30px); }
.reveal[data-rv="zoom"] { transform: scale(.94); }
.reveal.in[data-rv] { transform: none; }
/* On narrow screens the horizontal slide variants would push grid children
   past the viewport (scrollWidth overflow); fall back to a vertical slide. */
@media (max-width: 899px) {
    .reveal[data-rv="left"], .reveal[data-rv="right"] { transform: translateY(26px); }
}

@media (prefers-reduced-motion: reduce) {
    body.pub *, body.pub *::before, body.pub *::after { animation: none !important; transition: none !important; }
    .reveal, .reveal[data-rv] { opacity: 1 !important; transform: none !important; }
    .pmarquee-track { transform: none !important; }
    .phero-bg img { transform: none !important; }
}

/* Gradient "photo" placeholders — darkened jewel tones to suit obsidian theme */
body.pub .theme-house1 { background: linear-gradient(140deg, #16283f, #2c4a6e); }
body.pub .theme-house2 { background: linear-gradient(140deg, #1d2b1c, #47684a); }
body.pub .theme-house3 { background: linear-gradient(140deg, #2a1c38, #5a4479); }
body.pub .theme-apt1 { background: linear-gradient(140deg, #0d303a, #2f6b7c); }
body.pub .theme-apt2 { background: linear-gradient(140deg, #3a260c, #7c5c2f); }
body.pub .theme-plot1 { background: linear-gradient(140deg, #33352c, #6b6b58); }
body.pub .theme-plot2 { background: linear-gradient(140deg, #22352a, #4f6b52); }
body.pub .theme-shop1 { background: linear-gradient(140deg, #40191b, #7c4446); }
body.pub .theme-shop2 { background: linear-gradient(140deg, #2c1a4a, #5c4499); }
body.pub .theme-office1 { background: linear-gradient(140deg, #101a2e, #35507a); }
body.pub .theme-office2 { background: linear-gradient(140deg, #142b29, #3a6b66); }

/* Ensure toasts appear above the public header */
#toasts { z-index: 9999 !important; top: 80px !important; }

/* ============================================================ Responsive (mobile-first, min-width) */
@media (min-width: 480px) {
    .pwrap { padding: 0 22px; }
    .pkeygrid { grid-template-columns: repeat(2, 1fr); }
    .pform-grid { grid-template-columns: repeat(2, 1fr); }
    .psummary-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
    .pgrid { grid-template-columns: repeat(2, 1fr); }
    .pstats { grid-template-columns: repeat(4, 1fr); }
    .pfilter-grid { grid-template-columns: repeat(2, 1fr); }
    .psearch-grid { grid-template-columns: repeat(2, 1fr); }
    .psearch-grid .pbtn { grid-column: 1 / -1; }
    .pfoot-grid { grid-template-columns: 1fr 1fr; }
    .pgallery-main { height: 340px; }
}
@media (min-width: 900px) {
    .phead-top { display: block; background: var(--ink); color: #8f897d; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
    .pburger { display: none; }
    .pnav {
        position: static; height: auto; width: auto; transform: none; background: none; border: 0; box-shadow: none;
        overflow: visible; flex-direction: row; align-items: center; gap: 4px; padding: 0;
    }
    .pnav-link { position: relative; padding: 10px 14px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-soft); border-radius: 6px; transition: color .2s ease; background: none; }
    .pnav-link::after { content: ''; display: block; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
    .pnav-link:hover { color: var(--txt); background: none; }
    .pnav-link:hover::after, .pnav-link.active::after { transform: scaleX(1); }
    .pnav-link.active { color: var(--gold-lite); background: none; }
    .pnav-cta { margin: 0 0 0 10px; justify-content: center; }
    .pbrand-logo { height: 50px; max-width: 200px; }
    .pbrand-text { font-size: 20px; }
    .psec { padding: 88px 0; }
    .psec-tight { padding: 56px 0; }
    .psec-head { text-align: center; margin-bottom: 48px; }
    .psec-head.left { text-align: left; margin-left: 0; }
    .pgrid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
    .psplit { grid-template-columns: 1.05fr .95fr; gap: 48px; }
    .psplit.start { gap: 44px; }
    .pgrid-2 { grid-template-columns: repeat(2, 1fr); }
    .pgrid-4 { grid-template-columns: repeat(4, 1fr); }
    .pfilter-grid { grid-template-columns: repeat(4, 1fr); }
    .psearch-grid { grid-template-columns: repeat(4, 1fr) auto; }
    .psearch-grid .pbtn { grid-column: auto; }
    .psearch { margin-top: -56px; }
    .psearch-card { padding: 22px; }
    .pdetail-grid { grid-template-columns: 1.55fr 1fr; gap: 34px; }
    .pgallery-main { height: 400px; }
    .pkeygrid { grid-template-columns: repeat(4, 1fr); }
    .pform-card { padding: 34px; }
    .pfoot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 66px 22px 40px; }
    .pfoot-bottom-inner { padding: 20px 22px; }
    .pcta-inner { padding: 60px 22px; }
    .pbanner { padding: 72px 0; }
    .pdetail-hero { padding: 44px 0 96px; }
    .pfab { right: 22px; bottom: 24px; }
    /* Hero becomes split: copy left, cover panel right */
    .phero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: stretch; min-height: 640px; }
    .phero-bg { height: auto; min-height: 640px; order: 2; }
    .phero-bg img { object-position: 78% 45%; }
    .phero-bg::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 7, 9, .18) 26%, rgba(7, 7, 9, 0) 60%), linear-gradient(0deg, rgba(7, 7, 9, .5), transparent 40%); }
    .phero-inner { order: 1; display: flex; flex-direction: column; justify-content: center; padding: 70px 22px 90px 22px; max-width: 640px; margin-left: auto; }
    .phero-side {
        display: block; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); z-index: 3;
        writing-mode: vertical-rl; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: rgba(232, 205, 134, .7);
    }
    .phero-cue { left: 26%; }
    body.pub .grid-list .pcard { grid-template-columns: 320px 1fr; }
    body.pub .grid-list .pcard-media { height: 100%; min-height: 220px; border-radius: var(--rad) 0 0 var(--rad); }
}
@media (min-width: 1200px) {
    .pwrap { padding: 0 32px; }
    .phero-inner { padding-left: 32px; }
    .pgrid-4 { gap: 22px; }
}
@media (min-width: 1440px) {
    .pwrap { max-width: 1360px; }
    .phero { min-height: 720px; }
    .phero-bg { min-height: 720px; }
}
