/* Property Comparison Styles */

/* Floating Comparison Widget */
.comparison-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    max-width: 400px;
    z-index: 999;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.comparison-widget.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.comparison-widget-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.comparison-widget-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.comparison-widget-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.comparison-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comparison-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.comparison-item-info {
    flex: 1;
}

.comparison-item-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.comparison-item-price {
    color: #06b6d4;
    font-weight: 600;
    font-size: 0.85rem;
}

.comparison-item-remove {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.comparison-item-remove:hover {
    background: #fed7d7;
}

.comparison-widget-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-compare {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-compare:hover {
    background: #5568d3;
}

.btn-clear-all {
    padding: 0.75rem 1rem;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-all:hover {
    background: #edf2f7;
}

/* Comparison Page */
.comparison-page {
    padding: 4rem 0;
    min-height: 100vh;
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.comparison-header p {
    color: #718096;
    font-size: 1.1rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 200px;
}

.comparison-table td {
    color: #2d3748;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-property-header {
    text-align: center;
    padding: 2rem 1.5rem;
}

.comparison-property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comparison-property-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.comparison-property-price {
    color: #06b6d4;
    font-weight: 700;
    font-size: 1.3rem;
}

.comparison-property-location {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.comparison-value {
    font-weight: 600;
}

.comparison-value-highlight {
    color: #06b6d4;
    font-weight: 700;
}

.comparison-actions {
    text-align: center;
    padding: 1.5rem;
}

.comparison-actions .btn {
    margin: 0.5rem;
}

/* Empty State */
.comparison-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.comparison-empty i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.comparison-empty h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.comparison-empty p {
    color: #718096;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-widget {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .comparison-table th {
        min-width: 150px;
    }

    .comparison-property-header {
        padding: 1rem;
    }

    .comparison-property-image {
        height: 150px;
    }
}

/* Compare Button on Property Cards */
.btn-add-compare {
    background: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-add-compare:hover {
    background: #06b6d4;
    color: white;
    border-color: #06b6d4;
}

.btn-add-compare.added {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.btn-add-compare.added i.fa-plus::before {
    content: "\f00c";
    /* Font Awesome checkmark icon */
}

.btn-add-compare i {
    font-size: 0.8rem;
}

/* Property Footer Layout Fix */
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.property-footer .property-price {
    flex: 1;
    min-width: 150px;
    /* Increased from 120px to prevent truncation */
}



