﻿:root {
    --navy: #071b2d;
    --navy-light: #0d2b42;
    --green: #0d5c4a;
    --green-light: #13745e;
    --green-soft: #e8f1ee;
    --white: #ffffff;
    --background: #f4f7f6;
    --text: #182630;
    --muted: #73818a;
    --border: #e1e9e6;
}

.property-details-page {
    min-height: 100vh;
    padding: 40px 20px 70px;
    background: var(--background);
    direction: rtl;
    font-family: "Vazirmatn", sans-serif;
}

.property-details-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 25px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

    .back-link:hover {
        color: var(--green);
    }

.property-details-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.property-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.property-details-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 30px;
    font-weight: 900;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.listing-badge-large {
    flex-shrink: 0;
}

.sale-badge,
.rent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 11px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.sale-badge {
    background: var(--navy);
}

.rent-badge {
    background: var(--green);
}

.property-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 25px;
    align-items: start;
}

.property-gallery {
    min-width: 0;
}

.property-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
    background: #e7eeeb;
    box-shadow: 0 12px 35px rgba(7, 27, 45, 0.08);
}

    .property-main-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.property-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.property-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.property-thumbnail {
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    opacity: 0.65;
    transition: 0.2s ease;
}

    .property-thumbnail:hover,
    .property-thumbnail.active {
        opacity: 1;
        border-color: var(--green);
    }

    .property-thumbnail img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.property-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.summary-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(7, 27, 45, 0.05);
}

.summary-title,
.content-title {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.summary-title {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.main-price {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .main-price > span,
    .secondary-price > span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }

    .main-price strong {
        color: var(--green);
        font-size: 25px;
        font-weight: 900;
    }

    .main-price small,
    .secondary-price small {
        font-size: 11px;
        font-weight: 700;
    }

.secondary-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

    .secondary-price st

    rong {
        color: var(--navy);
        font-size: 16px;
        font-weight: 900;
    }

.property-info-list {
    display: flex;
    flex-direction: column;
}

.property-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .property-info-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .property-info-row:first-child {
        padding-top: 0;
    }

    .property-info-row span {
        color: var(--muted);
        font-size: 12px;
    }

    .property-info-row strong {
        color: var(--text);
        font-size: 13px;
    }

.property-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 25px;
    margin-top: 25px;
    align-items: start;
}

.property-description-card,
.property-agent-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(7, 27, 45, 0.05);
}

.full-description {
    margin: 0;
    color: #4f6069;
    font-size: 14px;
    line-height: 2.2;
    white-space: pre-line;
}

.empty-description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.address-box {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 25px;
    padding: 16px;
    border-radius: 15px;
    background: var(--green-soft);
}

.address-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green);
    color: var(--white);
}

.address-box span {
    display: block;
    margin-bottom: 4px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.address-box p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.8;
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.agent-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 24px;
    font-weight: 900;
}

    .agent-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.agent-info h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.agent-info span {
    color: var(--muted);
    font-size: 12px;
}

.agent-meta {
    margin-top: 20px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f7f9f8;
}

    .agent-meta div {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .agent-meta span {
        color: var(--muted);
        font-size: 12px;
    }

    .agent-meta strong {
        color: var(--green);
        font-size: 13px;
    }

.agent-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 15px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    direction: ltr;
}

    .agent-phone:hover {
        background: var(--green);
        color: var(--white);
    }

.agent-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 10px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

    .agent-details-btn:hover {
        background: var(--green);
        color: var(--white);
    }

    .agent-details-btn span {
        font-size: 17px;
    }

@media (max-width: 900px) {
    .property-main-grid,
    .property-bottom-grid {
        grid-template-columns: 1fr;
    }

    .property-main-image {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 600px) {
    .property-details-page {
        padding: 25px 14px 50px;
    }

    .property-details-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .propert

    y-details-header h1 {
        font-size: 24px;
    }

    .property-main-image {
        border-radius: 18px;
    }

    .property-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .summary-card,
    .property-description-card,
    .property-agent-card {
        padding: 18px;
        border-radius: 17px;
    }

    .main-price strong {
        font-size: 21px;
    }
}
