﻿/* ========================================
   analyze-improved.css
   استایل‌های بهبود یافته برای صفحه تحلیل مسکن
   ======================================== */

/* ===== استایل دراپ‌داون‌های قابل جستجو ===== */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

    .searchable-dropdown .dropdown-input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #dbdbdb;
        border-radius: 4px;
        font-size: 14px;
        background-color: white;
        cursor: pointer;
        text-align: right;
        direction: rtl;
        transition: all 0.3s ease;
    }

        .searchable-dropdown .dropdown-input:focus {
            outline: none;
            border-color: #3273dc;
            box-shadow: 0 0 0 0.125em rgba(50,115,220,0.25);
        }

        .searchable-dropdown .dropdown-input:hover {
            border-color: #3273dc;
        }

    .searchable-dropdown .dropdown-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 250px;
        overflow-y: auto;
        background: white;
        border: 1px solid #dbdbdb;
        border-radius: 4px;
        margin-top: 2px;
        z-index: 1000;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

        .searchable-dropdown .dropdown-list.show {
            display: block;
        }

    .searchable-dropdown .search-input {
        width: 100%;
        padding: 8px 12px;
        border: none;
        border-bottom: 1px solid #dbdbdb;
        font-size: 14px;
        box-sizing: border-box;
        text-align: right;
        direction: rtl;
    }

        .searchable-dropdown .search-input:focus {
            outline: none;
            border-bottom-color: #3273dc;
        }

    .searchable-dropdown .items-container {
        max-height: 200px;
        overflow-y: auto;
    }

    .searchable-dropdown .dropdown-item {
        padding: 8px 12px;
        cursor: pointer;
        transition: background-color 0.2s;
        text-align: right;
        direction: rtl;
        border-bottom: 1px solid #f5f5f5;
    }

        .searchable-dropdown .dropdown-item:last-child {
            border-bottom: none;
        }

        .searchable-dropdown .dropdown-item:hover {
            background-color: #f5f5f5;
        }

        .searchable-dropdown .dropdown-item.selected {
            background-color: #3273dc;
            color: white;
        }

    .searchable-dropdown .no-results {
        padding: 12px;
        text-align: center;
        color: #7a7a7a;
        font-style: italic;
    }

/* ===== استایل صفحه‌بندی بهبود یافته ===== */
.pagination-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    direction: rtl;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-text {
    font-size: 14px;
    color: #4a4a4a;
    white-space: nowrap;
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: white;
    color: #3273dc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

    .pagination-link:hover:not(.disabled) {
        background: #3273dc;
        color: white;
        border-color: #3273dc;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(50,115,220,0.3);
    }

    .pagination-link.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
        background: #f8f9fa;
    }

    .pagination-link.is-current {
        background: #3273dc;
        color: white;
        border-color: #3273dc;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(50,115,220,0.3);
    }

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    color: #6c757d;
}

/* ===== استایل سلکت پیشرفته ===== */
.pagination-select .select {
    position: relative;
    display: inline-block;
    width: auto;
}

.pagination-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 35px 8px 35px !important;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233273dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 14px;
    text-align: right;
    direction: rtl;
    font-weight: 500;
    min-width: 70px;
}

    .pagination-select select:hover {
        border-color: #3273dc;
        background-color: #f8f9fa;
    }

    .pagination-select select:focus {
        border-color: #3273dc;
        box-shadow: 0 0 0 0.2rem rgba(50,115,220,0.25);
    }

    .pagination-select select::-ms-expand {
        display: none;
    }

/* ===== استایل کارت‌های ملک ===== */
.property-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: white;
}

    .property-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-color: #3273dc;
    }

.headline-box-inner {
    flex: 1;
    overflow: hidden;
}

.property-content {
    width: 100%;
    overflow: hidden;
}

.property-subtitle {
    font-size: 1rem !important;
    line-height: 1.6;
    margin-bottom: 1rem !important;
    word-break: break-word;
    color: #2c3e50;
    border-bottom: 2px solid #3273dc;
    padding-bottom: 0.5rem;
}

.zone-name, .zone-code, .city-name {
    display: inline-block;
    margin-left: 0.3rem;
}

.zone-name {
    color: #e67e22;
}

.zone-code {
    color: #16a085;
}

.city-name {
    color: #3273dc;
    font-weight: bold;
}

/* ===== لیست جزئیات ملک ===== */
.property-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.property-detail-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e9ecef;
}

    .property-detail-item:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    font-size: 0.85rem;
}

.detail-value {
    color: #3273dc;
    font-weight: 500;
    font-size: 0.85rem;
    flex: 1;
    text-align: left;
    word-break: break-word;
}

    .detail-value.full-width {
        text-align: center;
        color: #6c757d;
        width: 100%;
    }

.highlight {
    background-color: #f8f9fa;
    padding: 0.4rem;
    border-radius: 6px;
    margin: 0.2rem 0;
}

.price {
    color: #28a745;
    font-weight: 700;
    font-size: 0.9rem;
}
.highlight1 {
    background-color: #d3d7dc;
    padding: 0.4rem;
    border-radius: 6px;
    margin: 0.2rem 0;
}

.price1 {
    color: #0c7824;
    font-weight: 800;
    font-size: 0.95rem;
}

/* ===== فوتر کارت ===== */
.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e9ecef;
    gap: 0.5rem;
}

.card-footer-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.property-code {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: normal;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}

/* ===== استایل دکمه‌ها ===== */
.button.is-small {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    white-space: normal;
    word-break: keep-all;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.button.is-info {
    background: #3273dc;
    border: none;
    color:white
}

    .button.is-info:hover {
        background: #2366c1;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(50,115,220,0.3);
    }

/* ===== آیکون‌ها ===== */
.button i, .property-code i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

/* ===== ریسپانسیو برای موبایل و تبلت ===== */
@media screen and (max-width: 1024px) {
    .detail-label {
        min-width: 120px;
    }
}

@media screen and (max-width: 768px) {
    .pagination-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .pagination-info {
        justify-content: center;
    }

    .pagination-controls {
        justify-content: center;
    }

    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .pagination-text {
        font-size: 12px;
    }

    .property-box {
        padding: 0.75rem;
    }

    .property-subtitle {
        font-size: 0.9rem !important;
    }

    .detail-label {
        min-width: 110px;
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.8rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-footer-left {
        width: 100%;
        justify-content: space-between;
    }

    .card-footer-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .property-code {
        width: 100%;
        justify-content: space-around;
    }
}

@media screen and (max-width: 480px) {
    .detail-label {
        min-width: 100%;
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .detail-value {
        font-size: 0.75rem;
        text-align: right;
        width: 100%;
    }

    .property-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-footer-left {
        flex-direction: column;
    }

        .card-footer-left .button {
            width: 100%;
            margin-bottom: 0.3rem;
        }

    .pagination-link {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .property-code {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .property-subtitle {
        font-size: 0.9rem !important;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.8rem;
    }
}
/* ===== استایل بخش بازه بررسی ملکها ===== */
.review-period-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px 0 5px 0;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .review-period-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(102,126,234,0.3);
    }

.review-period-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
}

.review-period-icon {
    font-size: 1rem;
    color: #ffd700;
}

.review-period-label {
    font-weight: 700;
    margin-left: 5px;
    color: #ffd700;
}

.review-period-date {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* ریسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .review-period-content {
        font-size: 0.75rem;
        gap: 5px;
    }

    .review-period-date {
        padding: 2px 6px;
    }
}

@media screen and (max-width: 480px) {
    .review-period-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-period-date {
        width: 100%;
        text-align: center;
    }
}