:root {
    --accent: #0f766e;
    --accent-hover: #095b55;
    --accent-soft: #f0f9f6;
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #172b29;
    --muted: #5f706d;
    --border: #dce5e2;
    --danger: #b91c1c;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Devanagari", "Mangal", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }

.container { width: 100%; max-width: 1344px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; }
.muted { color: var(--muted); font-size: .875rem; }
.error { color: var(--danger); }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--accent); color: #fff; border: 1px solid var(--accent);
    padding: 10px 18px; border-radius: 8px; font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-small { padding: 6px 12px; font-size: .8rem; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #f1f5f9; color: var(--text); border-color: #cbd5e1; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.site-branding { flex: 0 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 750; font-size: 1.35rem; letter-spacing: -.5px; }
.logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 1rem; letter-spacing: 0;
}
.site-navigation { margin-left: auto; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .9rem; font-weight: 500; }
.nav-menu a:hover { background: #f1f5f9; text-decoration: none; }
.site-actions { margin-left: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; }

/* Main */
.site-main { padding: 24px 0 56px; min-height: 50vh; }
.page-title { margin-bottom: 20px; }

/* Hero */
.hero { padding: 16px 0 24px; }
.hero h1 { margin-bottom: 6px; }
.hero-sub { color: var(--muted); margin-bottom: 16px; }

/* Filters */
.filters {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px; align-items: end;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; margin-bottom: 24px;
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.filters select, .filters input {
    width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px;
    font-size: .9rem; font-family: inherit; background: #fff; color: var(--text);
}
.filters .btn { height: 40px; }

/* Feed */
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feed-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; display: flex; flex-direction: column; box-shadow: none; min-width: 0;
}
.feed-card--requirement { border-left: 4px solid #f59e0b; }
.feed-card--sold { opacity: .85; }
.feed-card-dealer { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-card-dealer img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.feed-card-dealer-info { display: flex; flex-direction: column; line-height: 1.2; }
.dealer-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.feed-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.feed-badge {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 700;
    padding: 3px 7px; border-radius: 4px; background: #e2e8f0; color: #475569;
}
.feed-badge.deal-for-sale { background: #dcfce7; color: #166534; }
.feed-badge.deal-for-rent { background: #dbeafe; color: #1e40af; }
.feed-badge.deal-requirement { background: #fef3c7; color: #92400e; }
.feed-badge.sold { background: #fee2e2; color: #991b1b; }
.feed-card-title { font-size: 1.12rem; margin: 0 0 10px; letter-spacing: -.25px; }
.feed-card-title a { color: var(--text); }
.feed-card-text { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card-cta { font-size: .8rem; font-weight: 600; color: #92400e; }
.feed-card-images { order: -1; position: relative; margin: -8px -8px 16px; }
.feed-card-images img { width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; object-fit: cover; }
.more-count { position: absolute; right: 10px; bottom: 10px; font-size: .75rem; padding: 3px 8px; background: white; border-radius: 4px; color: var(--text); }
.feed-card-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
    font-size: .75rem; padding: 3px 8px; border-radius: 6px;
    background: #f1f5f9; color: #334155; border: 1px solid var(--border);
}
.chip-price { background: var(--accent-soft); color: #065f46; border-color: #a7f3d0; font-weight: 700; }
.chip-muted { color: var(--muted); }
.feed-card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.feed-actions { text-align: center; margin: 28px 0; }
.feed-empty {
    background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 32px 16px; text-align: center; color: var(--muted);
}

/* Property page */
.property-page { max-width: 940px; margin: 0 auto; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.sold-banner { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.property-gallery { margin-bottom: 20px; }
#pp-main-image { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); background: #e2e8f0; }
.gallery-placeholder {
    height: 280px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); background: #e2e8f0; color: var(--muted);
}
.property-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pp-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; }
.pp-thumb.active { border-color: var(--accent); }
.pp-thumb img { display: block; width: 80px; max-width: none; height: 64px; object-fit: cover; }
.property-video { width: 100%; border-radius: var(--radius); margin-top: 14px; background: #000; }
.property-info h1 { margin-bottom: 12px; }
.property-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.property-description { font-size: 1rem; color: #334155; margin-bottom: 24px; }
.property-attachments { margin-bottom: 24px; }
.property-attachments ul { list-style: none; padding: 0; }
.property-attachments li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.file-size { color: var(--muted); font-size: .8rem; }
.property-dealer, .dealer-profile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.dealer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dealer-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dealer-head h3 { margin: 0; }
.dealer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pp-phone-slot { font-weight: 700; }
.pp-phone-number { font-weight: 700; font-size: 1.05rem; }
.pp-contact-error { color: var(--danger); font-size: .8rem; }
.property-more { margin-top: 32px; }
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mini-card {
    display: flex; gap: 10px; align-items: center; padding: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
}
.mini-card:hover { text-decoration: none; border-color: #cbd5e1; }
.mini-card img { width: 72px; height: 60px; border-radius: 6px; object-fit: cover; }
.mini-card span { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.mini-card small { color: var(--muted); }

/* Sticky mobile contact bar */
.sticky-contact-bar { display: none; }

/* Forms */
.form-section, .content-sidebar, .post-card, .widget {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #334155; }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"],
.form-group input[type="url"], .form-group input[type="number"], .form-group input[type="file"],
.form-group textarea, .form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: .95rem; font-family: inherit; background: #fff; color: var(--text);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-message { font-size: .85rem; margin: 8px 0; min-height: 1px; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--accent); }
.toggle-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.toggle-group button {
    padding: 14px 10px; border: 2px solid var(--border); background: var(--surface);
    border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--text);
}
.toggle-group button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: .85rem; }
.checkbox-group input { margin-top: 3px; }
.upload-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.upload-item {
    position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border); background: #f8fafc; display: flex; align-items: center; justify-content: center;
}
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .file-name { font-size: .65rem; padding: 4px; text-align: center; word-break: break-all; }
.upload-item .remove {
    position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: none; border-radius: 50%;
    background: rgba(15, 23, 42, .75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
.upload-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #e2e8f0; }
.upload-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }

/* Dashboard */
.dashboard { margin: 0 auto; }
.dashboard-tabs {
    display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px;
    border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.dashboard-tabs a { padding: 8px 14px; font-size: .9rem; color: var(--muted); border-radius: 8px; white-space: nowrap; }
.dashboard-tabs a.active { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.dashboard-tabs a:hover { text-decoration: none; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.notice { background: var(--accent-soft); border: 1px solid #a7f3d0; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.listing-card {
    display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.listing-card img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.listing-info { flex: 1; min-width: 0; }
.listing-title { font-weight: 700; margin-bottom: 4px; }
.listing-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; }
.status-badge.status-pp_pending_ai { background: #fef3c7; color: #92400e; }
.status-badge.status-pending { background: #dbeafe; color: #1e40af; }
.status-badge.status-publish { background: #dcfce7; color: #166534; }
.status-badge.status-draft { background: #e2e8f0; color: #475569; }
.stat-card {
    display: inline-block; min-width: 140px; margin: 0 12px 12px 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.stat-value { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: .78rem; color: var(--muted); }

/* Dealer profile */
.dealer-cover { background: linear-gradient(135deg, #ECFDF5, #f0fdfa); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.dealer-cover-inner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dealer-logo { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: #fff; }
.dealer-title { flex: 1; min-width: 220px; }
.dealer-title h1 { margin-bottom: 4px; }
.dealer-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.dealer-stats strong { color: var(--text); }
.dealer-address { color: var(--muted); font-size: .9rem; }
.dealer-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 20px; font-size: .85rem; }
.dealer-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.dealer-tabs a { padding: 6px 12px; border-radius: 8px; font-size: .85rem; color: var(--muted); }
.dealer-tabs a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dealer-tabs a:hover { text-decoration: none; }
.archive-head { margin-bottom: 16px; }
.archive-head .muted { margin-top: 2px; }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { padding: 0; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 190px; object-fit: cover; }
.post-card-body { padding: 16px; }
.post-card-body h2, .post-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget h2 { font-size: 1rem; margin-bottom: 10px; }
.widget-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.widget-list li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.widget-list li:last-child { border-bottom: none; }
.related-posts { margin-top: 32px; }
.pagination { margin-top: 28px; display: flex; justify-content: center; gap: 8px; }
.entry-content img { border-radius: 10px; }
.page-content { max-width: 820px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: grid; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.site-info { font-size: .78rem; color: var(--muted); margin: 0; }

/* Chatbot */
#pp-chatbot { position: fixed; right: 16px; bottom: 16px; z-index: 9999; }
#pp-chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--accent); color: #fff; font-size: 22px; box-shadow: 0 6px 20px rgba(15, 123, 95, .35);
}
#pp-chat-panel {
    position: absolute; right: 0; bottom: 68px; width: min(360px, calc(100vw - 32px)); height: 520px;
    display: none; flex-direction: column; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    overflow: hidden;
}
#pp-chat-panel.is-open { display: flex; }
.pp-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--accent); color: #fff; padding: 12px 14px; font-weight: 700; font-size: .9rem;
}
.pp-chat-header button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
#pp-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: .85rem; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent-soft); color: #065f46; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); }
.card-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.property-card {
    display: flex; flex-direction: column; gap: 3px; flex: 0 0 150px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; color: var(--text);
}
.property-card:hover { text-decoration: none; border-color: var(--accent); }
.property-card img { width: 100%; height: 88px; object-fit: cover; border-radius: 6px; }
.pc-title { font-size: .78rem; font-weight: 700; }
.pc-price { font-size: .78rem; color: var(--accent); font-weight: 700; }
.pc-size { font-size: .72rem; color: var(--muted); }
.chat-link { font-size: .8rem; }
.pp-chat-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--border); }
.pp-chat-suggestions button {
    white-space: nowrap; font-size: .72rem; padding: 5px 9px; border-radius: 20px;
    border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer;
}
.pp-chat-suggestions button:hover { border-color: var(--accent); color: var(--accent); }
.pp-chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.pp-chat-input input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; font-family: inherit; }
.pp-chat-input button { padding: 0 14px; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }

/* Responsive */
@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }
    .site-navigation { flex-basis: 100%; order: 4; display: none; }
    .site-navigation.is-open { display: block; }
    .nav-menu { flex-direction: column; }
    .site-actions { margin-left: auto; }
    .content-sidebar { grid-template-columns: 1fr; }
    .property-gallery #pp-main-image { max-height: 340px; }
}
@media (max-width: 640px) {
    .feed-grid { grid-template-columns: 1fr; }
    .toggle-group { grid-template-columns: 1fr; }
    .listing-card { flex-wrap: wrap; }
    .property-page { padding-bottom: 72px; }
    .sticky-contact-bar {
        display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: var(--surface); border-top: 1px solid var(--border); padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    .sticky-contact-bar .btn { flex: 1; }
    #pp-chatbot { bottom: 76px; }
}

/* ============================================================
   Dashboard + profile redesign
   ============================================================ */
.pp-page-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}
.pp-dash { width: 100%; }
.pp-dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 2px 18px;
}
.pp-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.pp-dash-title h1 { margin: 0 0 4px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.pp-dash-title p { margin: 0; }
.pp-dash-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pp-notice {
    background: var(--accent-soft);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 18px;
    font-size: .9rem;
    line-height: 1.5;
}
.pp-notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.pp-notice-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.pp-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
    margin: 0 0 18px;
    background: #eef2f7;
    border: 1px solid var(--border);
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
}
.pp-tabs a {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.pp-tabs a:hover { text-decoration: none; color: var(--text); background: #fff; }
.pp-tabs a.active { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(15,23,42,.08); }

.pp-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.pp-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.pp-panel-head h2 { margin: 0 0 2px; font-size: 1.15rem; }
.pp-panel-head p { margin: 0; font-size: .85rem; }

.pp-skeleton {
    padding: 26px 16px; text-align: center; color: var(--muted); font-size: .9rem;
    border: 1px dashed var(--border); border-radius: 12px; background: #fbfcfe;
}
.pp-empty {
    padding: 36px 20px; text-align: center; color: var(--muted);
    border: 1px dashed var(--border); border-radius: 12px; background: #fbfcfe;
}
.pp-empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.pp-empty p { max-width: 420px; margin: 0 auto 14px; }
.pp-empty--error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

/* Totals */
.pp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pp-stat {
    border: 1px solid var(--border); border-radius: 12px; padding: 16px;
    background: #fbfcfe; display: flex; flex-direction: column; gap: 2px;
}
.pp-stat-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.pp-stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.pp-stat-sub { font-size: .78rem; color: var(--muted); }

/* Profile form */
.pp-form { display: flex; flex-direction: column; gap: 18px; }
.pp-fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 16px 4px;
    margin: 0;
    background: #fff;
}
.pp-fieldset legend {
    padding: 0 8px;
    margin-left: -4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}
.pp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pp-field { margin: 0 0 14px; min-width: 0; }
.pp-field label {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 600; color: #334155; margin-bottom: 6px;
}
.pp-field input[type="text"], .pp-field input[type="tel"], .pp-field input[type="email"],
.pp-field input[type="url"], .pp-field textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
    font-family: inherit; font-size: .92rem; color: var(--text); background: #fff;
}
.pp-field textarea { resize: vertical; }
.pp-field input:focus, .pp-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pp-help { font-size: .75rem; color: var(--muted); margin: 5px 0 0; line-height: 1.45; }
.pp-input-prefix {
    display: flex; align-items: stretch; border: 1px solid var(--border);
    border-radius: 9px; overflow: hidden; background: #f8fafc;
}
.pp-input-prefix span {
    display: flex; align-items: center; padding: 0 10px; font-size: .8rem;
    color: var(--muted); white-space: nowrap; background: #f1f5f9;
}
.pp-input-prefix input { border: none !important; border-radius: 0 !important; background: #fff; flex: 1; min-width: 0; }
.pp-input-prefix input:focus { outline: none !important; }

.pp-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    padding: 2px 7px; border-radius: 20px;
}
.pp-badge.is-verified { background: #dcfce7; color: #166534; }
.pp-badge.is-unverified { background: #fef3c7; color: #92400e; }

.pp-logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pp-logo-preview {
    width: 84px; height: 84px; border-radius: 14px; border: 1px dashed var(--border);
    background: #f8fafc; display: flex; align-items: center; justify-content: center;
    overflow: hidden; color: var(--muted); font-size: .68rem; text-align: center; flex: 0 0 auto;
}
.pp-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.pp-logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pp-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.pp-form-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding-top: 4px;
}
.pp-form-footer .form-message { margin: 0; }
.pp-post-form .toggle-group { margin-bottom: 18px; }

@media (max-width: 720px) {
    .pp-page-shell { padding: 18px 14px 36px; }
    .pp-panel { padding: 16px; }
    .pp-grid-2 { grid-template-columns: 1fr; }
    .pp-dash-head { align-items: flex-start; }
    .pp-dash-head-actions { width: 100%; }
    .pp-dash-head-actions .btn { flex: 1; }
}

/* Search-first homepage and dealer workspace. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link:focus { width: auto; height: auto; clip: auto; }
.home .site-main { padding-top: 0; }
.pp-home-hero { padding: 68px 0 60px; background: #eaf6f2; text-align: center; margin-bottom: 36px; }
.pp-home-hero h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.045em; font-weight: 750; margin: 0 0 14px; }
.pp-home-hero .hero-sub { font-size: 1.15rem; color: #435953; margin-bottom: 28px; }
.pp-search { position: relative; max-width: 912px; margin: 0 auto; text-align: left; }
.pp-search-control { display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; background: #fff; border: 1px solid #cbdad4; border-radius: 10px; }
.pp-search-control:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.pp-search-control svg { flex-shrink: 0; }
.pp-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 52px; font-size: 1.1rem; color: var(--text); padding: 0; }
.pp-search input::placeholder { color: #6d7e78; opacity: 1; }
.pp-search .btn { align-self: stretch; min-width: 124px; font-size: 1rem; border-radius: 6px; }
.pp-suggestions { position: absolute; z-index: 110; top: calc(100% + 8px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px #172b291a; max-height: 340px; overflow-y: auto; }
.pp-suggestions li { padding: 12px 14px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 6px; font-size: .95rem; }
.pp-suggestions small { color: var(--muted); flex-shrink: 0; font-size: .75rem; }
.pp-suggestions li:hover, .pp-suggestions li[aria-selected="true"] { background: var(--accent-soft); }
.pp-browse { padding-bottom: 34px; margin-bottom: 12px; }
.pp-browse h2, .pp-section-heading h2 { font-size: 1.6rem; letter-spacing: -.5px; margin-bottom: 20px; }
.pp-browse-groups { display: flex; flex-wrap: wrap; gap: 24px 36px; }
.pp-browse-group { flex: 1 1 180px; min-width: 0; }
.pp-browse-group + .pp-browse-group { border-left: 1px solid var(--border); padding-left: 32px; }
.pp-browse h3 { font-size: .95rem; margin-bottom: 10px; }
.pp-browse ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.pp-browse a, .pp-section-heading a { text-decoration: underline; text-underline-offset: 4px; font-size: .95rem; }
.pp-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pp-section-heading h2 { margin-bottom: 18px; }
.pp-refine { margin: 22px 0 28px; }
.pp-refine summary { cursor: pointer; font-size: .9rem; color: var(--accent); font-weight: 600; padding: 8px 0; }
.pp-refine .filters { margin: 12px 0 0; }
.feed-card-actions { border-top: 1px solid var(--border); padding-top: 14px; }
.feed-card-actions > .btn { flex: 1; min-height: 40px; }
.feed-card-dealer-info .muted { font-size: .75rem; margin-top: 4px; }
.feed-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.feed-actions p { width: 100%; font-size: .85rem; }
.pp-dashboard-page { max-width: none; }
.pp-dashboard-page .pp-page-shell { max-width: none; padding: 0 0 24px; }
.pp-dash-head { padding: 32px; margin-bottom: 22px; background: var(--accent-soft); border-radius: 12px; align-items: center; }
.pp-dash-title h1 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); letter-spacing: -.8px; }
.pp-dash-title p { font-size: 1rem; }
.pp-dash-head-actions { gap: 12px; }
.pp-dash-layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 28px; }
.pp-dash-layout > .pp-tabs { display: flex; flex-direction: column; padding: 0 18px 0 0; gap: 7px; background: none; border: 0; border-right: 1px solid var(--border); border-radius: 0; overflow: visible; margin: 0; align-self: stretch; }
.pp-dash-layout > .pp-tabs a { padding: 13px 16px; white-space: normal; border-radius: 0 7px 7px 0; font-size: .9rem; border-left: 3px solid transparent; }
.pp-dash-layout > .pp-tabs a.active { background: var(--accent-soft); box-shadow: none; border-left-color: var(--accent); }
.pp-dash-body { min-width: 0; }
.pp-dash-body > .pp-panel { padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.pp-dash .pp-panel-head { padding: 0; border: 0; margin: 26px 0 18px; }
.pp-dash .pp-panel-head h2 { font-size: 1.6rem; letter-spacing: -.5px; }
.pp-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 10px; background: var(--accent-soft); border-radius: 9px; }
.pp-summary:empty { display: none; }
.pp-summary .pp-stat { border: 0; border-radius: 0; background: none; padding: 0 18px; }
.pp-summary .pp-stat + .pp-stat { border-left: 1px solid #d4e9e0; }
.pp-stat-value { font-size: 2rem; color: var(--accent); font-weight: 700; }
.pp-stat-label { font-size: .8rem; text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 6px; }
.pp-listing-toolbar { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.pp-listing-toolbar label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; color: var(--muted); flex: 1; }
.pp-listing-toolbar label:first-child { flex: 2; }
.pp-listing-toolbar input, .pp-listing-toolbar select { min-height: 46px; width: 100%; border: 1px solid var(--border); background: white; border-radius: 7px; padding: 10px 12px; font-size: .95rem; color: var(--text); }
.pp-listing-list { display: block; }
.pp-listing-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .85rem; }
.pp-listing-table th { font-weight: 500; color: var(--muted); text-align: left; font-size: .75rem; padding: 0 12px 12px 0; }
.pp-listing-table th:first-child { width: 35%; }
.pp-listing-table th:last-child { width: 25%; }
.pp-listing-table td { border-top: 1px solid var(--border); padding: 20px 12px 20px 0; vertical-align: middle; overflow-wrap: anywhere; }
.pp-listing-table td small { display: block; color: var(--muted); font-size: .7rem; margin-top: 5px; }
.pp-listing-table .status-badge { text-transform: none; display: inline-block; font-size: .75rem; padding: 4px 8px; border-radius: 20px; }
.pp-table-property { display: flex; align-items: center; gap: 14px; }
.pp-table-property img, .pp-table-placeholder { width: 80px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pp-table-property h3 { font-size: .9rem; line-height: 1.4; margin: 0; font-weight: 650; }
.pp-table-placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pp-table-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pp-table-actions button { background: transparent; color: var(--accent); border: 0; padding: 0; cursor: pointer; font-size: .8rem; text-align: left; }
.pp-table-actions a { font-size: .8rem; }
.pp-table-actions button:hover { text-decoration: underline; }
.pp-table-actions .pp-delete { color: var(--danger); }
.pp-table-actions button:disabled { opacity: .5; cursor: wait; }
.pp-fieldset { border-radius: 8px; }
.pp-form { max-width: 880px; }
@media (max-width: 1000px) {
    .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-dash-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
    .pp-table-property { flex-direction: column; align-items: flex-start; }
    .pp-summary .pp-stat { padding: 0 10px; }
    .pp-dash-head { padding: 24px; }
}
@media (max-width: 720px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .site-header-inner { gap: 14px; min-height: 68px; }
    .logo { font-size: 1.1rem; gap: 8px; }
    .logo-mark { width: 34px; height: 34px; font-size: .8rem; }
    .site-actions .btn { font-size: .75rem; padding: 8px; }
    .nav-toggle { order: 3; margin-left: 0; }
    .site-actions { margin-left: auto; }
    .pp-home-hero { padding: 44px 0; margin-bottom: 28px; }
    .pp-home-hero h1 { font-size: 2.15rem; line-height: 1.15; }
    .pp-home-hero .hero-sub { font-size: 1rem; }
    .pp-search-control { padding-left: 14px; gap: 10px; }
    .pp-search-control svg { width: 20px; }
    .pp-search input { font-size: 1rem; height: 46px; }
    .pp-search .btn { min-width: 76px; font-size: .9rem; padding-left: 12px; padding-right: 12px; }
    .pp-suggestions li { padding: 12px 8px; font-size: .85rem; }
    .pp-suggestions small { font-size: .65rem; }
    .pp-browse-group { flex-basis: 40%; }
    .pp-browse-group + .pp-browse-group { border-left: 0; padding-left: 0; }
    .pp-browse-groups { gap: 24px; }
    .pp-browse { padding-bottom: 26px; }
    .pp-browse h2, .pp-section-heading h2 { font-size: 1.35rem; }
    .pp-section-heading a { font-size: .8rem; }
    .pp-dash-head { padding: 22px 18px; margin-bottom: 18px; }
    .pp-dash-layout { display: block; }
    .pp-dash-layout > .pp-tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; margin-bottom: 20px; padding: 0 0 12px; gap: 6px; }
    .pp-dash-layout > .pp-tabs a { white-space: nowrap; padding: 9px 12px; font-size: .8rem; border: 0; border-radius: 6px; }
    .pp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; padding: 18px 8px; }
    .pp-summary .pp-stat:nth-child(3) { border-left: 0; }
    .pp-stat-value { font-size: 1.7rem; }
    .pp-listing-toolbar { gap: 12px; }
    .pp-listing-table, .pp-listing-table tbody { display: block; }
    .pp-listing-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .pp-listing-table tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); padding: 18px 0; gap: 14px; }
    .pp-listing-table td { display: block; border: 0; padding: 0; }
    .pp-listing-table td:first-child, .pp-listing-table td:last-child { grid-column: 1 / -1; }
    .pp-listing-table td[data-label="Status"] { grid-column: 1 / -1; }
    .pp-listing-table td[data-label^="7-day"]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); }
    .pp-table-property { flex-direction: row; }
    .pp-table-actions { gap: 8px 18px; }
    .pp-table-actions button, .pp-table-actions a { min-height: 36px; display: inline-flex; align-items: center; font-size: .85rem; }
    .pp-input-prefix { flex-wrap: wrap; }
    .pp-input-prefix span:first-child { padding: 8px 10px; width: 100%; font-size: .7rem; overflow-wrap: anywhere; white-space: normal; }
}
@media (max-width: 640px) { .feed-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
    .logo-text { font-size: .95rem; }
    .site-header-inner { gap: 8px; }
    .pp-listing-toolbar { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.pp-enquiry { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 28px 0; background: var(--accent-soft); }
#pp-enquiry-heading { scroll-margin-top: 100px; font-size: 1.4rem; }
.pp-enquiry .pp-help { margin-bottom: 16px; }
.pp-enquiry-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pp-contact-visibility { padding: 16px; margin-bottom: 14px; background: var(--accent-soft); border-radius: 8px; }
.pp-visibility-toggle { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin: 0 0 12px; cursor: pointer; }
.pp-visibility-toggle input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--accent); }
input[readonly] { background: #f4f7f6 !important; color: var(--muted); cursor: default; }
.pp-help.success { color: var(--accent); }
.pp-help.error { color: var(--danger); }
@media (max-width: 640px) { .pp-enquiry { padding: 18px; } }
