/* Property Comparison Tool Styles */

/* Comparison Modal */
.comparison-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.comparison-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.comparison-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.comparison-modal-overlay.show .comparison-modal-container {
    transform: scale(1);
}

.comparison-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

.comparison-header-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-header-content h3 i {
    color: #DC2626;
    font-size: 18px;
}

.comparison-header-content p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
}

.comparison-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.comparison-modal-close:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #ffffff;
}

.comparison-modal-close i {
    font-size: 14px;
    color: #6b6b6b;
}

.comparison-modal-close:hover i {
    color: #ffffff;
}

.comparison-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* Selected Properties - one row, horizontal scroll if needed */
.comparison-selected-properties {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    min-height: 100px;
    overflow-x: auto;
    overflow-y: hidden;
}

.comparison-properties-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.comparison-property-item {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
}

.comparison-property-item .comparison-property-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.comparison-property-item h5 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comparison-property-item button {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.comparison-property-item button:hover {
    background: #DC2626;
    color: #ffffff;
}

.comparison-property-item button i {
    font-size: 12px;
    color: #6b6b6b;
}

.comparison-property-item button:hover i {
    color: #ffffff;
}

.comparison-empty-state {
    text-align: center;
    width: 100%;
    padding: 40px;
    color: #6b6b6b;
}

.comparison-empty-state i {
    font-size: 48px;
    color: #DC2626;
    margin-bottom: 16px;
    opacity: 0.5;
}

.comparison-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.comparison-empty-state span {
    font-size: 12px;
    color: #6b6b6b;
}

.selected-property-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.selected-property-chip img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.selected-property-chip button {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.selected-property-chip button:hover {
    background: #DC2626;
    color: #ffffff;
}

.selected-property-chip button i {
    font-size: 10px;
    color: #6b6b6b;
}

.selected-property-chip button:hover i {
    color: #ffffff;
}

/* Comparison Table */
.comparison-table-container {
    margin-top: 24px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.comparison-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-sticky-col {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    z-index: 5;
    min-width: 200px;
}

.comparison-property-col {
    min-width: 250px;
    position: relative;
    vertical-align: top;
}

.remove-property-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 15;
}

.remove-property-btn:hover {
    background: #DC2626;
    color: #ffffff;
}

.remove-property-btn i {
    font-size: 10px;
    color: #DC2626;
}

.remove-property-btn:hover i {
    color: #ffffff;
}

.property-compare-header {
    text-align: center;
    padding-top: 40px;
}

.property-compare-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.property-compare-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.property-compare-price {
    font-size: 16px;
    font-weight: 700;
    color: #DC2626;
    font-family: 'Playfair Display', serif;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #1a1a1a;
    vertical-align: top;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-rating i {
    color: #fbbf24;
    font-size: 12px;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    padding: 4px 0;
    font-size: 12px;
    color: #6b6b6b;
}

.comparison-list li:before {
    content: '✓';
    color: #DC2626;
    font-weight: 700;
    margin-right: 8px;
}

/* AI Insights Section */
.ai-insights-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.ai-insights-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.ai-insights-header i {
    font-size: 24px;
    color: #DC2626;
}

.ai-insights-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.ai-insights-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.ai-insight-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.ai-insight-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #DC2626;
}

.ai-insight-card.highlight {
    border: 2px solid #DC2626;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.insight-icon {
    width: 48px;
    height: 48px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.insight-icon i {
    font-size: 20px;
    color: #DC2626;
}

.insight-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.insight-content p {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
}

.insight-content strong {
    color: #DC2626;
    font-weight: 700;
}

/* Comparison CTA */
.comparison-cta-section {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.btn-comparison-lead {
    padding: 14px 32px;
    background: #DC2626;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-comparison-lead:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.btn-comparison-lead i {
    font-size: 14px;
}

/* Notification */
.comparison-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #DC2626;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.comparison-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .comparison-modal-container {
        max-height: 95vh;
    }
    
    .comparison-table-wrapper {
        overflow-x: scroll;
    }
    
    .ai-insights-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .comparison-sticky-col {
        min-width: 0px;
    }
    .comparison-table{
        width: 260px;
    }
    .btn-comparison-lead {
        padding: 11px;
        font-size: 12px;
        width: 200px;
    }
    .comparison-modal-body{
        padding: 0px;
    }
    .comparison-cta-section{
        padding: 0px;
    }
    .comparison-table{
        min-width: 320px;

    }
    .comparison-properties-list{
gap: 5px;
    }
    .comparison-selected-properties{
        padding: 10px;
    }
}

