/**
 * Single Property Styles
 *
 * @package HomeProz
 */

// Breadcrumbs
.breadcrumbs {
    background-color: var(--color-bg-card);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;

    li {
        display: flex;
        align-items: center;

        &:not(:last-child)::after {
            content: '/';
            margin-left: 0.5rem;
            color: var(--color-text-muted);
        }

        a {
            color: var(--color-text-muted);
            text-decoration: none;

            &:hover {
                color: var(--color-accent-light);
            }
        }

        &:last-child {
            color: var(--color-text);
        }
    }
}

// Main Layout
.single-property-main {
    padding-bottom: 4rem;
}

.single-property-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;

    @media (min-width: 1024px) {
        grid-template-columns: 1fr 350px;
        gap: 3rem;
    }
}

// Property Header
.property-header {
    margin-bottom: 2rem;
}

.property-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.property-type {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;

    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

.property-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;

    svg {
        flex-shrink: 0;
        margin-top: 0.125rem;
        color: var(--color-accent);
    }
}

.property-mls {
    font-size: 0.875rem;
    color: var(--color-sold);
    margin-bottom: 0;
}

// Section Title
.section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

// Property Specs Grid
.property-specs-section {
    margin-bottom: 2rem;
}

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (min-width: 640px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-specs-grid .spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background-color: var(--color-bg-card);
    border-radius: 0.25rem;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.spec-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

// Description
.property-description {
    margin-bottom: 2rem;
}

.property-short-desc {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.property-full-desc {
    color: var(--color-text-muted);
    line-height: 1.7;
}

// Features List
.property-features {
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (min-width: 640px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);

    svg {
        flex-shrink: 0;
        color: var(--color-success);
    }
}

// Sidebar
.single-property-sidebar {
    @media (min-width: 1024px) {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

// Agent Card
.agent-card {
    padding: 1.5rem;
}

.agent-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.agent-card-title {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.agent-avatar {
    flex-shrink: 0;

    img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
    }
}

.agent-avatar-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-dark);
    border-radius: 50%;
    color: var(--color-text-muted);
}

.agent-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.agent-role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
}

.agent-card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.agent-card-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 0;
}

// Body class for lightbox
body.lightbox-open {
    overflow: hidden;
}
