/* Property page overlay (Phase B, stream F2).
 *
 * Matches the site's existing card idiom (see style.css section 11,
 * .disc-card): white cards, #E8E4DE borders, 10-12px radii, Plus Jakarta
 * Sans, slate text (#1e293b / #64748b / #94a3b8), #EDE9E3 hairlines,
 * teal (#0d9488) as the single accent color. All class names are pp- prefixed
 * so nothing here can collide with main.js/style.css selectors.
 */

.pp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(30, 41, 59, 0.45);
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 0;
}

.pp-overlay.pp-open {
    display: flex;
}

body.pp-no-scroll {
    overflow: hidden;
}

.pp-panel {
    background: #FFFFFF;
    width: 100%;
    max-width: 640px;
    min-height: 100vh;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

@media (min-width: 720px) {
    .pp-panel {
        min-height: calc(100vh - 40px);
        margin: 20px 0;
        border-radius: 14px;
        overflow: hidden;
    }
}

/* --- header --- */

.pp-header {
    position: relative;
    padding: 22px 52px 18px 22px;
    border-bottom: 1px solid #E8E4DE;
    background: #F7F5F2;
}

.pp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid #E8E4DE;
    background: #FFFFFF;
    border-radius: 8px;
    color: #1e293b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s;
}

.pp-close:hover {
    border-color: #1e293b;
}

.pp-address {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.pp-city {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

/* --- facts row --- */

.pp-facts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 22px;
    border-bottom: 1px solid #E8E4DE;
    background: #FFFFFF;
}

.pp-fact {
    flex: 1 1 0;
    min-width: 72px;
    text-align: center;
    padding: 4px 6px;
}

.pp-fact-val {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.pp-fact-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
}

/* --- body / sections --- */

.pp-body {
    padding: 18px 22px 28px;
}

.pp-section {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.pp-section-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748b;
}

.pp-subsection-title {
    margin: 14px 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
}

.pp-empty {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.pp-error {
    margin: 40px 0;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* --- sale history timeline --- */

.pp-timeline {
    display: flex;
    flex-direction: column;
}

.pp-sale-row {
    padding: 8px 0;
    border-bottom: 1px solid #EDE9E3;
}

.pp-sale-row:last-child {
    border-bottom: none;
}

.pp-sale-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.pp-sale-price {
    font-weight: 700;
    color: #1e293b;
}

.pp-sale-date {
    color: #64748b;
    font-size: 12px;
}

.pp-sale-row-muted .pp-sale-price,
.pp-sale-row-muted .pp-sale-date {
    color: #94a3b8;
    font-weight: 500;
}

.pp-sale-hint {
    margin-top: 2px;
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

/* --- assessment table --- */

.pp-assess-table {
    display: flex;
    flex-direction: column;
}

.pp-assess-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #EDE9E3;
    font-size: 12px;
    color: #64748b;
}

.pp-assess-row:last-child {
    border-bottom: none;
}

.pp-assess-row-latest {
    font-weight: 700;
}

.pp-assess-row-latest .pp-assess-val {
    color: #1e293b;
}

.pp-assess-val {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.pp-assess-pct {
    min-width: 56px;
    text-align: right;
}

.pp-pct-down {
    color: #0d9488;
}

.pp-pct-up {
    color: #e74c3c;
}

/* --- neighbourhood --- */

.pp-trend {
    padding: 4px 0 6px;
}

.pp-trend-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.pp-sparkline {
    width: 100%;
    height: 48px;
    display: block;
}

.pp-nearby-list {
    display: flex;
    flex-direction: column;
}

.pp-nearby-row {
    padding: 7px 0;
    border-bottom: 1px solid #EDE9E3;
}

.pp-nearby-row:last-child {
    border-bottom: none;
}

.pp-nearby-addr {
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
}

.pp-nearby-meta {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}

/* --- claim CTA --- */

.pp-cta {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px 18px;
    margin-bottom: 16px;
    text-align: center;
}

.pp-cta-head {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.pp-cta-body {
    margin: 8px auto 14px;
    max-width: 420px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
}

.pp-cta-btn {
    display: inline-block;
    padding: 11px 22px;
    background: #0d9488;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
}

.pp-cta-btn:hover {
    background: #0f766e;
}

/* --- loading skeleton --- */

.pp-skel {
    background: linear-gradient(90deg, #EDE9E3 25%, #F7F5F2 37%, #EDE9E3 63%);
    background-size: 400% 100%;
    animation: pp-skel-shine 1.4s ease infinite;
    border-radius: 6px;
}

.pp-skel-title {
    width: 70%;
    height: 20px;
    margin-bottom: 8px;
}

.pp-skel-sub {
    width: 40%;
    height: 13px;
}

.pp-skel-block {
    width: 100%;
    height: 90px;
    margin-bottom: 14px;
    border-radius: 12px;
}

@keyframes pp-skel-shine {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
