/* Property page layout */
#prop-content {
    display: flex;
    height: calc(100vh - 60px);
}
#prop-main {
    width: 440px;
    min-width: 440px;
    overflow-y: auto;
    background: var(--surface-sidebar);
    border-right: 1px solid var(--border);
}
#prop-map {
    flex: 1;
}

/* Property detail */
#prop-detail { padding: 0; }
.prop-loading {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Breadcrumb */
.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { color: var(--text-faint); }

.prop-header {
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.prop-eyebrow { font-size: var(--fs-xs); color: var(--accent); margin-bottom: 6px; }
.prop-header h1 {
    font-size: 25px;
    line-height: 1.13;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    margin-bottom: 11px;
}
.prop-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-sm);
    font-weight: 500;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}
.chip-class { background: var(--accent-bg); border-color: transparent; color: var(--accent-strong); font-weight: 600; }
.chip-flood { background: #fef2f2; border-color: #fecaca; color: var(--red); font-weight: 600; }
.chip-pin { background: transparent; border: none; color: var(--text-faint); font-family: var(--font-mono); font-size: var(--fs-2xs); padding: 3px 2px; }

/* Key-facts tiles */
.kf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.kf-tile { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 13px 11px; background: var(--surface); }
.kf-value { font-size: var(--fs-lg); font-weight: 600; color: var(--text-strong); line-height: 1.1; letter-spacing: -0.01em; }
.kf-label { font-size: 9.5px; color: var(--text-muted); margin-top: 5px; }
.kf-accent { background: var(--accent); border-color: var(--accent); }
.kf-accent .kf-value { color: #fff; font-size: var(--fs-xl); }
.kf-accent .kf-label { color: rgba(255, 255, 255, 0.78); }

.prop-section {
    background: var(--surface);
    margin-top: var(--sp-2);
    padding-bottom: 4px;
}
.prop-section h3 {
    padding: 13px 20px 8px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
    font-weight: 500;
}
.prop-row {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 8px 20px;
    border-bottom: 1px solid var(--border-soft);
    font-size: var(--fs-base);
}
.prop-row:last-child { border-bottom: none; }
.prop-row-label { color: var(--text-muted); }
.prop-row-value { font-weight: 600; color: var(--text-strong); text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.prop-row.total { background: var(--accent-bg-soft); border-radius: var(--r-md); margin: 6px 14px 2px; padding: 9px 12px; border-bottom: none; }
.prop-row.total .prop-row-label { color: var(--accent-strong); font-weight: 600; }
.prop-row.total .prop-row-value { color: var(--accent-strong); font-size: var(--fs-lg); }

.prop-row.land-highlight {
    background: #fefce8;
}

/* Owner — first-class card */
.owner-card {
    margin: var(--sp-3) var(--sp-5);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-lg);
    background: var(--surface-subtle);
    padding-bottom: 6px;
    overflow: hidden;
}
.owner-card h3 { padding: 11px 16px 6px; }
.owner-card .prop-row { padding-left: 16px; padding-right: 16px; background: transparent; border-bottom: none; }

/* Sale history — timeline */
.sale-item {
    position: relative;
    padding: 10px 20px 10px 34px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--fs-13);
}
.sale-item::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    z-index: 1;
}
.sale-item::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 22px;
    bottom: -1px;
    width: 2px;
    background: var(--border);
}
.sale-item:last-child { border-bottom: none; }
.sale-item:last-child::after { display: none; }
.sale-date { color: var(--text-muted); font-family: var(--font-mono); }
.sale-price { font-weight: 600; color: var(--text-strong); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* View on map link */
.view-map-link {
    display: block;
    padding: 12px 20px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-base);
    margin: var(--sp-3) var(--sp-5);
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    transition: background var(--dur) var(--ease);
}
.view-map-link:hover { background: var(--accent-strong); }
.prc-link {
    background: var(--navy);
    margin-bottom: 0;
}
.prc-link:hover { background: var(--navy-hover); }

/* Mobile */
@media (max-width: 768px) {
    #prop-content { flex-direction: column; height: auto; }
    #prop-main {
        width: 100%;
        min-width: 0;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    #prop-map { height: 50vh; }
}
