/* Plot detail — interactive 3D plot intelligence tree */

.page-plot-tree {
    --pd-ink: #10231f;
    --pd-mist: #eef4f1;
    --pd-forest: #145c4c;
    --pd-deep: #0c3d33;
    --pd-gold: #b8893a;
    --pd-gold-soft: #f3e4c4;
}

.page-plot-tree .site-footer {
    padding-bottom: 5.5rem;
}

.page-plot-tree .breadcrumbs a,
.page-plot-tree .site-breadcrumbs a {
    color: var(--pd-gold-soft);
}

.page-plot-tree .breadcrumbs,
.page-plot-tree .site-breadcrumbs {
    color: rgba(244, 247, 245, 0.75);
}

.pd-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2.35rem 0 2.1rem;
    color: #f4f7f5;
}

.pd-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(155deg, #0c3d33 0%, #145c4c 45%, #c9a45a 130%);
}

.pd-hero-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 28, 24, 0.15), rgba(8, 28, 24, 0.55));
}

.pd-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.42;
    animation: hx-float 10s ease-in-out infinite;
}

.pd-orb--a {
    width: 220px;
    height: 220px;
    top: 10%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, #f3e4c4, transparent 65%);
}

.pd-orb--b {
    width: 140px;
    height: 140px;
    bottom: 14%;
    left: 10%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.35), transparent 70%);
    animation-delay: -3s;
}

.pd-orb--c {
    width: 160px;
    height: 160px;
    top: 6%;
    right: 4%;
    background: radial-gradient(circle at 30% 30%, #f3e4c4, transparent 65%);
}

.pd-orb--d {
    width: 110px;
    height: 110px;
    bottom: 10%;
    left: 6%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.28), transparent 70%);
    animation-delay: -2s;
}

.pd-floor {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -8%;
    height: 42%;
    background:
        linear-gradient(to top, rgba(8, 28, 24, 0.7), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 56px);
    transform: perspective(650px) rotateX(58deg);
    transform-origin: center bottom;
}

.pd-hero-inner {
    position: relative;
    max-width: 920px;
}

.pd-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-gold-soft);
}

.pd-eyebrow--light {
    color: var(--pd-gold-soft);
}

.pd-hero h1 {
    margin: 0.35rem 0 0.5rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pd-hero-lead {
    margin: 0 0 1rem;
    max-width: 40rem;
    line-height: 1.55;
    color: rgba(244, 247, 245, 0.88);
}

.pd-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.7rem;
    margin: 0 0 1.15rem;
}

.pd-hero-stats div {
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pd-hero-stats dt {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.pd-hero-stats dd {
    margin: 0.2rem 0 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.pd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pd-btn-solid,
.pd-btn-ghost,
.pd-btn-solid-dark,
.pd-btn-ghost-dark {
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.pd-btn-solid {
    background: var(--pd-gold);
    color: #14201c;
}

.pd-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #f4f7f5;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.pd-btn-solid-dark {
    background: var(--pd-deep);
    color: #fff;
}

.pd-btn-ghost-dark {
    background: rgba(12, 61, 51, 0.08);
    color: var(--pd-deep);
    border: 1px solid rgba(20, 92, 76, 0.2);
}

.pd-status {
    display: inline-flex;
    margin-bottom: 0.65rem;
}

.pd-page {
    padding: 2.5rem 0 3.5rem;
    background:
        radial-gradient(ellipse 70% 35% at 12% 0%, rgba(20, 92, 76, 0.08), transparent 55%),
        linear-gradient(180deg, #f7faf8 0%, #ffffff 45%, #eef4f1 100%);
}

.pd-step-rail {
    position: sticky;
    top: 5.25rem;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.45rem;
    margin: 0 0 1.75rem;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 92, 76, 0.12);
    box-shadow: 0 14px 32px rgba(12, 61, 51, 0.1);
    backdrop-filter: blur(12px);
}

.pd-step-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--pd-ink);
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.pd-step-rail-btn span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pd-forest);
}

.pd-step-rail-btn strong {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 0.88rem;
}

.pd-step-rail-btn small {
    font-size: 0.72rem;
    color: #6b7280;
}

.pd-step-rail-btn:hover {
    background: rgba(20, 92, 76, 0.07);
    transform: translateY(-1px);
}

.pd-step-rail-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--pd-forest), var(--pd-deep));
    box-shadow: 0 10px 22px rgba(12, 61, 51, 0.25);
}

.pd-step-rail-btn.is-active span,
.pd-step-rail-btn.is-active small {
    color: rgba(255, 255, 255, 0.78);
}

.pd-chapters {
    display: grid;
    gap: 1.35rem;
}

.pd-chapter {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.6rem 1.4rem 1.45rem;
    background: #fff;
    border: 1px solid rgba(20, 92, 76, 0.1);
    box-shadow: 0 16px 36px rgba(12, 61, 51, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.pd-chapter--hero {
    color: #f4f7f5;
    background: linear-gradient(155deg, #0c3d33 0%, #145c4c 55%, #1a6d5a 120%);
    border-color: transparent;
    box-shadow: 0 22px 44px rgba(12, 61, 51, 0.28);
}

.pd-chapter.is-active {
    border-color: rgba(184, 137, 58, 0.35);
    box-shadow: 0 22px 48px rgba(12, 61, 51, 0.16);
}

.pd-chapter-glow {
    position: absolute;
    inset: auto -15% -45% -15%;
    height: 70%;
    background: radial-gradient(circle, rgba(184, 137, 58, 0.28), transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.pd-chapter-glow--soft {
    background: radial-gradient(circle, rgba(20, 92, 76, 0.12), transparent 65%);
}

.pd-chapter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-gold-soft);
}

.pd-chapter-kicker--dark {
    color: var(--pd-forest);
}

.pd-chapter-kicker span {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pd-chapter-kicker--dark span {
    background: rgba(20, 92, 76, 0.08);
    border-color: rgba(20, 92, 76, 0.14);
    color: var(--pd-deep);
}

.pd-chapter h3 {
    margin: 0 0 0.45rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pd-chapter--hero h3 {
    color: #fff;
}

.pd-chapter-lead {
    margin: 0 0 1rem;
    line-height: 1.55;
    color: #5b6770;
}

.pd-chapter--hero .pd-chapter-lead {
    color: rgba(244, 247, 245, 0.88);
}

.pd-chapter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.pd-embed-card {
    margin: 0.25rem 0 0.5rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    color: var(--pd-ink);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(8, 28, 24, 0.18);
}

.pd-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0 0 1rem;
}

.pd-specs-grid div,
.pd-spec-full {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(20, 92, 76, 0.06);
    border: 1px solid rgba(20, 92, 76, 0.1);
}

.pd-chapter--hero .pd-specs-grid div,
.pd-chapter--hero .pd-spec-full {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.pd-chapter--hero .pd-specs-grid dt {
    color: rgba(244, 247, 245, 0.7);
}

.pd-chapter--hero .pd-specs-grid dd {
    color: #fff;
}

.pd-spec-full {
    grid-column: 1 / -1;
}

.pd-specs-grid dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(16, 35, 31, 0.6);
}

.pd-specs-grid dd {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    color: var(--pd-deep);
}

.page-plot-tree .ai-explanation,
.page-plot-tree .buying-summary {
    margin: 0 0 1rem;
    border: 1px solid rgba(20, 92, 76, 0.12);
    background: #fff;
    box-shadow: none;
}

.pd-chapter--hero .ai-explanation,
.pd-chapter--hero .buying-summary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: var(--pd-ink);
}

.page-plot-tree .amenities-panel {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.page-plot-tree .market-comparison,
.page-plot-tree .property-report {
    margin: 0;
}

.page-plot-tree .property-report-header {
    border-radius: 1rem;
}

.pd-map-wrap .map-card,
.pd-map-wrap .state-card {
    margin: 0;
}

.pd-dock {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 40;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(12, 61, 51, 0.92);
    box-shadow: 0 16px 40px rgba(12, 61, 51, 0.35);
    backdrop-filter: blur(10px);
}

.pd-dock-btn {
    color: #f4f7f5;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
}

.pd-dock-btn--primary {
    background: var(--pd-gold);
    color: #14201c;
}

.pd-related-plots {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem;
}

.pd-related-plots a {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, #fff, #f7faf8);
    border: 1px solid rgba(20, 92, 76, 0.12);
    box-shadow: 0 10px 20px rgba(12, 61, 51, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pd-related-plots a:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 137, 58, 0.45);
}

.pd-related-plots strong {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.95rem;
}

.pd-related-plots span {
    font-size: 0.8rem;
    color: #5b6770;
}

@media (min-width: 768px) {
    .pd-specs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pd-step-rail {
        top: 4.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pd-step-rail {
        grid-template-columns: 1fr;
    }

    .pd-dock {
        width: calc(100% - 1.25rem);
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-orb,
    .pd-chapter,
    .pd-step-rail-btn {
        animation: none !important;
        transition: none !important;
    }
}
