/* Property Comparison Styles */

/* Floating Compare Bar */
.compare-floating-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    display: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compare-bar-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compare-info {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.compare-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.compare-count {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.compare-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.compare-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #d4a574);
    transition: width 0.3s ease;
}

.compare-actions {
    display: flex;
    gap: 0.5rem;
}

.compare-actions .btn {
    flex: 1;
}

/* Compare Checkbox on Property Cards */
.compare-checkbox-wrapper {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.compare-label {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    font-weight: 500;
}

.compare-label:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.compare-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compare-label.disabled:hover {
    transform: none;
}

.compare-checkbox {
    margin: 0;
    margin-right: 0.5rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

.compare-label-text {
    user-select: none;
    color: var(--text-color);
}

.compare-label input:checked + .compare-label-text {
    color: var(--accent-color);
    font-weight: 600;
}

/* Notification System */
.compare-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.compare-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.compare-notification-success {
    border-left: 4px solid #1cc88a;
    color: #1cc88a;
}

.compare-notification-warning {
    border-left: 4px solid #f6c23e;
    color: #f6c23e;
}

.compare-notification-info {
    border-left: 4px solid #36b9cc;
    color: #36b9cc;
}

.compare-notification-danger {
    border-left: 4px solid #e74a3b;
    color: #e74a3b;
}

.compare-notification i {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .compare-floating-bar {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: none;
        padding: 0.75rem 1rem;
    }
    
    .compare-bar-content {
        gap: 0.5rem;
    }
    
    .compare-info {
        font-size: 0.9rem;
    }
    
    .compare-actions .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .compare-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .compare-checkbox-wrapper {
        top: 10px;
        right: 10px;
    }
    
    .compare-label {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Integration with existing property cards */
.property-card {
    position: relative;
}

.property-image {
    position: relative;
}

/* Compare page specific styles */
.comparison-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: white;
    padding: 3rem 0 2rem;
}

.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.property-compare-card {
    position: relative;
    transition: all 0.3s ease;
}

.property-compare-card:hover {
    transform: translateY(-5px);
}

.remove-property-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(231, 74, 59, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-property-btn:hover {
    background: #e74a3b;
    transform: scale(1.1);
}
