/*
 * Property details page
 *
 * Keep page-specific rules below the .pd-page scope so they cannot leak into
 * property lists or other public pages.
 */

.pd-page .header-masonry-grid,
.pd-page .column-full {
    min-height: 520px;
}

.pd-page .column-start-end--single {
    display: block;
}

.pd-page .property-featured-video {
    border: 0;
}

.pd-page .h-details_content h1 {
    font-size: 30px;
}

.pd-page .viewers-spacer {
    height: 86px;
    display: flex;
    align-items: center;
}

.pd-page .viewers-spacer + .h-details_content,
.pd-page .viewers-spacer + .h-details_content > .container {
    padding-top: 0 !important;
}

.pd-page .property-summary-card > .text-muted i {
    font-size: 18px;
}

.pd-page .feature-card {
    cursor: default;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.pd-page .feature-card:hover {
    transform: translateY(-2px);
    background-color: #eaf3ff !important;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .12);
}

.pd-page .property-extra-icon {
    width: 24px;
}

.pd-page .property-agent-card {
    max-width: 520px;
    padding: 1.25rem;
}

.pd-page .property-agent-card--quick {
    max-width: none;
}

.pd-page .property-agent-avatar {
    width: 64px;
    height: 64px;
}

.pd-page .property-agent-bio {
    line-height: 1.6;
}

.pd-page .property-agent-card h2,
.pd-page .property-agent-card h3 {
    overflow-wrap: anywhere;
}

.pd-page .property-agent-contact-reveal {
    display: grid;
    place-items: center;
}

.pd-page .property-agent-contact-reveal > * {
    grid-area: 1 / 1;
}

.pd-page .property-agent-contact-reveal > .is-concealed {
    visibility: hidden;
    pointer-events: none;
}

.pd-page .property-map {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 16px;
    background: #eef2f7;
}

.pd-page .property-map-trigger {
    max-width: calc(100% - 32px);
    padding: 14px 24px;
    gap: 8px;
}

.pd-page .property-map-trigger-icon {
    font-size: 1.1rem;
}

.pd-page .property-map-fallback {
    color: #475569;
}

.pd-page .appointment-form {
    background: #fff;
}

.pd-page .appointment-intro {
    font-size: 13px;
    line-height: 1.5;
}

.pd-page .appointment-form .form-control {
    padding: 12px 40px 12px 14px;
}

.pd-page .appointment-form textarea.form-control {
    padding-right: 14px;
}

.pd-page .appointment-form .has-icon {
    position: relative;
}

.pd-page .appointment-form .form-icon {
    right: 14px;
    bottom: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.pd-page .fav-btn {
    border-color: #f5b301;
    background: #f5b301;
    box-shadow: 0 8px 22px rgba(245, 179, 1, .25);
    color: #0f172a;
}

.pd-page .fav-btn:hover,
.pd-page .fav-btn:focus {
    border-color: #ffc21f;
    background: #ffc21f;
    box-shadow: 0 10px 26px rgba(245, 179, 1, .4);
    color: #0f172a;
}

.pd-page .fav-btn.active {
    border-color: #0f172a;
    background: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .25);
    color: #f5b301;
}

.pd-page .fav-btn.active:hover {
    border-color: #1e293b;
    background: #1e293b;
    color: #ffc21f;
}

.pd-page .viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px 8px 12px;
    margin: 0;
    border-radius: 999px;
    background: #444a59;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.pd-page .viewers-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #22c55e;
}

.pd-page .viewers-dot::before {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #22c55e;
    content: "";
    opacity: .55;
    animation: pd-viewers-pulse 1.6s ease-out infinite;
}

@keyframes pd-viewers-pulse {
    0% {
        transform: scale(.6);
        opacity: .6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-page .viewers-dot::before {
        animation: none;
    }
}

@media (max-width: 1199.98px) {
    .pd-page .header-masonry-grid,
    .pd-page .column-full {
        min-height: 420px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pd-page .appointment-form {
        padding: 1.25rem !important;
    }

    .pd-page .property-agent-card {
        padding: 1rem;
    }

    .pd-page .property-agent-avatar {
        width: 56px;
        height: 56px;
    }

    .pd-page .property-agent-card--quick .btn {
        padding-right: .75rem;
        padding-left: .75rem;
        font-size: .875rem;
    }
}

@media (max-width: 991.98px) {
    .pd-page .h-details_content {
        padding-top: 2.5rem !important;
    }

    .pd-page .h-details_content > .container {
        padding-top: 0 !important;
    }

    .pd-page .viewers-spacer + .h-details_content {
        padding-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .pd-page .header-masonry-grid,
    .pd-page .column-full {
        min-height: 300px;
    }

    .pd-page .h-details_content h1 {
        font-size: 24px;
    }

    .pd-page .property-map {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .pd-page .header-masonry-grid,
    .pd-page .column-full {
        min-height: 240px;
    }

    .pd-page .h-details_content {
        padding-top: 2rem !important;
    }

    .pd-page .header-btn-group {
        padding: .875rem !important;
    }

    .pd-page .header-btn-group > .btn {
        padding-right: .625rem;
        padding-left: .625rem;
        font-size: .8125rem;
    }
}

@media (max-width: 359.98px) {
    .pd-page .header-btn-group > .btn,
    .pd-page .header-btn-group > .product-video-btn {
        flex: 1 0 100%;
    }

    .pd-page .header-btn-group > .btn {
        width: 100%;
    }

    .pd-page .header-btn-group > .product-video-btn > a {
        justify-content: flex-start !important;
    }
}
