/* Property details page: clear hierarchy, sectioned cards, easy navigation */
.pd-head,
.pd-card,
.pd-safety {
    background: #fff;
    border: 1px solid rgba(17, 16, 33, 0.07);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(17, 16, 33, 0.04);
}

.pd-head {
    margin-bottom: 18px;
    padding: 24px 26px;
}

.pd-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.pd-chip {
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-primary, #0A2C6D);
    background: rgba(10, 44, 109, 0.08);
    border-radius: 999px;
}

.pd-chip-muted {
    color: #6b7080;
    background: rgba(17, 16, 33, 0.05);
}

.pd-chip i {
    margin-right: 4px;
}

.pd-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.pd-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3a4152;
    background: #f4f6fa;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pd-action:hover {
    color: var(--color-primary, #0A2C6D);
    background: rgba(10, 44, 109, 0.1);
}

.pd-action-save i.fas {
    color: #e5484d;
}

.pd-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 1.6vw + 16px, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #111021;
}

.pd-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #6b7080;
}

.pd-location i {
    margin-top: 4px;
    color: var(--color-primary, #0A2C6D);
}

.pd-price {
    font-size: clamp(26px, 2vw + 18px, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--color-primary, #0A2C6D);
}

.pd-price small {
    margin-left: 4px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: #8a91a0;
}

.pd-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid rgba(17, 16, 33, 0.07);
}

.pd-stats li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 14px;
    color: #6b7080;
    background: #f7f8fb;
    border-radius: 12px;
}

.pd-stats li i {
    font-size: 16px;
    color: var(--color-primary, #0A2C6D);
}

.pd-stats li strong {
    font-weight: 700;
    color: #111021;
}

.pd-stats .pd-stat-doc {
    background: linear-gradient(135deg, rgba(10, 44, 109, 0.07), rgba(26, 169, 154, 0.1));
}

/* Section navigation (sticks under the site header) */
.pd-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 6px;
    margin: 0 0 18px;
    padding: 8px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(17, 16, 33, 0.07);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(17, 16, 33, 0.06);
    scrollbar-width: none;
}

.pd-nav::-webkit-scrollbar {
    display: none;
}

.pd-nav a {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    color: #5b6172;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pd-nav a:hover {
    color: var(--color-primary, #0A2C6D);
}

.pd-nav a.active {
    color: #fff;
    background-image: linear-gradient(135deg, var(--color-primary, #0A2C6D), #1aa99a);
}

/* Section cards */
.pd-card {
    margin-bottom: 18px;
    padding: 24px 26px;
    scroll-margin-top: 150px;
}

#pd-similar,
#pd-trust {
    scroll-margin-top: 150px;
}

.pd-card-title {
    position: relative;
    margin: 0 0 18px;
    padding-left: 14px;
    font-size: 19px;
    font-weight: 700;
    color: #111021;
}

.pd-card-title::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    background-image: linear-gradient(180deg, var(--color-primary, #0A2C6D), #1aa99a);
    border-radius: 4px;
}

.pd-card .summernote-content {
    font-size: 15.5px;
    line-height: 1.75;
    color: #454b5c;
}

.pd-card .overview-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.pd-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.pd-amenities li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #3a4152;
    background: #f7f8fb;
    border-radius: 12px;
}

.pd-amenities li i {
    flex: 0 0 auto;
    color: var(--color-primary, #0A2C6D);
}

.pd-safety {
    margin-bottom: 18px;
    padding: 18px 22px;
    background: #fffaf0;
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: none;
}

.pd-safety h3 {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 700;
    color: #8a5300;
}

.pd-safety ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #6b5a3a;
}

/* Contact sidebar stays in view while reading (desktop) */
@media (min-width: 992px) {
    .sidebar-widget-area {
        position: sticky;
        top: 120px;
    }
}

/* Mobile: contact actions always one tap away */
.pd-mobile-cta {
    display: none;
}

@media (max-width: 991.98px) {
    .pd-head {
        padding: 18px 16px;
    }

    .pd-card {
        padding: 18px 16px;
        scroll-margin-top: 130px;
    }

    .pd-action span {
        display: none;
    }

    .pd-action {
        padding: 9px 12px;
    }

    .pd-nav {
        margin-right: -4px;
        margin-left: -4px;
    }

    .pd-mobile-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: flex;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(17, 16, 33, 0.08);
        box-shadow: 0 -8px 24px rgba(17, 16, 33, 0.08);
    }

    .pd-mobile-cta a {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 46px;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        border-radius: 999px;
    }

    .pd-mobile-cta .cta-call {
        background-image: linear-gradient(135deg, var(--color-primary, #0A2C6D), #1aa99a);
    }

    .pd-mobile-cta .cta-wa {
        background: #25d366;
    }

    .pd-mobile-cta .cta-msg {
        color: var(--color-primary, #0A2C6D);
        background: rgba(10, 44, 109, 0.08);
    }

    .pd-mobile-cta i {
        color: inherit;
    }

    body.pd-has-cta {
        padding-bottom: 72px;
    }

    body.pd-has-cta .go-top {
        bottom: 88px;
    }
}

/* "View Profile" link inside the contact widget's poster block */
.pd-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-primary, #0A2C6D);
}

.pd-view-profile i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.pd-view-profile:hover {
    color: #1aa99a;
}

.pd-view-profile:hover i {
    transform: translateX(3px);
}
